.push-panel {
  font-family: var(--ff-body);
  font-size: var(--fs-control);
  font-weight: var(--fw-regular);
}

#push-panel .push-panel-head {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
}

#push-panel .push-panel-head-inner {
  width: min(100%, 36rem);
  margin: 0 auto;
  min-width: 0;
}

.push-criteria-spot-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.push-panel-head .site-panel-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.push-panel-body {
  min-height: 0;
  padding: 1.1rem 1.2rem max(1.4rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.push-help-layer {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
  border-radius: inherit;
  background: rgba(7, 22, 41, 0.28);
  overscroll-behavior: contain;
  touch-action: none;
}

.push-help-layer[hidden] {
  display: none;
}

.push-help-dialog {
  width: min(100%, 32rem);
  max-height: min(44rem, calc(100dvh - 1.6rem));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 22, 41, 0.18);
}

#push-panel .push-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.8rem;
  padding: 0.75rem 1rem;
}

#push-panel .push-help-head .site-panel-title {
  min-width: 0;
  padding-right: 0.75rem;
}

#push-panel .push-help-head .site-panel-close {
  position: static;
  flex: 0 0 auto;
  transform: none;
}

.push-help-tabs {
  width: auto;
  margin: 0 1rem;
}

.push-help-body {
  min-height: 0;
  padding: 1rem 1.05rem max(1.2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.push-help-copy {
  display: grid;
  gap: 1rem;
  color: var(--text-main);
  font-family: var(--ff-body);
  font-size: var(--fs-control);
  font-weight: var(--fw-regular);
  line-height: 1.42;
}

.push-help-copy p,
.push-help-copy h3 {
  margin: 0;
}

.push-help-copy h3 {
  font-family: var(--ff-body);
  font-size: inherit;
  font-weight: var(--fw-medium);
}

.push-help-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.55rem;
}

.push-help-steps li {
  padding-left: 0.2rem;
}

.push-help-steps li::marker {
  font-weight: var(--fw-medium);
}

.push-help-steps li p {
  margin-top: 0.2rem;
}

.push-help-laptop {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.push-view {
  width: min(100%, 36rem);
  margin: 0 auto;
  display: grid;
  gap: 1.55rem;
}

.push-view--criteria {
  gap: 1.35rem;
}

.push-view--picker-open {
  padding-bottom: 9rem;
}

.push-section {
  display: grid;
  gap: 0.68rem;
  min-width: 0;
}

.push-section + .push-section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.push-section-title,
.push-control-title,
.push-criteria-title {
  margin: 0;
  color: var(--text-main);
  font-family: var(--ff-heading);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-medium);
  line-height: 1.25;
}

.push-control-title {
  font-family: var(--ff-body);
  font-size: var(--fs-control);
  font-weight: var(--fw-regular);
}

.push-copy,
.push-help,
.push-status,
.push-validation {
  margin: 0;
  font-family: var(--ff-body);
  line-height: 1.42;
}

.push-copy,
.push-status {
  color: var(--text-main);
  font-size: var(--fs-control);
}

.push-help {
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
}

.push-help--italic {
  font-style: italic;
}

.push-text-link {
  appearance: none;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: var(--fs-menu-note);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.push-primary-button,
.push-secondary-button {
  appearance: none;
  width: max-content;
  min-height: 2.45rem;
  padding: 0.48rem 0.92rem;
  border: 1px solid var(--action-fill, #1E3448);
  border-radius: var(--radius-pill);
  background: var(--action-fill, #1E3448);
  color: #fff;
  font-family: var(--ff-body);
  font-size: var(--fs-menu-title);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.push-secondary-button {
  border-color: var(--header-text);
  background: transparent;
  color: var(--header-text);
  font-weight: var(--fw-regular);
}

.push-button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.push-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.push-switch-row-copy,
.push-notification-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.push-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 1.42rem;
}

.push-switch-row--copy {
  align-items: flex-start;
}

.push-switch-row--copy > .push-switch {
  margin-top: 0.08rem;
}

.push-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.push-switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #d4d9df;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.push-switch-track::after {
  content: "";
  position: absolute;
  top: 0.13rem;
  left: 0.14rem;
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(7, 22, 41, 0.28);
  transition: transform 140ms ease;
}

.push-switch input:checked + .push-switch-track {
  border-color: var(--header-text);
  background: var(--header-text);
}

.push-switch input:checked + .push-switch-track::after {
  transform: translateX(1.08rem);
}

.push-switch input:focus-visible + .push-switch-track {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.push-notification-list {
  display: grid;
  gap: 1.05rem;
}

.push-notification-row {
  display: grid;
  gap: 0.18rem;
}

.push-notification-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.push-notification-time {
  width: max-content;
  margin-top: 0.34rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.push-notification-time-label {
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
}

.push-notification-time select:disabled {
  opacity: 0.45;
  cursor: default;
}

.push-duration-select {
  min-height: 2.2rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--panel-bg) var(--icon-chevron-down) right 0.65rem center / 0.68rem 0.44rem no-repeat;
  color: var(--text-main);
  font-family: var(--ff-data);
  font-size: var(--fs-control);
  font-weight: var(--fw-regular);
  box-shadow: var(--shadow-control);
  cursor: pointer;
}

.push-duration-select {
  appearance: none;
  padding: 0.35rem 1.65rem 0.35rem 0.7rem;
}

.push-choice-list {
  display: grid;
  gap: 0.42rem;
}

.push-radio-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.62rem;
  padding: 0.25rem 0;
  color: var(--text-main);
  cursor: pointer;
}

.push-radio-row input {
  width: 1rem;
  height: 1rem;
  margin: 0.16rem 0 0;
  accent-color: var(--header-text);
}

.push-radio-copy {
  display: grid;
  gap: 0.12rem;
}

.push-radio-title {
  font-size: var(--fs-control);
}

.push-availability-groups {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.push-availability-group {
  display: grid;
  gap: 0.42rem;
}

.push-availability-label {
  color: var(--text-main);
  font-size: var(--fs-control);
  font-weight: var(--fw-medium);
}

.push-time-range-row {
  display: grid;
  grid-template-columns: auto max-content auto max-content;
  align-items: center;
  justify-content: start;
  gap: 0.42rem;
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
}

.push-availability-time-point {
  transition: width 120ms ease;
}

.push-availability-hour-select {
  width: 1.65rem;
}

select.session-time-select.push-availability-hour-select--light {
  width: 4.6rem;
  text-align: left;
}

.push-duration-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  color: var(--text-main);
  font-size: var(--fs-control);
  white-space: nowrap;
  margin-top: 0.18rem;
}

.push-duration-select {
  min-width: 5.75rem;
}

.push-spot-picker {
  position: relative;
}

.push-picker-trigger {
  appearance: none;
  width: max-content;
  min-height: 2.35rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--panel-bg);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--ff-body);
  font-size: var(--fs-control);
  box-shadow: var(--shadow-control);
  cursor: pointer;
}

.push-picker-trigger .nav-chevron {
  flex: 0 0 auto;
}

.push-picker-menu {
  position: absolute;
  top: calc(100% + 0.36rem);
  left: 0;
  z-index: 8;
  width: min(18rem, calc(100vw - 3.5rem));
  max-height: min(27rem, 58vh);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  box-shadow: var(--shadow-flyout);
  overflow: hidden;
}

.push-picker-scroll {
  max-height: inherit;
  padding: 0.55rem;
  overflow-y: auto;
}

.push-picker-heading {
  padding: 0.45rem 0.46rem 0.35rem;
}

.push-picker-separator {
  margin-block: 0.5rem;
}

.push-picker-option.is-selected {
  cursor: default;
  opacity: 1;
}

.push-picker-option.is-selected:hover {
  background: transparent;
}

.push-picker-option-state {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
}

.push-picker-add {
  width: max-content;
}

.push-selected-list {
  display: grid;
  gap: 0.42rem;
}

.push-selected-heading {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
  line-height: 1.35;
}

.push-spot-row {
  width: 100%;
  min-height: 3.45rem;
  padding: 0.12rem 0.38rem 0.12rem 0.72rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--panel-bg);
  color: var(--text-main);
  box-shadow: var(--shadow-control);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.38rem;
  cursor: pointer;
}

.push-spot-row--configured {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.push-spot-open,
.push-spot-chevron-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.push-spot-open {
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.42rem 0;
  display: flex;
  align-items: center;
  text-align: left;
}

.push-spot-chevron-button {
  width: 2rem;
  min-height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.push-spot-row.is-disabled .push-spot-open,
.push-spot-row.is-disabled .push-spot-chevron-button {
  opacity: 0.56;
}

.push-spot-toggle {
  margin-inline: 0.08rem;
}

.push-spot-row-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.push-spot-name {
  font-size: var(--fs-control);
  font-weight: var(--fw-medium);
}

.push-spot-summary {
  color: var(--text-muted);
  font-size: var(--fs-menu-note);
}

.push-row-chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 1.45rem;
  line-height: 1;
}

.push-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
}

.push-segmented button {
  appearance: none;
  min-height: 2.2rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: calc(var(--radius-pill) - 0.14rem);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--ff-body);
  font-size: var(--fs-control);
  font-weight: var(--fw-regular);
  cursor: pointer;
}

.push-segmented button[aria-pressed="true"] {
  background: var(--panel-bg);
  color: var(--text-main);
  box-shadow: var(--shadow-control);
}

.push-surf-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.push-surf-choice {
  appearance: none;
  min-height: 3.25rem;
  padding: 0.42rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--panel-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.push-surf-choice[aria-pressed="true"] {
  border-color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--text-main);
  background: var(--color-surface-muted);
}

.push-surf-choice img {
  width: 1.82rem;
  height: 1.82rem;
  object-fit: contain;
}

.push-range-card,
.push-sector-card {
  display: grid;
  gap: 0.62rem;
}

.push-range-card {
  -webkit-user-select: none;
  user-select: none;
}

.push-control-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.push-range-value,
.push-sector-value {
  color: var(--text-main);
  font-family: var(--ff-data);
  font-size: var(--fs-control);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.push-wind-control {
  width: max-content;
  max-width: 100%;
}

.push-dual-range,
.push-single-range {
  position: relative;
  height: 2.75rem;
  display: flex;
  align-items: center;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.push-range-track {
  position: absolute;
  left: 1.375rem;
  right: 1.375rem;
  top: 50%;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(to right,
    #d5d9df 0 var(--range-start, 0%),
    var(--header-text) var(--range-start, 0%) var(--range-end, 100%),
    #d5d9df var(--range-end, 100%) 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.push-dual-range input,
.push-single-range input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  pointer-events: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
}

.push-dual-range input::-webkit-slider-runnable-track,
.push-single-range input::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.push-dual-range input[data-push-range-side="min"] {
  z-index: 2;
}

.push-dual-range input[data-push-range-side="max"] {
  z-index: 3;
}

.push-dual-range input.is-active,
.push-single-range input.is-active {
  z-index: 4;
}

.push-single-range input {
  pointer-events: auto;
}

.push-dual-range input::-webkit-slider-thumb,
.push-single-range input::-webkit-slider-thumb {
  width: 2.75rem;
  height: 2.75rem;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
}

.push-dual-range input::-moz-range-thumb,
.push-single-range input::-moz-range-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
}

.push-range-handle-visuals {
  position: absolute;
  inset: 0 1.375rem;
  pointer-events: none;
}

.push-range-handle-visual {
  position: absolute;
  top: 50%;
  width: 1.12rem;
  height: 1.12rem;
  box-sizing: border-box;
  border: 2px solid var(--header-text);
  border-radius: 50%;
  background: var(--panel-bg);
  transform: translate(-50%, -50%);
}

.push-range-handle-visual--min {
  left: var(--range-start, 0%);
}

.push-range-handle-visual--max {
  left: var(--range-end, 100%);
}

.push-sector-interaction {
  position: relative;
  width: min(15.5rem, 76vw);
  margin: 0 auto;
  touch-action: pan-y;
}

.push-sector-control {
  width: 100%;
  display: block;
  touch-action: pan-y;
  user-select: none;
}

.push-sector-base {
  fill: #e1e5e9;
  stroke: var(--border-soft);
  stroke-width: 1.5;
}

.push-sector-selection {
  fill: rgba(0, 168, 0, 0.24);
}

.push-sector-axis {
  stroke: rgba(7, 22, 41, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.push-sector-handle {
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.push-sector-handle.is-dragging {
  z-index: 3;
  cursor: grabbing;
}

.push-sector-handle-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.9rem;
  height: 0.9rem;
  border: 2.5px solid var(--header-text);
  border-radius: 50%;
  background: var(--panel-bg);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.push-sector-handle:focus-visible {
  outline: 2px solid var(--focus-ring, #0b65a5);
  outline-offset: -5px;
}

.push-sector-cardinal {
  fill: var(--text-muted);
  font-family: var(--ff-data);
  font-size: 11px;
  text-anchor: middle;
}

.push-glassy-fields {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.1rem;
}

.push-validation {
  color: #c82d35;
  font-size: var(--fs-menu-note);
}

.push-criteria-actions {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.push-criteria-action-stack {
  display: grid;
  justify-items: start;
  gap: 0.48rem;
}

.push-criteria-remove-wrap {
  display: flex;
}

.push-criteria-remove {
  width: auto;
}

#session-overlay.session-overlay--over-push {
  z-index: 74;
}

#session-overlay.session-overlay--push-custom-editor .session-panel-head {
  position: relative;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1rem 0.72rem;
}

#session-overlay.session-overlay--push-custom-editor .site-panel-tabs {
  display: none;
}

#session-overlay.session-overlay--push-custom-editor .session-panel-title {
  position: static;
  width: min(100%, 36rem);
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: var(--text-main);
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: var(--fw-section-title-strong);
  line-height: var(--lh-heading);
  justify-self: center;
}

#session-overlay.session-overlay--push-custom-editor .site-panel-close {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .push-panel-body {
    padding: 1rem 0.9rem max(1.35rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    scroll-padding-bottom: max(1.35rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }

  .push-panel-head .site-panel-close {
    right: 0.65rem;
  }

  #push-panel .push-panel-head {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  #session-overlay.session-overlay--push-custom-editor .site-panel-close {
    right: 0.65rem;
  }

  .push-picker-scroll {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}

@media (max-width: 410px) {
  .push-duration-row {
    gap: 0.32rem;
    font-size: 0.8rem;
  }

  .push-duration-select {
    min-width: 5.35rem;
    padding-inline: 0.55rem 1.4rem;
  }
}

@media (max-width: 360px) {
  .push-duration-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    white-space: normal;
  }
}
