:root {
  --rep-primary: #00a8ff;
  --rep-action: #0047a4;
  --rep-heading: #050505;
  --rep-body: #5f5f5f;
  --rep-border: #e5e5e5;
  --rep-surface: #f7f6f4;
  --rep-radius-panel: 20px;
  --rep-radius-control: 8px;
}

.rep-finder {
  --rep-primary: #00a8ff;
  --rep-action: #1b5fa7;
  --rep-heading: #111;
  --rep-body: #4e5052;
  --rep-border: #b5b8ba;
  --rep-surface: #fff;
  --rep-radius-panel: 2px;
  --rep-radius-control: 2px;
  background: var(--rep-surface);
  color: var(--rep-body);
  font-family: Inter, "Noto Sans SC", sans-serif;
  padding: 148px 0 72px;
}

.rep-finder *,
.rep-admin * {
  box-sizing: border-box;
}

.rep-finder__inner {
  width: min(1032px, calc(100% - 32px));
  margin: 0 auto;
}

.rep-finder__heading {
  margin-bottom: 24px;
}

.rep-finder__section-title {
  margin-bottom: 52px;
  text-align: center;
}

.rep-finder__section-title h2 {
  margin: 0;
  color: var(--rep-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
}

.rep-finder__section-title span {
  display: block;
  width: 62px;
  height: 6px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: #00a8ff;
}

.rep-finder__heading h3,
.rep-finder__state h3,
.rep-card h3,
.rep-admin__toolbar h1 {
  color: var(--rep-heading);
  margin-top: 0;
}

.rep-finder__heading h3 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.rep-finder__heading p {
  max-width: 720px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.rep-finder__workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 768px);
  gap: 24px;
  align-items: start;
  margin: 0;
}

.rep-finder__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.rep-finder__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--rep-heading);
  font-size: 12px;
  font-weight: 500;
}

.rep-finder__field input,
.rep-finder__field select {
  width: 100%;
  height: 29px;
  min-height: 29px;
  border: 1px solid var(--rep-border);
  border-radius: var(--rep-radius-control);
  background: #fff;
  color: var(--rep-heading);
  font: 400 11px/1.2 Inter, "Noto Sans SC", sans-serif;
  font-weight: 400;
  padding: 4px 28px 4px 9px;
}

.rep-finder__field select:disabled {
  cursor: not-allowed;
  background: #efefef;
  color: #8a8a8a;
}

.rep-finder__field input:focus-visible,
.rep-finder__field select:focus-visible,
.rep-finder button:focus-visible,
.rep-finder a:focus-visible,
.rep-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--rep-primary) 55%, transparent);
  outline-offset: 2px;
}

.rep-finder__reset,
.rep-finder__state button,
.rep-card__actions button,
.rep-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rep-finder__reset {
  width: 101px;
  min-height: 29px;
  margin-top: 2px;
  padding: 4px 20px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.rep-finder__reset:hover {
  border-color: var(--rep-primary);
  background: var(--rep-primary);
}

.rep-finder button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.rep-finder__inline-error,
.rep-admin__places-error {
  margin: 7px 0 0;
  color: #a23a32;
  font-size: 11px;
  line-height: 1.35;
}

.rep-finder__map-column {
  min-width: 0;
}

.rep-finder__address-search {
  position: absolute;
  z-index: 3;
  inset-block-start: 12px;
  inset-inline: 12px;
  display: block;
  height: 39px;
  margin: 0;
}

.rep-finder__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.rep-finder__places-host,
.rep-finder__places-host gmp-place-autocomplete {
  display: block;
  width: 100%;
  height: 39px;
}

.rep-finder__places-host gmp-place-autocomplete,
.rep-finder__address-search > input {
  width: 100%;
  min-height: 39px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 5px rgb(0 0 0 / 24%);
  color: #222;
  font: 400 12px/1.2 Inter, "Noto Sans SC", sans-serif;
}

.rep-finder__address-search > input {
  padding: 9px 46px 9px 18px;
}

.rep-finder__address-submit {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: grid;
  width: 42px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #202124;
  cursor: pointer;
  place-items: center;
}

.rep-finder__address-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.rep-finder__map-shell {
  position: relative;
  width: 100%;
  height: 331px;
  min-height: 331px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #d8d8d8;
}

.rep-finder__map {
  width: 100%;
  height: 331px;
}

.rep-finder__map-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #f1f1f1, #e5e5e5);
  color: var(--rep-body);
  padding: 64px 24px 24px;
  text-align: center;
}

.rep-finder__map-unavailable strong {
  color: var(--rep-heading);
  font-size: 16px;
}

.rep-finder__results-heading {
  min-height: 22px;
  margin: 26px 0 13px;
  color: var(--rep-heading);
  font-size: 18px;
  font-weight: 500;
}

.rep-finder__results-heading p {
  margin: 0;
}

.rep-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 240px));
  column-gap: 24px;
  row-gap: 21px;
}

.rep-card {
  min-width: 0;
  min-height: 190px;
  padding: 12px;
  border: 1px solid var(--rep-border);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  transition: border-color 140ms ease;
}

.rep-card.is-active {
  border-color: var(--rep-primary);
  box-shadow: inset 0 0 0 1px var(--rep-primary);
}

.rep-card h3 {
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rep-card__identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 7px;
}

.rep-card__identity-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.rep-card__avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  object-fit: cover;
}

.rep-card__role {
  margin: 0 0 2px;
  color: #64676a;
  font-size: 10px;
  line-height: 1.35;
}

.rep-card__company {
  margin: 0 0 7px;
  color: var(--rep-heading);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.rep-card__identity .rep-card__company {
  margin-bottom: 0;
}

.rep-card address {
  margin: 0 0 9px;
  color: #55585a;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.rep-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 9px;
}

.rep-card__actions button,
.rep-card__actions a {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rep-action);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.rep-card__actions button:hover,
.rep-card__actions a:hover,
.rep-card__links a:hover {
  color: var(--rep-primary);
  text-decoration: underline;
}

.rep-card__actions svg,
.rep-card__links svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rep-card__links {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rep-card__links li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--rep-action);
  font-size: 10px;
  line-height: 1.3;
}

.rep-card__links a {
  min-width: 0;
  color: var(--rep-action);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.rep-finder__state {
  padding: 36px 24px;
  border: 1px solid var(--rep-border);
  border-radius: 2px;
  background: #fff;
  text-align: center;
}

.rep-finder__state button {
  min-height: 29px;
  padding: 5px 18px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-size: 11px;
}

.rep-finder__state h3 {
  margin-bottom: 10px;
}

.rep-finder__state p {
  margin: 0 auto 22px;
}

.rep-card--skeleton {
  pointer-events: none;
}

.rep-card--skeleton span {
  display: block;
  height: 16px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: rep-skeleton 1.25s linear infinite;
}

.rep-card--skeleton span:first-child { width: 36%; }
.rep-card--skeleton span:nth-child(2) { width: 72%; height: 24px; }
.rep-card--skeleton span:nth-child(3) { width: 88%; }
.rep-card--skeleton span:nth-child(4) { width: 60%; }

@keyframes rep-skeleton {
  to { background-position: -200% 0; }
}

.rep-admin {
  color: var(--rep-body);
  font-family: Inter, "Noto Sans SC", sans-serif;
}

.rep-admin__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.rep-admin__toolbar h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

.rep-admin__toolbar p {
  margin: 0;
}

.rep-admin__table {
  width: 100%;
  margin-top: 20px;
}

.rep-admin__table-avatar {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.rep-admin__avatar-empty {
  color: #a4a7aa;
}

.rep-admin__delete {
  color: #c33b32 !important;
}

.rep-admin__pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.rep-admin__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.rep-admin__span-2 {
  grid-column: 1 / -1;
}

.rep-admin__form .el-select {
  width: 100%;
}

.rep-admin__avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rep-admin__avatar-preview {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  border: 1px solid #d7d9dc;
  border-radius: 50%;
  background: #f4f5f6;
  color: #85898d;
  font-size: 11px;
  text-align: center;
  place-items: center;
}

.rep-admin__avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rep-admin__avatar-controls {
  min-width: 0;
}

.rep-admin__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rep-admin__avatar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rep-admin__avatar-filename {
  margin: 7px 0 0;
  color: #34373a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rep-admin__places-error {
  margin: 6px 0 0;
  padding: 0;
}

.rep-admin__places-host gmp-place-autocomplete {
  display: block;
  width: 100%;
}

.rep-admin__places-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.rep-admin__text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rep-action);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rep-admin__text-action:hover {
  color: #00377f;
}

.rep-admin__text-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.rep-admin__text-action:focus-visible {
  outline: 2px solid var(--rep-primary);
  outline-offset: 3px;
}

.rep-admin__form-help {
  margin: 6px 0 0;
  color: #73777a;
  font-size: 12px;
  line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .rep-finder__workspace {
    grid-template-columns: 1fr;
  }

  .rep-finder__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 101px;
    align-items: end;
    gap: 16px;
  }

  .rep-finder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rep-finder {
    padding: 72px 0 56px;
  }

  .rep-finder__inner {
    width: calc(100% - 32px);
  }

  .rep-finder__section-title {
    margin-bottom: 42px;
  }

  .rep-finder__section-title h2 {
    font-size: 34px;
  }

  .rep-finder__workspace,
  .rep-finder__controls,
  .rep-finder__grid,
  .rep-admin__form-grid {
    grid-template-columns: 1fr;
  }

  .rep-finder__workspace {
    gap: 20px;
  }

  .rep-finder__controls {
    display: grid;
  }

  .rep-finder__reset {
    width: 101px;
  }

  .rep-card {
    min-height: 0;
  }

  .rep-admin__span-2 {
    grid-column: auto;
  }

  .rep-finder__map-shell,
  .rep-finder__map {
    min-height: 320px;
    height: 320px;
  }

  .rep-admin__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rep-admin__avatar-editor {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rep-finder *,
  .rep-finder *::before,
  .rep-finder *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
