.ig-customer-flow {
  padding: 0.9rem 0 1.2rem;
}

.ig-flow-wrap {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 16px;
}

.ig-flow-card {
  border: 1px solid var(--ig-border);
  border-radius: var(--ig-radius);
  background: #fff;
  padding: clamp(0.95rem, 2.5vw, 1.4rem);
  box-shadow: var(--ig-shadow-sm);
}

.ig-flow-card + .ig-flow-card {
  margin-top: 0.9rem;
}

.ig-flow-card.ig-flow-card-scheduled-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.ig-flow-title {
  margin: 0;
  font-size: clamp(1.4rem, 3.8vw, 2rem);
  line-height: 1.14;
}

.ig-flow-copy {
  margin: 0.52rem 0 0;
  color: var(--ig-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.03rem);
  line-height: 1.55;
}

.ig-flow-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.ig-flow-form[hidden] {
  display: none !important;
}

.ig-flow-label {
  display: grid;
  gap: 0.4rem;
}

.ig-flow-label span {
  color: #1f2937;
  font-size: 0.84rem;
  font-weight: 600;
}

.ig-flow-input,
.ig-flow-select {
  width: 100%;
  border: 1px solid var(--ig-border);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ig-ink);
  padding: 0.62rem 0.74rem;
  font-size: 0.95rem;
  line-height: 1.25;
}

.ig-flow-input:focus-visible,
.ig-flow-select:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.36);
  outline-offset: 1px;
}

.ig-flow-help {
  margin: 0.2rem 0 0;
  color: var(--ig-muted);
  font-size: 0.83rem;
}

.ig-flow-turnstile {
  min-height: 64px;
}

.ig-flow-turnstile > div {
  display: inline-block;
}

.ig-flow-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ig-flow-error {
  margin: 0;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 0.75rem;
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  padding: 0.56rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ig-flow-success {
  margin: 0;
  border: 1px solid rgba(22, 163, 74, 0.26);
  border-radius: 0.75rem;
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  padding: 0.56rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ig-customer-user-menu {
  position: relative;
}

.ig-customer-user-btn {
  border: 1px solid var(--ig-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #132540;
  padding: 0.38rem 0.56rem 0.38rem 0.38rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.ig-customer-user-btn:hover,
.ig-customer-user-btn:focus-visible {
  background: #fff;
}

.ig-customer-user-avatar {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(29, 78, 216, 0.5));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b2a54;
  font-size: 0.7rem;
  font-weight: 700;
}

.ig-customer-user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 190px;
  border: 1px solid var(--ig-border);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--ig-shadow-sm);
  padding: 0.38rem;
  display: grid;
  gap: 0.22rem;
  z-index: 30;
}

.ig-customer-user-panel[hidden] {
  display: none !important;
}

.ig-customer-user-panel a,
.ig-customer-user-panel button {
  border: 0;
  background: transparent;
  color: #1b2f4f;
  border-radius: 0.72rem;
  text-align: left;
  padding: 0.42rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ig-customer-user-panel a:hover,
.ig-customer-user-panel a:focus-visible,
.ig-customer-user-panel button:hover,
.ig-customer-user-panel button:focus-visible {
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.ig-customer-user-panel a.is-active {
  color: #0f2f66;
  background: rgba(37, 99, 235, 0.12);
}

.ig-customer-summary-grid {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.68rem;
}

.ig-customer-metric {
  border: 1px solid var(--ig-border);
  border-radius: 0.78rem;
  background: #fff;
  padding: 0.7rem 0.78rem;
}

.ig-customer-metric span {
  display: block;
  color: var(--ig-muted);
  font-size: 0.78rem;
}

.ig-customer-metric strong {
  display: block;
  margin-top: 0.18rem;
  color: #0f203a;
  font-size: 1.1rem;
}

.ig-flow-state {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 0.8rem;
  background: #f8fafc;
  color: #475569;
  padding: 0.72rem 0.78rem;
  font-size: 0.88rem;
}

.ig-jobs-groups {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.8rem;
}

.ig-services-groups-shell {
  margin-top: 0.9rem;
}

.ig-jobs-day {
  display: grid;
  gap: 0.5rem;
}

.ig-jobs-day-title {
  margin: 0;
  color: #47566f;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ig-jobs-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.ig-job-row {
  border: 1px solid var(--ig-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--ig-shadow-sm);
  padding: 0.85rem;
}

.ig-job-row.is-open {
  border-color: rgba(37, 99, 235, 0.35);
}

.ig-job-row-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.56rem;
  cursor: pointer;
}

.ig-job-row-index {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ig-accent), var(--ig-accent-strong));
}

.ig-job-row-main {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.ig-job-row-title {
  color: #152640;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.ig-job-row-title em {
  color: #475569;
  font-style: normal;
  font-weight: 600;
}

.ig-job-row-title em.is-tone-blue {
  color: #1d4ed8;
}

.ig-job-row-title em.is-tone-orange {
  color: #c2410c;
}

.ig-job-row-title em.is-tone-green {
  color: #15803d;
}

.ig-job-row-title em.is-tone-red {
  color: #b91c1c;
}

.ig-job-row-meta {
  color: #47566f;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ig-job-row-chevron {
  margin-left: auto;
  width: 0.68rem;
  height: 0.68rem;
  border-right: 2px solid rgba(11, 18, 32, 0.72);
  border-bottom: 2px solid rgba(11, 18, 32, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ig-job-row.is-open .ig-job-row-chevron {
  transform: rotate(225deg);
}

.ig-job-panel {
  margin-top: 0.68rem;
  display: grid;
  gap: 0.6rem;
}

.ig-job-panel[hidden] {
  display: none !important;
}

.ig-job-detail-grid {
  display: grid;
  gap: 0.45rem;
}

.ig-job-detail {
  border: 1px solid var(--ig-border);
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.04);
  padding: 0.5rem 0.58rem;
}

.ig-job-detail span {
  color: #4f5f78;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-right: 4px;
}

.ig-job-detail strong {
  color: #1b2e4f;
  font-size: 0.85rem;
}

.ig-customer-reschedule {
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 0.8rem;
  background: rgba(239, 246, 255, 0.72);
  padding: 0.58rem 0.62rem;
  display: grid;
  gap: 0.5rem;
}

.ig-customer-reschedule-head {
  margin: 0;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
}

.ig-customer-reschedule-grid {
  display: grid;
  gap: 0.52rem;
}

.ig-customer-reschedule-grid .ig-flow-label span {
  font-size: 0.78rem;
}

.ig-customer-reschedule-grid .ig-flow-input {
  font-size: 0.85rem;
  padding: 0.54rem 0.62rem;
}

.ig-customer-reschedule-note {
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
}

.ig-customer-reschedule-lock {
  margin: 0;
  color: #92400e;
  font-size: 0.78rem;
}

.ig-customer-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.ig-customer-list-item {
  border: 1px solid var(--ig-border);
  border-radius: 0.82rem;
  background: #fff;
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.26rem;
}

.ig-customer-list-item h3 {
  margin: 0;
  color: #0f203a;
  font-size: 0.95rem;
}

.ig-customer-list-item p {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ig-customer-list-item code {
  font-size: 0.76rem;
}

.ig-customer-status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.1;
}

.ig-customer-status-chip.is-tone-blue,
.ig-customer-status-chip.is-active {
  background: rgba(37, 99, 235, 0.13);
  color: #1d4ed8;
}

.ig-customer-status-chip.is-tone-green,
.ig-customer-status-chip.is-success {
  background: rgba(22, 163, 74, 0.16);
  color: #166534;
}

.ig-customer-status-chip.is-tone-orange,
.ig-customer-status-chip.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.ig-customer-status-chip.is-tone-red {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

.ig-customer-status-chip.is-neutral {
  background: rgba(71, 85, 105, 0.15);
  color: #334155;
}

.ig-job-row.is-target-focus,
.ig-customer-list-item.is-target-focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), var(--ig-shadow-sm);
}

.ig-customer-notification-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.ig-customer-notification-head .ig-btn {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
}

@media (min-width: 760px) {
  .ig-customer-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ig-job-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ig-customer-reschedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .ig-customer-user-btn span:last-child {
    display: none;
  }

  body[data-customer-account="true"] .ig-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand user";
    align-items: center;
    gap: 8px;
  }

  body[data-customer-account="true"] .ig-brand {
    grid-area: brand;
  }

  body[data-customer-account="true"] .ig-customer-user-menu {
    grid-area: user;
    justify-self: end;
  }

  .ig-job-row {
    padding: 0.75rem;
  }

  .ig-job-row-title {
    font-size: 0.95rem;
  }
}
