/* Services, hours, holidays, and settings pages. */
.services-main { display: grid; width: 100%; max-width: 1280px; grid-template-columns: minmax(0, 1fr); gap: 18px 24px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.hours-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.hours-main.hidden { display: none; }

.hours-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.hours-demo-note { color: #9ca3af; font-size: .72rem; font-weight: 600; }

.hours-card { overflow: visible; margin-bottom: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.hours-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid #eef0f5; }

.hours-card__heading h3 { margin: 0; color: #1f2937; font-size: .98rem; font-weight: 650; }

.hours-card__heading p { margin: 4px 0 0; color: #6b7280; font-size: .76rem; }

.hours-card__heading-actions { display: flex; align-items: center; gap: 10px; }

.hours-coming-soon { padding: 5px 9px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-size: .68rem; font-weight: 600; white-space: nowrap; }

.hours-save { min-height: 34px; padding: 0 12px; border: 1px solid #c7d2fe; border-radius: 8px; background: #eef2ff; color: #4338ca; font-size: .74rem; font-weight: 600; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }

.hours-save:hover { border-color: #a5b4fc; background: #e0e7ff; }

.hours-save.is-saved { border-color: #bbf7d0; background: #ecfdf5; color: #047857; }

.hours-schedule { padding: 4px 24px 8px; }

.hours-day { display: grid; grid-template-columns: 150px minmax(0, 1fr) 34px; align-items: center; gap: 18px; min-height: 68px; border-bottom: 1px solid #f1f2f6; padding: 5px 0}

.hours-day:last-child { border-bottom: 0; }

.hours-day.is-disabled { opacity: .58; }

.hours-day__name { display: flex; align-items: center; gap: 10px; color: #374151; font-size: .82rem; }

.hours-day__name strong { font-weight: 550; }

.hours-toggle { position: relative; width: 38px; height: 23px; padding: 0; border: 0; border-radius: 999px; background: #d1d5db; cursor: pointer; }

.hours-toggle span { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.18); transition: transform 150ms ease; }

.hours-toggle.is-on { background: #252a32; }

.hours-toggle.is-on span { transform: translateX(15px); }

.hours-day__windows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

#hours-schedule .hours-day.is-disabled .hours-day__windows { font-size: .82rem; font-weight: 650; }

.hours-window { display: flex; align-items: center; gap: 9px; }

.hours-time-select { position: relative; display: block; }

.hours-time-select__button { display: flex; align-items: center; justify-content: space-between; width: 100px; min-height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 9px; background: #fff; color: #374151; font-size: .8rem; text-align: left; cursor: pointer; }

.hours-time-select__button:hover, .hours-time-select__button[aria-expanded="true"] { border-color: #a5b4fc; background: #fafaff; }

.hours-time-select__button[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.hours-time-select__chevron { color: #6366f1; font-size: .95rem; }

.hours-time-select__menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 80; display: block; width: 100px; max-height: 210px; overflow-y: auto; padding: 5px; border: 1px solid #e0e7ff; border-radius: 9px; background: #fff; box-shadow: 0 12px 25px rgba(15,23,42,.14); }

.hours-time-select__menu[hidden] { display: none; }

.hours-time-select__menu button { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: #374151; font-size: .78rem; text-align: left; cursor: pointer; }

.hours-time-select__menu button:hover, .hours-time-select__menu button[aria-selected="true"] { background: #eef2ff; color: #312e81; }

.hours-window > span { color: #4b5563; font-size: .84rem; }

.hours-add, .hours-remove { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #4f46e5; font-size: 1.05rem; cursor: pointer; }

.hours-add:hover, .hours-remove:hover { background: #eef2ff; }

.hours-add:disabled { cursor: default; opacity: .35; }

.hours-remove { color: #6b7280; font-size: 1.15rem; }

.holidays-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.holidays-main.hidden { display: none; }

.holidays-page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.holidays-add { position: relative; }

.holidays-add::after { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; display: none; padding: 6px 9px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.holidays-add:hover::after { display: block; }

.holidays-card { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.holidays-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid #eef0f5; }

.holidays-card__heading h3 { margin: 0; color: #1f2937; font-size: .98rem; font-weight: 650; }

.holidays-card__heading p { margin: 4px 0 0; color: #6b7280; font-size: .76rem; }

.holidays-list { padding: 4px 24px 8px; }

.holiday-row { display: flex; align-items: center; gap: 14px; min-height: 70px; border-bottom: 1px solid #f1f2f6; }

.holiday-row:last-child { border-bottom: 0; }

.holiday-row > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }

.holiday-row strong { color: #374151; font-size: .84rem; font-weight: 600; }

.holiday-row > div span { color: #6b7280; font-size: .74rem; }

.holiday-row__date { display: flex; width: 48px; height: 48px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: #4338ca; font-size: 1.05rem; font-weight: 650; line-height: 1; }

.holiday-row__date small { margin-top: 3px; font-size: .68rem; font-weight: 600; text-transform: uppercase; }

.holiday-row__status { padding: 5px 9px; border-radius: 999px; background: #f3f4f6; color: #6b7280; font-size: .68rem; font-weight: 600; }

.settings-main { width: 100%; max-width: 960px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }

.settings-main.hidden { display: none; }

.settings-card { overflow: hidden; margin-bottom: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.settings-card__header { padding: 22px 24px; border-bottom: 1px solid #e5e7eb; }

.settings-card__header.settings-card__header--actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 0; }

.settings-card__header--actions > div { min-width: 0; overflow-wrap: anywhere; }

.settings-card__header--actions > .services-primary-button { align-self: center; justify-self: end; }

.settings-card__header h2 { margin: 0; color: #111827; font-size: 1.2rem; font-weight: 650; }

.settings-card__header p { margin: 4px 0 0; color: var(--theme-muted, #4b5563); font-size: .86rem; }

.settings-profile { display: flex; align-items: center; gap: 16px; padding: 26px 24px 20px; }

.settings-avatar { display: grid; width: 62px; height: 62px; place-items: center; overflow: hidden; border: 1px solid #d1d5db; border-radius: 50%; background: #e5e7eb; }

.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }

.settings-profile > div:last-child { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; color: #111827; font-size: .82rem; }

.settings-secondary { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; font-size: .76rem; cursor: pointer; }

.settings-form { padding: 0 24px 24px; }

.settings-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; color: #111827; font-size: .78rem; font-weight: 550; }

.settings-form input { width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #d1d5db; border-radius: 9px; color: #374151; font-size: .84rem; outline: none; }

.settings-form input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.settings-form input:disabled { background: #f9fafb; color: #9ca3af; }

.settings-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.settings-form__footer p, .settings-password-hint { margin: 0; color: #6b7280; font-size: .75rem; line-height: 1.45; }
.settings-feature-status { color: #6b7280; font-size: .75rem; }

.settings-form__footer .is-demo-confirmed { background: #059669; }

.settings-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.settings-password { position: relative; display: block; }

.settings-password input { padding-right: 40px; }

.settings-password__toggle { position: absolute; top: 50%; right: 9px; display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; background: transparent; color: #111827; font-size: .8rem; cursor: pointer; transform: translateY(-50%); }

.settings-password-hint { margin-top: 18px; max-width: 760px; }

@media (max-width: 720px) {
  .settings-main { padding-top: 24px; }
  #auth-switch { max-width: 128px; text-align: center; }
  .settings-card__header, .settings-profile, .settings-form { padding-left: 18px; padding-right: 18px; }
  .settings-form__grid { grid-template-columns: 1fr; gap: 0; }
  .settings-form__footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
  .holidays-main { padding-top: 24px; }
  .holidays-page__header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .holidays-card__heading, .holidays-list { padding-left: 16px; padding-right: 16px; }
}

.hours-overrides-list { padding: 4px 24px 0; }

.hours-override { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; border-bottom: 1px solid #f1f2f6; }

.hours-override > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }

.hours-override strong { color: #374151; font-size: .82rem; font-weight: 600; }

.hours-override span { color: #6b7280; font-size: .73rem; }

.hours-override__value { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; background: #f5f3ff; color: #4338ca !important; font-size: .72rem !important; font-weight: 600; }

.hours-override__value--closed { background: #f3f4f6; color: #6b7280 !important; }

.hours-overrides__footer { padding: 14px 24px 18px; }

.hours-add-override { position: relative; padding: 0; border: 0; background: transparent; color: #4f46e5; font-size: .75rem; font-weight: 600; cursor: pointer; }

.hours-add-override::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 20; display: none; padding: 6px 9px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.hours-add-override:hover::after { display: block; }

@media (min-width: 721px) {
  .hours-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); align-items: start; gap: 18px 24px; }
  .hours-page__header { grid-column: 1 / -1; }
  .hours-card { margin-bottom: 0; }
  .hours-card--overrides { width: auto; margin-left: 0; }
}

@media (max-width: 720px) {
  .hours-main { padding-top: 24px; }
  .hours-page__header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hours-card__heading { padding-left: 16px; padding-right: 16px; }
  .hours-card__heading-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
  .hours-schedule { padding-left: 16px; padding-right: 16px; }
  .hours-day { grid-template-columns: 1fr 34px; gap: 10px; padding: 12px 0; }
  .hours-day__name { grid-column: 1 / -1; }
  .hours-day__windows { grid-column: 1; }
  .hours-time-select__button, .hours-time-select__menu { width: 92px; }
}

.services-main.hidden, .service-detail.hidden { display: none; }

.services-page__header { display: flex; grid-column: 1 / -1; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 6px; }

.services-page__eyebrow { margin: 0 0 5px; color: #6366f1; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.services-page__header h2 { margin: 0; color: #111827; font-size: 1.65rem; font-weight: 650; letter-spacing: -.025em; }

.services-page__intro { margin: 5px 0 0; color: #6b7280; font-size: .88rem; }

.services-primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; border: 0; border-radius: 9px; background: #4f46e5; color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 5px rgba(79,70,229,.2); transition: background 150ms ease, transform 150ms ease; }

.services-primary-button:hover { background: #4338ca; transform: translateY(-1px); }

.services-list { grid-column: 1; overflow: visible; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.04); }

.services-empty { margin: 0; padding: 22px 20px; color: #9ca3af; font-size: .82rem; }

.service-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 218px; align-items: center; gap: 18px; min-height: 68px; padding: 9px 16px 9px 20px; border-bottom: 1px solid #eef0f5; transition: background 150ms ease; }

.service-row:first-child { border-top-left-radius: 13px; border-top-right-radius: 13px; }

.service-row:last-child { border-bottom: 0; border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }

.service-row:hover { background: #fafaff; }

.service-row.is-disabled { background: #fafafa; }

.service-row__main { display: contents; }

.service-row__name { overflow: hidden; color: #1f2937; font-size: .92rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.service-row.is-disabled .service-row__name { color: #9ca3af; }

.service-row__meta { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 22px; color: #6b7280; font-size: .78rem; }

.service-row__meta strong { color: #111827; font-size: .86rem; font-weight: 650; }

.service-row.is-disabled .service-row__meta strong { color: #9ca3af; }

.service-row__actions { display: flex; justify-content: flex-end; gap: 5px; }

.service-row__actions button { min-height: 30px; padding: 0 8px; border: 1px solid #e0e7ff; border-radius: 7px; background: #fff; color: #4f46e5; font-size: .7rem; font-weight: 600; cursor: pointer; }

.service-row__actions button:hover { background: #eef2ff; }

.service-row__actions .service-toggle { position: relative; width: 30px; padding: 0; color: #9ca3af; font-size: .9rem; }

.service-row__actions .service-toggle.is-enabled { border-color: #bbf7d0; background: #ecfdf5; color: #059669; }

.service-row__actions .service-toggle::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 15; display: none; padding: 5px 8px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.service-row__actions .service-toggle:hover::after { display: block; }

.service-row__actions button.is-danger:hover { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }

.service-detail { grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 18px; margin-top: 0; padding: 23px 24px 25px; border: 1px solid #e0e7ff; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.05); }

.service-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.service-detail__heading h3 { margin: 0; color: #111827; font-size: 1.25rem; font-weight: 650; }

.service-detail__close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: #f5f3ff; color: #6366f1; font-size: 1.25rem; line-height: 1; cursor: pointer; }

.service-detail__facts { display: flex; gap: 42px; margin: 19px 0 22px; padding-bottom: 18px; border-bottom: 1px solid #eef0f5; }

.service-detail__facts div { display: flex; flex-direction: column; gap: 4px; }

.service-detail__facts span { color: #6b7280; font-size: .72rem; font-weight: 600; }

.service-detail__facts strong { color: #1f2937; font-size: .9rem; font-weight: 650; }

.service-detail__group + .service-detail__group { margin-top: 18px; }

.service-detail__group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }

.service-detail__group h4 { margin: 0; color: #374151; font-size: .78rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }

.service-detail__add { position: relative; padding: 0; border: 0; background: transparent; color: #6366f1; font-size: .7rem; font-weight: 600; cursor: pointer; }

.service-detail__add::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 10; display: none; padding: 5px 8px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .68rem; font-weight: 500; line-height: 1; white-space: nowrap; }

.service-detail__add:hover::after { display: block; }

.service-detail__group ul { margin: 0; padding: 0; list-style: none; }

.service-detail__group li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f2f6; color: #4b5563; font-size: .8rem; }

.service-detail__group li:last-child { border-bottom: 0; }

.service-detail__group li span:last-child { color: #6b7280; white-space: nowrap; }

.service-detail__option-name { display: inline-flex; align-items: center; gap: 8px; }

.service-detail__radio, .service-detail__checkbox { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; border: 1.5px solid #c7d2fe; }

.service-detail__radio { border-radius: 50%; }

.service-detail__radio.is-selected { border-color: #4f46e5; box-shadow: inset 0 0 0 3px #fff; background: #4f46e5; }

.service-detail__checkbox { border-radius: 4px; background: #fafaff; }

.service-detail__empty { color: #9ca3af !important; font-style: italic; }

.service-edit-form { display: grid; min-width: 0; grid-template-columns: 1.5fr .8fr .8fr; gap: 12px; margin-top: 20px; }

.service-edit-form label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: #6b7280; font-size: .72rem; font-weight: 600; }

.service-edit-form input, .service-edit-form select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font-size: .8rem; }

.service-detail__edit-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; margin-top: 5px; }

.service-secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #4b5563; font-size: .78rem; font-weight: 600; cursor: pointer; }

@media (max-width: 720px) {
  .services-main { display: block; }
  .services-page__header { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .services-primary-button { align-self: flex-start; }
  .service-row { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
  .service-row__main { display: flex; width: 100%; }
  .service-row__actions { opacity: 1; }
  .service-detail { position: static; margin-top: 18px; }
  .service-edit-form { grid-template-columns: 1fr 1fr; }
  .service-edit-form label:first-child { grid-column: 1 / -1; }
}

.hours-day--readonly { grid-template-columns: 150px minmax(0, 1fr); }
#staff-hours .staff-hours { border-bottom: 1px solid var(--theme-border, #eef0f5); }
#staff-hours .staff-hours__toggle { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; width: 100%; padding: 14px 24px; border: 0; background: transparent; color: var(--theme-text, #374151); text-align: left; font-size: .8rem; cursor: pointer; }
#staff-hours div.staff-hours__toggle { cursor: default; }
#staff-hours .staff-hours__toggle strong { overflow-wrap: anywhere; font-weight: 600; }
#staff-hours .staff-hours__toggle:focus-visible { outline: 2px solid #818cf8; outline-offset: -3px; border-radius: 8px; }
#staff-hours .staff-hours__dot { width: 8px; height: 8px; border-radius: 50%; }
#staff-hours .staff-hours__status, #staff-hours .staff-hours__detail { color: var(--theme-muted, #6b7280); font-size: .75rem; }
#staff-hours .staff-hours__chevron { transition: transform 150ms; }
#staff-hours [aria-expanded="true"] .staff-hours__chevron { transform: rotate(180deg); }
#staff-hours .staff-hours__detail { padding: 0 24px 12px 44px; }
#staff-hours .staff-hours__detail p { margin: 6px 0; }
#staff-hours .hours-day { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; min-height: 30px; padding: 4px 0; border-color: var(--theme-border, #f1f2f6); }
#staff-hours .hours-day__name { font-size: .75rem; font-weight: 500; }
#staff-hours .hours-day__windows { gap: 4px 12px; }
#staff-hours .hours-window { padding: 0; background: transparent; border: 0; font-size: .75rem; }
.staff-hours__footer { padding: 14px 24px; }
.staff-hours__footer button { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--theme-muted, #6b7280); font-size: .75rem; cursor: default; }
@media (max-width: 639px) {
  .hours-day--readonly { grid-template-columns: 1fr; }
  #staff-hours .staff-hours__toggle { grid-template-columns: 8px minmax(0, 1fr) 14px; gap: 6px 10px; padding: 12px 16px; }
  #staff-hours .staff-hours__status { grid-column: 2; }
  #staff-hours .staff-hours__chevron { grid-column: 3; grid-row: 1 / 3; }
  #staff-hours .staff-hours__detail { padding: 0 16px 12px 34px; }
  #staff-hours .hours-day { grid-template-columns: 1fr; gap: 3px; }
  .staff-hours__footer { padding: 14px 16px; }
}

.hours-feedback { margin: 0; padding: 12px 24px 0; font-size: .8rem; color: inherit; }
.hours-feedback:empty { display: none; }
#hours-refresh { margin: 12px 24px; }
.hours-save:disabled { opacity: .5; cursor: default; }
.hours-time-select__button { width: auto; min-width: 100px; white-space: nowrap; }
.hours-time-select__menu { width: max-content; min-width: 100%; }
.hours-day button:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
@media (max-width: 600px) {
  .hours-window { gap: 5px; }
  .hours-time-select__button { min-width: 76px; padding: 0 6px; }
  .hours-card__heading { flex-wrap: wrap; }
  .hours-feedback { padding-left: 16px; padding-right: 16px; }
}
.hours-time-select__button::after { content: '⌄'; color: #6366f1; margin-left: 6px; }
.hours-window { flex-wrap: wrap; max-width: 100%; }

#hours-schedule .hours-day { grid-template-columns: 150px minmax(0, 1fr) 30px 30px; gap: 10px; }
.hours-copy { position: relative; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b7280; cursor: pointer; }
.hours-copy::before { content: ''; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='8' y='8' width='12' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat; }
.hours-copy:hover, .hours-copy[aria-expanded="true"] { background: #eef2ff; color: #4f46e5; }
.hours-copy:disabled { opacity: .35; cursor: default; }
.hours-copy::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 90; display: none; padding: 6px 8px; border-radius: 6px; background: #111827; color: #fff; content: attr(data-tooltip); font-size: .7rem; white-space: nowrap; }
.hours-copy:not(:disabled):hover::after, .hours-copy:focus-visible::after { display: block; }
.hours-copy[aria-expanded="true"]::after { display: none; }
.hours-copy-popover { position: fixed; z-index: 150; box-sizing: border-box; overflow-y: auto; padding: 14px 12px 10px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; color: #374151; box-shadow: 0 8px 24px #0f172a26; font-size: .85rem; }
.hours-copy-popover__title { margin: 0 4px 8px; font-size: .7rem; font-weight: 600; }
.hours-copy-option { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 0 4px; cursor: pointer; }
.hours-copy-option input { width: 16px; height: 16px; margin: 0; accent-color: #4f46e5; }
.hours-copy-popover__footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e7eb; }
.hours-copy-popover button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; cursor: pointer; }
.hours-copy-cancel { background: transparent; color: #6b7280; }
.hours-copy-apply { background: #252a32; color: #fff; }
.hours-copy-apply:disabled { opacity: .4; cursor: default; }
.hours-copy-popover :focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
@media (max-width: 639px) {
  #hours-schedule .hours-day { grid-template-columns: minmax(0, 1fr) 30px 30px; }
  #hours-schedule .hours-day__windows { grid-column: 1; }
}

/* Read-only operator master/detail page. */
.staff-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px clamp(18px, 4vw, 52px) 48px; }
.staff-main.hidden { display: none; }
.staff-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.staff-list, .staff-detail, .staff-feedback { border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; background: var(--theme-surface, #fff); }
.staff-list { overflow: hidden; }
.staff-list__item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--theme-border, #eef0f5); background: transparent; color: var(--theme-text, #374151); text-align: left; cursor: pointer; }
.staff-list__item:last-child { border-bottom: 0; }
.staff-list__item:hover, .staff-list__item.is-selected { background: var(--theme-accent-soft, #eef2ff); }
.staff-list__item.is-selected { box-shadow: inset 3px 0 #8b5cf6; }
.staff-color { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; }
.staff-list__text { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.staff-list__text strong { font-size: .82rem; font-weight: 600; }
.staff-list__text > span { color: var(--theme-muted, #6b7280); font-size: .72rem; }
.staff-detail { min-width: 0; padding: 20px; color: var(--theme-text, #374151); }
.staff-detail__title { margin: 0 0 16px; font-size: .98rem; overflow-wrap: anywhere; }
.staff-detail__title:focus { outline: none; }
.staff-section { border-top: 1px solid var(--theme-border, #eef0f5); }
.staff-section__heading { padding: 14px 0; cursor: pointer; font-size: .98rem; }
.staff-section__heading strong { font-weight: 600; }
.staff-section__heading > span { display: block; margin: 5px 0 0 16px; color: var(--theme-muted, #6b7280); font-size: .76rem; }
.staff-section__body { padding: 0 0 14px; font-size: .82rem; overflow-wrap: anywhere; }
.staff-section__body p { margin: 0 0 10px; color: var(--theme-muted, #6b7280); }
.staff-facts, .staff-timetable { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.staff-facts dt, .staff-timetable dt { color: var(--theme-muted, #6b7280); }
.staff-facts dd, .staff-timetable dd { margin: 0; }
.staff-services { display: grid; gap: 8px; padding-left: 18px; margin: 0; }
.staff-feedback { padding: 16px; color: var(--theme-text, #374151); font-size: .8rem; }
.staff-feedback p { margin-top: 0; }
.staff-selector { display: none; position: relative; min-width: 0; }
.staff-selector__button { display: block; width: 100%; padding: 12px; border: 1px solid var(--theme-border, #d1d5db); border-radius: 9px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); text-align: left; font-size: .82rem; cursor: pointer; overflow-wrap: anywhere; }
.staff-selector__options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; max-height: 240px; overflow-y: auto; border: 1px solid var(--theme-border, #d1d5db); border-radius: 9px; padding: 4px; background: var(--theme-surface, #fff); box-shadow: 0 8px 20px #0002; }
.staff-selector__options button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: var(--theme-text, #374151); text-align: left; font-size: .8rem; cursor: pointer; overflow-wrap: anywhere; }
.staff-selector__options [aria-selected="true"], .staff-selector__options button:hover { background: var(--theme-accent-soft, #eef2ff); }
.staff-main button:focus-visible, .staff-main summary:focus-visible { outline: 2px solid #8b5cf6; outline-offset: -2px; }
.staff-hours__footer a { color: var(--theme-text, #6d28d9); font-size: .75rem; text-decoration: none; }
.staff-hours__footer a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .staff-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .staff-list { display: none; }
  .staff-selector { display: block; }
  .staff-detail { padding: 16px; }
}
@media (max-width: 380px) {
  .staff-timetable { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .staff-timetable dd { margin-bottom: 8px; }
}

.staff-profile-field input:not([type="checkbox"]) { font-size: .8rem; }
.staff-profile-field { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.staff-profile-field input:not([type="checkbox"]), .staff-dialog input { padding: .6rem; border: 1px solid var(--border-color, #888); border-radius: .5rem; color: inherit; background: transparent; }
.staff-dialog-overlay { position: fixed; inset: 0; z-index: 500; background: #0008; display: grid; place-items: center; padding: 1rem; }
.staff-dialog { width: min(100%, 26rem); padding: 1.5rem; border-radius: 1rem; background: var(--surface, #fff); color: var(--text-primary, #172033); box-shadow: 0 1rem 4rem #0005; }
.staff-dialog label { display: grid; gap: .5rem; margin: 1rem 0; }
.staff-dialog button { margin: .5rem .5rem 0 0; }
html[data-theme="dark"] .staff-dialog { background: var(--theme-surface); color: var(--theme-text); }

.staff-page-header h2, .services-page__header h2 { font-size: 1.5rem; }
.staff-page-header { align-items: center; margin-bottom: 24px; }
.staff-page-header > button { flex-shrink: 0; }
.staff-reassignment { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 24px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); }
.staff-reassignment__copy h3 { margin: 0 0 8px; font-size: .95rem; }
.staff-reassignment__copy p { margin: 0; max-width: 76ch; font-size: .82rem; line-height: 1.6; color: var(--theme-muted, #6b7280); }
.staff-reassignment__copy strong { color: var(--theme-text, #374151); }
.staff-reassignment__controls { display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; }
.staff-reassignment__state { font-size: .8rem; }
.staff-reassignment .hours-toggle:disabled { opacity: .5; cursor: default; }
.staff-reassignment__status { grid-column: 1 / -1; min-height: 1.2em; font-size: .75rem; color: var(--theme-muted, #6b7280); opacity: 1; transition: opacity 250ms ease; }
.staff-reassignment__status.is-fading { opacity: 0; }
.staff-reassignment__error { grid-column: 1 / -1; font-size: .82rem; }
.staff-reassignment__error p { margin: 0 0 10px; }
@media (max-width: 600px) {
  .staff-reassignment { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .staff-reassignment__controls { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .staff-reassignment__status { transition: none; }
}
@media (max-width: 767px) {
  .staff-page-header { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .staff-page-header > button { margin-left: auto; }
}

.staff-hours-modes { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; }
.staff-hours-modes legend { margin-bottom: 10px; font-weight: 600; }
.staff-hours-modes label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.staff-hours-modes input { accent-color: #818cf8; }
.staff-hours-editor > p { font-size: .8rem; line-height: 1.6; }
.staff-hours-editor .hours-day { grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr) 28px; padding: 14px 0; }
.staff-hours-editor .hours-time-select__button { min-width: 86px; }
.staff-hours-editor .staff-hours-status { margin: 14px 0; }
@media (max-width: 1100px) {
  .staff-hours-editor .hours-day { grid-template-columns: minmax(0, 1fr) 28px; gap: 10px; }
  .staff-hours-editor .hours-day__name { grid-column: 1 / -1; }
  .staff-hours-editor .hours-day__windows { min-width: 0; }
  .staff-hours-editor .hours-time-select__button { min-width: 72px; padding: 8px 5px; }
  .staff-hours-editor .hours-window { gap: 4px; }
}

.staff-detail { container-type: inline-size; }
.staff-qualifications { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin: 1rem 0; }
.staff-qualifications-toggle { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.staff-qualifications-toggle:disabled { opacity: .5; cursor: default; }
.staff-qualification { display: flex; align-items: center; gap: .75rem; padding: .65rem; min-width: 0; cursor: pointer; }
.staff-qualification input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--accent-color, #7c3aed); }
.staff-qualification:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }

.staff-qualification span { overflow-wrap: anywhere; }
@container (min-width: 480px) {
  .staff-qualifications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 760px) {
  .staff-qualifications { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-management-layout { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.service-catalog-list, .service-detail-panel, .service-state { min-width: 0; border: 1px solid var(--theme-border, #e5e7eb); border-radius: 14px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); }
.service-catalog-list { display: grid; overflow: hidden; }
.service-catalog-item { display: grid; gap: 5px; width: 100%; min-width: 0; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--theme-border, #eef0f5); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.service-catalog-item:last-child { border-bottom: 0; }
.service-catalog-item:hover, .service-catalog-item.is-selected { background: var(--theme-accent-soft, #eef2ff); }
.service-catalog-item.is-selected { box-shadow: inset 3px 0 #8b5cf6; }
.service-catalog-item__name, .service-child__heading h4 { min-width: 0; overflow-wrap: anywhere; font-size: .85rem; font-weight: 600; }
.service-catalog-item__meta, .service-status { color: var(--theme-muted, #6b7280); font-size: .74rem; }
.service-status.is-inactive { color: #b45309; }
.service-detail-panel, .service-state { padding: 20px; }
.service-state { font-size: .85rem; }
.service-state p { margin: 0 0 12px; }
.service-state.is-error { border-color: #fca5a5; }
.service-retry { padding: 8px 12px; border: 1px solid var(--theme-border, #d1d5db); border-radius: 8px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); cursor: pointer; }
.service-detail-title { margin: 0 0 14px; overflow-wrap: anywhere; font-size: 1.1rem; }
.service-section { border-top: 1px solid var(--theme-border, #eef0f5); }
.service-section__heading { display: block; padding: 14px 0; cursor: pointer; font-size: .82rem; }
.service-section__heading strong { font-weight: 600; }
.service-section__heading > span { display: block; margin: 5px 0 0 16px; color: var(--theme-muted, #6b7280); font-size: .75rem; }
.service-facts { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); gap: 8px 12px; margin: 0 0 14px; font-size: .8rem; }
.service-facts dt, .service-description, .service-phase-totals { color: var(--theme-muted, #6b7280); }
.service-facts dd { margin: 0; overflow-wrap: anywhere; }
.service-description { font-size: .82rem; }
.service-phases { display: grid; gap: 6px; padding-left: 24px; font-size: .8rem; }
.service-phase--processing { color: #7c3aed; }
.service-phase-totals { margin: 10px 0 16px; font-size: .76rem; }
.service-section--variants, .service-section--addons { margin-top: 12px; }
.service-child { padding: 12px 0; border-top: 1px solid var(--theme-border, #eef0f5); }
.service-child__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-child__heading h4 { margin: 0 0 10px; }
.service-child .service-facts { margin-bottom: 8px; }
.service-child-phases summary { color: var(--theme-muted, #6b7280); font-size: .75rem; cursor: pointer; }
.service-phases--compact { margin-bottom: 6px; }
.service-empty-inline { padding: 0 0 12px; color: var(--theme-muted, #6b7280); font-size: .8rem; }
.service-selector { display: none; position: relative; min-width: 0; }
.service-selector__button, .service-selector__options { width: 100%; border: 1px solid var(--theme-border, #d1d5db); border-radius: 9px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); }
.service-selector__button { padding: 12px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.service-selector__options { position: absolute; z-index: 20; top: calc(100% + 4px); max-height: 240px; overflow-y: auto; padding: 4px; box-shadow: 0 8px 20px #0002; }
.service-selector__option { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.service-selector__option[aria-selected="true"], .service-selector__option:hover { background: var(--theme-accent-soft, #eef2ff); }
#services-main button:focus-visible, #services-main summary:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
@media (max-width: 767px) {
  .service-management-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-catalog-list { display: none; }
  .service-selector { display: block; }
  .service-detail-panel, .service-state { padding: 16px; }
}
.service-duration { margin: 10px 0 16px; color: var(--theme-muted, #6b7280); font-size: .8rem; }

.service-editor { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 14px; min-width: 0; }
.service-editor label { display: grid; gap: 6px; font-weight: 600; }
.service-editor input, .service-editor select { min-width: 0; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--theme-border, #d1d5db); border-radius: 8px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); font: inherit; font-weight: 400; }
.service-editor input[type="checkbox"] { width: 20px; height: 20px; }
.service-phase-editor { padding-left: 24px; margin: 0; display: grid; gap: 16px; }
.service-phase-editor li { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.service-phase-editor select { flex: 1 1 240px; }
.service-phase-editor input { flex: 1 1 90px; }
.service-editor-actions, .service-discard[open] { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.service-discard { box-sizing: border-box; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--theme-border, #d1d5db); padding: 24px; margin: auto; border-radius: 12px; background: var(--theme-surface, #fff); color: var(--theme-text, #374151); box-shadow: 0 24px 64px #0004; }
.service-discard::backdrop { background: #0008; }
.service-discard p { flex-basis: 100%; margin: 0; }
.service-draft-status { font-weight: 600; }
.service-editor button:disabled, .service-editor-actions button:disabled { opacity: .5; cursor: default; }

/* Keep the catalog at left and the selected service beside it. */
@media (min-width: 768px) {
  .service-management-layout { grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); }
  .service-management-layout > .service-detail-panel,
  .service-management-layout > .service-state { grid-column: auto; width: auto; }
}
.service-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.service-editor > .service-phase-editor,
.service-editor > .service-editor-actions { grid-column: 1 / -1; }
.service-editor > button { justify-self: start; }
.service-phase-editor li { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.service-phase-editor select { grid-column: 1 / -1; }
.service-phase-editor select, .service-phase-editor input { width: 100%; }
@media (max-width: 767px) {
  .service-management-layout > .service-detail-panel,
  .service-management-layout > .service-state { grid-column: 1; }
  .service-editor { grid-template-columns: minmax(0, 1fr); }
  .service-phase-editor > li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-editor > .service-phase-editor,
  .service-editor > .service-editor-actions { grid-column: 1; }
}

/* Match the staff page type scale while keeping the service editor layout. */
.service-catalog-item { gap: 4px; padding: 14px 16px; }
.service-catalog-item__name { font-size: .82rem; line-height: 1.5; }
.service-catalog-item__meta, .service-status { font-size: .72rem; line-height: 1.5; }
.service-detail-panel { padding: 20px; }
.service-detail-title { margin-bottom: 16px; font-size: .98rem; line-height: 1.5; }
.service-section__heading { padding: 18px 0; font-size: .98rem; }
.service-section__heading strong { font-weight: 600; }
.service-editor { gap: 22px 28px; margin: 8px 0 22px; }
.service-editor label { gap: 9px; font-size: .82rem; font-weight: 600; line-height: 1.5; }
.service-editor input:not([type="checkbox"]), .service-editor select { min-height: 46px; padding: 10px 13px; border-radius: 9px; font-size: .8rem; }
.service-editor input[type="checkbox"] { align-self: start; margin: 2px 0 0; }
.service-phase-editor { gap: 12px; padding: 0; }
.service-phase-editor li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--theme-border, #e5e7eb); border-radius: 12px; background: color-mix(in srgb, var(--theme-surface, #fff) 94%, var(--theme-accent-soft, #eef2ff)); }
.service-phase-editor select { flex: 1 1 250px; min-width: min(100%, 220px); }
.service-phase-editor input { flex: 0 1 110px; min-width: 86px; }
.service-phase-editor button { flex: 0 1 auto; min-height: 42px; white-space: nowrap; }
.service-editor > button { min-height: 42px; padding: 0 16px; font-size: .74rem; }
.service-phase-totals { margin: 4px 0 20px; font-size: .76rem; line-height: 1.5; }
.service-editor-actions { gap: 12px; }
.service-editor-actions button { min-height: 44px; padding: 0 18px; font-size: .74rem; }
.service-draft-status { font-size: .8rem; }
.service-section--variants, .service-section--addons { margin-top: 18px; }
.service-section--variants > summary, .service-section--addons > summary { font-size: .98rem; }
.service-child { padding: 18px 0; }
.service-child__heading h4 { font-size: .82rem; }
.service-child .service-facts { font-size: .82rem; }
.service-empty-inline { font-size: .8rem; }
@media (max-width: 767px) {
  .service-detail-panel { padding: 16px; }
  .service-editor { gap: 18px; }
  .service-phase-editor li { padding: 12px; }
  .service-phase-editor select { flex-basis: 100%; min-width: 0; }
  .service-phase-editor input { flex: 1 1 90px; }
  .service-phase-editor button { flex: 1 1 calc(50% - 10px); }
}
.service-phase-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.service-phase-action::before { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.service-phase-action--up::before { content: "↑"; }
.service-phase-action--down::before { content: "↓"; }
.service-phase-action--remove::before { content: "×"; font-size: 1.35rem; }

:is(.service-variant-summary, .service-addon-summary) { border: 0; padding: 0; background: transparent; color: var(--theme-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
:is(.service-variant-summary, .service-addon-summary)[aria-expanded="true"] { color: var(--theme-primary, #6366f1); }
.service-section--addons .service-child__heading { flex-wrap: wrap; }
.service-addon-summary { min-width: 0; flex: 1 1 140px; }
.service-add-variant, .service-add-addon { margin: 12px 0; }
.service-variant-modes, .service-variant-preview, .service-variant-help, .service-addon-help { grid-column: 1 / -1; }
.service-variant-modes { display: grid; gap: 14px; }
.service-variant-modes label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.service-editor input[type="radio"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; padding: 0; }
.service-variant-help, .service-addon-help { margin: 0; color: var(--theme-muted); font-size: .76rem; line-height: 1.5; }
.service-variant-editor, .service-addon-editor { margin-top: 22px; }

/* Keep the service section headings visibly interactive in both themes. */
.service-section > .service-section__heading { position: relative; padding: 18px 38px 18px 12px; border-radius: 9px; transition: background 150ms ease, color 150ms ease; list-style: none; }
.service-section > .service-section__heading::-webkit-details-marker { display: none; }
.service-section > .service-section__heading::after { content: ""; position: absolute; right: 16px; top: 24px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 150ms ease; }
.service-section[open] > .service-section__heading::after { transform: rotate(225deg); }
.service-section > .service-section__heading:hover, .service-section > .service-section__heading:focus-visible { background: var(--theme-accent-soft, #eef2ff); color: var(--ui-accent); }
.service-section > .service-section__heading:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .service-section > .service-section__heading, .service-section > .service-section__heading::after { transition: none; }
}
.service-editor-actions { margin-bottom: 24px; }

.service-section--base { --service-level: "1"; }
.service-section--variants { --service-level: "2"; }
.service-section--addons { --service-level: "3"; }
.service-section > .service-section__heading strong { display: inline-flex; align-items: center; gap: 10px; }
.service-section > .service-section__heading strong::before { content: var(--service-level); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid #8b5cf633; border-radius: 50%; background: #8b5cf612; color: #7c3aed; font-size: .75rem; font-weight: 600; line-height: 1; }
.service-section > .service-section__heading > span { margin-left: 34px; }
html[data-theme="dark"] .service-section > .service-section__heading strong::before { background: #a78bfa14; border-color: #a78bfa33; color: #c4b5fd; }

:is(.service-variant-summary, .service-addon-summary), .service-editor { font-size: .82rem; }
.service-selector__button { font-size: .82rem; }
.service-selector__option { font-size: .8rem; }

.service-catalog-item__name { display: flex; align-items: center; gap: 8px; }
.service-catalog-status { width: 7px; height: 7px; flex: 0 0 7px; border: 1px solid #22c55e; border-radius: 50%; background: #22c55e; }
.service-catalog-status.is-inactive { border-color: #dc6b6b; background: #dc6b6b; }
html[data-theme="dark"] .service-catalog-status { border-color: #95baa6; background: #95baa6; }
html[data-theme="dark"] .service-catalog-status.is-inactive { border-color: #ef8b8b; background: #ef8b8b; }
.service-catalog-item__meta { padding-left: 15px; }

.service-editor input[type="text"], .service-editor select { transition: border-color 150ms ease, box-shadow 150ms ease; }
.service-editor input[type="text"]:not(:disabled):hover, .service-editor input[type="text"]:focus,
.service-editor select:not(:disabled):hover, .service-editor select:focus { border-color: #818cf8; box-shadow: 0 0 0 1px #818cf8; outline: none; }
@media (prefers-reduced-motion: reduce) {
  .service-editor input[type="text"], .service-editor select { transition: none; }
}

.tag-input { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: start; gap: .5rem; min-width: 0; }
.tag-input > label { width: 100%; }
.tag-input__field { flex: 1 1 14rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; min-height: 46px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--theme-border, #d1d5db); border-radius: 9px; background: var(--theme-surface, #fff); cursor: text; }
.tag-input__field:focus-within { border-color: #818cf8; box-shadow: 0 0 0 2px #818cf833; }
.tag-input__pills { display: contents; }
.tag-input .tag-input__field input[type="text"] { flex: 1 1 9rem; width: 9rem; min-width: 0; min-height: 30px; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; }
.tag-input__pill { display: inline-flex; align-items: center; gap: .25rem; max-width: 100%; min-width: 0; padding: 2px 4px 2px 10px; border-radius: 16px; background: #ede9fe; color: #5b21b6; font-size: .78rem; font-weight: 500; line-height: 1.5; }
.tag-input__pill > span { min-width: 0; overflow-wrap: anywhere; }
.tag-input button { font-family: inherit; cursor: pointer; }
.tag-input .tag-input__remove { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.15rem; line-height: 1; }
.tag-input__remove:not(:disabled):hover { background: #7c3aed1a; }
.tag-input__add { align-self: center; }
.tag-input button:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
.tag-input.is-disabled .tag-input__field { cursor: default; }
.tag-input button:disabled { opacity: .5; cursor: default; }
html[data-theme="dark"] .tag-input__pill { background: #a78bfa26; color: #ddd6fe; }
html[data-theme="dark"] .tag-input__remove:not(:disabled):hover { background: #a78bfa33; }
