:root {
  --tps-bg: #f6f7f9;
  --tps-surface: #ffffff;
  --tps-surface-muted: #f9fafb;
  --tps-border: #d9dee5;
  --tps-border-soft: #e8ebef;
  --tps-text: #1f2933;
  --tps-muted: #667085;
  --tps-accent: #6a8274;
  --tps-accent-dark: #5f7568;
  --tps-accent-soft: #eef4f0;
  --tps-success: #16803c;
  --tps-success-soft: #ecfdf3;
  --tps-danger: #b42318;
  --tps-danger-soft: #fff1f0;
  --tps-warning-soft: #fff7e6;
  --tps-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  --tps-shadow-soft: 0 4px 14px rgba(16, 24, 40, 0.06);
}

.tps-dashboard,
.tps-directory,
.tps-account,
.tps-profile,
.tps-company,
.tps-search {
  box-sizing: border-box;
  color: var(--tps-text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1400px;
  padding: 24px;
}

.tps-dashboard *,
.tps-directory *,
.tps-account *,
.tps-profile *,
.tps-company *,
.tps-search *,
.tps-dashboard *::before,
.tps-dashboard *::after,
.tps-directory *::before,
.tps-directory *::after,
.tps-account *::before,
.tps-account *::after,
.tps-profile *::before,
.tps-profile *::after,
.tps-company *::before,
.tps-company *::after,
.tps-search *::before,
.tps-search *::after {
  box-sizing: border-box;
}

.tps-dashboard :where(a, button, input, select, textarea),
.tps-directory :where(a, button, input, select, textarea),
.tps-account :where(a, button, input, select, textarea),
.tps-profile :where(a, button, input, select, textarea),
.tps-company :where(a, button, input, select, textarea),
.tps-search :where(a, button, input, select, textarea) {
  font-family: inherit;
}

.tps-dashboard h1,
.tps-account h1,
.tps-profile h1,
.tps-company h1 {
  color: var(--tps-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
}

.tps-dashboard h2,
.tps-directory h2,
.tps-account h2,
.tps-profile h2,
.tps-company h2 {
  color: var(--tps-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.tps-dashboard p,
.tps-directory p,
.tps-account p,
.tps-profile p,
.tps-company p {
  color: var(--tps-muted);
  margin: 0 0 14px;
}

.tps-dashboard__shell {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 238px minmax(0, 1fr);
}

.tps-dashboard__mobile-bar,
.tps-dashboard__sidebar-backdrop,
.tps-dashboard__sidebar-close {
  display: none;
}

.tps-dashboard__sidebar {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  box-shadow: var(--tps-shadow-soft);
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 14px;
  position: sticky;
  top: 112px;
}

.tps-dashboard__brand {
  align-items: center;
  border-bottom: 1px solid var(--tps-border-soft);
  color: var(--tps-text);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 4px 6px 12px;
}

.tps-dashboard__nav {
  display: grid;
  gap: 4px;
}

.tps-dashboard__nav-link {
  border-radius: 6px;
  color: #344054;
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  text-decoration: none;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.tps-dashboard__nav-link:hover,
.tps-dashboard__nav-link:focus {
  background: var(--tps-surface-muted);
  color: var(--tps-accent-dark);
}

.tps-dashboard__nav-link.is-active {
  background: var(--tps-accent-soft);
  color: var(--tps-accent-dark);
}

.tps-dashboard__content {
  min-width: 0;
}

.tps-panel,
.tps-directory__item {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  box-shadow: var(--tps-shadow-soft);
  padding: 20px;
}

.tps-taxonomy-dashboard {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  box-shadow: var(--tps-shadow-soft);
  padding: 20px;
}

.tps-taxonomy-header {
  margin-bottom: 0;
}

.tps-taxonomy-header p {
  max-width: 760px;
}

.tps-table-filters--single {
  grid-template-columns: minmax(180px, 1fr);
}

.tps-table-filters--taxonomy {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px);
  margin-bottom: 18px;
}

.tps-taxonomy-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tps-taxonomy-card {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  box-shadow: var(--tps-shadow-soft);
  padding: 16px;
}

.tps-taxonomy-card h2 {
  margin-bottom: 10px;
}

.tps-taxonomy-card__summary {
  align-items: center;
  color: var(--tps-text);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.3;
  list-style: none;
}

.tps-taxonomy-card__summary::-webkit-details-marker {
  display: none;
}

.tps-taxonomy-card__summary i {
  color: var(--tps-muted);
  font-size: 11px;
  transition: transform 0.18s ease;
}

.tps-taxonomy-card[open] .tps-taxonomy-card__summary {
  margin-bottom: 10px;
}

.tps-taxonomy-card[open] .tps-taxonomy-card__summary i {
  transform: rotate(180deg);
}

.tps-taxonomy-card form {
  margin: 0;
}

.tps-taxonomy-add-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
}

.tps-taxonomy-add-form .tps-field {
  margin-top: 0;
}

.tps-taxonomy-add-form--specialism {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
}

.tps-taxonomy-card .tps-table-wrap {
  margin-top: 12px;
}

.tps-taxonomy-card .tps-table {
  min-width: 0;
}

.tps-taxonomy-card .tps-table th,
.tps-taxonomy-card .tps-table td {
  padding: 8px 10px;
}

.tps-taxonomy-card .tps-table th:last-child,
.tps-taxonomy-card .tps-table td:last-child {
  text-align: center;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

.tps-taxonomy-card .tps-table td:last-child form {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tps-taxonomy-card .tps-inline-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.tps-taxonomy-card .tps-inline-form input,
.tps-taxonomy-card .tps-inline-form select {
  appearance: none;
  background: var(--tps-surface);
  border: 1px solid #c8d0da;
  border-radius: 6px;
  color: var(--tps-text);
  font-size: 13px;
  line-height: 1.4;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.tps-taxonomy-card .tps-inline-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%),
    linear-gradient(to right, #e4e7ec, #e4e7ec);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px,
    1px 18px;
  padding-right: 44px;
}

.tps-taxonomy-card .tps-inline-form input:focus,
.tps-taxonomy-card .tps-inline-form select:focus {
  border-color: var(--tps-accent);
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.12);
  outline: 0;
}

.tps-taxonomy-card .tps-button {
  min-height: 34px;
  padding: 7px 12px;
}

.tps-taxonomy-delete-button {
  background: var(--tps-surface);
  border-color: #fecdca;
  color: var(--tps-danger);
}

.tps-taxonomy-delete-button:hover,
.tps-taxonomy-delete-button:focus {
  background: var(--tps-danger-soft);
  border-color: #fda29b;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
  color: var(--tps-danger);
}

.tps-location-dashboard {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  box-shadow: var(--tps-shadow-soft);
  padding: 20px;
}

.tps-location-header {
  margin-bottom: 0;
}

.tps-location-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tps-location-card {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  box-shadow: var(--tps-shadow-soft);
  padding: 16px;
}

.tps-location-card h2 {
  margin-bottom: 10px;
}

.tps-location-card form {
  margin: 0;
}

.tps-location-add-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: none;
}

.tps-location-add-form--city {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
}

.tps-location-add-form .tps-field {
  margin-top: 0;
}

.tps-location-list {
  margin-top: 18px;
}

.tps-location-list .tps-table-wrap {
  margin-top: 12px;
}

.tps-location-list .tps-table {
  min-width: 780px;
}

.tps-location-list .tps-table th:last-child,
.tps-location-list .tps-table td:last-child {
  text-align: center;
  vertical-align: middle;
  width: 1%;
  white-space: nowrap;
}

.tps-location-list .tps-table td:last-child form {
  align-items: center;
  display: flex;
  justify-content: center;
}

.tps-location-list .tps-location-inline-form {
  align-items: center;
  display: grid;
  gap: 8px;
}

.tps-location-list .tps-location-inline-form--country {
  grid-template-columns: minmax(150px, 1fr) auto;
}

.tps-location-list .tps-location-inline-form--city {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 220px) auto;
}

.tps-location-list .tps-inline-form input,
.tps-location-list .tps-inline-form select {
  appearance: none;
  background: var(--tps-surface);
  border: 1px solid #c8d0da;
  border-radius: 6px;
  color: var(--tps-text);
  font-size: 13px;
  line-height: 1.4;
  min-height: 34px;
  padding: 7px 9px;
  width: 100%;
}

.tps-location-list .tps-inline-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%),
    linear-gradient(to right, #e4e7ec, #e4e7ec);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px,
    1px 18px;
  padding-right: 44px;
}

.tps-location-list .tps-inline-form input:focus,
.tps-location-list .tps-inline-form select:focus {
  border-color: var(--tps-accent);
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.12);
  outline: 0;
}

.tps-location-list .tps-button,
.tps-location-delete-button {
  min-height: 34px;
  padding: 7px 12px;
}

.tps-location-delete-button {
  background: var(--tps-surface);
  border-color: #fecdca;
  color: var(--tps-danger);
}

.tps-location-delete-button:hover,
.tps-location-delete-button:focus {
  background: var(--tps-danger-soft);
  border-color: #fda29b;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
  color: var(--tps-danger);
}

.tps-taxonomy-specialisms {
  margin-top: 18px;
}

.tps-taxonomy-specialisms .tps-inline-form {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 220px) auto;
}

.tps-taxonomy-branches {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tps-taxonomy-branch {
  background: var(--tps-surface-muted);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.tps-taxonomy-branch summary {
  align-items: center;
  color: var(--tps-text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 40px;
  padding: 9px 12px;
}

.tps-taxonomy-branch summary::-webkit-details-marker {
  display: none;
}

.tps-taxonomy-branch summary i {
  color: var(--tps-muted);
  font-size: 11px;
  transition: transform 0.18s ease;
}

.tps-taxonomy-branch[open] summary i {
  transform: rotate(180deg);
}

.tps-taxonomy-branch .tps-table-wrap {
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  margin-top: 0;
}

.tps-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
}

.tps-stat-grid--single {
  grid-template-columns: minmax(220px, 320px);
  margin-bottom: 16px;
}

.tps-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  padding: 16px;
}

.tps-stat-card span {
  color: var(--tps-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tps-stat-card strong {
  color: var(--tps-text);
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tps-membership-card,
.tps-details {
  background: var(--tps-surface-muted);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

.tps-membership-card {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.tps-membership-card h2 {
  margin-top: 0;
}

.tps-table-wrap {
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  margin-top: 14px;
  overflow-x: auto;
}

.tps-table-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(130px, 180px));
  margin-top: 14px;
}

.tps-table-filters--compact {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px);
}

.tps-table-filters .tps-field {
  margin-top: 0;
}

.tps-muted {
  color: var(--tps-muted);
  font-size: 13px;
  margin: 0;
}

.tps-table {
  background: var(--tps-surface);
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  min-width: 860px;
  table-layout: auto;
  width: 100%;
}

.tps-table th,
.tps-table td {
  border-bottom: 1px solid var(--tps-border-soft);
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.tps-table th {
  background: var(--tps-surface-muted);
  color: #344054;
  font-weight: 800;
  white-space: nowrap;
}

.tps-table td {
  color: #344054;
  font-weight: 500;
}

.tps-table tbody tr:hover {
  background: #fbfdff;
}

.tps-table tbody tr:last-child td {
  border-bottom: 0;
}

.tps-pagination {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  margin-top: 12px;
}

.tps-pagination__summary {
  color: var(--tps-muted);
  font-size: 12px;
  font-weight: 700;
}

.tps-pagination__controls,
.tps-pagination__pages {
  align-items: center;
  display: flex;
  gap: 6px;
}

.tps-pagination__button {
  align-items: center;
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 6px;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 7px 9px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.tps-pagination__button:hover,
.tps-pagination__button:focus,
.tps-pagination__button.is-active {
  background: var(--tps-accent);
  border-color: var(--tps-accent);
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.1);
  color: #ffffff;
  outline: 0;
}

.tps-pagination__button:disabled {
  background: var(--tps-surface-muted);
  border-color: var(--tps-border-soft);
  box-shadow: none;
  color: #98a2b3;
  cursor: not-allowed;
}

.tps-pagination__ellipsis {
  color: var(--tps-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 2px;
}

.tps-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tps-row-actions form {
  margin: 0;
}

.tps-link-button {
  background: transparent;
  border: 0;
  color: var(--tps-accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  text-decoration: none;
}

.tps-link-button .fa,
.tps-button .fa {
  margin-right: 6px;
  text-align: center;
  width: 14px;
}

.tps-icon-button {
  align-items: center;
  background: var(--tps-surface-muted);
  border: 1px solid var(--tps-border-soft);
  border-radius: 6px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-width: 32px;
  padding: 0;
  position: relative;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

.tps-icon-button .fa {
  font-size: 14px;
  margin-right: 0;
}

.tps-link-button:hover,
.tps-link-button:focus {
  color: var(--tps-accent-dark);
  text-decoration: underline;
}

.tps-icon-button:hover,
.tps-icon-button:focus {
  background: var(--tps-accent-soft);
  border-color: #bfd9f4;
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.1);
  outline: 0;
  text-decoration: none;
}

.tps-icon-button::after {
  background: #101828;
  border-radius: 5px;
  bottom: calc(100% + 8px);
  color: #ffffff;
  content: attr(data-tps-tooltip);
  font-size: 11px;
  font-weight: 800;
  left: 50%;
  line-height: 1;
  opacity: 0;
  padding: 7px 8px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  visibility: hidden;
  white-space: nowrap;
  z-index: 20;
}

.tps-icon-button::before {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #101828;
  bottom: calc(100% + 3px);
  content: "";
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
  visibility: hidden;
  z-index: 21;
}

.tps-icon-button:hover::after,
.tps-icon-button:focus::after,
.tps-icon-button:hover::before,
.tps-icon-button:focus::before {
  opacity: 1;
  visibility: visible;
}

.tps-icon-button:hover::after,
.tps-icon-button:focus::after {
  transform: translate(-50%, 0);
}

.tps-link-button--danger {
  color: var(--tps-danger);
}

.tps-link-button--danger:hover,
.tps-link-button--danger:focus {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.tps-button,
.tps-account .button,
.tps-account button,
.tps-search button {
  align-items: center;
  appearance: none;
  background: var(--tps-accent);
  border: 1px solid var(--tps-accent);
  border-radius: 6px;
  box-shadow: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
  text-transform: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  white-space: nowrap;
}

.tps-button:hover,
.tps-button:focus,
.tps-account .button:hover,
.tps-account .button:focus,
.tps-account button:hover,
.tps-account button:focus,
.tps-search button:hover,
.tps-search button:focus {
  background: var(--tps-accent-dark);
  border-color: var(--tps-accent-dark);
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.14);
  color: #ffffff;
}

.tps-button--secondary {
  background: var(--tps-surface);
  border-color: var(--tps-border);
  color: var(--tps-accent);
}

.tps-button--secondary:hover,
.tps-button--secondary:focus {
  background: var(--tps-accent-soft);
  border-color: #bfd9f4;
  color: var(--tps-accent-dark);
}

.tps-button--danger {
  background: var(--tps-danger);
  border-color: var(--tps-danger);
  color: #ffffff;
}

.tps-button--danger:hover,
.tps-button--danger:focus {
  background: #8f1c14;
  border-color: #8f1c14;
  color: #ffffff;
}

.tps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tps-account__header {
  margin-bottom: 22px;
}

.tps-account__header p {
  max-width: 720px;
}

.tps-account__footer {
  margin-top: 16px;
}

.tps-alert {
  background: var(--tps-danger-soft);
  border: 1px solid #ffd0cc;
  border-left: 4px solid var(--tps-danger);
  border-radius: 6px;
  color: var(--tps-text);
  font-size: 13px;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.tps-alert--success {
  background: var(--tps-success-soft);
  border-color: #bdecc8;
  border-left-color: var(--tps-success);
}

.tps-step-form,
.tps-settings-form {
  display: grid;
  gap: 16px;
}

.tps-settings-form {
  max-width: 420px;
}

.tps-admin-settings-form {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
  max-width: none;
}

.tps-admin-settings-form__main {
  display: grid;
  gap: 16px;
}

.tps-admin-settings-form__media {
  margin-top: 0;
}

.tps-step-form__step {
  background: var(--tps-surface-muted);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0;
  min-inline-size: 0;
  min-width: 0;
  padding: 16px;
  width: 100%;
}

.tps-step-form__step legend {
  color: var(--tps-text);
  font-size: 13px;
  font-weight: 800;
  padding: 0 8px;
}

.tps-choice-grid,
.tps-form-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.tps-choice-grid label {
  background: var(--tps-surface);
  border: 1px solid var(--tps-border-soft);
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
}

.tps-field {
  align-content: start;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  min-width: 0;
}

.tps-profile-filter-grid .tps-field--wide {
  grid-column: 1 / -1;
}

.tps-profile-filter-grid,
.tps-checkbox-list--tree {
  align-items: start;
}

.tps-field span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.tps-field input,
.tps-field select,
.tps-field textarea,
.tps-search input {
  appearance: none;
  background: var(--tps-surface);
  border: 1px solid #c8d0da;
  border-radius: 6px;
  box-shadow: none;
  color: var(--tps-text);
  font-size: 13px;
  line-height: 1.4;
  max-width: none;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.tps-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%),
    linear-gradient(to right, #e4e7ec, #e4e7ec);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px,
    1px 18px;
  cursor: pointer;
  padding-right: 44px;
}

.tps-field select:hover {
  border-color: #98b9db;
}

.tps-field textarea {
  min-height: 88px;
  resize: vertical;
}

.tps-field input:focus,
.tps-field select:focus,
.tps-field textarea:focus,
.tps-search input:focus {
  border-color: var(--tps-accent);
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.12);
  outline: 0;
}

.tps-checkbox {
  align-items: center;
  color: var(--tps-muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

.tps-checkbox input {
  margin: 0;
}

.tps-checkbox-list {
  background: #f8fafc;
  border: 1px solid var(--tps-border-soft);
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 9px;
}

.tps-checkbox-option {
  align-items: center;
  background: var(--tps-surface);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  margin: 0;
  min-height: 34px;
  padding: 7px 10px;
}

.tps-checkbox-option input[type='checkbox'] {
  accent-color: var(--tps-accent);
  appearance: auto;
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
}

.tps-checkbox-option span,
.tps-checkbox-option strong {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.tps-checkbox-option:hover {
  border-color: #98b9db;
}

.tps-checkbox-list--split {
  gap: 12px;
}

.tps-checkbox-list--split > div {
  display: grid;
  gap: 7px;
}

.tps-checkbox-list__title {
  color: #344054;
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.tps-checkbox-list__inline,
.tps-checkbox-list--flex {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tps-checkbox-list__inline .tps-checkbox-option,
.tps-checkbox-list--flex .tps-checkbox-option {
  flex: 0 0 auto;
  min-width: 128px;
}

.tps-checkbox-list--tree {
  background: transparent;
  border: 0;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.tps-checkbox-list__group {
  align-content: start;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.tps-current-availability-field {
  margin-top: 0;
}

.tps-current-availability-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tps-current-availability-option {
  align-items: center;
  background: var(--tps-surface);
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  min-height: 30px;
  padding: 6px 8px;
}

.tps-current-availability-option input[type='radio'] {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.tps-current-availability-option span:last-child {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.tps-current-availability-option:hover,
.tps-current-availability-option:has(input:checked) {
  border-color: rgba(106, 130, 116, 0.45);
  box-shadow: 0 0 0 3px rgba(106, 130, 116, 0.08);
}

.tps-current-availability-option--accepting_new_clients:has(input:checked) {
  background: #edf8ef;
  border-color: #9ed6a7;
}

.tps-current-availability-option--limited_availability:has(input:checked) {
  background: #fff3eb;
  border-color: #ffc49b;
}

.tps-current-availability-option--waiting_list:has(input:checked) {
  background: #fff1f1;
  border-color: #ff9b9b;
}

.tps-status-dot {
  background: #6b7280;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.tps-current-availability-option--accepting_new_clients .tps-status-dot,
.tps-profile-tag--accepting_new_clients .tps-status-dot {
  background: #2e9b3f;
}

.tps-current-availability-option--limited_availability .tps-status-dot,
.tps-profile-tag--limited_availability .tps-status-dot {
  background: #f26b21;
}

.tps-current-availability-option--waiting_list .tps-status-dot,
.tps-profile-tag--waiting_list .tps-status-dot {
  background: #e00000;
}

.tps-checkbox-list__group summary {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #bfdcf5;
  border-radius: 9px;
  color: #0f2748;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  padding: 8px 10px;
}

.tps-checkbox-list__group summary::-webkit-details-marker {
  display: none;
}

.tps-checkbox-list__group summary i {
  color: #667085;
  font-size: 11px;
  transition: transform 0.18s ease;
}

.tps-checkbox-list__group[open] summary i {
  transform: rotate(180deg);
}

.tps-checkbox-option--parent {
  background: #f6fbff;
  border-color: #d8eafa;
  min-height: 34px;
}

.tps-checkbox-list__children {
  display: grid;
  gap: 7px;
  padding-left: 14px;
}

.tps-empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #667085 !important;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  padding: 9px 10px;
}

.tps-checkbox-option--child {
  background: #fff;
  position: relative;
}

.tps-checkbox-option--child::before {
  background: #d0d5dd;
  content: '';
  height: 1px;
  left: -14px;
  position: absolute;
  top: 50%;
  width: 10px;
}

.tps-package-list {
  color: var(--tps-muted);
  margin: 0 0 16px 18px;
}

.tps-details summary {
  color: var(--tps-text);
  cursor: pointer;
  font-weight: 800;
}

.tps-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms;
  visibility: hidden;
  z-index: 99999;
}

.tps-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

.tps-modal__backdrop {
  background: rgba(15, 23, 42, 0.58);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.tps-modal[aria-hidden="false"] .tps-modal__backdrop {
  opacity: 1;
}

.tps-modal__dialog {
  background: var(--tps-surface);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.34);
  margin: 5vh auto;
  max-height: 90vh;
  max-width: 780px;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 190ms ease,
    transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: calc(100% - 32px);
}

.tps-modal[aria-hidden="false"] .tps-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tps-modal__dialog form {
  display: grid;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.tps-modal__dialog form > .tps-button[type="submit"] {
  justify-self: flex-start;
  margin-top: 6px;
}

.tps-modal__header {
  align-items: center;
  border-bottom: 1px solid var(--tps-border-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.tps-modal__header h2 {
  font-size: 16px;
  margin: 0;
}

.tps-modal__close {
  align-items: center;
  background: var(--tps-surface-muted);
  border: 1px solid var(--tps-border-soft);
  border-radius: 6px;
  color: var(--tps-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.tps-modal__close:hover,
.tps-modal__close:focus {
  background: var(--tps-accent-soft);
  border-color: #bfd9f4;
  color: var(--tps-accent-dark);
  outline: 0;
}

.tps-confirm-modal__dialog {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  max-width: 460px;
}

.tps-confirm-modal__icon {
  align-items: center;
  background: var(--tps-danger-soft);
  border: 1px solid #ffd0cc;
  border-radius: 8px;
  color: var(--tps-danger);
  display: inline-flex;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.tps-confirm-modal__body h2 {
  color: var(--tps-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}

.tps-confirm-modal__body p {
  color: var(--tps-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.tps-confirm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.tps-modal-open {
  overflow: hidden;
}

.tps-sidebar-open {
  overflow: hidden;
}

.tps-detail-list {
  display: grid;
  gap: 0;
  grid-template-columns: 160px minmax(0, 1fr);
  margin: 0;
}

.tps-detail-list dt,
.tps-detail-list dd {
  border-bottom: 1px solid var(--tps-border-soft);
  font-size: 13px;
  margin: 0;
  padding: 10px 0;
}

.tps-detail-list dt {
  color: #344054;
  font-weight: 800;
  padding-right: 16px;
}

.tps-detail-list dd {
  color: var(--tps-text);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tps-preview-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  height: 92px;
  margin: 0 0 16px;
  object-fit: cover;
  width: 92px;
}

.tps-preview-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tps-preview-list li {
  background: #f8fafc;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.tps-preview-list span {
  color: #4d5b75;
  font-size: 12px;
  font-weight: 700;
}

.tps-toast-region {
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 100000;
}

.tps-toast {
  background: #111827;
  border-radius: 8px;
  box-shadow: var(--tps-shadow);
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  padding: 12px 14px;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.tps-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tps-directory__list {
  display: grid;
  gap: 14px;
}

.tps-search {
  align-items: end;
  display: flex;
  gap: 12px;
}

.tps-search label {
  display: grid;
  flex: 1 1 260px;
  gap: 6px;
  margin: 0;
}

.tps-search label span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.tps-step-form__controls {
  display: flex;
  gap: 10px;
}

.tps-dashboard [hidden],
.tps-account [hidden],
.tps-directory [hidden],
.tps-filter-page [hidden],
.tps-step-form__controls [hidden] {
  display: none !important;
}

@media (min-width: 1440px) {
  .tps-directory {
    padding: 30px 28px;
  }

  .tps-account,
  .tps-dashboard {
    padding: 30px 0px;
  }

  .tps-dashboard__shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .tps-dashboard,
  .tps-directory,
  .tps-account {
    padding: 22px 18px;
  }

  .tps-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tps-taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .tps-location-grid {
    grid-template-columns: 1fr;
  }

  .tps-taxonomy-add-form--specialism,
  .tps-taxonomy-specialisms .tps-inline-form,
  .tps-location-add-form--city,
  .tps-location-list .tps-location-inline-form--city {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) auto;
  }
}

@media (max-width: 900px) {
  .tps-dashboard {
    --tps-site-header-offset: 88px;
  }

  .tps-dashboard.is-sidebar-open .tps-dashboard__sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .tps-dashboard.is-sidebar-open .tps-dashboard__sidebar {
    transform: translateX(0);
  }

  .tps-dashboard__mobile-bar {
    align-items: center;
    background: var(--tps-surface);
    border: 1px solid var(--tps-border-soft);
    border-radius: 8px;
    box-shadow: var(--tps-shadow-soft);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: var(--tps-site-header-offset) 0 16px;
    padding: 10px 12px;
  }

  .tps-dashboard__mobile-bar strong {
    color: var(--tps-text);
    font-size: 14px;
    font-weight: 800;
  }

  .tps-dashboard__menu-toggle,
  .tps-dashboard__sidebar-close {
    align-items: center;
    appearance: none;
    background: var(--tps-accent);
    border: 1px solid var(--tps-accent);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 36px;
    padding: 8px 11px;
  }

  .tps-dashboard__menu-toggle:hover,
  .tps-dashboard__menu-toggle:focus,
  .tps-dashboard__sidebar-close:hover,
  .tps-dashboard__sidebar-close:focus {
    background: var(--tps-accent-dark);
    border-color: var(--tps-accent-dark);
    color: #ffffff;
    outline: 0;
  }

  .tps-dashboard__sidebar-close {
    background: var(--tps-surface-muted);
    border-color: var(--tps-border-soft);
    color: var(--tps-text);
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px;
    padding: 0;
    width: 32px;
  }

  .tps-dashboard__sidebar-close:hover,
  .tps-dashboard__sidebar-close:focus {
    background: var(--tps-accent-soft);
    border-color: #bfd9f4;
    color: var(--tps-accent-dark);
  }

  .tps-dashboard__sidebar-backdrop {
    background: rgba(15, 23, 42, 0.56);
    border: 0;
    cursor: pointer;
    display: block;
    inset: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    transition:
      opacity 180ms ease,
      visibility 0s linear 180ms;
    visibility: hidden;
    z-index: 99997;
  }

  .tps-dashboard__shell {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .tps-dashboard__sidebar {
    border-radius: 0 8px 8px 0;
    bottom: 0;
    left: 0;
    max-width: min(320px, calc(100vw - 48px));
    overflow-y: auto;
    padding: 16px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 300px;
    z-index: 99998;
  }

  .tps-dashboard__nav {
    display: grid;
    gap: 6px;
  }

  .tps-dashboard__nav-link {
    flex: none;
    padding: 10px 11px;
  }

  .tps-membership-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .tps-checkbox-list--tree {
    grid-template-columns: 1fr;
  }
}

.tps-dashboard__nav-link--logout {
  margin-top: 10px;
  color: #b42318;
}

@media (max-width: 680px) {
  .tps-dashboard {
    --tps-site-header-offset: 76px;
  }

  .tps-dashboard,
  .tps-directory,
  .tps-account {
    font-size: 12px;
    padding: 16px 12px;
  }

  .tps-dashboard h1,
  .tps-account h1 {
    font-size: 18px;
  }

  .tps-panel,
  .tps-directory__item,
  .tps-modal__dialog {
    padding: 16px;
  }

  .tps-modal__dialog {
    margin: 3vh auto;
    max-height: 94vh;
    transform: translateY(18px) scale(0.98);
    width: calc(100% - 24px);
  }

  .tps-modal[aria-hidden="false"] .tps-modal__dialog {
    transform: translateY(0) scale(1);
  }

  .tps-stat-grid,
  .tps-stat-grid--single,
  .tps-choice-grid,
  .tps-form-grid,
  .tps-detail-list,
  .tps-taxonomy-add-form,
  .tps-taxonomy-add-form--specialism,
  .tps-taxonomy-card .tps-inline-form,
  .tps-taxonomy-specialisms .tps-inline-form,
  .tps-location-add-form,
  .tps-location-add-form--city,
  .tps-location-list .tps-location-inline-form--country,
  .tps-location-list .tps-location-inline-form--city,
  .tps-table-filters,
  .tps-table-filters--compact,
  .tps-table-filters--taxonomy,
  .tps-admin-settings-form,
  .tps-pagination {
    grid-template-columns: 1fr;
  }

  .tps-taxonomy-card .tps-table {
    min-width: 560px;
  }

  .tps-location-list .tps-table {
    min-width: 620px;
  }

  .tps-pagination__controls,
  .tps-pagination__pages {
    flex-wrap: wrap;
  }

  .tps-detail-list dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .tps-detail-list dd {
    padding-top: 0;
  }

  .tps-stat-card strong {
    font-size: 24px;
  }

  .tps-button,
  .tps-account .button,
  .tps-account button {
    min-height: 36px;
    padding: 8px 12px;
    white-space: normal;
  }

  .tps-toast-region {
    left: 12px;
    right: 12px;
    top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tps-modal,
  .tps-modal__backdrop,
  .tps-modal__dialog,
  .tps-dashboard__sidebar,
  .tps-dashboard__sidebar-backdrop {
    transition: none;
  }
}

.tps-directory__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tps-card {
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  color: #172033;
  display: block;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tps-card:hover,
.tps-card:focus {
  border-color: #b9c9dc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.tps-card__media {
  aspect-ratio: 4 / 3;
  background: #eef4fb;
  overflow: hidden;
  position: relative;
}

.tps-card__image,
.tps-profile__photo,
.tps-file-drop__preview {
  aspect-ratio: 1;
  background: #f3f4f6;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.tps-card__image {
  border-radius: 0;
  display: block;
  height: 100%;
  margin: 0;
  transition: transform 0.28s ease;
}

.tps-card:hover .tps-card__image,
.tps-card:focus .tps-card__image {
  transform: scale(1.035);
}

.tps-card__body {
  display: grid;
  gap: 8px;
  padding: 14px 15px 16px;
}

.tps-card h3 {
  color: #172033;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.tps-card p,
.tps-card__location,
.tps-card__support {
  align-items: center;
  color: #526071;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  line-height: 1.35;
  margin: 0;
}

.tps-card p i,
.tps-card__location i,
.tps-card__support i {
  color: var(--tps-accent);
  width: 14px;
}

.tps-card__support {
  background: #f4f8fd;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  color: #26364f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-self: start;
  padding: 6px 10px;
}

.tps-pro-card,
.tps-company-card {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 120px;
  padding: 16px;
}

.tps-pro-card .tps-card__media,
.tps-company-card .tps-card__media {
  aspect-ratio: 1;
  background: #f6f8fb;
  border-radius: 50%;
  height: 82px;
  overflow: hidden;
  width: 82px;
}

.tps-pro-card .tps-card__image,
.tps-company-card .tps-card__image {
  border-radius: 50%;
}

.tps-pro-card .tps-card__body,
.tps-company-card .tps-card__body {
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
}

.tps-pro-card h3,
.tps-company-card h3 {
  align-items: center;
  display: flex;
  font-size: 18px;
  gap: 6px;
  min-width: 0;
}

.tps-card__check {
  color: var(--tps-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
}

.tps-card__title,
.tps-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tps-card__title,
.tps-card__meta span {
  align-items: center;
  color: #536174;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  line-height: 1.35;
  margin: 0;
}

.tps-card__title i,
.tps-card__meta i {
  color: var(--tps-accent);
}

.tps-company-card .tps-card__check {
  color: var(--tps-accent);
}

.tps-verified {
  align-items: center;
  background: rgba(106, 130, 116, 0.12);
  border: 1px solid rgba(106, 130, 116, 0.28);
  border-radius: 999px;
  color: var(--tps-accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  padding: 4px 8px;
}

.tps-card .tps-verified {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.tps-profile__header {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 160px 1fr;
  margin-bottom: 24px;
}

.tps-profile__photo {
  max-width: 160px;
}

.tps-education-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tps-education-list li {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.tps-education-list span {
  color: #64748b;
  display: block;
  font-size: 13px;
}

.tps-filter-page {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.tps-filter-page__mobilebar,
.tps-filter-page__backdrop,
.tps-filter-form__close {
  display: none;
}

.tps-filter-page__sidebar {
  position: sticky;
  top: 18px;
}

.tps-filter-form {
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tps-filter-form h2 {
  font-size: 17px;
  font-weight: 850;
  margin: 0;
}

.tps-filter-form__header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tps-filter-form__actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.tps-filter-page__results {
  display: grid;
  gap: 14px;
  min-width: 0;
  position: relative;
}

.tps-filter-page__results .tps-directory {
  max-width: none;
  padding: 0;
}

.tps-filter-page__results .tps-directory__grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.tps-filter-page__status {
  color: #526071;
  font-size: 13px;
  font-weight: 800;
}

.tps-filter-page.is-loading .tps-filter-page__results {
  opacity: 0.55;
  pointer-events: none;
}

.tps-file-drop {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 14px;
  position: relative;
}

.tps-file-drop.is-dragging {
  background: #f8fafc;
  border-color: #2563eb;
}

.tps-file-drop input[type="file"] {
  border: 0;
  box-shadow: none;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.tps-file-drop small {
  color: #64748b;
  display: block;
  font-size: 12px;
}

.tps-file-drop__preview {
  display: block;
  margin: 8px 0;
  max-width: 120px;
}

.tps-file-drop__preview--cover {
  aspect-ratio: 16 / 6;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.tps-repeater {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.tps-repeater__items {
  display: grid;
  gap: 12px;
}

.tps-repeater__item {
  background: var(--tps-surface);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.tps-repeater__item [data-tps-repeater-remove] {
  margin-top: 10px;
}

.tps-company-location-card {
  display: grid;
  gap: 0;
}

.tps-company-location-card__header {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
}

.tps-company-location-card__header::-webkit-details-marker {
  display: none;
}

.tps-company-location-card[open] .tps-company-location-card__header {
  border-bottom: 1px solid var(--tps-border-soft);
  padding-bottom: 10px;
}

.tps-company-location-card__header strong {
  color: var(--tps-text);
  font-size: 14px;
  font-weight: 850;
  margin-right: auto;
}

.tps-company-location-card__body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.tps-company-location-card__chevron {
  color: var(--tps-muted);
  font-size: 11px;
  transition: transform 0.18s ease;
}

.tps-company-location-card[open] .tps-company-location-card__chevron {
  transform: rotate(180deg);
}

.tps-repeater__drag {
  align-items: center;
  background: #f4f7f5;
  border: 1px solid rgba(106, 130, 116, 0.25);
  border-radius: 7px;
  color: var(--tps-accent);
  cursor: grab;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.tps-repeater__drag:active {
  cursor: grabbing;
}

.tps-repeater__item.is-dragging {
  opacity: 0.58;
}

.tps-public-profile {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 220px);
}

.tps-public-profile__hero {
  align-items: stretch;
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  margin-bottom: 22px;
  overflow: hidden;
  padding: 18px;
}

.tps-public-profile__media {
  background: #eef4fb;
  border-radius: 8px;
  min-height: 300px;
  overflow: hidden;
}

.tps-public-profile__photo,
.tps-public-profile__placeholder {
  height: 100%;
  min-height: 300px;
  width: 100%;
}

.tps-public-profile__photo {
  display: block;
  object-fit: cover;
}

.tps-public-profile__placeholder {
  align-items: center;
  color: #8a9bb2;
  display: flex;
  font-size: 72px;
  justify-content: center;
}

.tps-public-profile__intro {
  align-content: center;
  display: grid;
  gap: 12px;
  padding: 10px 8px;
}

.tps-public-profile__intro h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.tps-public-profile__eyebrow,
.tps-public-profile__role {
  color: var(--tps-accent);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.tps-public-profile__location {
  align-items: center;
  color: #43526b;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin: 0;
}

.tps-public-profile__chips,
.tps-public-profile__socials {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tps-public-profile__chips span {
  align-items: center;
  background: #f4f8fd;
  border: 1px solid #dce7f4;
  border-radius: 999px;
  color: #26364f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 8px 12px;
}

.tps-public-profile__socials a {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: var(--tps-accent);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  width: 38px;
}

.tps-public-profile__socials a:hover,
.tps-public-profile__socials a:focus {
  background: rgba(106, 130, 116, 0.12);
  border-color: rgba(106, 130, 116, 0.34);
  transform: translateY(-1px);
}

.tps-public-profile__layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.tps-public-profile__panel {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 20px;
}

.tps-public-profile__panel--wide {
  grid-column: 1 / -1;
}

.tps-public-profile__panel h2,
.tps-public-profile__section-head h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
}

.tps-public-profile__copy {
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
}

.tps-public-profile__copy p:last-child {
  margin-bottom: 0;
}

.tps-public-profile__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.tps-public-profile__facts dt,
.tps-public-profile__facts dd {
  border-bottom: 1px solid #edf1f6;
  margin: 0;
  padding: 10px 0;
}

.tps-public-profile__facts dt {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  padding-bottom: 2px;
}

.tps-public-profile__facts dd {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tps-public-profile__facts dd a {
  color: var(--tps-accent);
  text-decoration: none;
}

.tps-public-profile__facts dd a:hover,
.tps-public-profile__facts dd a:focus {
  text-decoration: underline;
}

.tps-public-profile__timeline {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tps-public-profile__timeline li {
  border-left: 3px solid var(--tps-accent);
  display: grid;
  gap: 4px;
  padding: 2px 0 2px 14px;
}

.tps-public-profile__timeline strong {
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.tps-public-profile__timeline span,
.tps-public-profile__timeline small {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.tps-public-profile__professionals {
  margin-top: 22px;
}

.tps-public-profile__professionals .tps-directory {
  max-width: none;
  padding: 0;
}

.tps-public-profile__section-head {
  margin-bottom: 14px;
}

.tps-public-profile__section-head span {
  color: var(--tps-accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tps-professional-profile,
.tps-company-profile {
  background: #f6f8fb;
  max-width: 1180px;
}

.tps-professional-profile__banner {
  background:
    radial-gradient(
      circle at 14% 8%,
      rgba(255, 255, 255, 0.18) 0 90px,
      transparent 91px
    ),
    radial-gradient(
      circle at 82% 5%,
      rgba(255, 255, 255, 0.1) 0 140px,
      transparent 141px
    ),
    linear-gradient(90deg, rgba(111, 133, 120, 0.08) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(111, 133, 120, 0.08) 0 1px, transparent 1px),
    linear-gradient(135deg, #5f7569 0%, #70877a 45%, #8fa294 100%);

  background-size:
    auto,
    auto,
    42px 42px,
    42px 42px,
    auto;

  border-radius: 8px 8px 0 0;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.tps-professional-profile__banner::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.5;
  position: absolute;
}

.tps-professional-profile__banner-content {
  display: none;
}

.tps-professional-profile__summary {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: 176px minmax(0, 1fr) minmax(170px, auto);
  margin-bottom: 20px;
  padding: 0 24px 26px;
}

.tps-professional-profile__avatar-wrap {
  margin-top: -96px;
  position: relative;
  z-index: 2;
}

.tps-professional-profile__avatar {
  aspect-ratio: 1;
  background: #eef4fb;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
  display: block;
  object-fit: cover;
  width: 176px;
}

.tps-professional-profile__avatar--empty {
  align-items: center;
  color: #7b8da5;
  display: flex;
  font-size: 56px;
  justify-content: center;
}

.tps-professional-profile__identity {
  align-items: start;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 22px;
}

.tps-professional-profile__identity .tps-verified {
  justify-self: start;
  width: auto;
}

.tps-professional-profile__identity h1 {
  color: #172033;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.tps-professional-profile__identity p {
  color: var(--tps-accent);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.tps-professional-profile__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.tps-professional-profile__meta > span,
.tps-professional-profile__meta > a {
  align-items: center;
  background: #f4f8fd;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 8px 10px;
  text-decoration: none;
}

.tps-professional-profile__meta a:hover,
.tps-professional-profile__meta a:focus {
  background: var(--tps-accent-soft);
  border-color: rgba(106, 130, 116, 0.45);
  color: var(--tps-accent-dark);
}

.tps-professional-profile__meta i {
  color: var(--tps-accent);
}

.tps-professional-profile__socials {
  display: grid;
  gap: 8px;
  justify-self: end;
  min-width: 170px;
  padding-top: 22px;
}

.tps-professional-profile__socials a {
  align-items: center;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  color: #1f2a44;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.tps-professional-profile__socials a:hover,
.tps-professional-profile__socials a:focus {
  border-color: rgba(106, 130, 116, 0.5);
  box-shadow: 0 8px 20px rgba(106, 130, 116, 0.14);
  transform: translateY(-1px);
}

.tps-professional-profile__socials span {
  overflow-wrap: anywhere;
}

.tps-professional-profile__socials i {
  align-items: center;
  background: rgba(106, 130, 116, 0.12);
  border-radius: 6px;
  color: var(--tps-accent);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.tps-professional-profile__grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.tps-company-profile .tps-professional-profile__grid {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.tps-professional-profile__main,
.tps-professional-profile__side {
  display: grid;
  gap: 18px;
}

.tps-professional-profile__section {
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  padding: 22px;
}

.tps-professional-profile__section h2 {
  align-items: center;
  color: #172033;
  display: flex;
  font-size: 17px;
  font-weight: 850;
  gap: 9px;
  margin: 0 0 16px;
}

.tps-professional-profile__section h2 i {
  align-items: center;
  background: rgba(106, 130, 116, 0.12);
  border-radius: 7px;
  color: var(--tps-accent);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.tps-professional-profile__copy {
  color: #344054;
  font-size: 14px;
  line-height: 1.75;
}

.tps-professional-profile__copy p:last-child {
  margin-bottom: 0;
}

.tps-professional-profile__facts {
  display: grid;
  gap: 13px;
  margin: 0;
}

.tps-professional-profile__facts dt {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 7px;
  margin: 0 0 -8px;
}

.tps-professional-profile__facts dt i {
  color: var(--tps-accent);
  width: 15px;
}

.tps-professional-profile__facts dd {
  border-bottom: 1px solid #edf1f6;
  color: #1f2937;
  font-size: 14px;
  font-weight: 750;
  margin: 0;
  min-height: 28px;
  overflow-wrap: anywhere;
  padding: 0 0 12px 22px;
}

.tps-professional-profile__facts dd:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tps-professional-profile__facts dd a {
  color: var(--tps-accent);
  text-decoration: none;
}

.tps-professional-profile__facts dd a:hover,
.tps-professional-profile__facts dd a:focus {
  text-decoration: underline;
}

.tps-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tps-profile-tag {
  align-items: center;
  background: #f4f8fd;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  line-height: 1.2;
  padding: 5px 7px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

a.tps-profile-tag:hover,
a.tps-profile-tag:focus {
  background: var(--tps-accent-soft);
  border-color: rgba(106, 130, 116, 0.34);
  color: var(--tps-accent-dark);
  text-decoration: none;
}

.tps-professional-profile__facts dd a.tps-profile-tag:hover,
.tps-professional-profile__facts dd a.tps-profile-tag:focus {
  text-decoration: none;
}

.tps-profile-tag--status {
  border-radius: 8px;
}

.tps-professional-profile__timeline {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tps-professional-profile__timeline li {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e4ebf3;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 14px;
}

.tps-professional-profile__timeline > li > i {
  align-items: center;
  background: rgba(106, 130, 116, 0.12);
  border-radius: 8px;
  color: var(--tps-accent);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.tps-professional-profile__timeline strong {
  color: #172033;
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.tps-professional-profile__timeline span,
.tps-professional-profile__timeline small {
  color: #667085;
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-top: 2px;
}

.tps-company-profile__professionals {
  margin-top: 0;
}

.tps-company-profile__professionals .tps-directory {
  max-width: none;
  padding: 0;
}

.tps-company-profile__professionals .tps-directory__grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tps-company-profile__professionals .tps-card {
  min-width: 0;
}

.tps-company-profile__professionals .tps-card__body {
  padding: 0;
}

.tps-company-profile__professionals .tps-card h3 {
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}

.tps-company-profile__professionals .tps-card__title,
.tps-company-profile__professionals .tps-card__meta span,
.tps-company-profile__professionals .tps-card__meta {
  font-size: 12px;
}

.tps-company-contact-cards {
  display: grid;
  gap: 12px;
}

.tps-company-contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e3ebf4;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.tps-company-contact-card h3,
.tps-company-contact-card h4 {
  color: #172033;
  line-height: 1.25;
  margin: 0;
}

.tps-company-contact-card h3 {
  font-size: 14px;
  font-weight: 850;
}

.tps-company-contact-card h4 {
  color: #5f7568;
  font-size: 11px;
  font-weight: 850;
  margin-top: 2px;
  text-transform: uppercase;
}

.tps-company-contact-card h4:first-child {
  margin-top: 0;
}

.tps-company-contact-card p {
  align-items: flex-start;
  color: #344054;
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
  line-height: 1.4;
  margin: 0;
}

.tps-company-contact-card p:first-of-type {
  border-bottom: 1px solid #edf1f6;
  padding-bottom: 10px;
}

.tps-company-contact-card p i {
  align-items: center;
  background: rgba(106, 130, 116, 0.12);
  border-radius: 6px;
  color: var(--tps-accent);
  display: inline-flex;
  flex: 0 0 20px;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.tps-company-contact-card a {
  color: #5f7568;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.tps-company-contact-card a:hover,
.tps-company-contact-card a:focus {
  text-decoration: underline;
}

.tps-hero-finder {
  align-items: start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce5dd;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(33, 48, 40, 0.12);
  display: grid;
  gap: 12px;
  justify-self: start;
  margin: 16px 0 0 !important;
  max-width: 100%;
  min-height: 224px;
  padding: 18px;
  text-align: left;
  width: 640px;
}

.tps-hero-finder .tps-step-form__step {
  align-content: start;
  background: transparent;
  border: 0;
  display: grid;
  gap: 12px;
  padding: 0;
}

.tps-hero-finder .tps-step-form__step legend {
  color: #172033;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  padding: 0;
}

.tps-hero-finder .tps-field {
  max-width: none;
}

.tps-hero-finder .tps-field span {
  color: #172033;
  display: block;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  min-height: 30px;
}

.tps-hero-finder .tps-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.tps-hero-finder .tps-hero-finder__first-step {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}

.tps-hero-finder .tps-hero-finder__first-step select,
.tps-hero-finder .tps-hero-finder__first-step input {
  min-height: 42px;
}

.tps-hero-finder .tps-step-form__controls {
  align-self: end;
  gap: 10px;
  margin-top: 2px;
}

.tps-hero-finder .tps-button {
  background: #6f8778;
  border-color: #6f8778;
  color: #fff;
  min-width: 122px;
}

.tps-hero-finder .tps-button:hover,
.tps-hero-finder .tps-button:focus {
  background: #5f7568;
  border-color: #5f7568;
}

.tps-hero-finder .tps-button--secondary {
  background: #fff;
  border-color: #cdd8d0;
  color: #526b5d;
}

.tps-hero-finder [data-tps-use-location] {
  width: fit-content;
}

.tps-hero-finder [hidden] {
  display: none !important;
}

#tps-header-button-wrapper:has(.tps-header-button-wrapper) {
  width: 35%;
}

.tps-header-button-wrapper {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.tps-header-button {
  background: var(--tps-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--tps-accent);
}

.tps-header-button:hover,
.tps-header-button:active,
.tps-header-button:focus {
  background: #5f7568;
  border-color: #5f7568;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(20, 96, 170, 0.14);
}

.tps-card__price {
  gap: 0px !important;
}

.tps-card__price .fa-pound-sign {
  margin-right: -4px;
}

.tps-professional-profile__price {
  gap: 1px !important;
}

@media (max-width: 680px) {
  .tps-profile__header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .tps-filter-page {
    grid-template-columns: 1fr;
  }

  .tps-filter-page__mobilebar {
    display: flex;
    grid-row: 1;
    justify-content: flex-start;
  }

  .tps-filter-page__toggle {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    width: auto;
  }

  .tps-filter-page__backdrop {
    background: rgba(15, 23, 42, 0.48);
    border: 0;
    cursor: pointer;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.22s ease;
    z-index: 9998;
  }

  .tps-filter-page.is-filter-open .tps-filter-page__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .tps-filter-page__sidebar {
    background: #fff;
    bottom: 0;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.22);
    left: 0;
    max-width: min(360px, 88vw);
    overflow-y: auto;
    padding: 14px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    width: 100%;
    z-index: 9999;
  }

  .tps-filter-page.is-filter-open .tps-filter-page__sidebar {
    transform: translateX(0);
  }

  .tps-filter-form {
    border: 0;
    box-shadow: none;
    min-height: 100%;
    padding: 2px;
  }

  .tps-filter-form__close {
    align-items: center;
    background: #f4f7f5;
    border: 1px solid rgba(106, 130, 116, 0.25);
    border-radius: 8px;
    color: var(--tps-accent);
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
  }

  .tps-filter-drawer-open {
    overflow: hidden;
  }

  .tps-public-profile__hero,
  .tps-public-profile__layout {
    grid-template-columns: 1fr;
  }

  .tps-public-profile__hero {
    gap: 18px;
  }

  .tps-public-profile__media,
  .tps-public-profile__photo,
  .tps-public-profile__placeholder {
    min-height: 260px;
  }

  .tps-professional-profile__summary,
  .tps-professional-profile__grid {
    grid-template-columns: 1fr;
  }

  .tps-professional-profile__summary {
    align-items: start;
    gap: 16px;
  }

  .tps-professional-profile__socials {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-self: stretch;
    min-width: 0;
  }

  .tps-company-profile__professionals .tps-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tps-public-profile {
    padding: 16px;
    margin-top: 100px;
  }

  .tps-public-profile__hero {
    padding: 12px;
  }

  .tps-public-profile__intro h1 {
    font-size: 28px;
  }

  .tps-public-profile__media,
  .tps-public-profile__photo,
  .tps-public-profile__placeholder {
    min-height: 220px;
  }

  .tps-public-profile__panel {
    padding: 16px;
  }

  .tps-professional-profile__banner {
    min-height: 160px;
  }

  .tps-professional-profile__summary {
    gap: 14px;
    padding: 0 16px 18px;
  }

  .tps-professional-profile__avatar-wrap {
    margin-top: -64px;
  }

  .tps-professional-profile__avatar {
    width: 128px;
  }

  .tps-professional-profile__identity h1 {
    font-size: 20px;
  }

  .tps-professional-profile__identity,
  .tps-professional-profile__socials {
    padding-top: 0;
  }

  .tps-professional-profile__section {
    padding: 16px;
  }

  .tps-professional-profile__meta,
  .tps-professional-profile__socials {
    gap: 8px;
  }

  .tps-company-profile__professionals .tps-directory__grid {
    grid-template-columns: 1fr;
  }

  .tps-filter-page__results .tps-directory__grid {
    grid-template-columns: 1fr;
  }

  .tps-hero-finder {
    padding: 14px;
    width: 100%;
  }

  .tps-hero-finder .tps-form-grid {
    grid-template-columns: 1fr;
  }

  .tps-hero-finder .tps-field {
    max-width: none;
  }
}
