.desktop-top-navigation {
  --header-control-background: color-mix(in srgb, var(--brand-on-primary) 23%, var(--brand-primary));
  --header-control-hover: color-mix(in srgb, var(--header-control-background) 90%, black);
}

/* Compact header variant of the shared select; the menu keeps the form pattern. */
.desktop-top-navigation .business-switch {
  position: relative;
  min-width: 0;
  padding: 0;
  gap: 0;
  border: 0;
  background: transparent;
}
.business-switch > .md-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.business-switch .md-select-trigger {
  height: 44px;
  padding: 5px 14px 5px 6px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--header-control-background);
  color: var(--brand-on-primary);
  font-size: 14px;
  font-weight: 600;
}
.business-switch .md-select-trigger:hover,
.business-switch .md-select-shell.open > .md-select-trigger {
  background: var(--header-control-hover);
  border-color: transparent;
  box-shadow: none;
}
.business-switch .md-select-trigger:focus-visible {
  outline: 2px solid var(--brand-on-primary);
  outline-offset: 2px;
  box-shadow: none;
}
.business-switch .md-select-chevron {border-color: currentColor}
.business-switch-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-on-primary) 18%, transparent);
  font-size: 13px;
  overflow: hidden;
}
.business-switch .business-switch-avatar img {width: 100%;height: 100%;object-fit: cover;border-radius: inherit}
.business-switch .md-select-menu {width: max(100%, 270px);max-width: calc(100vw - 40px)}
.business-switch .md-select-option {gap: 12px;overflow-wrap: anywhere}
.business-switch .md-select-option > span {min-width: 0;flex: 1}
.business-switch .md-select-option.selected::after {content: "✓";flex: none;color: var(--brand-primary);font-weight: 700}
@media (min-width: 981px) {
  .desktop-top-navigation .sidebar:has(> .business-switch) > .brand {display: none}
  .desktop-top-navigation .sidebar > .shop-switch.business-switch {width: 230px;max-width: 230px;flex: 0 1 230px}
}
@media (max-width: 980px) {
  .desktop-top-navigation .mobile-business-switch.business-switch {flex: 1;max-width: 280px;margin: 0}
}

.desktop-top-navigation .header-plans-button {
  --brand-primary: var(--plan-accent-background);
  --brand-on-primary: var(--plan-accent-text);
  flex: none;
  width: auto;
  min-height: 38px;
  padding-inline: 12px;
  font-size: 13px;
  white-space: nowrap;
}

.desktop-top-navigation :is(.sidebar-footer,.top-actions) :is(.header-plans-button,summary):focus-visible,
.desktop-top-navigation :is(.mobile-business,.mobile-business-switch select):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.desktop-top-navigation :is(.sidebar-footer,.top-actions) .profile-avatar,
.desktop-top-navigation :is(.sidebar-footer,.top-actions) .booking-link-menu > summary {
  background: var(--header-control-background);
  border-color: transparent;
  color: var(--brand-on-primary);
}
.desktop-top-navigation :is(.sidebar-footer,.top-actions) .booking-link-menu > summary {
  border-radius: 100px;
}
.desktop-top-navigation .account-menu > summary {
  background: transparent;
  border-color: transparent;
}
.desktop-top-navigation .account-menu[open] > summary .profile-avatar,
.desktop-top-navigation :is(.sidebar-footer,.top-actions) .booking-link-menu[open] > summary {
  background: var(--header-control-hover);
}
@media (hover: hover) {
  .desktop-top-navigation .account-menu > summary:hover .profile-avatar,
  .desktop-top-navigation :is(.sidebar-footer,.top-actions) .booking-link-menu > summary:hover {
    background: var(--header-control-hover);
  }
}
.desktop-top-navigation :is(.brand-shop-logo,.mobile-business img) {
  background: #fff;
  border-radius: 6px;
}

/* Desktop business navigation. */
@media (min-width: 981px) {
  .desktop-top-navigation {--settings-nav-height: 116px}
  .desktop-top-navigation :is(.brand,.main-nav .nav-item):focus-visible {
    outline: 2px solid var(--brand-on-primary);
    outline-offset: 2px;
  }
  .desktop-top-navigation .sidebar,
  .desktop-top-navigation.sidebar-collapsed .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 70px;
    min-height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(10px, 1.5vw, 24px);
    padding: 0 clamp(20px, 2.5vw, 40px);
    transform: none;
    border: 0;
    border-radius: 0;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    box-shadow: none;
  }
  .desktop-top-navigation .sidebar:has(.settings-sidebar-menu:not([hidden])) {
    height: var(--settings-nav-height);
    min-height: var(--settings-nav-height);
    padding-bottom: 46px;
  }
  .desktop-top-navigation .sidebar>.brand,
  .desktop-top-navigation.sidebar-collapsed .sidebar>.brand {
    width: auto;
    max-width: 170px;
    min-width: 86px;
    flex: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    letter-spacing: 0;
  }
  .desktop-top-navigation .sidebar .brand-with-name strong {color: inherit}
  .desktop-top-navigation .brand-shop-logo {max-height: 38px;max-width: 160px}
  .desktop-top-navigation .sidebar>.sidebar-collapse,
  .desktop-top-navigation .sidebar>.nav-caption {display: none}
  .desktop-top-navigation .sidebar>.shop-switch {max-width: 150px;margin: 0;flex: none}
  .desktop-top-navigation .sidebar .main-nav,
  .desktop-top-navigation.sidebar-collapsed .main-nav {
    width: auto;
    margin-inline-start: clamp(12px, 2vw, 24px);
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-inline: 4px;
    scroll-padding-inline: 4px;
    scrollbar-width: thin;
    justify-items: unset;
  }
  .desktop-top-navigation .main-nav>.nav-item,
  .desktop-top-navigation.sidebar-collapsed .main-nav>.nav-item,
  .desktop-top-navigation .settings-menu-trigger {
    width: auto;
    max-width: none;
    height: 40px;
    min-height: 40px;
    flex: none;
    justify-content: center;
    gap: 7px;
    padding: 0 clamp(8px, 1vw, 14px);
    border-radius: 9px;
    color: var(--brand-on-primary);
    white-space: nowrap;
    font-size: 13px;
  }
  .desktop-top-navigation .main-nav .nav-item>svg:first-child {display: block;width: 16px;height: 16px;flex: none}
  .desktop-top-navigation.sidebar-collapsed .main-nav .nav-label-full {display: inline}
  .desktop-top-navigation .main-nav .nav-label-mobile {display: none}
  .desktop-top-navigation .main-nav .nav-item:hover,
  .desktop-top-navigation .main-nav .nav-item:focus-visible {background: color-mix(in srgb,var(--brand-on-primary) 14%,transparent);color: var(--brand-on-primary)}
  .desktop-top-navigation .main-nav .nav-item.active,
  .desktop-top-navigation .main-nav .settings-menu-trigger.settings-parent-active {background: var(--brand-on-primary);color: var(--brand-primary);font-weight: 700}
  .desktop-top-navigation .main-nav>.nav-item[data-view="plano"] {display: none}
  .desktop-top-navigation .settings-menu-group {position: static;width: auto;flex: none}
  .desktop-top-navigation .main-nav .settings-menu-chevron {display: none}
  .desktop-top-navigation .settings-sidebar-menu,
  .desktop-top-navigation.sidebar-collapsed .settings-sidebar-menu {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid #e5e5e8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .desktop-top-navigation .settings-sidebar-menu a,
  .desktop-top-navigation.sidebar-collapsed .settings-sidebar-menu a {
    min-height: 34px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
  }
  .desktop-top-navigation .settings-sidebar-menu a[aria-current="page"] {background: color-mix(in srgb,var(--brand-primary) 11%,white);color: #26212c}
  .desktop-top-navigation .sidebar-footer,
  .desktop-top-navigation.sidebar-collapsed .sidebar-footer {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-items: unset;
    gap: 8px;
    flex: none;
    margin: 0;
  }
  .desktop-top-navigation .sidebar-account-menu,
  .desktop-top-navigation.sidebar-collapsed .sidebar-account-menu {width: auto;padding: 0;border: 0}
  .desktop-top-navigation .sidebar-account-menu summary,
  .desktop-top-navigation.sidebar-collapsed .sidebar-account-menu summary {min-height: 40px;padding: 0;border: 0}
  .desktop-top-navigation .sidebar-account-menu summary>span:last-child {display: none}
  .desktop-top-navigation .sidebar-account-menu>div {top: calc(100% + 6px);right: 0;bottom: auto;left: auto}
  .desktop-top-navigation .workspace,
  .desktop-top-navigation.sidebar-collapsed .workspace {margin-left: 0}
  .desktop-top-navigation .page-content {max-width: 1580px;padding: 24px clamp(20px, 2.5vw, 40px) 48px}
}

@media (min-width:700px) and (max-width:980px) and (orientation:portrait) {
  .desktop-top-navigation {--settings-nav-height:56px}
  .desktop-top-navigation .topbar {height:var(--settings-nav-height)}
}

@media (min-width:981px), (min-width:700px) and (max-width:980px) and (orientation:portrait) {
  .desktop-top-navigation .settings-page-heading:has(> #save-settings:not([hidden])) {
    position: sticky;
    top: var(--settings-nav-height);
    z-index: 4;
    padding-block: 10px;
    background: var(--canvas);
  }
}
.first-steps {margin: 0 0 18px;padding: 20px 22px;border: 1px solid var(--brand-primary);border-radius: 14px;background: var(--brand-primary);color: var(--brand-on-primary)}
.first-steps-heading {display: flex;align-items: start;justify-content: space-between;gap: 20px;margin-bottom: 16px}
.first-steps-heading h2 {margin: 3px 0 5px;color: var(--brand-on-primary);font: 700 20px/1.25 'Outfit',sans-serif}
.first-steps-heading p {margin: 0;color: color-mix(in srgb,var(--brand-on-primary) 82%,transparent);font-size: 13px;line-height: 1.45}
.first-steps .eyebrow {color: color-mix(in srgb,var(--brand-on-primary) 75%,transparent)}
.first-steps-progress {flex: none;padding: 7px 11px;border-radius: 999px;background: #fff;color: #4d4659;font-size: 12px;font-weight: 700}
.first-steps-heading-actions {display: flex;align-items: center;gap: 8px;flex: none}
.first-steps-close {width: 30px;height: 30px;display: grid;place-items: center;flex: none;border: 0;border-radius: 50%;background: color-mix(in srgb,var(--brand-on-primary) 16%,transparent);color: var(--brand-on-primary);cursor: pointer}
.first-steps-close:hover {background: color-mix(in srgb,var(--brand-on-primary) 27%,transparent)}
.first-steps-close:focus-visible,.first-steps-reopen button:focus-visible {outline: 2px solid currentColor;outline-offset: 2px}
.first-steps-reopen {margin: 0 0 18px}
.first-steps-reopen button {width: 100%;min-height: 48px;display: flex;align-items: center;gap: 14px;padding: 10px 18px;border: 1px solid var(--brand-primary);border-radius: 12px;background: var(--brand-primary);color: var(--brand-on-primary);font: 700 13px/1.2 'Outfit',sans-serif;text-align: left;cursor: pointer}
.first-steps-reopen button:hover {filter: brightness(1.08)}
.first-steps-reopen-label {flex: 1}
.first-steps-reopen-track {width: clamp(110px, 23vw, 240px);height: 9px;overflow: hidden;border-radius: 999px;background: color-mix(in srgb,var(--brand-on-primary) 28%,transparent)}
.first-steps-reopen-track>span {height: 100%;display: block;border-radius: inherit;background: #10bc91}
.first-steps-reopen strong {min-width: 35px;text-align: right;font-size: 14px}
.first-steps-reopen-chevron {display: grid;place-items: center;transform: rotate(90deg)}
.first-steps-list {display: grid;grid-template-columns: repeat(4,minmax(0,1fr));gap: 10px}
.first-step {min-width: 0;min-height: 80px;display: flex;align-items: center;gap: 11px;padding: 12px;border: 1px solid #e5e3eb;border-radius: 10px;background: #fff;color: #34303b;text-align: left;text-decoration: none}
button.first-step:hover {border-color: var(--brand-primary);background: #fff}
.first-step>span:nth-child(2) {min-width: 0;flex: 1}
.first-step strong,.first-step small {display: block}
.first-step strong {font-size: 13px;line-height: 1.3}
.first-step small {margin-top: 4px;color: #77727e;font-size: 11px;line-height: 1.35}
.first-step-number {width: 26px;height: 26px;display: grid;place-items: center;flex: none;border: 1px solid #b8b8bd;border-radius: 50%;background: #fff;color: var(--brand-primary);font-size: 12px;font-weight: 800}
.first-step.is-complete {border-color: #e5e3eb;background: #fff}
.first-step.is-complete:hover {border-color: #ded9e8;background: #fff}
.first-step.is-complete .first-step-number {border-color: #10bc91;background: #10bc91;color: #fff;font-size: 17px}
.first-step.is-complete strong {color: #34303b}
.is-unconfigured .calendar-legend {display: none}
.slot-cell-placeholder,.slot-cell-placeholder:hover {cursor: default;background: #fff}
@media (max-width: 980px) {.first-steps-list {grid-template-columns: repeat(2,minmax(0,1fr))}.first-steps-heading {flex-direction: column;gap: 10px}.first-steps-heading-actions {align-self: stretch;justify-content: space-between}.first-steps {padding: 16px}}
@media (max-width: 620px) {
  .first-steps-list {grid-template-columns: 1fr}
  .first-steps-reopen button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .first-steps-reopen-chevron {grid-area: 1 / 2;justify-self: end}
  .first-steps-reopen-track {width: 100%;height: 10px}
}
@media (min-width: 981px) and (max-width: 1280px) {
  .desktop-top-navigation .sidebar,.desktop-top-navigation.sidebar-collapsed .sidebar {gap: 8px;padding-inline: 14px}
  .desktop-top-navigation .sidebar>.brand {min-width: 70px;max-width: 110px;font-size: 12px}
  .desktop-top-navigation .sidebar .main-nav,
  .desktop-top-navigation.sidebar-collapsed .main-nav {gap: 4px;margin-inline-start: 0}
  .desktop-top-navigation .main-nav>.nav-item,.desktop-top-navigation .settings-menu-trigger {gap: 5px;padding-inline: 8px;font-size: 13px}
  /* Keep every primary destination visible with wider fallback fonts and a
     non-overlay scrollbar. The link control retains its accessible name. */
  .desktop-top-navigation .sidebar-footer .booking-link-menu > summary > span {display: none}
}
.calendar-tools {display: flex;align-items: center;justify-content: flex-end;gap: 8px;min-width: 0}
.calendar-new-booking {min-height: 38px;margin-left: 6px;font-size: 13px;white-space: nowrap}
@media (max-width: 980px) {.calendar-tools {display: flex;flex-wrap: wrap;justify-content: flex-end}.calendar-new-booking {margin-left: 0}}
@media (max-width: 620px) {
  .calendar-tools {display: grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: 8px}
  .calendar-tools .barber-filter-menu,.calendar-tools .calendar-view-menu {width: 100%;min-width: 0}
  .calendar-tools .barber-filter-trigger,.calendar-tools .calendar-view-trigger {width: 100%;min-width: 0}
  .calendar-tools .barber-filter-trigger>span {min-width: 0;overflow: hidden;text-overflow: ellipsis}
  .calendar-tools:not(:has(.barber-filter-menu)) .calendar-view-menu {grid-column: 1 / -1}
  .calendar-tools .calendar-new-booking {grid-column: 1 / -1;width: 100%}
}
.calendar-view-menu {position: relative;flex: none}
.calendar-view-trigger {min-width: 94px;min-height: 36px;display: flex;align-items: center;justify-content: center;gap: 8px;padding: 0 10px;border: 1px solid #dadada;border-radius: 999px;background: #fff;color: #42414a;font-size: 13px;font-weight: 600;cursor: pointer}
.calendar-view-trigger:hover {background: #f4f4f5}
.calendar-view-trigger>svg:last-child {transform: rotate(90deg);transition: transform .15s}
.calendar-view-trigger[aria-expanded="true"]>svg:last-child {transform: rotate(-90deg)}
.calendar-view-options {position: absolute;top: calc(100% + 7px);right: 0;z-index: 8;min-width: 150px;display: grid;gap: 2px;padding: 6px;border: 1px solid #dedede;border-radius: 11px;background: #fff;box-shadow: 0 16px 36px #0002}
.calendar-view-options button {min-height: 36px;padding: 7px 10px;border: 0;border-radius: 7px;background: transparent;color: #444;text-align: left;font-size: 13px;cursor: pointer}
.calendar-view-options button:hover,.calendar-view-options button[aria-checked="true"] {background: color-mix(in srgb,var(--brand-primary) 9%,white);color: #24202d}
.week-slot-closed,.week-slot-closed:hover {background: repeating-linear-gradient(135deg,#f1f2fa 0 9px,#e8eaf5 9px 18px);border-color: #e2e5f0}
.week-slot-closed:disabled {opacity: 1;cursor: default}
@media (min-width: 981px) {
  .calendar-card .week-calendar {max-height: 760px;overflow-y: auto}
  .week-calendar {--week-slot-height: 44px}
  .week-calendar .week-day-strip,.week-calendar .week-grid {display: grid}
  .week-calendar .week-grid>.week-times {display: block}
  .week-calendar .week-column>.week-slot-layer {display: grid}
  .week-calendar .week-column>.week-event {display: flex}
  .week-calendar .week-grid .week-column {height: calc(var(--week-slot-count) * var(--week-slot-height));border-left: 1px solid #ebebeb}
  .week-calendar .week-mobile-day-heading,.week-calendar .week-mobile-events {display: none}
  .week-calendar .week-day-strip {height: 64px}
  .week-calendar .week-day {height: 64px;gap: 0}
  .week-calendar .week-day>span:first-child {display: flex;flex-direction: column;align-items: flex-start;gap: 2px}
  .week-calendar .week-day strong {width: auto;height: auto;font-size: 18px;line-height: 1.1}
  .week-calendar .week-day.today {background: #fff;color: var(--brand-primary)}
  .week-calendar .week-day.today strong {background: none;color: var(--brand-primary)}
  .week-calendar .week-day-count {display: none}
  .three-day-calendar .week-day-strip,.three-day-calendar .week-grid {display: grid;grid-template-columns: 64px repeat(3,minmax(0,1fr))}
}

.calendar-create-menu {position:relative;grid-column:1/-1}
.calendar-create-options {position:absolute;right:0;top:calc(100% + 4px);z-index:12;min-width:185px;padding:6px;background:white;border:1px solid #ddd;border-radius:12px;box-shadow:0 8px 24px #0002}
.calendar-create-options button {display:flex;align-items:center;gap:8px;width:100%;padding:10px;background:white;border:0;border-radius:6px;text-align:left;font:inherit;cursor:pointer}
.calendar-create-options button:hover,.calendar-create-options button:focus-visible {background:#f2f1f7}
.calendar-card .calendar-block {background:repeating-linear-gradient(135deg,#efeff3 0 7px,#e5e5ec 7px 9px);border-color:#9998aa;color:#383744}
#calendar-block-form fieldset {display:grid;gap:12px;border:0;margin:16px 0;padding:0}
#calendar-block-form label {display:grid;gap:4px}
#calendar-block-form input,#calendar-block-form select {width:100%;min-height:40px;padding:6px 10px;border:1px solid #ccc;border-radius:8px;font:inherit}
.calendar-new-booking[aria-expanded] > svg:last-child {transform:rotate(90deg)}
.calendar-new-booking[aria-expanded="true"] > svg:last-child {transform:rotate(-90deg)}

@media(max-width:980px) {
  .app-shell .main-nav {grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-template-columns:none}
  .app-shell .settings-menu-group {display:flex;align-items:center}
  .app-shell .settings-menu-trigger .settings-menu-chevron,.app-shell .settings-sidebar-menu {display:none}
  .app-shell .settings-parent-active {background:var(--brand-primary);color:var(--brand-on-primary)}
  .modal.mobile-settings-panel {
    display:flex;
    flex-direction:column;
    max-height:calc(100dvh - max(48px,env(safe-area-inset-top)));
    padding:0 max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
    overflow:hidden;
  }
  .mobile-settings-panel .mobile-more-handle {flex:none;height:44px;margin:0}
  .mobile-settings-panel .mobile-more-options {
    margin:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .mobile-settings-panel .mobile-more-options button[aria-current="page"] {background:#f4f4f5;font-weight:700}
}

.availability-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ded8ff;
  border-radius: 10px;
  background: #f6f4ff;
  color: #38314f;
  font-size: 14px;
  line-height: 1.5;
}
.availability-note svg { flex: none; color: #4827bd; }
.availability-note a { color: #4827bd; text-decoration: underline; }
.weekly-editor .weekly-day {display:grid;grid-template-columns:minmax(115px,1fr) 2fr;align-items:start;gap:12px;padding:12px 0;border-bottom:1px solid #e7e7ea}
.weekly-editor .weekly-toggle {display:flex;flex-direction:row;align-items:center;gap:8px;min-height:40px;margin:0}
.weekly-toggle input[type=checkbox] {width:18px;height:18px;min-height:0}
.weekly-editor fieldset {border:0;padding:0;margin:0;min-width:0}
.weekly-pair {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;align-items:center;gap:8px}
.weekly-pair {padding-top:8px}
.weekly-pair .md-outlined-field {padding-top:0}
.weekly-pair .md-field-label {top:0}
#app .weekly-pair input[type=time] {padding-block:0!important}
@media(min-width:601px){.weekly-day:has(>fieldset:enabled) .weekly-toggle {margin-top:8px;min-height:48px}}
.weekly-pair .weekly-period-add {width:100%;min-width:0;height:48px;padding:0;justify-self:center}
.weekly-pair label,.weekly-pair input {min-width:0;width:100%}
.weekly-editor fieldset.weekly-second {margin-top:8px}
.weekly-editor [hidden] {display:none!important}
.weekly-day fieldset:disabled,.weekly-day:has(input:checked)>.weekly-closed {display:none}
.weekly-closed {align-self:center;color:#64646c;font-size:13px}
@media(max-width:600px){.weekly-editor .weekly-day {grid-template-columns:1fr auto}.weekly-day fieldset {grid-column:1/-1}}
.staff-hours-option {display:grid;gap:8px}
.staff-hours-option + .staff-hours-option {margin-top:16px;padding-top:16px;border-top:1px solid #e7e7ea}
.staff-hours-option > .field-hint {margin:0}
.staff-hours-option .staff-optional {border:0;margin:0;padding:0;min-width:0}
.staff-hours-option>.staff-optional:disabled {display:none}

.settings-leave-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid #dedde3;
  border-radius: 16px;
  background: #fff;
  color: #201e24;
  box-shadow: 0 16px 54px #17132929;
}
.settings-leave-dialog::backdrop {background: #17132980}
.settings-leave-dialog h2 {margin: 0; font-size: 22px; line-height: 1.25}
.settings-leave-dialog p {margin: 10px 0 24px; color: #585660; line-height: 1.5}
.settings-leave-dialog form {display: flex; flex-wrap: wrap; gap: 8px}
@media (max-width: 480px) {
  .settings-leave-dialog form {display: grid}
}

.standard-panel.professional-panel {
  --panel-gutter: 27px;
  height: 100dvh;
  min-height: 0;
  padding-inline: var(--panel-gutter);
  padding-bottom: 0;
  overflow: hidden;
}
.professional-panel #entity-form {
  flex: 1;
  min-height: 0;
  margin-inline: calc(-1 * var(--panel-gutter));
  padding: 0;
  gap: 0;
}
.professional-panel #entity-form > .professional-panel-fields {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px var(--panel-gutter) 20px;
}
.professional-panel-fields > * {flex: none}
.professional-panel .standard-panel-footer {
  position: static;
  flex: none;
  margin: 0;
  padding: 16px var(--panel-gutter) max(16px, env(safe-area-inset-bottom));
  background: #fff;
}
@media (max-width: 760px) {
  .standard-panel.professional-panel {--panel-gutter: 16px}
}
@media (max-width: 980px) {
  .professional-panel .service-list-label > .service-checks {
    margin-top: 12px;
    gap: 12px;
  }
}

.professional-panel #barber-photo-feedback:empty {display:none}

.booking-tools-fields {display:grid;gap:18px;padding-block:20px}
.booking-tools-actions {display:flex;flex-wrap:wrap;gap:10px}
.booking-tools-actions .button {flex:1 1 auto}
.booking-tools-fields .field-hint {margin:0}
.booking-tools-fields input[readonly] {text-overflow:ellipsis}
.recurring-preview {display:grid;gap:12px;min-width:0}
.recurring-dates {display:grid;gap:0;list-style:none;margin:0;padding:0;max-height:220px;overflow-y:auto;overscroll-behavior:contain}
.recurring-dates li {display:grid;grid-template-columns:minmax(105px,auto) 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #e6e6e6;font-size:13px}
.recurring-dates li span {text-align:right;overflow-wrap:anywhere;color:#565656}
.recurring-dates li[data-available="false"] span {color:#a22922}
.booking-recurrence .check-row {align-items:flex-start;line-height:1.5}
.booking-panel:has(.recurring-preview) .booking-submit:disabled {background:#e5e5e5;border-color:#e5e5e5;color:#666;cursor:not-allowed}
@media (min-width:981px) {
  .booking-panel > .panel-header {background:#fff;backdrop-filter:none}
  .booking-panel > .panel-header::before {
    content:"";
    position:absolute;
    bottom:100%;
    inset-inline:0;
    height:24px;
    background:#fff;
  }
}

.professional-panel .barber-settings-upload {margin-bottom:0}

#team-invite-form {min-height:0;flex:1}
#team-invite-form .team-invite-fields {display:grid;align-content:start;gap:16px;margin:0}
#team-invite-form [data-profile-choice][hidden], .team-invite-error:empty {display:none}
#team-invite-form [data-profile-choice] {display:grid;gap:8px}
.team-invite-error {color:var(--danger,#b3261e)}
.team-access-feedback:not(:empty), #team-access-list > :is(p,button) {margin:16px}
.team-access-feedback:not(:empty) {display:grid;gap:12px;justify-items:start}
.team-access-feedback p {margin:0}
.team-user-row small {display:block;color:var(--muted);margin-top:3px}
.team-user-row td:first-child {overflow-wrap:anywhere;white-space:normal}
.team-user-row .status-pill {white-space:nowrap}
.team-actions-cell {width:64px;text-align:right}
@media (max-width:980px) {
  .team-users-card .team-user-row td:first-child {grid-column:1/-1}
  .team-users-card .team-user-row:has(.record-actions-trigger) td:first-child {padding-right:48px}
  .team-users-card .team-actions-cell {width:auto}
  .team-users-card .team-user-row td:last-child:empty {display:none}
  .team-users-card .team-user-row td[data-label]::before {content:attr(data-label)}
}

.calendar-title .agenda-date-picker {width:auto; min-width:0}
.agenda-date-trigger {
  min-height:36px; height:auto; padding:5px 8px; gap:7px;
  background:transparent; border:1px solid transparent; border-radius:8px;
  color:inherit; font:inherit; text-transform:inherit;
}
.agenda-date-trigger svg {flex:none}
.agenda-date-trigger:hover, .agenda-date-picker.open .agenda-date-trigger {background:#f5f4f8}
.agenda-date-picker .md-date-day.selected {background:var(--brand-primary);color:var(--brand-on-primary)}
.agenda-date-picker .md-date-menu {text-align:left}

.agenda-date-picker .md-date-day:focus-visible {outline:2px solid var(--brand-primary);outline-offset:1px}

.booking-link-menu {position:relative;flex:none}
.booking-link-menu summary {
  min-height:38px; padding:0 10px; font-size:12px;
  cursor:pointer; list-style:none;
}
.booking-link-menu summary::-webkit-details-marker {display:none}
.booking-link-menu summary>svg:last-child {transform:rotate(90deg)}
.booking-link-menu[open] summary>svg:last-child {transform:rotate(-90deg)}
.booking-link-menu summary:focus-visible {outline:2px solid var(--brand-primary);outline-offset:2px}
.booking-link-options {
  position:absolute; top:calc(100% + 6px); right:0; z-index:35;
  width:218px; max-width:calc(100vw - 24px); display:grid; gap:2px;
  padding:6px; border:1px solid #dedde3; border-radius:12px;
  background:#fff; box-shadow:0 12px 32px #20182e20;
}
.booking-link-options a,.booking-link-options button {
  display:flex; align-items:center; gap:9px; min-height:38px; padding:7px 10px;
  border:0; border-radius:6px; color:#332f39; background:transparent;
  text-decoration:none; text-align:left; font:500 13px/1.3 'Outfit',sans-serif;
}
.booking-link-options :is(a,button):hover,.booking-link-options :is(a,button):focus-visible {background:#f5f4f8}
.booking-link-options hr {width:100%;border:0;border-top:1px solid #e6e5ea;margin:3px 0}
.booking-manual-copy {min-width:0;width:100%;padding:7px}
@media (max-width:980px) {
  .desktop-top-navigation .topbar {background: var(--brand-primary)}
  .desktop-top-navigation .mobile-account-menu > summary {width:44px;min-height:44px;justify-content:center;padding:0;border:0}
  .desktop-top-navigation .mobile-account-menu > summary .profile-avatar {width:44px;height:44px}
  .desktop-top-navigation .mobile-account-menu > summary > span:not(.profile-avatar) {display:none}
  .desktop-top-navigation .mobile-business,
  .desktop-top-navigation .mobile-business-switch select {color: var(--brand-on-primary)}
  .desktop-top-navigation .mobile-business-switch option {background: #fff;color: var(--ink)}
  .booking-link-menu summary {min-height:40px}
  .topbar .booking-link-menu > summary {width:44px;height:44px;min-height:44px;padding:0;justify-content:center}
  .topbar .booking-link-menu summary>span,
  .topbar .booking-link-menu summary>svg:last-child {display:none}
  .booking-link-options a,.booking-link-options button {min-height:44px}
}

/* The loading shell occupies the same header and page area as business navigation. */
.business-loading { min-height: 100vh; background: #f6f6f6; }
.business-loading-header, .business-loading-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
}
.business-loading-header { height: 70px; padding: 0 clamp(20px, 2.5vw, 40px); background: var(--brand-primary); }
.business-loading-header .loading-brand { width: 92px; height: 26px; }
.business-loading-header .loading-nav { width: min(28vw, 320px); height: 22px; }
.business-loading-header .loading-link { width: 136px; height: 36px; margin-left: auto; }
.business-loading-header .loading-avatar { width: 34px; height: 34px; border-radius: 50%; }
.business-loading-content { margin: 24px clamp(16px, 2.5vw, 40px); overflow: hidden; border: 1px solid #dedede; border-radius: 12px; background: white; }
.business-loading-toolbar { justify-content: space-between; padding: 16px; border-bottom: 1px solid #e5e5e8; }
.business-loading-toolbar span { width: min(33%, 190px); height: 32px; }
.business-loading-rows { height: min(56vh, 500px); background: repeating-linear-gradient(white 0 43px, #eee 43px 44px); }
@media (max-width: 980px) {
  .business-loading-header { height: 56px; padding: 0 16px; }
  .business-loading-header .loading-nav { display: none; }
  .business-loading-header .loading-link { width: 44px; }
  .business-loading-content { margin: 16px 12px 24px; }
}

.mobile-dialog-handle {display:none}

@media (max-width:980px) {
  .modal-backdrop:not(.mobile-more-backdrop),
  .category-confirm-backdrop {
    display:grid;
    align-items:end;
    justify-items:stretch;
    padding:0;
  }

  .modal-backdrop > .modal:not(.mobile-more-panel),
  .category-confirm-backdrop > .category-confirm-modal,
  .settings-leave-dialog,
  .record-actions-dialog {
    box-sizing:border-box;
    width:100%;
    max-width:none;
    max-height:calc(100vh - 48px);
    max-height:calc(100dvh - max(48px, env(safe-area-inset-top)));
    margin:0;
    overflow:auto;
    overscroll-behavior:contain;
    border-radius:24px 24px 0 0;
    padding:0 max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .settings-leave-dialog,.record-actions-dialog {position:fixed; inset:auto 0 0}
  .record-actions-dialog {border:0}
  .record-actions-dialog::backdrop {background:#17132980}
  body:has(.record-actions-dialog[open]) {overflow:hidden}
  .mobile-dialog-handle {
    display:grid;
    position:sticky;
    top:0;
    z-index:1;
    height:44px;
    margin:0;
    background:#fff;
  }
}

@media (min-width:981px) {
  .desktop-top-navigation.single-section .sidebar-footer {margin-left:auto}
}
@media (max-width:980px) {
  .desktop-top-navigation.single-section .sidebar {display:none}
  .desktop-top-navigation.single-section .page-content {padding-bottom:max(20px, env(safe-area-inset-bottom))}
}
.team-users-loading {width:100%;table-layout:fixed}
.team-users-loading th:first-child {width:38%}
.team-users-loading th:last-child {width:64px}
.team-users-loading .app-skeleton-shape {width:70%;height:16px;margin:4px 0}
.team-users-loading td:first-child .app-skeleton-shape + .app-skeleton-shape {width:50%;height:12px;margin-top:8px}

.desktop-top-navigation .sidebar > .brand.brand-with-name {justify-content:flex-start;text-align:left}
.desktop-top-navigation .sidebar > .brand.brand-with-name strong {text-align:left}

/* Business navigation uses the desktop destinations in a modal on small screens. */
.desktop-top-navigation .mobile-navigation-trigger {display:none}
@media (max-width:980px) {
  .app-shell.desktop-top-navigation {padding-bottom:0}
  .desktop-top-navigation .sidebar,
  .desktop-top-navigation.sidebar-collapsed .sidebar {display:none}
  .desktop-top-navigation .workspace {padding-bottom:0}
  .desktop-top-navigation .page-content {padding-bottom:max(24px, env(safe-area-inset-bottom))}
  .desktop-top-navigation .toast {bottom:max(20px, env(safe-area-inset-bottom))}

  .desktop-top-navigation .topbar {gap:8px;padding-inline:12px}
  .desktop-top-navigation .mobile-navigation-trigger {
    display:inline-grid;
    place-items:center;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    color:var(--brand-on-primary);
  }
  .desktop-top-navigation .mobile-navigation-trigger:hover {background:transparent}
  .desktop-top-navigation .mobile-navigation-trigger:focus-visible {outline:2px solid #fff;outline-offset:2px}
  .desktop-top-navigation .mobile-business,
  .desktop-top-navigation .mobile-business-switch.business-switch {flex:1;min-width:0;min-height:44px;max-width:none}
  .desktop-top-navigation .mobile-business strong {min-width:0}
  .desktop-top-navigation .mobile-business-switch .md-select-trigger {min-width:0;width:100%;padding-right:8px}
  .desktop-top-navigation .mobile-business-switch .md-select-menu {max-width:calc(100vw - 76px)}
  .desktop-top-navigation .top-actions {flex:none;gap:8px;margin-left:0}
  .desktop-top-navigation .top-actions .header-plans-button {min-height:44px;padding-inline:8px;font-size:12px}

  /* Full-screen size for navigation; the shared modal controls and spacing remain. */
  .desktop-top-navigation .modal.mobile-navigation-panel {
    width:100%;
    max-width:none;
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
    margin:0;
    border-radius:0;
    padding-top:calc(20px + env(safe-area-inset-top));
  }
  .mobile-navigation-heading {display:flex;flex:none;align-items:center;justify-content:flex-end;padding:0 0 12px}
  .mobile-navigation-heading .overlay-close {position:static;width:44px;min-width:44px;height:44px;min-height:44px}
  .mobile-navigation-options {
    flex:1;
    align-content:start;
    min-height:0;
    margin:0;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
  }
  .mobile-navigation-options button {
    min-height:52px;
    padding:12px;
    gap:12px;
    border-radius:10px;
    font-size:16px;
    line-height:1.35;
  }
  .mobile-navigation-options button + button {border-top:0}
  .mobile-navigation-options button > span {min-width:0;overflow-wrap:anywhere}
  .mobile-navigation-options button:hover {background:#f5f4f8}
  .mobile-navigation-options button:focus-visible {position:relative;outline:2px solid var(--brand-primary);outline-offset:-2px}
  .mobile-navigation-options button:is(.active, [aria-current="page"]) {background:color-mix(in srgb,var(--brand-primary) 9%,white);color:var(--brand-primary);font-weight:700}
  .mobile-navigation-options button:is(.active, [aria-current="page"]) > svg:last-child {color:var(--brand-primary)}
  .mobile-navigation-settings {margin:4px 0 8px 22px;padding-left:12px}
  .mobile-navigation-settings[hidden] {display:none}
  .mobile-navigation-settings button {min-height:44px;font-size:14px;font-weight:500}

}
@media (max-width:420px) {
  .desktop-top-navigation .topbar:has(.header-plans-button) .business-switch-avatar,
  .desktop-top-navigation .topbar:has(.header-plans-button) .mobile-business > img {display:none}
  .desktop-top-navigation .topbar:has(.header-plans-button) .mobile-business-switch .md-select-trigger {padding-left:8px;gap:4px}
}

/* Keep the sheet handle and close control in the same mobile control row. */
@media (max-width:980px) {
  :is(.panel-sheet, .modal:has(> .mobile-dialog-handle), .category-confirm-modal, .service-icon-dialog) {
    --mobile-close-gutter:max(20px,env(safe-area-inset-left),env(safe-area-inset-right));
  }
  :is(.panel-sheet, .modal:has(> .mobile-dialog-handle), .category-confirm-modal, .service-icon-dialog) > .mobile-more-handle {
    position:sticky;
    top:0;
    z-index:7;
    flex:none;
    width:72px;
    height:44px;
    min-height:44px;
    margin:0 auto;
    background:transparent;
  }
  :is(.panel-sheet, .modal:has(> .mobile-dialog-handle), .category-confirm-modal, .service-icon-dialog) > :is(.panel-header, .modal-topline, .category-confirm-heading, .service-icon-dialog-heading):has(> .overlay-close) {
    position:sticky;
    top:0;
    z-index:6;
    flex:none;
    min-height:68px;
    margin:-44px calc(-1 * var(--mobile-close-gutter)) 0;
    padding:56px var(--mobile-close-gutter) 12px;
    background:#fff;
  }
  :is(.panel-sheet, .modal:has(> .mobile-dialog-handle), .category-confirm-modal, .service-icon-dialog) > :is(.panel-header, .modal-topline, .category-confirm-heading, .service-icon-dialog-heading) > .overlay-close {
    position:absolute;
    inset:12px max(12px,env(safe-area-inset-right)) auto auto;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
  :is(.panel-sheet, .modal:has(> .mobile-dialog-handle), .category-confirm-modal, .service-icon-dialog) > :is(.panel-header, .modal-topline, .category-confirm-heading, .service-icon-dialog-heading) > :is(h2,h3) {
    margin:0;
  }
  .modal:has(> .mobile-dialog-handle) > .modal-topline:has(> .overlay-close:only-child) {padding-top:0}
  .modal:is(.client-actions-dialog,.record-actions-dialog):has(> .mobile-dialog-handle) > .modal-topline {min-height:56px;padding:0}
  :is(.client-actions-dialog,.record-actions-dialog) > .action-menu {margin-top:0}

  .plan-picker-dialog > .mobile-more-handle {
    position:sticky;top:0;z-index:7;flex:none;width:72px;height:44px;min-height:44px;
    margin:0 auto!important;background:transparent;
  }
  .plan-picker-dialog .plan-picker-dismiss {
    position:sticky;top:0;z-index:6;flex:none;height:68px;min-height:68px;background:#fff;
  }
  .plan-picker-dialog > :is(.plan-picker-dismiss, #plan-billing-actions) {margin-top:-44px}
  #plan-billing-actions .plan-picker-close {
    inset:12px max(12px,env(safe-area-inset-right)) auto auto;
    width:44px;height:44px;min-width:44px;min-height:44px;
  }

  /* Native administration dialogs have the same close row, without a handle. */
  .demo-business-dialog {--native-close-padding:24px}
  .admin-courtesy-dialog {--native-close-padding:20px}
  .modal:is(.admin-courtesy-dialog, .demo-business-dialog) {padding-top:0}
  :is(.admin-courtesy-dialog, .demo-business-dialog) > .modal-topline {
    position:sticky;top:0;z-index:6;min-height:68px;
    margin:0 calc(-1 * var(--native-close-padding));
    padding:56px var(--native-close-padding) 12px;background:#fff;
  }
  :is(.admin-courtesy-dialog, .demo-business-dialog) > .modal-topline > .overlay-close {
    position:absolute;inset:12px 12px auto auto;
    width:44px;height:44px;min-width:44px;min-height:44px;
  }
}
@media (max-width:600px) {
  .demo-business-dialog {--native-close-padding:20px}
}

@media (max-width:980px) and (max-height:480px) and (orientation:landscape) {
  .panel-backdrop > .panel-sheet.professional-panel {
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top)));
  }
  .panel-sheet.professional-panel > .panel-sheet-handle {display:none}
  .panel-sheet.professional-panel > .panel-header:has(> .overlay-close) {
    min-height:56px;
    margin-top:0;
    padding-block:8px;
    padding-inline-end:calc(var(--panel-gutter) + 52px);
  }
  .professional-panel > .modal-subtitle {margin:0 0 8px}
  .professional-panel .standard-panel-footer {
    padding-block:8px max(8px,env(safe-area-inset-bottom));
  }
}
