.soa-client-home {
  max-width: 1200px;
  gap: 16px;
}

.soa-client-home button:focus-visible {
  outline: 3px solid #6657d9;
  outline-offset: 3px;
}

.soa-client-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7dff7;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f6f1fe);
  box-shadow: 0 7px 20px #6c4bb310;
}

.soa-client-header-content {
  container-type: inline-size;
}

.soa-client-greeting {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.soa-client-greeting > span:first-child {
  color: #7657be;
  background: linear-gradient(90deg, #7657be, #9a79d4);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.45px;
}

.soa-client-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #b8e4c8;
  border-radius: 14px;
  background: #e7f7ed;
  color: #19804b;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.2;
}

.soa-client-verified .ico {
  width: 15px;
  height: 15px;
}

.soa-client-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #252741;
  font-size: 1.125rem;
  text-align: left;
}

.soa-client-identity strong {
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.soa-client-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #d8caee;
  border-radius: 14px;
  background: #e5daf3;
  color: #7959a8;
  font-size: .875rem;
  font-weight: 800;
}

.soa-client-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soa-client-header-actions {
  display: grid;
  gap: 6px;
}

.soa-client-header-actions > button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e3d9fb;
  border-radius: 14px;
  background: #f0ebff;
  color: #6a5cff;
}

.soa-client-header-actions > button:hover {
  filter: saturate(1.2) brightness(.98);
}

.soa-client-header-actions > button .ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.soa-client-header-actions > .soa-client-logout {
  border-color: #ffd5e2;
  background: #ffedf3;
  color: #e65b87;
}

.soa-client-header-actions > .soa-client-immo {
  overflow: hidden;
  border-color: #82b6ef;
  background: linear-gradient(135deg, #3393f4, #145cc7);
  box-shadow: 0 7px 12px #1765c536;
}

.soa-client-immo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soa-client-notification-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  padding: 1px 2px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #d64070;
  color: #fff;
  font-size: .5625rem;
  font-weight: 800;
  line-height: 1.2;
}

.soa-client-amounts,
.soa-client-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.soa-client-amounts button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid #e7dff9;
  border-radius: 16px;
  background: #f4f0ff;
  color: #5b5cf6;
  text-align: left;
}

.soa-client-amounts button:hover {
  box-shadow: inset 0 0 0 1px currentColor;
}

.soa-client-amounts button > span {
  color: #656b8f;
  font-size: .71875rem;
  font-weight: 650;
  line-height: 1.25;
}

.soa-client-amounts button > strong {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.35px;
  overflow-wrap: anywhere;
}

.soa-client-amounts .soa-client-credit {
  border-color: #dfeee4;
  background: #f3faf5;
  color: #208657;
}

.soa-client-amounts .soa-client-credit > strong {
  font-size: 1.25rem;
}

.soa-client-credit-note {
  margin: 8px 2px 0;
  color: #52866a;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.3;
}

.soa-client-directory,
.soa-client-no-worker {
  padding: 12px 14px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #ffffffbd;
  box-shadow: 0 5px 12px #00000012;
}

.soa-client-directory .search {
  min-height: 46px;
  margin: 0;
  border-radius: 18px;
  background: #fff;
}

.soa-client-directory .search input {
  font-size: .875rem;
}

.soa-client-directory #worker-search-results:not(:empty) {
  margin-top: 12px;
}

.soa-client-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.soa-client-stat,
.soa-client-service {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #ffffffcd;
  color: #2f3147;
  box-shadow: 0 5px 14px #00000012;
  text-align: left;
}

.soa-client-stat {
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: 12px;
}

.soa-client-stat > span:nth-child(2) {
  color: #676d89;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
}

.soa-client-stat > strong {
  font-size: clamp(.875rem, 4.5vw, 1.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.soa-client-stat-icon,
.soa-client-service-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #74a7ff, #5b5cf6);
  color: #fff;
}

.soa-client-stat:nth-child(2) .soa-client-stat-icon {
  background: linear-gradient(135deg, #ffb45c, #ef7d61);
}

.soa-client-stat:nth-child(3) .soa-client-stat-icon {
  background: linear-gradient(135deg, #8a7bff, #b07cff);
}

.soa-client-no-worker {
  padding: 17px 14px;
  text-align: center;
}

.soa-client-no-worker > .ico {
  width: 42px;
  height: 42px;
  color: #858ba9;
}

.soa-client-no-worker h2,
.soa-client-assigned h2 {
  margin: 8px 0 4px;
  font-size: .9375rem;
}

.soa-client-no-worker p,
.soa-client-assigned p {
  margin: 0;
  color: #676d89;
  font-size: .8125rem;
}

.soa-client-assigned {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5b5cf6, #9775df);
  color: #fff;
  box-shadow: 0 10px 18px #5b5cf633;
}

.soa-client-assigned > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.soa-client-assigned img {
  width: 64px;
  height: 64px;
  border: 1px solid #ffffffa8;
  border-radius: 16px;
  object-fit: cover;
}

.soa-client-assigned p {
  color: #fff;
}

.soa-client-assigned button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #5040b9;
  text-align: left;
  font-weight: 700;
}

.soa-client-access-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.soa-client-access-heading h2 {
  margin: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 1.375rem;
  font-weight: 850;
}

.soa-client-access-heading > button {
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d54c9;
  font-size: .8125rem;
  font-weight: 750;
}

.soa-client-service {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 12px;
}

.soa-client-service:hover,
.soa-client-stat:hover {
  background-color: #fff;
  box-shadow: 0 7px 18px #5e48a525;
}

.soa-client-service strong,
.soa-client-service small {
  display: block;
  overflow-wrap: anywhere;
}

.soa-client-service strong {
  font-size: .875rem;
  font-weight: 800;
}

.soa-client-service small {
  margin-top: 3px;
  color: #656b8d;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.24;
}

.soa-client-wide-access {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.soa-client-wide-access .soa-client-service strong {
  font-size: 1rem;
}

.soa-client-service--directory .soa-client-service-icon,
.soa-client-service--services .soa-client-service-icon {
  background: linear-gradient(135deg, #8a7bff, #a573ed);
}

.soa-client-service--release .soa-client-service-icon {
  background: linear-gradient(135deg, #68c8ff, #5b8dff);
}

.soa-client-service--reviews .soa-client-service-icon {
  background: linear-gradient(135deg, #fbaa8c, #ee809b);
}

.soa-client-service--disputes,
.soa-client-service--create {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: transparent;
  background: linear-gradient(135deg, #c33e62, #a52952);
  color: #fff;
}

.soa-client-service--create {
  background: linear-gradient(135deg, #5b5cf6, #7b60d4);
}

.soa-client-service--disputes .soa-client-service-icon,
.soa-client-service--create .soa-client-service-icon {
  background: #ffffff36;
}

.soa-client-service--disputes small,
.soa-client-service--create small {
  color: #fff;
}

.soa-client-service-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #752c61;
  font-size: .75rem;
  font-weight: 850;
}

.soa-client-navigation {
  inset: auto 0 12px;
  width: min(calc(100% - 24px), 440px);
  max-height: calc(100svh - 24px);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: #f8f4ff;
  color: #252741;
  box-shadow: 0 10px 32px #35296942;
}

.soa-client-navigation::backdrop {
  background: #241c4450;
}

@container (max-width: 259px) {
  .soa-client-amounts {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 359px) {
  .soa-client-access-grid .soa-client-service {
    grid-template-columns: 1fr;
    align-content: start;
  }
}

@media (min-width: 960px) {
  body.soa-workspace .soa-client-home {
    max-width: 1200px;
  }

  .soa-client-header {
    padding: 20px;
  }

  .soa-client-stats {
    gap: 14px;
  }

  .soa-client-access-grid,
  .soa-client-wide-access {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .soa-client-navigation {
    inset: 0;
    margin: auto;
  }

  .soa-client-navigation .soa-client-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.soa-client-name {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}
.soa-client-identity .soa-client-avatar { padding: 0; }
.soa-client-assigned .soa-assigned-summary { flex-wrap: nowrap; }
.soa-client-assigned .soa-assigned-person { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.soa-assigned-person small { font-size: .875rem; }
.soa-client-assigned .soa-assigned-person h2 { margin: 2px 0 4px; color: #fff; font-size: 1.15rem; }
.soa-assigned-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.soa-client-assigned .soa-assigned-pager {
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 6px;
  border: 1px solid #ffffff55;
  border-radius: 16px;
}
.soa-assigned-pager button { justify-content: center; width: 44px; }
.soa-assigned-picker { display: grid; gap: 6px; font-weight: 650; font-size: .875rem; }
.soa-assigned-picker select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-inline: 12px 32px;
  border-radius: 12px;
  border: 1px solid #e6dafa;
  background-color: white;
  color: #44347e;
  font: inherit;
}
.soa-home-role-selector {
  display: flex;
  max-width: 30rem;
  width: 100%;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid #e5defa;
  background: #fff;
}
.soa-home-role-selector button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #514672;
  font: inherit;
  font-weight: 700;
}
.soa-home-role-selector button[aria-pressed="true"] { background: #ece8ff; color: #443495; opacity: 1; }
.soa-home-avatar-dialog, .soa-surplus-viewer {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 14px;
  border: 0;
  border-radius: 20px;
}
.soa-home-avatar-dialog::backdrop, .soa-surplus-viewer::backdrop { background: #1f1a3b99; }
.soa-home-avatar-dialog form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.soa-home-avatar-dialog img { display: block; max-width: 100%; max-height: 70dvh; object-fit: contain; margin-inline: auto; }
.soa-surplus-layout { display: grid; gap: 16px; align-items: start; }
.soa-surplus-hero { display: grid; gap: 12px; grid-template-columns: auto minmax(0,1fr); align-items: center; }
.soa-surplus-hero h2, .soa-surplus-hero p { margin: 0; overflow-wrap: anywhere; }
.soa-surplus-hero p { margin-top: 4px; }
.soa-surplus-hero > .soa-record-badge, .soa-surplus-amount { grid-column: 1 / -1; justify-self: start; }
.soa-surplus-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#7973fa,#7050cf); }
.soa-surplus-amount { display: grid; gap: 3px; }
.soa-surplus-amount strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.soa-surplus-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.soa-surplus-list { display: grid; gap: 8px; }
.soa-surplus-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid #ddd4f5; border-radius: 14px; background: #fff; color: #352c52; text-align: start; }
.soa-surplus-list button span { display: grid; gap: 3px; flex: 1; }
.soa-surplus-viewer[open] { width: min(900px,calc(100vw - 32px)); height: 85dvh; display: flex; align-items: end; flex-direction: column; gap: 10px; }
.soa-surplus-viewer iframe { width: 100%; flex: 1; border: 0; }
@media (min-width: 840px) {
  .soa-surplus-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .soa-surplus-hero, .soa-surplus-project-link { grid-column: 1 / -1; }
  .soa-surplus-project-link { justify-self: start; }
}

.soa-space-dialog {
  width: min(32rem,calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: clamp(16px,3vw,28px);
  border: 1px solid #ded8f0;
  border-radius: 22px;
  background: #fff;
  color: #302749;
}
.soa-space-dialog::backdrop { background: #21193580; }
.soa-space-form { display: grid; gap: 12px; }
.soa-space-form h2, .soa-space-form p { margin: 0; }
.soa-space-form label { display: grid; gap: 6px; font-weight: 650; }
.soa-space-form input { padding: 11px; border: 1px solid #d5cfe3; border-radius: 12px; font: inherit; }
.soa-space-jobs { display: grid; max-height: 180px; overflow: auto; gap: 4px; border: 1px solid #ded8f0; border-radius: 12px; padding: 6px; }
.soa-space-jobs button, .soa-space-selected button { padding: 7px 10px; text-align: start; font: inherit; border: 0; border-radius: 8px; color: #403459; background: #f5f2fb; }
.soa-space-jobs button:hover, .soa-space-selected button { background: #eae3ff; }
.soa-space-selected { display: flex; flex-wrap: wrap; gap: 6px; }
.soa-space-feedback:empty { display: none; }

.soa-consent-summary { display: grid; gap: 8px; margin: 16px 0; }
.soa-consent-summary > div, .soa-blocked-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.soa-consent-summary dd { margin: 0; font-weight: 650; }
.soa-space-form fieldset { border: 1px solid #ded8f0; border-radius: 12px; }
.soa-space-form .consent-check { display: flex; align-items: center; gap: 8px; padding: 6px; }
.soa-space-form .consent-check input { width: auto; }
.soa-space-form textarea { resize: vertical; padding: 10px; border: 1px solid #d5cfe3; border-radius: 12px; font: inherit; }

.soa-photo-preview { width: 112px; height: 112px; object-fit: cover; border-radius: 24px; justify-self: center; }
.soa-photo-choices { display: flex; justify-content: center; gap: 8px; }
.soa-photo-choices button { border: 2px solid transparent; background: #f4f0ff; border-radius: 50%; padding: 3px; }
.soa-photo-choices button[aria-pressed="true"] { border-color: #6657d9; }
.soa-photo-choices img { display: block; border-radius: 50%; width: 48px; height: 48px; }
@media (pointer: fine) { .soa-space-form .soa-photo-camera { display: none; } }

.identity-status-card { display:grid; gap:14px; max-width:48rem; }
.identity-status-card h2,.identity-status-card p,.identity-status-card ol { margin:0; }
.identity-status-card .privacy-status { justify-self:start; }
.identity-status-card ol { padding-left:1.5rem; }
.identity-status-card li + li { margin-top:.5rem; }
.identity-status-card a { overflow-wrap:anywhere; }
