#app,
:root,
[data-theme="neutral"] {
  --background: #ffffff;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --popover: #ffffff;
  --primary: #e87421;
  --primary-foreground: #ffffff;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #e87421;
  --sidebar: #ffffff;
  --sidebar-primary: #e87421;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-ring: #e87421;
}

/* Sticky dashboard footer: viewport bottom when content is short, page bottom when long */
html {
  height: 100%;
  overflow-x: clip;
}

body {
  min-height: 100%;
  overflow-x: clip;
  max-width: 100%;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

#content > footer.dashboard-footer {
  flex-shrink: 0;
  margin-top: auto;
}

#app,
#app *,
.access-removal-modal,
.access-removal-modal *,
.worker-edit-modal,
.worker-edit-modal *,
.schedule-complete-modal,
.schedule-complete-modal *,
.schedule-publish-modal,
.schedule-publish-modal *,
.schedule-generation-modal,
.schedule-generation-modal *,
.account-delete-modal,
.account-delete-modal *,
.dashboard-current-workers-modal,
.dashboard-current-workers-modal * {
  text-transform: none !important;
}

#app button,
#app [role='button'],
#app a[href],
#app input[type='button'],
#app input[type='submit'],
#app input[type='reset'],
#app select,
#app summary,
.access-removal-modal button,
.access-removal-modal [role='button'],
.access-removal-modal a[href],
.access-removal-modal input[type='button'],
.access-removal-modal input[type='submit'],
.access-removal-modal input[type='reset'],
.access-removal-modal select,
.access-removal-modal summary,
.worker-edit-modal button,
.worker-edit-modal [role='button'],
.worker-edit-modal a[href],
.worker-edit-modal input[type='button'],
.worker-edit-modal input[type='submit'],
.worker-edit-modal input[type='reset'],
.worker-edit-modal select,
.worker-edit-modal summary,
.schedule-complete-modal button,
.schedule-complete-modal [role='button'],
.schedule-complete-modal a[href],
.schedule-complete-modal input[type='button'],
.schedule-complete-modal input[type='submit'],
.schedule-complete-modal input[type='reset'],
.schedule-complete-modal select,
.schedule-complete-modal summary,
.schedule-publish-modal button,
.schedule-publish-modal [role='button'],
.schedule-publish-modal a[href],
.schedule-publish-modal input[type='button'],
.schedule-publish-modal input[type='submit'],
.schedule-publish-modal input[type='reset'],
.schedule-publish-modal select,
.schedule-publish-modal summary,
.schedule-generation-modal button,
.schedule-generation-modal [role='button'],
.schedule-generation-modal a[href],
.schedule-generation-modal input[type='button'],
.schedule-generation-modal input[type='submit'],
.schedule-generation-modal input[type='reset'],
.schedule-generation-modal select,
.schedule-generation-modal summary,
.account-delete-modal button,
.account-delete-modal [role='button'],
.account-delete-modal a[href],
.account-delete-modal input[type='button'],
.account-delete-modal input[type='submit'],
.account-delete-modal input[type='reset'],
.account-delete-modal select,
.account-delete-modal summary,
.worker-multi-select-option {
  cursor: pointer !important;
}

#app button:disabled,
#app [role='button'][aria-disabled='true'],
#app a[aria-disabled='true'],
#app input:disabled,
#app select:disabled,
.access-removal-modal button:disabled,
.access-removal-modal [role='button'][aria-disabled='true'],
.access-removal-modal input:disabled,
.access-removal-modal select:disabled,
.worker-edit-modal button:disabled,
.worker-edit-modal [role='button'][aria-disabled='true'],
.worker-edit-modal input:disabled,
.worker-edit-modal select:disabled,
.schedule-complete-modal button:disabled,
.schedule-complete-modal [role='button'][aria-disabled='true'],
.schedule-complete-modal input:disabled,
.schedule-complete-modal select:disabled,
.schedule-publish-modal button:disabled,
.schedule-publish-modal [role='button'][aria-disabled='true'],
.schedule-publish-modal input:disabled,
.schedule-publish-modal select:disabled,
.schedule-generation-modal button:disabled,
.schedule-generation-modal [role='button'][aria-disabled='true'],
.schedule-generation-modal input:disabled,
.schedule-generation-modal select:disabled,
.account-delete-modal button:disabled,
.account-delete-modal [role='button'][aria-disabled='true'],
.account-delete-modal input:disabled,
.account-delete-modal select:disabled {
  cursor: not-allowed !important;
}

.schedule-disabled-tooltip {
  position: relative;
  display: inline-flex;
  z-index: 30;
}

.schedule-disabled-tooltip.is-disabled {
  cursor: not-allowed !important;
}

.schedule-disabled-tooltip.is-disabled::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 90;
  display: none;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  content: attr(data-disabled-message);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 0.25rem);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.schedule-disabled-tooltip.is-disabled:hover::after,
.schedule-disabled-tooltip.is-disabled:focus-within::after {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled {
  z-index: 120;
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled::after {
  top: 50%;
  right: calc(100% + 0.65rem);
  bottom: auto;
  left: auto;
  z-index: 120;
  transform: translate(0.25rem, -50%);
}

.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled:hover::after,
.schedule-disabled-tooltip[data-schedule-settings-lock].is-disabled:focus-within::after {
  transform: translate(0, -50%);
}

.schedule-generate-action__button:disabled,
.schedule-page-header__settings.is-disabled {
  opacity: 0.52;
  filter: grayscale(0.35);
  pointer-events: none;
}

.dashboard-menu-item--active {
  background: rgba(232, 116, 33, 0.12);
  color: #e87421;
}

.dashboard-menu-item--active i {
  color: #e87421;
}

.work-schedule-status-fill {
  fill: #e87421;
}

.dashboard-brand-text {
  color: #382115;
}

.dashboard-header-active-slot {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  padding-inline: 0.75rem;
}

@media (min-width: 768px) {
  .dashboard-header-active-slot {
    display: flex;
  }
}

.schedule-nested-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.schedule-nested-track {
  display: block;
  width: 100%;
  transition: none;
}

.schedule-nested-shell.is-settings .schedule-nested-track {
  transform: none;
}

.schedule-nested-shell.is-active-action .schedule-nested-track {
  transform: none;
}

.schedule-nested-shell.is-day-edit .schedule-nested-track {
  transform: none;
}

.schedule-nested-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.schedule-nested-panel[aria-hidden='false'] {
  display: block;
}

.schedule-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.schedule-page-header__title,
.schedule-page-header__settings {
  justify-self: start;
}

.schedule-active-banner {
  display: inline-flex;
  align-items: center;
  justify-self: stretch;
  gap: 0.65rem;
  border: 1px solid rgba(232, 116, 33, 0.35);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(232, 116, 33, 0.14), rgba(232, 116, 33, 0.06)),
    #ffffff;
  box-shadow: 0 14px 34px rgba(232, 116, 33, 0.1);
  color: #7c3b0e;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.72rem 0.8rem;
}

.schedule-active-banner--header {
  max-width: min(36rem, 100%);
  min-height: 2.6rem;
  padding: 0.42rem 0.48rem 0.42rem 0.7rem;
  box-shadow: 0 8px 24px rgba(232, 116, 33, 0.1);
}

.schedule-active-banner.hidden {
  display: none;
}

.schedule-active-banner > i {
  color: #e87421;
  font-size: 1.08rem;
}

.schedule-active-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  white-space: nowrap;
  border-radius: 0.7rem;
  background: #e87421;
  color: #ffffff;
  padding: 0.42rem 0.72rem;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.schedule-active-banner--header a {
  padding: 0.36rem 0.64rem;
}

.schedule-active-banner a:hover {
  background: #cf6518;
  transform: translateX(1px);
}

.schedule-active-banner__dot,
.schedule-active-shortcut__dot {
  flex: 0 0 auto;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #e87421;
  box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.18);
}

.schedule-generate-action {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-end;
}

.schedule-generate-action__button {
  position: relative;
}

.schedule-active-shortcut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  min-height: 2.35rem;
  margin-left: 0.45rem;
  border: 1px solid rgba(232, 116, 33, 0.35);
  border-radius: 999px;
  background: #fff7ed;
  color: #e87421;
  box-shadow: 0 10px 24px rgba(232, 116, 33, 0.12);
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.schedule-active-shortcut.hidden {
  display: none;
}

.schedule-active-shortcut:hover {
  background: #e87421;
  color: #ffffff;
  transform: translateX(1px);
}

.schedule-active-shortcut__dot {
  position: absolute;
  right: -0.08rem;
  top: -0.12rem;
  animation: schedule-active-pulse 1.8s ease-in-out infinite;
}

@keyframes schedule-active-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(232, 116, 33, 0.08);
  }
}

@media (min-width: 1024px) {
  .schedule-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .schedule-active-banner {
    justify-self: center;
    min-width: min(31rem, 100%);
  }

  .schedule-page-header__settings {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-active-shortcut__dot {
    animation: none;
  }

  .availability-day-card--carousel-enter,
  .availability-day-card--carousel-leave,
  .availability-day-card--carousel-from-left,
  .availability-day-card--carousel-to-right {
    transition: none;
    animation: none;
  }
}

.schedule-active-action-card {
  min-height: 18rem;
}

.schedule-mobile-timeline {
  display: none;
}

.schedule-mobile-timeline__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-mobile-timeline__day {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.65rem;
}

.schedule-mobile-timeline__day--today {
  border-color: color-mix(in srgb, var(--primary, #e87421) 60%, #e5e7eb);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary, #e87421) 26%, transparent),
    0 0 0 2px color-mix(in srgb, var(--primary, #e87421) 16%, transparent);
}

.schedule-mobile-timeline__head {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.schedule-mobile-timeline__tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.schedule-mobile-timeline__empty {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.schedule-active-action-stat {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: rgba(249, 250, 251, 0.76);
  padding: 0.9rem;
}

.schedule-active-action-stat span {
  display: block;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

.schedule-active-action-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .schedule-settings-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .schedule-priority-card:not(.schedule-shifts-card) {
    width: calc(50% - 0.5rem);
  }

  .schedule-shifts-card {
    width: 100%;
  }
}

.schedule-settings-section {
  width: 100%;
  flex: 0 0 100%;
}

.schedule-settings-section--shifts {
  margin-top: 0.25rem;
}

.schedule-settings-section__heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.75rem 0 1rem;
}

.schedule-settings-section__heading::before,
.schedule-settings-section__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.schedule-settings-section__heading span {
  color: #9ca3af;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-priority-card {
  width: 100%;
  transition:
    border-color 180ms ease,
    opacity 180ms ease;
}

.schedule-priority-card.is-disabled {
  border-color: rgba(239, 68, 68, 0.28);
}

.schedule-priority-card.is-disabled h2,
.schedule-priority-card.is-disabled h2 + p {
  opacity: 0.48;
}

.schedule-priority-card.is-disabled [data-schedule-priority-disable-target] {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.schedule-priority-card.is-disabled [data-schedule-hours-disable-target] {
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.schedule-priority-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.65rem;
  background: rgba(243, 244, 246, 0.86);
  padding: 0.2rem;
}

.schedule-priority-toggle__button {
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  transition:
    background 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.schedule-priority-toggle__button.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.schedule-priority-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #15803d;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transition: color 160ms ease;
}

.schedule-priority-status:has(.schedule-priority-status__input:not(:checked)) {
  color: #dc2626;
}

.schedule-priority-status__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-priority-status__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #22c55e;
  border-radius: 0.38rem;
  background: #22c55e;
  color: #ffffff;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-priority-status__box i {
  font-size: 0.85rem;
  font-weight: 800;
}

.schedule-priority-status__input:checked + .schedule-priority-status__box {
  animation: schedule-priority-status-pulse 1.65s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3);
}

.schedule-priority-status__input:not(:checked) + .schedule-priority-status__box {
  animation: none;
  border-color: #dc2626;
  background: #dc2626;
  box-shadow: none;
}

.schedule-priority-status__input:focus-visible + .schedule-priority-status__box {
  outline: 2px solid rgba(34, 197, 94, 0.2);
  outline-offset: 2px;
}

.schedule-priority-status__input:not(:checked):focus-visible + .schedule-priority-status__box {
  outline-color: rgba(220, 38, 38, 0.2);
}

@keyframes schedule-priority-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.32);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.schedule-priority-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.5rem;
  cursor: grab;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.schedule-priority-item:hover {
  background: rgba(249, 250, 251, 0.95);
}

.schedule-priority-item:active {
  cursor: grabbing;
}

.schedule-priority-item.is-dragging {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  opacity: 0.72;
  transform: scale(0.99);
}

.schedule-priority-item__rank {
  width: 2rem;
  flex: 0 0 auto;
  color: #e87421;
  font-size: 0.75rem;
  font-weight: 800;
  transition: opacity 120ms ease;
}

.schedule-priority-list.is-reordering .schedule-priority-item__rank {
  opacity: 0;
}

.schedule-priority-item__handle {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
  transition:
    color 150ms ease,
    opacity 150ms ease;
}

.schedule-priority-item:hover .schedule-priority-item__handle,
.schedule-priority-item.is-dragging .schedule-priority-item__handle {
  color: #6b7280;
  opacity: 1;
}

.schedule-hours-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.5rem;
  transition:
    background 150ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.schedule-hours-item:hover {
  background: rgba(249, 250, 251, 0.95);
}

.schedule-hours-item--statutory-locked {
  opacity: 0.92;
}

.schedule-hours-item--statutory-locked:hover {
  background: transparent;
}

.schedule-hours-item--statutory-locked .schedule-hours-input input {
  cursor: not-allowed;
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.schedule-hours-item--statutory-locked .schedule-hours-input input:focus {
  box-shadow: none;
  border-color: #e5e7eb;
}

.schedule-hours-input {
  position: relative;
  flex: 0 0 auto;
  width: 5.85rem;
}

.schedule-hours-input input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 1.8rem 0.42rem 0.55rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.schedule-hours-input input:focus {
  border-color: rgba(232, 116, 33, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.1);
  outline: none;
}

.schedule-hours-input button {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  transform: translateY(-50%);
  border-radius: 0.4rem;
  color: #16a34a;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.schedule-hours-input button:hover {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

/* ── Shift template settings ── */

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.schedule-shifts-card__header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 1.75rem;
}

.shift-layout-setup,
.shift-layout-detail {
  padding: 1.75rem;
}

/* Shared field primitives */
.shift-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.shift-field--grow {
  flex: 1;
}

.shift-field--inline {
  gap: 0.35rem;
}

.shift-field__label {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
}

.shift-field__input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.shift-field__input--title {
  font-size: 1.125rem;
  font-weight: 700;
}

.shift-field__input--large {
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

.shift-field__input:focus {
  border-color: rgba(232, 116, 33, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.1);
  outline: none;
}

.shift-field__time-picker {
  width: 100%;
  position: relative;
  z-index: 0;
}

.shift-field__time-picker:focus-within {
  z-index: 1;
}

.shift-field__time-toggle {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  text-align: left;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.shift-field__time-toggle:hover {
  border-color: #d1d5db;
}

.shift-field__time-toggle:focus-visible {
  border-color: rgba(232, 116, 33, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 116, 33, 0.1);
  outline: none;
}

.shift-field__time-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  pointer-events: none;
}

.shift-field__time-picker .custom-date-picker-dropdown {
  left: 0;
  right: auto;
  min-width: 100%;
}

.shift-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.shift-check__box,
.shift-check__text {
  cursor: pointer;
}

.shift-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shift-check__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border: 2px solid #d1d5db;
  border-radius: 0.45rem;
  background: #fff;
  color: transparent;
  font-size: 0.85rem;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.shift-check input:checked + .shift-check__box {
  border-color: #e87421;
  background: #e87421;
  color: #fff;
}

.shift-check__text {
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Setup step */
.shift-setup__intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

.shift-setup__cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shift-setup__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 1.5rem;
}

.shift-setup__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(232, 116, 33, 0.1);
  color: #e87421;
  font-size: 1.35rem;
}

.shift-setup__overrides {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.shift-setup__overrides-title {
  margin-bottom: 0.85rem;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shift-setup__overrides-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.shift-setup__override {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem 1rem;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 600;
}

.shift-setup__override select {
  min-height: 2.75rem;
  min-width: 4.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
}

.shift-setup__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  border: none;
  border-radius: 0.75rem;
  background: #e87421;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: background 150ms ease;
}

.shift-setup__submit:hover {
  background: #d96a1c;
}

/* Detail overview strip */
.shift-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #f9fafb;
  padding: 1.15rem 1.35rem;
}

.shift-overview__label {
  display: block;
  margin-bottom: 0.25rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shift-overview__text {
  color: #111827;
  font-size: 1.0625rem;
  font-weight: 700;
}

.shift-overview__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #fff;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.shift-overview__edit:hover {
  border-color: #d1d5db;
  color: #374151;
}

/* Shift period cards */
.shift-period-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shift-period {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.shift-period__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.shift-period__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(232, 116, 33, 0.1);
  color: #c2410c;
}

.shift-period__badge-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shift-period__badge-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.shift-period__meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.shift-period__block {
  padding: 1.5rem;
}

.shift-period__block + .shift-period__block {
  border-top: 1px solid #f3f4f6;
}

.shift-period__block-head {
  margin-bottom: 1.15rem;
}

.shift-period__block-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}

.shift-period__block-desc {
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Worker slots */
.shift-worker-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shift-worker-slot {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fafafa;
  padding: 1rem 1.15rem;
  transition: box-shadow 150ms ease;
}

.shift-worker-slot:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.shift-worker-slot.is-dragging {
  opacity: 0.85;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.shift-worker-slot__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.shift-worker-slot__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(232, 116, 33, 0.12);
  color: #c2410c;
  font-size: 0.875rem;
  font-weight: 800;
}

.shift-worker-slot__handle {
  margin-right: auto;
  color: #cbd5e1;
  font-size: 1.25rem;
  cursor: grab;
}

.shift-worker-slot.is-dragging,
.shift-worker-slot.is-dragging .shift-worker-slot__handle {
  cursor: grabbing;
}

.shift-worker-slot__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.shift-worker-slot__remove:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
}

.shift-worker-slot__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shift-worker-list__add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #c2410c;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* Weekday grid */
.shift-weekday-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.shift-weekday {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.85rem;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.shift-weekday.is-active {
  border-color: rgba(232, 116, 33, 0.4);
  background: rgba(232, 116, 33, 0.04);
}

.shift-weekday__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.shift-weekday__name {
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 700;
}

.shift-weekday__switch {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.shift-weekday__switch input {
  position: absolute;
  opacity: 0;
}

.shift-weekday__switch-track {
  display: block;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  cursor: pointer;
  transition: background 150ms ease;
}

.shift-weekday__switch-track::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 150ms ease;
}

.shift-weekday__switch input:checked + .shift-weekday__switch-track {
  background: #e87421;
}

.shift-weekday__switch input:checked + .shift-weekday__switch-track::after {
  transform: translateX(1rem);
}

.shift-weekday__fields {
  display: grid;
  gap: 0.65rem;
}

.shift-weekday__fields.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Extra rules */
.shift-extra {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.shift-extra__head {
  margin-bottom: 1rem;
}

.shift-extra__title {
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}

.shift-extra__desc {
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.shift-extra__rule {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fafafa;
  padding: 1.25rem 1.35rem;
}

.shift-extra__rule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shift-extra__rule-info {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.shift-extra__rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(232, 116, 33, 0.1);
  color: #e87421;
  font-size: 1.2rem;
}

.shift-extra__rule-name {
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 700;
}

.shift-extra__rule-hint {
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.8125rem;
}

.shift-extra__rule-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px dashed #e5e7eb;
}

.shift-extra__weather-toggle {
  grid-column: 1 / -1;
}

.shift-extra__weather-hint {
  grid-column: 1 / -1;
  margin: -0.35rem 0 0;
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.shift-extra__rule-fields.is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .shift-setup__cards {
    grid-template-columns: 1fr;
  }

  .shift-period__meta {
    grid-template-columns: 1fr;
  }

  .shift-weekday-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-worker-slot__grid,
  .shift-extra__rule-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shift-layout-setup,
  .shift-layout-detail {
    padding: 1.25rem;
  }

  .shift-period__header {
    flex-direction: column;
    align-items: stretch;
  }

  .shift-overview {
    flex-direction: column;
    align-items: stretch;
  }
}

[data-schedule-shifts-card] .shift-check,
[data-schedule-shifts-card] .shift-check__box,
[data-schedule-shifts-card] .shift-check__text,
[data-schedule-shifts-card] .shift-weekday__switch,
[data-schedule-shifts-card] .shift-weekday__switch-track {
  cursor: pointer !important;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-nested-track {
    transition: none;
  }
}

.schedule-worker-tag {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: calc(100% - 8px);
  margin-inline: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase !important;
}

button.schedule-worker-tag,
div.schedule-worker-tag.schedule-worker-tag--assignment-editable {
  appearance: none;
  font: inherit;
  text-align: left;
}

div.schedule-worker-tag.schedule-worker-tag--assignment-editable {
  cursor: pointer;
}

button.schedule-worker-tag.schedule-worker-tag--morning,
.schedule-worker-tag--morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

button.schedule-worker-tag.schedule-worker-tag--afternoon,
.schedule-worker-tag--afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.schedule-worker-tag--recommended {
  opacity: 0.62;
  filter: grayscale(0.45);
  border-style: dashed !important;
}

.schedule-worker-tag--recommended.schedule-worker-tag--morning {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.schedule-worker-tag--recommended.schedule-worker-tag--afternoon {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.schedule-preview-table-shell {
  overflow: visible;
}

.schedule-preview-availability-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.schedule-preview-availability-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.schedule-preview-availability-legend__swatch {
  flex-shrink: 0;
  width: 1.125rem;
  height: 0.625rem;
  border-radius: 0.2rem;
  border: 1px solid transparent;
}

.schedule-preview-availability-legend__swatch--all-day {
  background: color-mix(in srgb, var(--primary) 14%, white);
  border-color: color-mix(in srgb, var(--primary) 38%, white);
  border-style: dashed;
}

.schedule-preview-availability-legend__swatch--morning {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.schedule-preview-availability-legend__swatch--afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
}

.schedule-preview-day-column {
  vertical-align: top;
  position: relative;
}

.schedule-preview-day-column:has(
    .schedule-worker-tag--has-tooltip:hover,
    .schedule-worker-tag--has-tooltip:focus-within,
    .schedule-field-tooltip:hover,
    .schedule-field-tooltip:focus-within
  ) {
  z-index: 60;
  overflow: visible;
}

.schedule-preview-day-slot,
.schedule-preview-day-pool,
.schedule-preview-shift-block,
.schedule-preview-shift-block__tags,
.schedule-preview-day-recommended {
  overflow: visible;
}

.schedule-birthday-notices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-birthday-divider {
  height: 1px;
  margin: 0.3rem 4px 0.15rem;
  border: 0;
  background: color-mix(in srgb, var(--border, #e5e7eb) 82%, transparent);
}

.schedule-worker-tag--birthday {
  background: rgba(232, 116, 32, 0.14);
  border-color: rgba(232, 116, 32, 0.34);
  color: #c45f12;
  text-transform: none !important;
  letter-spacing: 0.01em;
}

.schedule-worker-tag__birthday-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
  color: #e87420;
}

.schedule-preview-day-dock {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.75rem;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  visibility: hidden;
}

.schedule-preview-day-dock.is-active {
  visibility: visible;
}

.schedule-preview-day-dock__anchor {
  position: absolute;
  left: 50%;
  width: calc(100% - 0.4rem);
  transform: translate(-50%, -50%);
  transition:
    top 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  z-index: 4;
}

.schedule-preview-day-dock__anchor--all-day {
  top: 50%;
}

.schedule-preview-day-dock__anchor--morning {
  top: 28%;
}

.schedule-preview-day-dock__anchor--afternoon {
  top: 72%;
}

.schedule-preview-day-slot {
  position: relative;
  height: auto;
  min-height: 11rem;
  overflow: visible;
}

.schedule-view[data-schedule-preview-view='month'] tbody tr,
.schedule-view[data-schedule-preview-view='week'] tbody tr {
  height: 1px;
}

.schedule-view[data-schedule-preview-view='month'] .schedule-preview-day-column,
.schedule-view[data-schedule-preview-view='week'] .schedule-preview-day-column {
  overflow: visible;
  vertical-align: top;
  height: 100%;
  padding: 0;
}

.schedule-view[data-schedule-preview-view='month'] .schedule-preview-day-column-inner,
.schedule-view[data-schedule-preview-view='week'] .schedule-preview-day-column-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.schedule-view[data-schedule-preview-view='month']
  .schedule-preview-day-column-inner--empty {
  min-height: 11rem;
  background: color-mix(in srgb, var(--muted, #f4f4f5) 50%, transparent);
}

.schedule-view[data-schedule-preview-view='month'] .schedule-preview-day-slot,
.schedule-view[data-schedule-preview-view='week'] .schedule-preview-day-slot {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 auto;
}

.schedule-day-edit-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--muted-foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.schedule-preview-day-slot:hover .schedule-day-edit-btn,
.schedule-preview-day-slot:focus-within .schedule-day-edit-btn {
  opacity: 1;
  transform: translateY(0);
}

.schedule-day-edit-btn:hover {
  color: var(--foreground);
  background: var(--card);
  border-color: var(--border);
}

.schedule-day-edit-btn:focus-visible {
  opacity: 1;
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

.schedule-day-edit-btn--persistent {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}

.schedule-preview-day-slot--active-edit {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: -2px;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--primary) 6%, var(--muted) 10%);
}

.schedule-preview-day-slot--active-edit .schedule-day-edit-btn {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}

.schedule-day-edit-coverage-panel {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important;
  background: color-mix(in srgb, var(--primary) 7%, var(--card)) !important;
}

.schedule-day-edit-coverage-panel__spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-top-color: var(--primary);
  border-radius: 9999px;
  animation: schedule-day-edit-coverage-spin 0.8s linear infinite;
}

.schedule-day-edit-coverage-panel__spinner.hidden {
  display: none;
}

@keyframes schedule-day-edit-coverage-spin {
  to {
    transform: rotate(360deg);
  }
}

.schedule-day-edit-coverage-panel__stat {
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

.schedule-day-edit-coverage-invite {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 35%, var(--card));
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.schedule-day-edit-coverage-invite--accepted {
  border-color: color-mix(in srgb, #10b981 35%, var(--border));
  background: color-mix(in srgb, #10b981 12%, var(--card));
  color: #047857;
}

.schedule-day-edit-coverage-invite--declined {
  border-color: color-mix(in srgb, var(--destructive) 30%, var(--border));
  background: color-mix(in srgb, var(--destructive) 8%, var(--card));
  color: var(--destructive);
}

.schedule-day-edit-coverage-invite--pending {
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  color: color-mix(in srgb, var(--primary) 85%, var(--foreground));
}

.schedule-worker-tag--coverage-locked,
.schedule-worker-tag--coverage-locked.schedule-worker-tag--morning,
.schedule-worker-tag--coverage-locked.schedule-worker-tag--afternoon,
button.schedule-worker-tag.schedule-worker-tag--coverage-locked {
  border-color: color-mix(in srgb, #10b981 45%, transparent) !important;
  background: color-mix(in srgb, #10b981 16%, var(--card)) !important;
  color: #065f46 !important;
  cursor: default;
}

.schedule-worker-tag--coverage-locked .schedule-worker-tag__time,
.schedule-worker-tag--coverage-locked .schedule-worker-tag__name {
  color: inherit;
}

.schedule-preview-day-coverage-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed color-mix(in srgb, #10b981 35%, var(--border));
}

.schedule-preview-day-coverage-options__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #047857;
}

.schedule-preview-day-coverage-options__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.schedule-worker-tag--coverage-option,
button.schedule-worker-tag.schedule-worker-tag--coverage-option {
  border-color: color-mix(in srgb, #10b981 45%, transparent) !important;
  background: color-mix(in srgb, #10b981 12%, var(--card)) !important;
  color: #065f46 !important;
  cursor: grab;
}

.schedule-worker-tag--coverage-option-switch,
button.schedule-worker-tag.schedule-worker-tag--coverage-option-switch {
  cursor: pointer;
}

.schedule-worker-tag--coverage-option-switch:hover,
button.schedule-worker-tag.schedule-worker-tag--coverage-option-switch:hover {
  background: color-mix(in srgb, #10b981 20%, var(--card)) !important;
}

.schedule-worker-tag--coverage-option.is-dragging {
  opacity: 0.65;
}

.schedule-day-edit-responses-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .schedule-day-edit-responses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.schedule-day-edit-response {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--muted) 18%, var(--card));
  padding: 0.875rem 1rem;
}

.schedule-day-edit-response__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-day-edit-response__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.schedule-day-edit-response__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.schedule-day-edit-response__status--available {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #047857;
}

.schedule-day-edit-response__status--partial {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
}

.schedule-day-edit-response__status--unavailable {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #b91c1c;
}

.schedule-day-edit-response__status--pending {
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  color: var(--muted-foreground);
}

.schedule-day-edit-response__summary {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  white-space: pre-line;
}

.schedule-day-edit-response__meta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

[data-schedule-panel='day-edit'] [data-schedule-day-edit-calendar] .schedule-view {
  width: 33.333%;
  max-width: 500px;
}

[data-schedule-panel='day-edit'] [data-schedule-day-edit-calendar] .schedule-preview-table-shell {
  width: 100%;
  max-width: 500px;
}

[data-schedule-day-edit-draft-warning] strong {
  display: block;
  margin-bottom: 0.125rem;
}

.dashboard-shift-coverage-pending {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.125rem;
}

.dashboard-shift-coverage-pending__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.dashboard-shift-coverage-pending__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.dashboard-shift-coverage-pending__header-icon i {
  font-size: 1.125rem;
  line-height: 1;
}

.dashboard-shift-coverage-pending__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
}

.dashboard-shift-coverage-pending__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.dashboard-shift-coverage-pending__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  padding: 0.875rem 1rem;
}

.dashboard-shift-coverage-pending__row--high {
  border-color: color-mix(in srgb, var(--destructive) 35%, var(--border));
  background: color-mix(in srgb, var(--destructive) 8%, var(--card));
}

.dashboard-shift-coverage-pending__row--low {
  opacity: 0.82;
}

.dashboard-shift-coverage-pending__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-shift-coverage-pending__spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-top-color: var(--primary);
  border-radius: 9999px;
  animation: schedule-preview-toast-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.dashboard-shift-coverage-pending__copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.dashboard-shift-coverage-pending__copy strong {
  font-size: 0.875rem;
  color: var(--foreground);
}

.dashboard-shift-coverage-pending__copy span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.dashboard-shift-coverage-pending__workers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-shift-coverage-pending__worker {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dashboard-shift-coverage-pending__worker--accepted {
  border-color: color-mix(in srgb, #10b981 35%, var(--border));
  color: #047857;
}

.dashboard-shift-coverage-pending__worker--declined {
  border-color: color-mix(in srgb, var(--destructive) 25%, var(--border));
  color: var(--destructive);
}

.shift-coverage-confirm:has(:checked) {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
}

.shift-coverage-page-card {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
}

.shift-coverage-page-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
}

.shift-coverage-page-card__message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
  white-space: pre-line;
}

.shift-coverage-page-card__message--muted {
  color: var(--muted-foreground);
}

.shift-coverage-page-status {
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--muted) 55%, var(--card));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--foreground);
}

.shift-coverage-page-status.is-error {
  border-color: color-mix(in srgb, var(--destructive) 30%, var(--border));
  background: color-mix(in srgb, var(--destructive) 8%, var(--card));
  color: #b91c1c;
}

.shift-coverage-page-status.is-success {
  border-color: color-mix(in srgb, #10b981 28%, var(--border));
  background: color-mix(in srgb, #10b981 8%, var(--card));
  color: #047857;
}

.shift-coverage-page-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .shift-coverage-page-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.shift-coverage-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer !important;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.shift-coverage-page-btn--secondary {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.shift-coverage-page-btn--secondary:hover:not(:disabled) {
  background: var(--muted);
  color: var(--foreground);
}

.shift-coverage-page-btn--primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.shift-coverage-page-btn--primary:hover:not(:disabled) {
  background: #cf6518;
  border-color: #cf6518;
}

.shift-coverage-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

#schedule-shift-coverage-modal .schedule-generation-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-width: min(42rem, calc(100vw - 2rem));
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.28),
    0 12px 24px -16px rgba(15, 23, 42, 0.2);
}

.schedule-shift-coverage-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.schedule-shift-coverage-form__body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.5rem;
}

.schedule-shift-coverage-form__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .schedule-shift-coverage-form__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.schedule-shift-coverage-field {
  display: block;
}

.schedule-shift-coverage-field__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.schedule-shift-coverage-form select,
.schedule-shift-coverage-form input[type='text'],
.schedule-shift-coverage-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--foreground);
}

.schedule-shift-coverage-form select:focus,
.schedule-shift-coverage-form input[type='text']:focus,
.schedule-shift-coverage-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 1px;
}

.schedule-shift-coverage-section {
  margin-top: 1.25rem;
}

.schedule-shift-coverage-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.schedule-shift-coverage-section__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.schedule-shift-coverage-select-all {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer !important;
}

.schedule-shift-coverage-select-all:hover {
  text-decoration: underline;
}

.schedule-shift-coverage-workers {
  margin-top: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 0.35rem;
}

.schedule-shift-coverage-workers .schedule-shift-coverage-worker-option {
  margin: 0;
}

.schedule-shift-coverage-workers .schedule-shift-coverage-worker-option + .schedule-shift-coverage-worker-option {
  margin-top: 0.125rem;
}

.schedule-shift-coverage-message-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.schedule-shift-coverage-message-mode label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.schedule-shift-coverage-preview {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--muted) 35%, var(--card));
  padding: 1rem;
}

.schedule-shift-coverage-preview__title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.schedule-shift-coverage-preview__middle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
  white-space: pre-line;
}

.schedule-shift-coverage-preview__suffix {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  white-space: pre-line;
}

.schedule-shift-coverage-form__message {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.schedule-shift-coverage-form__message.is-error {
  border-color: color-mix(in srgb, var(--destructive) 30%, var(--border));
  background: color-mix(in srgb, var(--destructive) 8%, var(--card));
  color: #b91c1c;
}

#schedule-shift-coverage-modal .schedule-generation-form-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.82), #ffffff);
  padding: 1.25rem;
}

#schedule-shift-coverage-modal .schedule-generation-form-footer button[type='submit'] {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

#schedule-shift-coverage-modal .schedule-generation-form-footer button[type='submit']:hover {
  background: #cf6518;
  border-color: #cf6518;
}

@media (max-width: 767px) {
  #schedule-shift-coverage-modal .schedule-generation-dialog {
    width: 100%;
    max-width: 100%;
  }
}

.schedule-view[data-schedule-preview-view='month'] .schedule-preview-day-pool,
.schedule-view[data-schedule-preview-view='week'] .schedule-preview-day-pool {
  flex-shrink: 0;
}

.schedule-view[data-schedule-preview-view='month'] .schedule-preview-shift-block__tags,
.schedule-view[data-schedule-preview-view='week'] .schedule-preview-shift-block__tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-view[data-schedule-preview-view='month'] .schedule-worker-tag,
.schedule-view[data-schedule-preview-view='week'] .schedule-worker-tag,
.schedule-view[data-schedule-preview-view='day'] .schedule-worker-tag {
  width: calc(100% - 8px);
  max-width: none;
  flex-shrink: 0;
}

.schedule-preview-day-pool {
  padding: 0.4rem 0.35rem 0.45rem;
  border-top: 1px dashed color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  background: var(--card, #fff);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-preview-day-pool.is-drop-target {
  background: color-mix(in srgb, var(--primary, #2563eb) 8%, var(--card, #fff));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary, #2563eb) 35%, transparent);
}

.schedule-preview-shift-block {
  border-radius: 6px;
  padding: 0.15rem;
  min-height: 1.75rem;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-preview-shift-block--morning {
  background: color-mix(in srgb, #dbeafe 35%, transparent);
}

.schedule-preview-shift-block--afternoon {
  background: color-mix(in srgb, #ede9fe 35%, transparent);
}

.schedule-preview-shift-block.is-drop-target {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
  background: color-mix(in srgb, var(--primary, #2563eb) 10%, transparent);
}

.schedule-worker-tag--pool-available[draggable='true'] {
  cursor: grab;
}

.schedule-worker-tag--pool-available.is-dragging,
.schedule-worker-tag--shift-removable.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.schedule-worker-tag--shift-removable {
  cursor: grab;
}

.schedule-worker-tag__shift-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  color: inherit;
  opacity: 0.55;
  font-size: 0.85rem;
  line-height: 1;
  pointer-events: none;
}

.schedule-worker-tag--shift-removable:hover .schedule-worker-tag__shift-remove {
  opacity: 0.9;
}

.schedule-preview-day-available {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0 0.35rem;
  min-height: 0;
}

.schedule-preview-day-unavailable-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.3rem 0.35rem;
  border: none;
  border-top: 1px dashed color-mix(in srgb, var(--border, #e5e7eb) 65%, transparent);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted-foreground, #6b7280);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.schedule-preview-day-unavailable-toggle:hover {
  color: var(--foreground, #111827);
  background: color-mix(in srgb, var(--muted, #f3f4f6) 55%, transparent);
}

.schedule-preview-day-unavailable-toggle__icon {
  flex: 0 0 auto;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.schedule-preview-day-unavailable-toggle.is-expanded .schedule-preview-day-unavailable-toggle__icon {
  transform: rotate(180deg);
}

.schedule-preview-day-unavailable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
}

.schedule-preview-day-unavailable[hidden] {
  display: none !important;
}

.schedule-worker-tag--pool-available {
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, white);
  color: color-mix(in srgb, var(--primary) 72%, #64748b);
  text-transform: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  box-shadow: none;
  flex-wrap: wrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  border-style: solid;
  color: #1d4ed8;
}

.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  border-style: solid;
  color: #6d28d9;
}

button.schedule-worker-tag.schedule-worker-tag--pool-available {
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, white);
  color: color-mix(in srgb, var(--primary) 72%, #64748b);
}

button.schedule-worker-tag.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-morning {
  background: #dbeafe;
  border-color: #bfdbfe;
  border-style: solid;
  color: #1d4ed8;
}

button.schedule-worker-tag.schedule-worker-tag--pool-available.schedule-worker-tag--pool-available-afternoon {
  background: #ede9fe;
  border-color: #ddd6fe;
  border-style: solid;
  color: #6d28d9;
}

.schedule-worker-tag--pool-available:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.schedule-worker-tag--pool-available.schedule-worker-tag--dock-source {
  opacity: 0.35;
  transform: scale(0.96);
  pointer-events: none;
}

.schedule-worker-tag--swap-candidate {
  animation: schedule-swap-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
}

.schedule-worker-tag--assignment-pick {
  animation: schedule-swap-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
  outline: 2px solid color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
  outline-offset: 1px;
}

.schedule-worker-tag--assignment-pick-override {
  animation: schedule-override-flicker 1.1s ease-in-out infinite;
  cursor: pointer;
  outline: 2px solid color-mix(in srgb, #ea580c 65%, transparent);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px color-mix(in srgb, #ea580c 20%, transparent);
}

.schedule-preview-shift-block--swap-override-hint {
  outline: 2px dashed color-mix(in srgb, #ea580c 55%, transparent);
  outline-offset: 2px;
  background: color-mix(in srgb, #ea580c 6%, transparent);
}

@keyframes schedule-override-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
  50% {
    opacity: 0.92;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
  }
}

.schedule-preview-shift-block.is-drop-target.schedule-preview-shift-block--swap-override-hint {
  outline-color: color-mix(in srgb, #d97706 70%, transparent);
}

.schedule-availability-override-modal,
.schedule-availability-override-modal * {
  text-transform: none !important;
}

.schedule-availability-override-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 200 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.schedule-availability-override-modal.is-visible {
  display: flex !important;
}

.schedule-availability-override-modal.is-open {
  opacity: 1;
}

.schedule-availability-override-dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.schedule-availability-override-modal.is-open .schedule-availability-override-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-availability-override-icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.schedule-availability-override-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  cursor: pointer !important;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.schedule-availability-override-btn--cancel {
  border: 1px solid var(--border, #e5e7eb);
  background: transparent;
  color: var(--muted-foreground, #6b7280);
}

.schedule-availability-override-btn--cancel:hover {
  background: var(--muted, #f3f4f6);
  color: var(--foreground, #111827);
}

.schedule-availability-override-btn--confirm {
  border: 1px solid #c2410c;
  background: #ea580c;
  color: #ffffff;
}

.schedule-availability-override-btn--confirm:hover {
  background: #c2410c;
  color: #ffffff;
}

.login-alert__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  font-size: 1.125rem;
  line-height: 1;
}

.login-alert__text {
  flex: 1;
  padding-top: 0.05rem;
}

[data-login-message]:empty {
  display: none;
  margin-bottom: 0 !important;
}

.login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.login-submit-btn__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.login-submit-btn.is-loading {
  pointer-events: none;
}

.login-submit-btn.is-loading .login-submit-btn__spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.login-verification-panel__section--bordered {
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

.login-form.is-submitting input:disabled,
.login-form.is-submitting [data-password-toggle]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.schedule-worker-tag--assignment-blocked {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.4);
  pointer-events: none;
}

.schedule-preview-shift-block--swap-blocked {
  opacity: 0.55;
}

.schedule-preview-shift-block--swap-blocked .schedule-worker-tag--assignment-blocked {
  opacity: 0.65;
}

.schedule-worker-tag--dock {
  width: 100%;
  margin: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  z-index: 5;
}

@keyframes schedule-swap-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
}

.schedule-worker-tag__avail-note {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.schedule-worker-tag--pool-unavailable {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  text-transform: none;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.01em;
  cursor: default;
  position: relative;
  opacity: 0.88;
  filter: grayscale(0.35);
}

.schedule-worker-tag--pool-unavailable.schedule-worker-tag--has-tooltip {
  cursor: help;
}

.schedule-worker-tag--pool-unavailable[data-schedule-pool-drag] {
  cursor: grab;
}

.schedule-worker-tag--pool-unavailable[data-schedule-pool-drag].is-dragging {
  cursor: grabbing;
}

.schedule-worker-tag--morning-shift-extended {
  border: 1px solid rgba(217, 119, 6, 0.42) !important;
  background: rgba(254, 243, 199, 0.72) !important;
  color: #92400e !important;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.28);
  animation: schedule-tag-soft-warning-pulse 2.4s ease-in-out infinite;
}

.schedule-worker-tag--morning-shift-extended .schedule-worker-tag__warn {
  color: #d97706;
}

.schedule-worker-tag--aft-morn-danger {
  border: 1px solid rgba(220, 38, 38, 0.4) !important;
  background: rgba(254, 226, 226, 0.65) !important;
  color: #991b1b !important;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.22);
  animation: schedule-tag-soft-danger-pulse 2.4s ease-in-out infinite;
}

.schedule-worker-tag--aft-morn-danger .schedule-worker-tag__warn {
  color: #dc2626;
}

@keyframes schedule-tag-soft-warning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.22);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
}

@keyframes schedule-tag-soft-danger-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.schedule-worker-tag--obligation-warning {
  border: 1px dashed rgba(202, 138, 4, 0.45) !important;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.schedule-worker-tag--obligation-warning.schedule-worker-tag--morning {
  background: #fef9c3;
  border-color: #facc15;
  color: #a16207;
}

.schedule-worker-tag--obligation-warning.schedule-worker-tag--afternoon {
  background: #fef3c7;
  border-color: #eab308;
  color: #92400e;
}

.schedule-worker-tag__warn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: #ca8a04;
  font-size: 0.72rem;
  line-height: 1;
}

.schedule-worker-tag--has-tooltip {
  position: relative;
}

/* In schedule preview and generation modals, inline tooltips use a fixed portal (see JS). */
.schedule-view .schedule-worker-tag--has-tooltip > .schedule-worker-tag__tooltip,
.schedule-view .schedule-field-tooltip__content,
.schedule-generation-modal .schedule-field-tooltip__content {
  display: none !important;
}

.schedule-worker-tag-tooltip-portal {
  position: fixed;
  z-index: 10050;
  width: max-content;
  max-width: min(16rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
  letter-spacing: normal;
  text-transform: none !important;
}

.schedule-worker-tag--has-tooltip > .schedule-worker-tag__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  z-index: 120;
  width: max-content;
  max-width: 14rem;
  transform: translate(-50%, 0.25rem);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 0.6rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  padding: 0.45rem 0.6rem;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.schedule-worker-tag--has-tooltip:hover > .schedule-worker-tag__tooltip,
.schedule-worker-tag--has-tooltip:focus > .schedule-worker-tag__tooltip,
.schedule-worker-tag--has-tooltip:focus-within > .schedule-worker-tag__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.schedule-worker-tag__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.schedule-worker-tag__info {
  flex: 0 0 auto;
  margin-left: 0.1rem;
  color: #6b7280 !important;
}

.schedule-worker-tag__info i {
  font-size: 0.72rem;
  line-height: 1;
}

.schedule-worker-tag__tooltip,
.schedule-field-tooltip__content {
  white-space: pre-line;
  max-width: 14rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none !important;
}

.schedule-worker-tag--assignment-editable {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.schedule-worker-tag--assignment-editable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.schedule-worker-tag__time {
  flex: 0 0 auto;
}

.schedule-worker-tag__time-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  opacity: 0;
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.schedule-worker-tag__time-edit i {
  font-size: 0.95rem;
  line-height: 1;
}

.schedule-worker-tag--assignment-editable:hover .schedule-worker-tag__time-edit,
.schedule-worker-tag--assignment-editable:focus-within .schedule-worker-tag__time-edit {
  opacity: 0.85;
}

.schedule-worker-tag__time-edit:hover,
.schedule-worker-tag__time-edit:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
  outline: none;
}

.schedule-worker-tag.is-editing-display-time .schedule-worker-tag__time-edit {
  display: none;
}

.schedule-worker-tag__time-input {
  box-sizing: border-box;
  width: 3.35rem;
  margin: 0;
  padding: 0 0.15rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: #ffffff;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  text-transform: inherit;
  color: inherit;
  text-align: center;
}

.schedule-worker-tag__time-input:focus {
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  outline-offset: 1px;
}

.schedule-worker-tag__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 6px 2px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.8;
}

.schedule-shift-legend__swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.schedule-shift-legend__swatch--morning {
  background: #1d4ed8;
  color: #1d4ed8;
}

.schedule-shift-legend__swatch--afternoon {
  background: #6d28d9;
  color: #6d28d9;
}

.schedule-shift-legend__label--morning {
  color: #1d4ed8;
}

.schedule-shift-legend__label--afternoon {
  color: #6d28d9;
}

.schedule-date-cell--today {
  outline: 2px solid #a9a9a9;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.12);
  border-radius: 0.5rem;
}

.schedule-date-cell--afternoon-shortage,
.schedule-date-heading--afternoon-shortage {
  background: linear-gradient(
    165deg,
    rgba(254, 243, 199, 0.55) 0%,
    rgba(255, 251, 235, 0.35) 55%,
    rgba(255, 255, 255, 0.15) 100%
  ) !important;
  border: 1px solid rgba(217, 119, 6, 0.28) !important;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-date-heading--afternoon-shortage {
  color: #b45309 !important;
}

.schedule-date-cell--incomplete,
.schedule-date-heading--incomplete {
  background: linear-gradient(
    165deg,
    rgba(254, 226, 226, 0.55) 0%,
    rgba(254, 242, 242, 0.32) 55%,
    rgba(255, 255, 255, 0.12) 100%
  ) !important;
  border: 1px solid rgba(239, 68, 68, 0.26) !important;
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-date-heading--incomplete {
  color: #b91c1c !important;
}

.schedule-preview-shift-block--has-unfilled {
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 0.5rem;
  background: linear-gradient(
    165deg,
    rgba(254, 226, 226, 0.45) 0%,
    rgba(254, 242, 242, 0.2) 100%
  );
}

.schedule-preview-shift-block--has-unfilled-optional {
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 0.5rem;
  background: linear-gradient(
    165deg,
    rgba(254, 243, 199, 0.35) 0%,
    rgba(255, 251, 235, 0.12) 100%
  );
}

.schedule-preview-shift-unfilled {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px dashed rgba(220, 38, 38, 0.55);
  background: rgba(254, 226, 226, 0.75);
  color: #991b1b;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 600;
  cursor: help;
  position: relative;
}

.schedule-preview-shift-unfilled--optional {
  border: 1px dashed rgba(217, 119, 6, 0.45);
  background: rgba(254, 243, 199, 0.55);
  color: #92400e;
  font-weight: 600;
}

.schedule-preview-shift-unfilled--optional .schedule-preview-shift-unfilled__icon {
  color: #d97706;
}

.schedule-preview-shift-unfilled--optional .schedule-preview-shift-unfilled__tooltip {
  background: #78350f;
}

.schedule-preview-shift-unfilled__icon {
  color: #dc2626;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.schedule-preview-shift-unfilled__text {
  flex: 1;
  min-width: 0;
}

.schedule-preview-shift-unfilled__tooltip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 30;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: #7f1d1d;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

.schedule-preview-shift-unfilled:hover .schedule-preview-shift-unfilled__tooltip,
.schedule-preview-shift-unfilled:focus-visible .schedule-preview-shift-unfilled__tooltip {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-worker-tag--morning-shift-extended,
  .schedule-worker-tag--aft-morn-danger,
  .schedule-worker-tag--swap-candidate,
  .schedule-worker-tag--assignment-pick {
    animation: none;
  }
}

.schedule-date-heading--today {
  color: #111827 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body.schedule-generation-modal-open {
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100vw;
}

html.schedule-generation-modal-open {
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100vw;
}

.access-removal-modal,
.worker-edit-modal,
.schedule-complete-modal,
.schedule-publish-modal,
.schedule-generation-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100vw;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 200 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  transition: opacity 180ms ease;
}

.access-removal-dialog,
.worker-edit-dialog,
.schedule-complete-dialog,
.schedule-publish-dialog,
.register-policies-modal .register-policies-dialog {
  max-width: 42rem;
  width: calc(100% - 2rem);
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.28),
    0 12px 24px -16px rgba(15, 23, 42, 0.2);
}

.register-policies-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.9), #ffffff);
}

.register-policies-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.register-policies-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
}

.register-policies-tabs {
  margin-top: 0.85rem;
}

.register-password-input-wrap {
  position: relative;
}

.register-password-help {
  position: absolute;
  top: 50%;
  right: 2.75rem;
  z-index: 2;
  transform: translateY(-50%);
}

.register-password-help-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #d97706;
  cursor: help;
  transition: color 150ms ease, background-color 150ms ease;
}

.register-password-help-trigger:hover,
.register-password-help:focus-within .register-password-help-trigger {
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
}

.register-password-help-trigger i {
  font-size: 1.125rem;
  line-height: 1;
}

.register-password-help-popover {
  position: absolute;
  z-index: 1200;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow:
    0 12px 24px -12px rgba(15, 23, 42, 0.28),
    0 4px 10px -6px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    visibility 150ms ease;
}

.register-password-help:hover .register-password-help-popover,
.register-password-help:focus-within .register-password-help-popover,
.register-password-help.is-open .register-password-help-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.register-password-help-popover__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.register-password-rules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.register-password-rules li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6b7280;
}

.register-password-rules li + li {
  margin-top: 0.35rem;
}

.register-password-rules li.is-met {
  color: #047857;
}

.register-password-rules li.is-unmet {
  color: #b45309;
}

.register-password-rules__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  line-height: 1;
}

[data-register-password].register-password-input--hint,
[data-register-password-confirm].register-password-input--hint,
[data-profile-new-password].register-password-input--hint,
[data-profile-confirm-password].register-password-input--hint,
[data-profile-current-password].register-password-input--hint {
  border-color: #f59e0b;
}

[data-register-password].register-password-input--hint:focus,
[data-register-password-confirm].register-password-input--hint:focus,
[data-profile-new-password].register-password-input--hint:focus,
[data-profile-confirm-password].register-password-input--hint:focus,
[data-profile-current-password].register-password-input--hint:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

[data-register-password].register-password-input--error,
[data-register-password-confirm].register-password-input--error,
[data-profile-new-password].register-password-input--error,
[data-profile-confirm-password].register-password-input--error,
[data-profile-current-password].register-password-input--error {
  border-color: #dc2626;
}

[data-register-password].register-password-input--error:focus,
[data-register-password-confirm].register-password-input--error:focus,
[data-profile-new-password].register-password-input--error:focus,
[data-profile-confirm-password].register-password-input--error:focus,
[data-profile-current-password].register-password-input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

[data-register-password].register-password-input--success,
[data-register-password-confirm].register-password-input--success,
[data-profile-new-password].register-password-input--success,
[data-profile-confirm-password].register-password-input--success,
[data-profile-current-password].register-password-input--success {
  border-color: #059669;
}

[data-register-password].register-password-input--success:focus,
[data-register-password-confirm].register-password-input--success:focus,
[data-profile-new-password].register-password-input--success:focus,
[data-profile-confirm-password].register-password-input--success:focus,
[data-profile-current-password].register-password-input--success:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.22);
}

.register-policies-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #6b7280;
  flex-shrink: 0;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.register-policies-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.register-policies-close i {
  font-size: 1.25rem;
  line-height: 1;
}

/* Dashboard: work schedule share card */
.dashboard-work-share-card {
  border-color: color-mix(in srgb, var(--border, #e5e7eb) 86%, transparent);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 14px 26px -22px rgb(15 23 42 / 0.28);
}

.dashboard-work-share-card__header {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--card, #fff) 94%, #f8fafc),
    color-mix(in srgb, var(--card, #fff) 98%, transparent)
  );
}

.dashboard-work-share-card__title {
  letter-spacing: -0.012em;
}

.dashboard-work-share-card__subtitle {
  font-size: 0.72rem;
  line-height: 1.35;
}

.dashboard-work-share-card__badge {
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted, #f3f4f6) 68%, transparent);
}

.dashboard-work-share-card__body {
  display: flex;
  flex-direction: column;
}

.dashboard-work-share-card__empty {
  background: color-mix(in srgb, var(--muted, #f3f4f6) 30%, transparent);
}

.dashboard-work-share-item {
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 78%, transparent);
  border-radius: 0.78rem;
  padding: 0.6rem 0.68rem;
  background: color-mix(in srgb, var(--background, #fff) 87%, var(--muted, #f3f4f6));
}

.dashboard-work-share-item__avatar {
  width: 1.78rem;
  height: 1.78rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--primary, #e87421) 84%, #7c2d12);
  border: 1px solid color-mix(in srgb, var(--primary, #e87421) 35%, #ffffff);
  background: color-mix(in srgb, var(--primary, #e87421) 16%, #ffffff);
}

.dashboard-work-share-item__name {
  font-size: 0.81rem;
  font-weight: 600;
}

.dashboard-work-share-item__meta {
  font-size: 0.68rem;
}

.dashboard-work-share-item__pct {
  min-width: 2.2rem;
  text-align: right;
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-work-share-item__bar {
  height: 5px;
  border-radius: 0.32rem;
  background: color-mix(in srgb, var(--muted, #f1f5f9) 80%, #e2e8f0);
}

.dashboard-work-share-item__fill {
  fill: color-mix(in srgb, var(--primary, #e87421) 90%, #fb923c);
}

.register-policies-body {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.register-policies-body h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.register-policies-body h3:first-child {
  margin-top: 0;
}

.register-policies-body p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: #4b5563;
}

.register-policies-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.register-policies-footer__button {
  border-radius: 0.65rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.register-policies-footer__button--secondary {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
}

.register-policies-footer__button--secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.register-policies-footer__button--primary {
  border: 1px solid #e87421;
  background: #e87421;
  color: #ffffff;
}

.register-policies-footer__button--primary:hover {
  background: #cf6518;
  border-color: #cf6518;
}

.schedule-generation-modal.is-visible {
  overscroll-behavior: contain;
}

.access-removal-modal.is-visible,
.worker-edit-modal.is-visible,
.schedule-complete-modal.is-visible,
.schedule-publish-modal.is-visible,
.schedule-generation-modal.is-visible {
  display: flex !important;
}

.access-removal-modal.is-open,
.worker-edit-modal.is-open,
.schedule-complete-modal.is-open,
.schedule-publish-modal.is-open,
.schedule-generation-modal.is-open {
  opacity: 1;
}

.access-removal-dialog,
.worker-edit-dialog,
.schedule-complete-dialog,
.schedule-publish-dialog,
.schedule-generation-dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.access-removal-modal.is-open .access-removal-dialog,
.worker-edit-modal.is-open .worker-edit-dialog,
.schedule-complete-modal.is-open .schedule-complete-dialog,
.schedule-publish-modal.is-open .schedule-publish-dialog,
.schedule-generation-modal.is-open .schedule-generation-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.schedule-generation-dialog {
  max-height: min(52rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

#schedule-generation-modal .schedule-generation-dialog {
  width: min(60vw, 1400px, calc(100vw - 2rem));
  max-width: min(60vw, 1400px, calc(100vw - 2rem));
}

#schedule-add-participants-modal .schedule-generation-dialog--add-participants {
  max-width: min(56rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 2rem));
  min-height: min(22rem, calc(100vh - 4rem));
  overflow: visible;
}

#schedule-add-participants-modal .schedule-generation-form,
#schedule-add-participants-modal .schedule-generation-form-body {
  overflow: visible;
}

#schedule-add-participants-modal [data-worker-multi-select-anchor] {
  position: relative;
  z-index: 2;
}

#schedule-add-participants-modal .worker-multi-select-panel {
  z-index: 280;
}

#schedule-add-participants-modal .worker-multi-select-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  max-height: min(32rem, calc(100vh - 12rem));
}

#schedule-add-participants-modal
  .worker-multi-select-panel:not(.worker-multi-select-panel--floating)
  .worker-multi-select-panel__options {
  flex: 1;
  min-height: 0;
  max-height: min(28rem, calc(100vh - 16rem));
}

.schedule-generation-dialog > .border-b {
  flex-shrink: 0;
}

.schedule-generation-form {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.schedule-generation-form-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-generation-form > [data-schedule-generation-message] {
  flex-shrink: 0;
}

.schedule-generation-form-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.82), #ffffff);
}

@media (max-width: 767px) {
  #content,
  #content > .flex-1,
  #content .mx-auto {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .schedule-nested-track {
    display: block;
    transform: none !important;
    transition: none;
  }

  .schedule-nested-panel[aria-hidden='true'] {
    display: none !important;
  }

  .schedule-nested-panel[aria-hidden='false'] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .schedule-view-switcher {
    display: none !important;
  }

  .schedule-view[data-schedule-view],
  [data-published-schedule-calendar] .schedule-view,
  [data-published-schedule-calendar] [data-schedule-preview-view],
  [data-dashboard-schedule-calendar] .schedule-view,
  [data-dashboard-schedule-calendar] [data-schedule-preview-view] {
    display: none !important;
  }

  .schedule-mobile-timeline {
    display: block !important;
  }

  .schedule-mobile-timeline .schedule-worker-tag {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .schedule-mobile-timeline__list {
    max-height: min(62vh, 34rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.15rem;
  }

  .schedule-generation-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .schedule-generation-dialog,
  #schedule-generation-modal .schedule-generation-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 0.9rem;
  }

  .register-policies-modal .register-policies-dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 0.9rem 0.9rem 0 0;
  }

  .register-policies-header,
  .register-policies-body,
  .register-policies-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .register-policies-footer {
    flex-direction: column-reverse;
  }

  .register-policies-footer__button {
    width: 100%;
    justify-content: center;
  }

  .schedule-generation-dialog > .border-b,
  .schedule-generation-form-body,
  .schedule-generation-form-footer {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .schedule-generation-form-body {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .schedule-generation-form-footer {
    padding-top: 0.75rem !important;
    padding-bottom: 0.85rem !important;
  }
}

.schedule-late-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #ffffff;
  padding: 0.75rem;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.schedule-late-checkbox:hover {
  border-color: rgba(232, 116, 33, 0.35);
}

.schedule-late-checkbox.is-checked,
.schedule-late-checkbox:has(.schedule-late-checkbox__input:checked) {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.04);
  box-shadow: none;
}

.schedule-late-checkbox:focus-within {
  outline: none;
  box-shadow: none;
}

.schedule-late-checkbox__input,
.schedule-worker-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.schedule-late-checkbox__box,
.schedule-worker-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0;
  border: 1.5px solid #d1d5db;
  border-radius: 0.3rem;
  background: #ffffff;
  color: #ffffff;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.schedule-worker-checkbox__box {
  margin-top: 0;
}

.schedule-late-checkbox__box i,
.schedule-worker-checkbox__box i {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 140ms ease;
}

.schedule-late-checkbox.is-checked .schedule-late-checkbox__box,
.schedule-late-checkbox:has(.schedule-late-checkbox__input:checked) .schedule-late-checkbox__box,
.schedule-late-checkbox__input:checked + .schedule-late-checkbox__box,
.schedule-worker-checkbox.is-checked .schedule-worker-checkbox__box,
.schedule-worker-checkbox:has(.schedule-worker-checkbox__input:checked) .schedule-worker-checkbox__box,
.schedule-worker-checkbox__input:checked + .schedule-worker-checkbox__box {
  border-color: #e87421;
  background: #e87421;
  color: #ffffff;
}

.schedule-late-checkbox.is-checked .schedule-late-checkbox__box i,
.schedule-late-checkbox:has(.schedule-late-checkbox__input:checked) .schedule-late-checkbox__box i,
.schedule-late-checkbox__input:checked + .schedule-late-checkbox__box i,
.schedule-worker-checkbox.is-checked .schedule-worker-checkbox__box i,
.schedule-worker-checkbox:has(.schedule-worker-checkbox__input:checked) .schedule-worker-checkbox__box i,
.schedule-worker-checkbox__input:checked + .schedule-worker-checkbox__box i {
  opacity: 1;
}

.schedule-late-checkbox__input:focus-visible + .schedule-late-checkbox__box,
.schedule-worker-checkbox__input:focus-visible + .schedule-worker-checkbox__box {
  outline: 2px solid rgba(232, 116, 33, 0.18);
  outline-offset: 2px;
}

.schedule-late-checkbox__content {
  min-width: 0;
}

.schedule-late-checkbox--compact {
  padding: 0.62rem 0.75rem;
}

/* Compact weekday toggles (worker recurring obligations) — matches schedule accent */
.schedule-day-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.schedule-day-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-day-chip__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #374151;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-day-chip:hover .schedule-day-chip__box {
  border-color: rgba(232, 116, 33, 0.35);
}

.schedule-day-chip:has(.schedule-day-chip__input:checked) .schedule-day-chip__box {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.08);
  color: #c2410c;
  box-shadow: 0 0 0 1px rgba(232, 116, 33, 0.12);
}

.schedule-day-chip__input:focus-visible + .schedule-day-chip__box {
  outline: 2px solid rgba(232, 116, 33, 0.22);
  outline-offset: 2px;
}

.schedule-completion-option {
  position: relative;
  display: flex;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.9rem;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.schedule-completion-option:hover,
.schedule-completion-option.is-active {
  border-color: rgba(232, 116, 33, 0.45);
  background: rgba(232, 116, 33, 0.04);
}

.schedule-completion-option.is-active {
  box-shadow: none;
}

.schedule-completion-option input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.schedule-completion-option input:checked {
  border-color: #e87421;
  background: radial-gradient(circle at center, #e87421 0 42%, #ffffff 44%);
}

.schedule-completion-option input:focus,
.schedule-completion-option input:focus-visible,
.schedule-completion-option input:active {
  outline: none;
  box-shadow: none;
}

.schedule-completion-option strong,
.schedule-completion-option small {
  display: block;
}

.schedule-completion-option strong {
  color: #111827;
  font-size: 0.88rem;
}

.schedule-completion-option small {
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.35;
}

.schedule-field-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  color: #e87421;
  cursor: help;
  outline: none;
}

.schedule-field-tooltip i {
  font-size: 1rem;
  line-height: 1;
}

.schedule-field-tooltip__content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 120;
  display: none;
  width: max-content;
  max-width: 16rem;
  transform: translate(-50%, 0.35rem) scale(0.96);
  border: 1px solid rgba(232, 116, 33, 0.22);
  border-radius: 0.75rem;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0;
  padding: 0.55rem 0.7rem;
  pointer-events: none;
  text-align: left;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.schedule-field-tooltip__content::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #111827;
}

.schedule-field-tooltip:hover .schedule-field-tooltip__content,
.schedule-field-tooltip:focus .schedule-field-tooltip__content,
.schedule-field-tooltip:focus-within .schedule-field-tooltip__content {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.worker-multi-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 90;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.worker-multi-select-panel--floating {
  position: fixed !important;
  z-index: 270 !important;
  display: flex !important;
  flex-direction: column;
  max-height: min(32rem, calc(100vh - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  overflow: hidden;
  box-sizing: border-box;
  background: #ffffff;
}

.worker-multi-select-panel--floating > .border-b {
  flex-shrink: 0;
}

.worker-multi-select-panel__options {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #ffffff;
}

.worker-multi-select-panel--floating .worker-multi-select-panel__options {
  flex: 1 1 auto;
  min-height: 12rem;
  max-height: none;
}

.worker-multi-select-panel--floating .worker-multi-select-footer {
  flex-shrink: 0;
}

.worker-multi-select-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.72), #ffffff);
}

.worker-multi-select-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.worker-multi-select-footer__button:hover {
  transform: translateY(-1px);
}

.worker-multi-select-footer__button--secondary {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.worker-multi-select-footer__button--secondary:hover {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #374151;
}

.worker-multi-select-footer__button--primary {
  border: 1px solid #e87421;
  background: #e87421;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(232, 116, 33, 0.2);
}

.worker-multi-select-footer__button--primary:hover {
  background: #d9691d;
  border-color: #d9691d;
}

.custom-date-picker-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  z-index: 80;
  width: min(21rem, calc(100vw - 2rem));
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(232, 116, 33, 0.12), transparent 34%),
    #ffffff;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 0.875rem;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating {
  position: fixed;
  z-index: 260;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  width: min(21rem, calc(100vw - 2rem));
  max-width: calc(100vw - 1.5rem);
  box-sizing: border-box;
  overflow-x: hidden;
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating.custom-date-picker-dropdown--open-up:not(.is-open) {
  transform: translateY(-8px) scale(0.98);
  transform-origin: bottom left;
}

.custom-date-picker-dropdown.custom-date-picker-dropdown--floating:not(.custom-date-picker-dropdown--open-up):not(.is-open) {
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
}

.custom-date-picker[data-date-picker-mode="datetime"] .custom-date-picker-dropdown {
  top: auto;
  bottom: calc(100% + 0.5rem);
  transform: translateY(-8px) scale(0.98);
  transform-origin: bottom left;
}

.custom-date-picker[data-date-picker-mode="datetime"] .custom-date-picker-dropdown.is-open {
  transform: translateY(0) scale(1);
}

.custom-date-picker-dropdown.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.custom-date-picker-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.custom-date-picker-dropdown__month {
  min-width: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
}

.custom-date-picker-dropdown__month--birthdate {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.custom-date-picker-dropdown__month-label {
  min-width: 0;
  white-space: nowrap;
}

.custom-date-picker-dropdown__year-input {
  width: 4.5rem;
  padding: 0.25rem 0.375rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}

.custom-date-picker-dropdown__year-input:focus-visible {
  outline: 2px solid rgba(232, 116, 32, 0.35);
  outline-offset: 1px;
}

.custom-date-picker-dropdown__nav {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.custom-date-picker-dropdown__nav:hover {
  border-color: rgba(232, 116, 33, 0.42);
  background: rgba(232, 116, 33, 0.1);
  color: #e87421;
  transform: translateY(-1px);
}

.custom-date-picker-dropdown__weekdays,
.custom-date-picker-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.custom-date-picker-dropdown__weekdays {
  margin-bottom: 0.35rem;
}

.custom-date-picker-dropdown__weekday {
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.custom-date-picker-dropdown__day {
  position: relative;
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.custom-date-picker-dropdown__day:hover {
  border-color: rgba(232, 116, 33, 0.24);
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
  transform: translateY(-1px);
}

.custom-date-picker-dropdown__day.is-today {
  border-color: rgba(17, 24, 39, 0.18);
  color: #111827;
}

.custom-date-picker-dropdown__day.is-selected {
  border-color: #e87421;
  background: #e87421;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(232, 116, 33, 0.26);
}

.custom-date-picker-dropdown__day.is-muted {
  color: #d1d5db;
  pointer-events: none;
}

.custom-date-picker-dropdown__day.is-disabled {
  border-color: transparent;
  background: repeating-linear-gradient(
    -45deg,
    rgba(229, 231, 235, 0.56),
    rgba(229, 231, 235, 0.56) 4px,
    rgba(249, 250, 251, 0.85) 4px,
    rgba(249, 250, 251, 0.85) 8px
  );
  color: #c7cbd1;
  cursor: not-allowed !important;
  opacity: 0.78;
  pointer-events: none;
}

.custom-date-picker-dropdown__day.is-disabled:hover {
  transform: none;
}

.custom-date-picker-dropdown__day.is-disabled.is-generated-date {
  padding-bottom: 0.3rem;
}

.custom-date-picker-dropdown__day.is-disabled.is-generated-date::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 9999px;
  transform: translateX(-50%);
  background: #e87421;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.custom-date-picker-dropdown__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.custom-date-picker-dropdown__today {
  border-radius: 0.6rem;
  color: #e87421;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.custom-date-picker-dropdown__today:hover {
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
}

.custom-date-picker-dropdown__today:disabled {
  color: #c7cbd1;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.custom-date-picker-dropdown__today:disabled:hover {
  background: transparent;
  color: #c7cbd1;
}

.custom-date-picker-dropdown__time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.custom-date-picker-dropdown__time-label,
.custom-date-picker-dropdown__time-separator {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 800;
}

.custom-date-picker-dropdown__time-select {
  min-width: 3.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.45rem;
  outline: none;
  cursor: pointer !important;
}

.custom-date-picker-dropdown__time-select:focus {
  border-color: rgba(232, 116, 33, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.12);
}

.custom-date-picker-dropdown__done {
  border-radius: 0.6rem;
  background: #e87421;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.72rem;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.custom-date-picker-dropdown__done:hover {
  background: #d9691d;
  transform: translateY(-1px);
}

.recurring-section {
  min-height: 21rem;
}

.recurring-section__list {
  min-height: 14rem;
}

.recurring-item-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.recurring-item-card:hover {
  border-color: rgba(232, 116, 33, 0.35);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}

.recurring-item-enter {
  opacity: 0.15;
  transform: scale(0.985);
}

.recurring-item-enter.is-visible {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 230ms ease,
    transform 230ms ease;
}

.recurring-item-ghost {
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
  border-color: rgba(232, 116, 33, 0.35);
}

.worker-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
  margin-top: 0.5rem;
}

.worker-selected-tags__empty {
  display: inline-flex;
  align-items: center;
  border: 1px dashed #e5e7eb;
  border-radius: 9999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
}

.worker-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(232, 116, 33, 0.22);
  border-radius: 9999px;
  background: rgba(232, 116, 33, 0.1);
  color: #9a4d16;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  animation: worker-selected-tag-in 150ms ease-out;
}

.worker-selected-tag__remove {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(232, 116, 33, 0.14);
  color: #9a4d16;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.worker-selected-tag__remove:hover {
  background: #e87421;
  color: #ffffff;
  transform: scale(1.06);
}

.worker-edit-readonly .worker-edit-field,
.worker-edit-readonly .worker-edit-field:disabled {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e5e7eb);
  background: color-mix(in srgb, var(--muted, #f4f4f5) 70%, transparent);
  color: var(--muted-foreground, #6b7280);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: not-allowed;
  opacity: 1;
}

.worker-edit-readonly .worker-edit-field:focus {
  outline: none;
  box-shadow: none;
}

.access-removal-icon,
.schedule-complete-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.schedule-publish-icon {
  background: color-mix(in srgb, var(--primary, #e87421) 14%, white);
  color: var(--primary, #e87421);
}

.access-removal-modal[data-state='success'] .access-removal-icon {
  background: #dcfce7;
  color: #16a34a;
}

.access-removal-modal[data-state='loading'] .access-removal-actions,
.access-removal-modal[data-state='success'] .access-removal-actions {
  pointer-events: none;
  opacity: 0.75;
}

.async-button-spinner {
  display: none;
}

.async-action-button.is-loading .async-button-spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.async-action-button.is-loading [data-button-icon] {
  display: none;
}

.schedule-generation-form-footer .async-action-button.is-loading .async-button-spinner {
  display: inline-block;
  animation: sank-roster-spin 750ms linear infinite;
}

.worker-access-warning > td {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}

.worker-access-warning:hover > td {
  background: #fef3c7;
}

.worker-access-critical > td {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}

.worker-access-critical:hover > td {
  background: #fee2e2;
}

.worker-access-warning > td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.worker-access-critical > td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

.worker-row-inactive > td {
  opacity: 0.58;
  filter: grayscale(0.65);
}

.worker-row-inactive:hover > td {
  background: #f3f4f6 !important;
}

.worker-active-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  user-select: none;
  cursor: pointer;
}

.worker-active-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.worker-active-switch__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.3rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #ef4444;
  border: 1px solid #fca5a5;
  transition: background 160ms ease, border-color 160ms ease;
}

.worker-active-switch__thumb {
  position: absolute;
  left: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 160ms ease;
}

.worker-active-switch__input:checked + .worker-active-switch__track {
  background: #16a34a;
  border-color: #86efac;
}

.worker-active-switch__input:checked + .worker-active-switch__track .worker-active-switch__thumb {
  transform: translateX(1.03rem);
}

.worker-active-switch__input:focus-visible + .worker-active-switch__track {
  outline: 2px solid rgba(232, 116, 33, 0.24);
  outline-offset: 2px;
}

.worker-active-switch__text {
  font-size: 0.72rem;
  font-weight: 700;
}

.worker-active-switch__text.is-active {
  color: #15803d;
}

.worker-active-switch__text.is-inactive {
  color: #b91c1c;
}

.worker-active-switch--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.worker-active-switch--disabled .worker-active-switch__track {
  box-shadow: none;
}

.worker-warning-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #fcd34d;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35);
  animation: worker-warning-pulse 1.5s ease-in-out infinite;
}

.worker-warning-icon--critical {
  border-color: #fecaca;
  background: #fee2e2;
  color: #dc2626;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
}

@keyframes sank-roster-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes worker-selected-tag-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes worker-warning-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 currentColor;
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
    transform: scale(1.04);
  }
}

.availability-day-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.availability-day-card--active {
  opacity: 1;
  transform: translateX(0);
}

.availability-day-card--carousel-enter {
  opacity: 0;
  transform: translateX(20px);
}

.availability-day-card--carousel-leave {
  opacity: 0;
  transform: translateX(-20px);
}

.availability-day-card--carousel-from-left {
  transform: translateX(-20px);
}

.availability-day-card--carousel-to-right {
  transform: translateX(20px);
}

.availability-day-card--saved {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.9), #ffffff);
}

.availability-day-card--confirmed {
  border-color: rgba(5, 150, 105, 0.4);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.86), #ffffff);
}

.availability-day-card__confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.availability-day-card__confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
  font-size: 1.55rem;
  transform: scale(0.75);
  opacity: 0;
}

.availability-day-card--confirm-anim .availability-day-card__confirm-overlay {
  opacity: 1;
}

.availability-day-card--confirm-anim .availability-day-card__confirm-icon {
  animation: availability-confirm-tick-inout 980ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes availability-confirm-tick-inout {
  0% {
    transform: scale(0.74);
    opacity: 0;
  }

  20% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.92);
    opacity: 0;
  }
}

/* Availability: obligation rows (minimal) */
.availability-segments-panel {
  border-radius: 0.65rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 0.85rem 1rem;
}

.availability-segments-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.availability-segments-panel__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.availability-segments-panel__hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #9ca3af;
  max-width: 28rem;
}

.availability-segments-panel__add {
  flex: 0 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.availability-segments-panel__add:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.availability-segments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.availability-segment-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.availability-segment-row__index {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 1.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c4c4c4;
  min-width: 1.25rem;
  text-align: right;
}

.availability-segment-row__body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .availability-segment-row__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
    align-items: end;
    gap: 0.65rem;
  }
}

.availability-segment-row__times {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
}

.availability-segment-row__time-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.availability-segment-row__field-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.availability-segment-row__sep {
  padding-bottom: 0.42rem;
  font-size: 0.85rem;
  color: #d1d5db;
  user-select: none;
}

.availability-segment-row__reason {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.availability-segment-row__reason-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
  padding: 0.4rem 0.55rem;
  outline: none;
  transition: border-color 140ms ease;
}

.availability-segment-row__reason-input:focus {
  border-color: rgba(232, 116, 33, 0.45);
}

.availability-segment-row__remove {
  flex: 0 0 auto;
  align-self: center;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: #9ca3af;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.availability-segment-row__remove:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.availability-time-field {
  position: relative;
  min-width: 6.75rem;
}

.availability-time-field__spinners {
  display: inline-flex;
  align-items: stretch;
  gap: 0.12rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #ffffff;
  padding: 0.12rem 0.28rem;
  transition: border-color 140ms ease;
}

.availability-time-field:focus-within .availability-time-field__spinners {
  border-color: rgba(232, 116, 33, 0.45);
}

.availability-time-field__dot {
  align-self: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
  padding: 0 0.05rem;
  user-select: none;
}

.availability-time-field__part {
  box-sizing: border-box;
  width: 2.85rem;
  min-width: 0;
  border: none;
  border-radius: 0.32rem;
  background: #fafafa;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0.38rem 0.2rem 0.38rem 0.15rem;
  outline: none;
  transition: background 120ms ease;
}

.availability-time-field__part:hover {
  background: #f3f4f6;
}

.availability-time-field__part:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(232, 116, 33, 0.35);
}

/* Native steppers: keep visible and slightly larger (WebKit) */
.availability-time-field__part::-webkit-outer-spin-button,
.availability-time-field__part::-webkit-inner-spin-button {
  opacity: 1;
  height: 2rem;
  margin-left: 0.05rem;
  cursor: pointer;
}

.availability-save-day-button,
.availability-confirm-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  border: 1px solid transparent;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.availability-save-day-button {
  color: #065f46 !important;
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.availability-save-day-button:hover {
  background: #dcfce7;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.availability-edit-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  color: #9a3412 !important;
  background: #fff7ed;
  border: 1px solid #fdba74;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.availability-edit-day-button:hover {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.availability-confirm-all-button {
  color: #ffffff !important;
  background: #10b981;
  border-color: #0f9f72;
}

.availability-confirm-all-button:hover {
  background: #0ea572;
  border-color: #0d8d62;
  transform: translateY(-1px);
}

.availability-save-day-button:disabled,
.availability-confirm-all-button:disabled,
.availability-edit-day-button:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none;
}

.availability-reason-locked {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
}

#availability-carousel-prev:disabled,
#availability-carousel-next:disabled {
  opacity: 0.45;
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.schedule-preview-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
  /* Stack is on document.body, outside #app — reset inherited title-case utilities */
  text-transform: none !important;
}

.schedule-preview-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
  color: var(--foreground, #111827);
  text-transform: none !important;
  font-size: 0.8125rem;
  line-height: 1.35;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.08),
    0 2px 4px -2px rgb(0 0 0 / 0.06);
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: auto;
}

.schedule-preview-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.schedule-preview-toast i {
  flex: 0 0 auto;
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.schedule-preview-toast__text {
  flex: 1 1 auto;
  text-transform: none !important;
}

.schedule-preview-toast--loading {
  border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border, #e5e7eb));
}

.schedule-preview-toast--error {
  border-color: color-mix(in srgb, #dc2626 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #dc2626 6%, var(--card, #fff));
  color: #991b1b;
}

.schedule-preview-toast--error i {
  color: #dc2626;
}

.schedule-preview-toast--warning {
  border-color: color-mix(in srgb, #d97706 45%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #d97706 8%, var(--card, #fff));
  color: #92400e;
}

.schedule-preview-toast--warning i {
  color: #d97706;
}

.schedule-preview-toast--success {
  border-color: color-mix(in srgb, #059669 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #059669 7%, var(--card, #fff));
  color: #065f46;
}

.schedule-preview-toast--success i {
  color: #059669;
}

.schedule-preview-toast--info i {
  color: var(--primary, #2563eb);
}

.schedule-preview-toast__spinner {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  border: 2px solid color-mix(in srgb, var(--primary, #2563eb) 25%, transparent);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  animation: schedule-preview-toast-spin 0.7s linear infinite;
}

@keyframes schedule-preview-toast-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Schedule preview: worker shift share (below calendar) */
.schedule-preview-shift-share {
  text-transform: none;
}

.schedule-preview-shift-share__card {
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 88%, transparent);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--card, #fff) 96%, #f8fafc);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 12px 26px -18px rgb(15 23 42 / 0.2);
}

.schedule-preview-shift-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.schedule-preview-shift-share__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--foreground, #111827);
  letter-spacing: -0.012em;
}

.schedule-preview-shift-share__badge {
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted, #f3f4f6) 70%, transparent);
  padding: 0.2rem 0.58rem;
  font-size: 0.675rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--muted-foreground, #64748b) 88%, #111827);
  white-space: nowrap;
}

.schedule-preview-shift-share__sub {
  margin: 0 0 0.9rem;
  font-size: 0.73rem;
  line-height: 1.42;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-shift-share__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.schedule-preview-shift-share__row {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.52rem 0.6rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--background, #fff) 88%, var(--muted, #f3f4f6));
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 82%, transparent);
}

.schedule-preview-shift-share__meta {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.schedule-preview-shift-share__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--primary, #e87421) 82%, #7c2d12);
  background: color-mix(in srgb, var(--primary, #e87421) 16%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--primary, #e87421) 34%, #ffffff);
}

.schedule-preview-shift-share__nameblock {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.schedule-preview-shift-share__name {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--foreground, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-preview-shift-share__count {
  font-size: 0.68rem;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-shift-share__pct {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--foreground, #111827);
  font-variant-numeric: tabular-nums;
  min-width: 2.3rem;
  text-align: right;
}

.schedule-preview-shift-share__bar {
  height: 5px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--muted, #f1f5f9) 80%, #e2e8f0);
  overflow: hidden;
}

.schedule-preview-shift-share__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary, #e87421) 88%, #f97316),
    color-mix(in srgb, var(--primary, #e87421) 66%, #fb923c)
  );
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-preview-shift-share__fill {
    transition: none;
  }
}

/* Worker work hours (Delovni čas) */
.work-hours-toolbar__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
  margin-bottom: 0.375rem;
}

.work-hours-month-nav {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--background, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.work-hours-month-nav__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
  border: none;
  border-right: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  color: var(--muted-foreground, #64748b);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.work-hours-month-nav__arrow:last-of-type {
  border-right: none;
  border-left: 1px solid var(--border, #e2e8f0);
}

.work-hours-month-nav__arrow:hover:not(:disabled) {
  background: rgba(232, 116, 32, 0.1);
  color: var(--primary, #e87420);
}

.work-hours-month-nav__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.work-hours-month-nav__current {
  flex: 1;
  min-width: 8.5rem;
}

.work-hours-month-nav__select {
  width: 100%;
  height: 100%;
  min-height: 2.5rem;
  border: none;
  background: transparent;
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M12 15.5 6 9.5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.work-hours-month-nav__select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(232, 116, 32, 0.35);
}

.work-hours-month-nav__select option:disabled {
  color: #94a3b8;
}

.work-hours-kpi {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 6.75rem;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-hours-kpi:hover {
  border-color: rgba(232, 116, 32, 0.22);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.work-hours-kpi__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
  line-height: 1.3;
}

.work-hours-kpi__value {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground, #0f172a);
  font-variant-numeric: tabular-nums;
}

.work-hours-kpi__compare {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.work-hours-kpi__compare--up {
  color: #059669;
}

.work-hours-kpi__compare--down {
  color: #dc2626;
}

.work-hours-kpi__compare--flat {
  color: var(--muted-foreground, #64748b);
}

.work-hours-kpi__compare--muted {
  color: var(--muted-foreground, #94a3b8);
  font-weight: 500;
}

.worker-next-shift-card {
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--primary, #e87421) 16%, var(--border, #e2e8f0));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary, #e87421) 9%, transparent) 0%,
      color-mix(in srgb, var(--primary, #e87421) 2%, transparent) 52%,
      transparent 100%
    ),
    var(--card, #fff);
}

.worker-next-shift-card__icon {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary, #e87421) 22%, transparent);
}

.worker-next-shift-card__title {
  letter-spacing: -0.01em;
}

.worker-next-shift-card__body strong {
  font-weight: 700;
  color: var(--primary, #e87421);
}

.worker-next-shift-card__link {
  border-color: color-mix(in srgb, var(--primary, #e87421) 25%, var(--border, #e2e8f0));
}

.schedule-worker-filter__toggle {
  min-height: 2.25rem;
  border-color: color-mix(in srgb, var(--primary, #e87421) 14%, var(--border, #e2e8f0));
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--card, #fff) 94%, var(--primary, #e87421) 6%) 0%,
      var(--card, #fff) 100%
    );
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.schedule-worker-filter__toggle:hover {
  border-color: color-mix(in srgb, var(--primary, #e87421) 34%, var(--border, #e2e8f0));
}

.schedule-worker-filter__toggle[aria-expanded='true'] {
  color: color-mix(in srgb, var(--foreground, #111827) 85%, var(--primary, #e87421));
  border-color: color-mix(in srgb, var(--primary, #e87421) 48%, var(--border, #e2e8f0));
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    0 0 0 3px color-mix(in srgb, var(--primary, #e87421) 14%, transparent);
}

.schedule-worker-filter__menu {
  margin-top: 0.55rem;
  padding: 0.85rem;
  border-color: color-mix(in srgb, var(--primary, #e87421) 18%, var(--border, #e2e8f0));
  background:
    radial-gradient(
      140% 120% at 100% 0%,
      color-mix(in srgb, var(--primary, #e87421) 8%, transparent) 0%,
      transparent 55%
    ),
    var(--card, #fff);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.schedule-worker-filter__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e2e8f0) 75%, transparent);
}

.schedule-worker-filter__action {
  justify-content: center;
  border-radius: 0.65rem;
  padding: 0.44rem 0.6rem;
  font-weight: 600;
  border-color: color-mix(in srgb, var(--primary, #e87421) 14%, var(--border, #e2e8f0));
  background: color-mix(in srgb, var(--card, #fff) 88%, var(--muted, #f3f4f6) 12%);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.14s ease;
}

.schedule-worker-filter__action:hover {
  border-color: color-mix(in srgb, var(--primary, #e87421) 40%, var(--border, #e2e8f0));
  background: color-mix(in srgb, var(--primary, #e87421) 10%, var(--card, #fff));
  color: color-mix(in srgb, var(--foreground, #111827) 88%, var(--primary, #e87421));
}

.schedule-worker-filter__action:active {
  transform: translateY(1px);
}

.schedule-worker-filter__list {
  margin-top: 0.75rem;
  padding-right: 0.25rem;
}

.schedule-worker-filter__item {
  position: relative;
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  transition:
    background-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.schedule-worker-filter__item:hover {
  background-color: color-mix(in srgb, var(--primary, #e87421) 8%, transparent);
}

.schedule-worker-filter__item:has(.schedule-worker-filter__checkbox:checked) {
  background-color: color-mix(in srgb, var(--primary, #e87421) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary, #e87421) 34%, transparent);
}

.schedule-worker-filter__checkbox {
  flex-shrink: 0;
  accent-color: var(--primary, #e87421);
}

.schedule-worker-filter__item-name {
  font-weight: 500;
  letter-spacing: -0.005em;
}

@media (max-width: 640px) {
  .schedule-worker-filter__menu {
    left: 0;
    right: auto;
    width: min(22rem, calc(100vw - 2.5rem));
  }
}

.work-hours-panel {
  border-radius: 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.work-hours-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, var(--card, #fff) 0%, rgba(248, 250, 252, 0.6) 100%);
}

.work-hours-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-panel__desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-panel__badge {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--muted, #f1f5f9);
}

.work-hours-panel__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-hours-panel__header--chart {
  flex-wrap: wrap;
  align-items: flex-start;
}

.work-hours-chart-box__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-chart-box__desc {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-chart-box__canvas {
  position: relative;
  height: 16rem;
  padding: 0.25rem 0.125rem 0;
}

@media (min-width: 640px) {
  .work-hours-chart-box__canvas {
    height: 18rem;
  }
}

.work-hours-chart-box__canvas--solo {
  margin-top: 0;
}

.work-hours-dual-panels {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .work-hours-dual-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.work-hours-dual-panels > .work-hours-panel {
  min-width: 0;
}

.work-hours-dual-panels .work-hours-goal-layout {
  flex-direction: column;
  align-items: stretch;
}

.work-hours-dual-panels .work-hours-goal-form {
  width: 100%;
}

.work-hours-field__date-picker {
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: top;
}

.work-hours-field__picker-btn {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 11.5rem;
  max-width: 100%;
  padding-right: 2.25rem;
}

.work-hours-entries-collapse {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.625rem;
  background: var(--background, #fff);
  overflow: hidden;
}

.work-hours-entries-collapse__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.work-hours-entries-collapse__toggle:hover {
  background: color-mix(in srgb, var(--muted, #f8fafc) 80%, var(--border, #e2e8f0));
}

.work-hours-entries-collapse__toggle[aria-expanded='true'] .work-hours-entries-collapse__chevron {
  transform: rotate(180deg);
}

.work-hours-entries-collapse__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.work-hours-entries-collapse__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.work-hours-entries-collapse__chevron {
  font-size: 1.125rem;
  color: var(--muted-foreground, #64748b);
  transition: transform 0.2s ease;
}

.work-hours-entries-collapse__panel {
  border-top: 1px solid var(--border, #e2e8f0);
}

.work-hours-entries-scroll {
  max-height: 18rem;
  overflow-y: auto;
  padding: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.work-hours-entries-loading {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-entries-sentinel {
  height: 1px;
}

.work-hours-goal-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .work-hours-goal-layout {
    flex-direction: row;
    align-items: center;
  }

  .work-hours-goal-progress {
    flex: 1;
    min-width: 0;
  }

  .work-hours-goal-form {
    flex-shrink: 0;
    width: min(100%, 18rem);
  }
}

.work-hours-goal-progress__track {
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--muted, #f1f5f9);
  overflow: hidden;
}

.work-hours-goal-progress__fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b 0%, var(--primary, #e87420) 100%);
  transition: width 0.45s ease;
}

.work-hours-goal-progress__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.work-hours-goal-progress__meta > span:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground, #0f172a);
}

.work-hours-goal-form {
  display: flex;
  gap: 0.5rem;
}

.work-hours-goal-form__input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground, #0f172a);
}

.work-hours-goal-form__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring, rgba(232, 116, 32, 0.35));
}

.work-hours-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .work-hours-split {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 2rem;
  }

  .work-hours-split__list {
    padding-left: 2rem;
    border-left: 1px solid var(--border, #e2e8f0);
  }
}

.work-hours-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}

.work-hours-field__textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground, #0f172a);
  resize: vertical;
}

.work-hours-field__textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring, rgba(232, 116, 32, 0.35));
}

.work-hours-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.work-hours-btn--primary {
  border: none;
  background: var(--primary, #e87420);
  color: var(--primary-foreground, #fff);
}

.work-hours-btn--primary:hover {
  background: color-mix(in srgb, var(--primary, #e87420) 90%, #000);
}

.work-hours-btn--ghost {
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  color: var(--foreground, #0f172a);
}

.work-hours-btn--ghost:hover {
  background: var(--muted, #f8fafc);
}

.work-hours-entries {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-hours-entries-empty {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground, #64748b);
  padding: 2.5rem 1rem;
  border-radius: 0.625rem;
  border: 1px dashed var(--border, #e2e8f0);
}

.work-hours-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.work-hours-entry:hover {
  border-color: rgba(232, 116, 32, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.work-hours-entry__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.work-hours-entry__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.work-hours-entry__time {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
  font-variant-numeric: tabular-nums;
}

.work-hours-entry__duration {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary, #e87420);
  font-variant-numeric: tabular-nums;
}

.work-hours-entry__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.work-hours-entry__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  color: var(--muted-foreground, #64748b);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.work-hours-entry__btn:hover {
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
}

.work-hours-entry__btn--danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
  background: rgba(239, 68, 68, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .work-hours-goal-progress__fill {
    transition: none;
  }
}

.weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  color: var(--foreground, #0f172a);
  max-width: 11rem;
}

.weather-widget__icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--primary, #e87420);
  flex-shrink: 0;
}

.weather-widget__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.weather-widget__temp {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.weather-widget__label {
  font-size: 0.6875rem;
  color: var(--muted-foreground, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-preview-day-head {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  min-height: 2.25rem;
  padding-inline: 0.25rem;
}

.schedule-preview-day-head--week {
  min-height: 2.5rem;
}

.schedule-preview-day-head__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}

.schedule-preview-day-head__num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--foreground, #0f172a);
  font-variant-numeric: tabular-nums;
}

.schedule-preview-day-head__month {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}

.schedule-preview-day-head__label {
  min-width: 0;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
  line-height: 1.2;
}

.schedule-preview-day-weather {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.schedule-preview-day-weather i {
  font-size: 1.375rem;
  line-height: 1;
  color: var(--primary, #e87420);
}

.schedule-preview-day-weather__temp {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--foreground, #0f172a);
  line-height: 1;
}

@media (max-width: 480px) {
  .weather-widget__label {
    display: none;
  }

  .weather-widget {
    max-width: none;
    padding: 0.375rem 0.5rem;
  }
}

/* Profile page */
.profile-page {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .profile-page {
    padding: 1.5rem 1.5rem 2rem;
  }
}

.profile-page__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground, #0f172a);
}

@media (min-width: 1024px) {
  .profile-page__title {
    font-size: 1.875rem;
  }
}

.profile-page__subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground, #64748b);
}

.profile-alert {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.profile-alert--success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.profile-alert--error {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.profile-panel {
  border-radius: 0.875rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.profile-panel__header {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, var(--card, #fff) 0%, rgba(248, 250, 252, 0.75) 100%);
}

@media (min-width: 640px) {
  .profile-panel__header {
    padding: 1.25rem 1.5rem;
  }
}

.profile-panel__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.profile-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(232, 116, 33, 0.12);
  color: #e87421;
  flex-shrink: 0;
}

.profile-panel__icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.profile-panel__icon--security {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.profile-panel__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.profile-panel__desc {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground, #64748b);
}

.profile-panel__body {
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .profile-panel__body {
    padding: 1.5rem;
  }
}

.profile-notice.hidden,
.profile-verify.hidden,
.profile-field__status.hidden,
.profile-alert.hidden {
  display: none !important;
}

.profile-notice {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

@media (min-width: 640px) {
  .profile-notice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.profile-notice__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.profile-notice__icon {
  font-size: 1.125rem;
  color: #d97706;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.profile-notice__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}

.profile-notice__text {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #a16207;
}

.profile-notice__action {
  flex-shrink: 0;
  align-self: flex-start;
  border: 0;
  border-radius: 0.625rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(255, 255, 255, 0.65);
  transition: background-color 150ms ease, color 150ms ease;
}

.profile-notice__action:hover {
  background: #fff;
  color: #78350f;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.profile-form__grid {
  display: grid;
  gap: 1.125rem;
}

.profile-form__grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .profile-form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.profile-form__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.375rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.profile-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.profile-field__input {
  width: 100%;
  height: 2.625rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.625rem;
  background: var(--background, #fff);
  color: var(--foreground, #0f172a);
  font-size: 0.875rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.profile-field__input::placeholder {
  color: var(--muted-foreground, #94a3b8);
}

.profile-field__input:hover:not(:disabled) {
  border-color: #cbd5e1;
}

.profile-field__input:focus-visible {
  outline: none;
  border-color: #e87421;
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.16);
}

.profile-field__input--password {
  padding-right: 2.75rem;
}

.profile-field__input--password-rules {
  padding-right: 4.5rem;
}

.profile-field__input--picker {
  padding-right: 2.5rem;
  cursor: pointer;
}

.profile-field__date-picker {
  width: 100%;
}

.profile-field__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 0.125rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-field__hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground, #6b7280);
}

.profile-field__status--verified {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.profile-field__status--verified::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #10b981;
}

.profile-field__status--unverified {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
}

.profile-field__status--unverified::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #f59e0b;
}

.profile-phone-input {
  display: flex;
  align-items: stretch;
  height: 2.625rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.625rem;
  background: var(--background, #fff);
  overflow: hidden;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.profile-phone-input:focus-within {
  border-color: #e87421;
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.16);
}

.profile-phone-input__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.875rem;
  border-right: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  color: var(--muted-foreground, #64748b);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.profile-phone-input__field {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.875rem;
  border: 0;
  background: transparent;
  color: var(--foreground, #0f172a);
  font-size: 0.875rem;
}

.profile-phone-input__field:focus {
  outline: none;
}

.profile-password-wrap {
  position: relative;
}

.profile-password-wrap .register-password-help {
  right: 2.5rem;
}

.profile-password-wrap__toggle {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted-foreground, #64748b);
  transition: color 150ms ease, background-color 150ms ease;
}

.profile-password-wrap__toggle:hover {
  color: var(--foreground, #0f172a);
  background: var(--muted, #f1f5f9);
}

.profile-password-wrap__toggle i {
  font-size: 1.125rem;
  line-height: 1;
}

.profile-verify {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(232, 116, 33, 0.35);
  background: rgba(232, 116, 33, 0.05);
}

.profile-verify__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.profile-verify__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(232, 116, 33, 0.14);
  color: #e87421;
  flex-shrink: 0;
}

.profile-verify__icon i {
  font-size: 1.05rem;
}

.profile-verify__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.profile-verify__desc {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground, #64748b);
}

.profile-verify__otp {
  width: 100%;
  max-width: 11rem;
  height: 2.625rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.625rem;
  background: var(--background, #fff);
  color: var(--foreground, #0f172a);
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-align: center;
}

.profile-verify__otp:focus-visible {
  outline: none;
  border-color: #e87421;
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.16);
}

.profile-verify__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.625rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    opacity 150ms ease;
}

.profile-btn i {
  font-size: 1rem;
  line-height: 1;
}

.profile-btn--primary {
  color: var(--primary-foreground, #fff);
  background: var(--primary, #e87421);
  box-shadow: 0 1px 2px rgba(232, 116, 33, 0.25);
}

.profile-btn--primary:hover:not(:disabled) {
  background: rgba(232, 116, 33, 0.9);
}

.profile-btn--ghost {
  color: var(--foreground, #0f172a);
  background: var(--background, #fff);
  border-color: var(--border, #e2e8f0);
}

.profile-btn--ghost:hover:not(:disabled) {
  background: var(--muted, #f8fafc);
}

.profile-btn:disabled,
.profile-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-form .register-password-input-wrap .profile-password-wrap__toggle {
  right: 0.625rem;
}

.profile-form [data-profile-new-password].register-password-input--hint,
.profile-form [data-profile-confirm-password].register-password-input--hint,
.profile-form [data-profile-current-password].register-password-input--hint,
.profile-form [data-profile-new-password].register-password-input--error,
.profile-form [data-profile-confirm-password].register-password-input--error,
.profile-form [data-profile-current-password].register-password-input--error,
.profile-form [data-profile-new-password].register-password-input--success,
.profile-form [data-profile-confirm-password].register-password-input--success,
.profile-form [data-profile-current-password].register-password-input--success {
  background: var(--background, #fff);
}

.profile-panel__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-panel__header-action {
  flex-shrink: 0;
  align-self: center;
}

.profile-panel__icon--avatar {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
}

.profile-panel__icon--avatar.profile-panel__icon--has-photo {
  background: #e2e8f0;
}

.profile-panel__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.profile-panel__avatar.hidden,
.profile-panel__icon--avatar .hidden {
  display: none !important;
}

.dashboard-user-avatar {
  position: relative;
  flex-shrink: 0;
  padding: 0;
  border: 0;
}

.dashboard-user-avatar--has-photo {
  background: #e2e8f0;
}

.dashboard-user-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.dashboard-user-avatar__photo.hidden,
.dashboard-user-avatar [data-user-avatar-fallback].hidden {
  display: none !important;
}

html.profile-avatar-modal-open {
  overflow: hidden;
}

.profile-avatar-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.55) !important;
  z-index: 200 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.profile-avatar-modal[hidden] {
  display: none !important;
}

.profile-avatar-modal.is-visible {
  display: flex !important;
}

.profile-avatar-modal.is-open {
  opacity: 1;
}

.profile-avatar-dialog {
  width: min(100%, 28rem);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.28),
    0 12px 24px -16px rgba(15, 23, 42, 0.2);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.profile-avatar-modal.is-open .profile-avatar-dialog {
  transform: translateY(0) scale(1);
}

.profile-avatar-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), #fff);
}

.profile-avatar-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile-avatar-dialog__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.profile-avatar-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: #64748b;
  transition: background-color 150ms ease, color 150ms ease;
}

.profile-avatar-dialog__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.profile-avatar-dialog__close i {
  font-size: 1.25rem;
  line-height: 1;
}

.profile-avatar-dialog__body {
  padding: 1.25rem;
}

.profile-avatar-step.hidden {
  display: none !important;
}

.profile-avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 11rem;
  padding: 1.5rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.875rem;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.profile-avatar-upload:hover,
.profile-avatar-upload.is-dragover {
  border-color: #e87421;
  background: rgba(232, 116, 33, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 116, 33, 0.15);
}

.profile-avatar-upload__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(232, 116, 33, 0.12);
  color: #e87421;
}

.profile-avatar-upload__icon i {
  font-size: 1.5rem;
  line-height: 1;
}

.profile-avatar-upload__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.profile-avatar-upload__hint {
  max-width: 18rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.profile-avatar-cropper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-cropper__stage {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: #0f172a;
  cursor: grab;
  touch-action: none;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 5px #e2e8f0,
    0 16px 32px -20px rgba(15, 23, 42, 0.45);
}

.profile-avatar-cropper__stage.is-dragging {
  cursor: grabbing;
}

.profile-avatar-cropper__canvas {
  display: block;
  width: 280px;
  height: 280px;
}

.profile-avatar-cropper__ring {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.profile-avatar-cropper__controls {
  width: 100%;
  max-width: 280px;
}

.profile-avatar-cropper__zoom-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.profile-avatar-cropper__zoom {
  width: 100%;
  accent-color: #e87421;
}

.profile-avatar-cropper__hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}

.profile-avatar-dialog__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  transition: color 150ms ease;
}

.profile-avatar-dialog__back:hover {
  color: #e87421;
}

.profile-avatar-dialog__error {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
  font-size: 0.8125rem;
  color: #b91c1c;
}

.profile-avatar-dialog__error.hidden {
  display: none !important;
}

.profile-avatar-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.profile-avatar-dialog__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 480px) {
  .profile-panel__header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-panel__header-action {
    align-self: stretch;
    justify-content: center;
  }

  .profile-avatar-dialog__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-avatar-dialog__footer-actions {
    width: 100%;
    margin-left: 0;
  }

  .profile-avatar-dialog__footer-actions .profile-btn {
    flex: 1;
  }
}

.dashboard-sidebar-divider {
  height: 1px;
  margin: 0.625rem 0.75rem;
  background: var(--sidebar-border, rgba(148, 163, 184, 0.35));
}

.company-info-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .company-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.company-info-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground, #64748b);
}

.company-info-item__value {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--foreground, #0f172a);
  word-break: break-word;
}

.profile-panel--danger {
  border-color: rgba(220, 38, 38, 0.25);
}

.profile-panel--danger .profile-panel__header {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.85) 0%, #fff 100%);
}

.profile-panel__icon--danger {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.profile-btn--danger {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.profile-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.profile-btn--large {
  min-height: 2.875rem;
  padding-inline: 1.125rem;
}

.danger-zone {
  margin-top: 0.5rem;
  padding: 1.25rem 1.25rem 1.125rem;
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-left: 3px solid #dc2626;
  border-radius: 0.875rem;
  background: #fef2f2;
}

.danger-zone__label {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
}

.danger-zone__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #991b1b;
}

.danger-zone__desc {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #7f1d1d;
}

.danger-zone__list {
  margin: 0.875rem 0 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #991b1b;
}

.danger-zone__list li + li {
  margin-top: 0.25rem;
}

.danger-zone__list li::marker {
  color: #dc2626;
}

.danger-zone__btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid #b91c1c;
  border-radius: 0.625rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.danger-zone__btn:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #991b1b;
}

.danger-zone__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

html.account-delete-modal-open {
  overflow: hidden;
}

.account-delete-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.55) !important;
  z-index: 210 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: normal;
}

.account-delete-modal[hidden] {
  display: none !important;
}

.account-delete-modal.is-visible {
  display: flex !important;
}

.account-delete-modal.is-open {
  opacity: 1;
}

.account-delete-dialog {
  width: min(100%, 28rem);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
  overflow: hidden;
}

.account-delete-modal.is-open .account-delete-dialog {
  transform: translateY(0) scale(1);
}

.account-delete-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.55) 0%, #fff 100%);
}

.account-delete-dialog__heading {
  min-width: 0;
}

.account-delete-dialog__step {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dc2626;
}

.account-delete-dialog__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.account-delete-dialog__subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.account-delete-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: #64748b;
  flex-shrink: 0;
}

.account-delete-dialog__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.account-delete-dialog__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.875rem 1.25rem 0.25rem;
}

.account-delete-dialog__progress-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #e2e8f0;
  transition: background-color 150ms ease, transform 150ms ease;
}

.account-delete-dialog__progress-dot.is-active {
  background: #dc2626;
  transform: scale(1.15);
}

.account-delete-dialog__progress-dot.is-complete {
  background: #fca5a5;
}

.account-delete-dialog__progress-line {
  width: 2.5rem;
  height: 2px;
  background: #e2e8f0;
}

.account-delete-dialog__body {
  padding: 1rem 1.25rem 1.25rem;
}

.account-delete-step.hidden {
  display: none !important;
}

.account-delete-step__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.account-delete-notice {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.account-delete-notice i {
  font-size: 1.25rem;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.account-delete-notice__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}

.account-delete-notice__text {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a16207;
}

.account-delete-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.account-delete-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}

.account-delete-field__input {
  width: 100%;
  height: 2.625rem;
  padding: 0 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.account-delete-field__input:focus {
  outline: none;
  border-color: #e87421;
  box-shadow: 0 0 0 3px rgba(232, 116, 33, 0.15);
}

.account-delete-field__input--otp {
  font-size: 1.125rem;
  letter-spacing: 0.25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.account-delete-password-wrap {
  position: relative;
}

.account-delete-password-wrap__toggle {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #64748b;
}

.account-delete-password-wrap .account-delete-field__input {
  padding-right: 2.5rem;
}

.account-delete-dialog__message {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.account-delete-dialog__message--error {
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.account-delete-dialog__message--info {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.account-delete-dialog__message.hidden {
  display: none !important;
}

.account-delete-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.account-delete-dialog__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.account-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.account-delete-btn.hidden {
  display: none !important;
}

.account-delete-btn--ghost {
  color: #475569;
  background: #fff;
  border-color: #e2e8f0;
}

.account-delete-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
}

.account-delete-btn--primary {
  color: #fff;
  background: #e87421;
  border-color: #e87421;
}

.account-delete-btn--primary:hover:not(:disabled) {
  background: #d96818;
}

.account-delete-btn--danger {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.account-delete-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}

.account-delete-btn:disabled,
.account-delete-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .account-delete-dialog__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .account-delete-dialog__footer-actions {
    width: 100%;
    margin-left: 0;
  }

  .account-delete-dialog__footer-actions .account-delete-btn {
    flex: 1;
  }
}

/* Dashboard — currently working */
.dashboard-current-workers {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.dashboard-current-workers__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-current-workers__heading {
  min-width: 0;
}

.dashboard-current-workers__summary {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--foreground, #0f172a);
}

.dashboard-current-workers__meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground, #64748b);
}

.dashboard-current-workers__day-link {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0.125rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground, #94a3b8);
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease;
}

.dashboard-current-workers__day-link:hover {
  color: var(--foreground, #475569);
}

.dashboard-current-workers__empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground, #64748b);
}

.dashboard-current-workers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-current-workers__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--muted, #f8fafc);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.dashboard-current-workers__item.is-active {
  border-color: color-mix(in srgb, var(--primary, #e87421) 35%, var(--border, #e2e8f0));
  background: color-mix(in srgb, var(--primary, #e87421) 10%, white);
}

.dashboard-current-workers__item.is-upcoming {
  opacity: 0.72;
  background: var(--muted, #f1f5f9);
}

.dashboard-current-workers__name {
  font-weight: 600;
  color: var(--foreground, #0f172a);
}

.dashboard-current-workers__item.is-active .dashboard-current-workers__name {
  color: var(--primary, #e87421);
}

.dashboard-current-workers__item.is-upcoming .dashboard-current-workers__name {
  color: var(--muted-foreground, #64748b);
}

.dashboard-current-workers__time {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground, #94a3b8);
}

.dashboard-current-workers__empty-item {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground, #64748b);
}

html.dashboard-current-workers-modal-open {
  overflow: hidden;
}

.dashboard-current-workers-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.55) !important;
  z-index: 200 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 180ms ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: normal;
}

.dashboard-current-workers-modal[hidden] {
  display: none !important;
}

.dashboard-current-workers-modal.is-visible {
  display: flex !important;
}

.dashboard-current-workers-modal.is-open {
  opacity: 1;
}

.dashboard-current-workers-dialog {
  width: min(100%, 26rem);
  max-height: min(80vh, 32rem);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-current-workers-modal.is-open .dashboard-current-workers-dialog {
  transform: translateY(0) scale(1);
}

.dashboard-current-workers-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #fff 100%);
}

.dashboard-current-workers-dialog__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-current-workers-dialog__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.dashboard-current-workers-dialog__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.dashboard-current-workers-dialog__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dashboard-current-workers-dialog__body {
  overflow-y: auto;
  padding: 0.75rem 1.25rem 1.25rem;
}

.dashboard-current-workers-dialog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-current-workers-dialog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
}

.dashboard-current-workers-dialog__item.is-active {
  border-color: color-mix(in srgb, var(--primary, #e87421) 28%, #e2e8f0);
  background: color-mix(in srgb, var(--primary, #e87421) 8%, white);
}

.dashboard-current-workers-dialog__item.is-muted {
  opacity: 0.78;
}

.dashboard-current-workers-dialog__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.dashboard-current-workers-dialog__item.is-active .dashboard-current-workers-dialog__name {
  color: var(--primary, #e87421);
}

.dashboard-current-workers-dialog__item.is-muted .dashboard-current-workers-dialog__name {
  color: #64748b;
}

.dashboard-current-workers-dialog__meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.dashboard-current-workers-dialog__item.is-active .dashboard-current-workers-dialog__meta {
  color: color-mix(in srgb, var(--primary, #e87421) 65%, #64748b);
}

.dashboard-current-workers-dialog__empty {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 640px) {
  .dashboard-current-workers {
    padding: 1rem 1.125rem;
  }

  .dashboard-current-workers__header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-current-workers__day-link {
    align-self: flex-end;
  }

  .dashboard-current-workers-dialog__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* Date/time picker interaction affordances (keep at end for cascade priority). */
[data-custom-date-picker],
[data-custom-time-picker],
.custom-date-picker-trigger,
button[data-date-picker-toggle],
button[data-time-picker-toggle],
.custom-date-picker [data-date-picker-toggle],
.custom-date-picker [data-time-picker-toggle] {
  cursor: pointer !important;
}

.custom-date-picker-dropdown__time-select,
.work-hours-month-nav__select,
select.custom-date-picker-dropdown__time-select {
  cursor: pointer !important;
}

label:has(> .custom-date-picker),
label:has(> [data-custom-date-picker]),
label:has(> [data-custom-time-picker]) {
  cursor: pointer !important;
}

.custom-date-picker,
.custom-date-picker-dropdown {
  -webkit-user-select: none;
  user-select: none;
}

.custom-date-picker-dropdown__nav,
.custom-date-picker-dropdown__day:not(.is-muted):not(.is-disabled),
.custom-date-picker-dropdown__today:not(:disabled),
.custom-date-picker-dropdown__done {
  cursor: pointer !important;
}
