.technician-profile {
  --technician-ink: #18302a;
  --technician-muted: #52675e;
  --technician-green: #1c6247;
  --technician-border: #dce6e0;
  container: technician-profile / inline-size;
  margin: 0 auto 2rem;
  color: var(--technician-ink);
  font-family: "Gothic A1", sans-serif;
  line-height: 1.5;
}

.technician-profile__back,
.technician-profile__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  border-radius: .375rem;
  font-size: .875rem;
  font-weight: 700;
}

.technician-profile__back {
  margin-top: 1.125rem;
  padding: .5rem .625rem;
  color: var(--technician-green);
}

.technician-profile__back:hover {
  background: #deeee3;
  color: #134831;
  text-decoration: none;
}

.technician-profile__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 9.5rem;
  padding: 1.625rem;
  color: #fff;
}

.technician-profile__identity {
  display: flex;
  flex: 1 1 24rem;
  align-items: center;
  gap: 1.125rem;
}

.technician-profile__identity,
.technician-profile__heading,
.technician-profile__panel,
.technician-profile__details > div {
  min-width: 0;
}

.technician-profile__icon {
  display: grid;
  flex: 0 0 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid #caefda40;
  border-radius: .75rem;
  background: #e1ffea12;
  color: #c0e9cf;
  font-size: 1.5rem;
}

.technician-profile__meta,
.technician-profile__id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.technician-profile__meta { margin-bottom: .375rem; }

.technician-profile__id {
  margin: 0;
  color: #c7e9d5;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.technician-profile__id span {
  padding: .15rem .45rem;
  border: 1px solid #caefda40;
  border-radius: .25rem;
  letter-spacing: .035em;
  font-variant-numeric: tabular-nums;
}

.technician-status-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 1rem;
  background: #d9f1e3;
  color: #174a34;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.technician-status-badge[data-active="false"] {
  background: #f3e5df;
  color: #763e31;
}

.technician-profile__heading h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.5rem, 4.1cqi, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.technician-profile__edit {
  padding: .65rem 1rem;
  border: 1px solid #d3ebdb;
  background: #eaf7ee;
  color: #153e2d;
}

.technician-profile__edit:hover {
  background: #fff;
  color: #153e2d;
  text-decoration: none;
}

.technician-profile a:focus-visible {
  outline: 2px solid var(--technician-green);
  outline-offset: 3px;
}

.technician-profile .technician-profile__edit:focus-visible { outline-color: #fff; }

.technician-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.125rem;
  margin-top: 1.125rem;
}

.technician-profile__panel {
  padding: 1.375rem;
  border: 1px solid var(--technician-border);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 2px 4px #102f2608;
}

.technician-profile__panel h2 {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 .9rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--technician-border);
  color: var(--technician-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.technician-profile__panel h2 i {
  color: var(--technician-green);
  font-size: 1rem;
}

.technician-profile__details {
  display: grid;
  gap: .9rem 1.25rem;
  margin: 0;
}

.technician-profile__details dt {
  margin-bottom: .15rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
}

.technician-profile__details dd {
  margin: 0;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.technician-profile__empty { color: var(--technician-muted); }

@container technician-profile (min-width: 42rem) {
  .technician-profile__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .technician-profile__details--general { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technician-profile__details--general > :first-child { grid-column: 1 / -1; }
}

@container technician-profile (max-width: 30rem) {
  .technician-profile__header,
  .technician-profile__panel { padding: 1rem; }

  .technician-profile__identity {
    flex-basis: 100%;
    align-items: flex-start;
    gap: .75rem;
  }

  .technician-profile__icon {
    flex-basis: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
  }
}
