body.soa-workspace {
  background: #f8f4ff;
}

.soa-workspace-brand {
  display: none;
}

.soa-workspace .app-scroll {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

.soa-workspace .app-scroll:focus {
  outline: none;
}

.soa-skip {
  position: absolute;
  z-index: 5;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #4a42ba;
  transform: translateY(-200%);
}

.soa-skip:focus {
  transform: none;
}

.soa-workspace :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #6c63ff;
  outline-offset: 3px;
}

.soa-workspace .page-head {
  min-height: 53px;
  margin-block-end: 18px;
}

.soa-workspace .page-head > div {
  min-width: 0;
}

.soa-workspace .page-head h1 {
  color: #252741;
  font-size: clamp(1.42rem, 2.35vw, 2rem);
  overflow-wrap: anywhere;
}

.soa-workspace .page-head p {
  color: #646786;
  font-size: .875rem;
  line-height: 1.45;
}

.soa-worker-greeting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.soa-worker-greeting .hello-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
}

.soa-worker-greeting .hello {
  margin: 0;
  font-size: 1.5rem;
}

.soa-worker-greeting .name {
  display: block;
  overflow-wrap: anywhere;
}

.soa-worker-greeting .id-row {
  align-items: center;
}

.soa-worker-avatar {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}

.soa-worker-avatar .avatar {
  display: block;
  width: 68px;
  height: 68px;
}

.soa-worker-balance {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  text-align: start;
  background: none;
}

.soa-worker-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #b9e7cd;
  border-radius: 999px;
  color: #287550;
  background: #e9f8ef;
  font-size: .75rem;
  font-weight: 800;
}

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

.soa-role-nav .nav-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.soa-role-nav .nav-caption {
  line-height: 1.25;
}

.soa-worker-documents,
.soa-profile-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 365px), 1fr));
}

.soa-worker-documents .soa-new-project {
  grid-template-columns: 1fr !important;
}

.soa-worker-documents .soa-new-project > * {
  grid-column: 1 / -1 !important;
}

.soa-worker-document {
  flex-wrap: wrap;
}

.soa-worker-document .file-info {
  overflow-wrap: anywhere;
}

.soa-insurance-territories {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dfd5f7;
  border-radius: 12px;
}

.soa-insurance-territories label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  padding: 3px 0;
}

.soa-insurance-territories input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.soa-profile-grid .profile-center p {
  overflow-wrap: anywhere;
}

.soa-role-switch {
  margin: 16px auto 0;
}

.soa-signout-action {
  color: #b23858;
}

.soa-directory-filters, .soa-directory-card {
  padding: 12px;
  border: 1px solid #eee8f5;
  border-radius: 18px;
  background: #f5f0f8;
}

.soa-directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #ebe4f4;
  border-radius: 12px;
  background: #fbf9ff;
}

.soa-directory-search .ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 10px;
  color: #fff;
  background: #8371f0;
}

.soa-directory-search input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  border: none;
  background: transparent;
  color: #31354f;
  font: inherit;
}

.soa-directory-jobs {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  padding: 4px;
  overflow-x: auto;
}

.soa-directory-jobs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #e9e1f3;
  border-radius: 100px;
  color: #535674;
  background: #fff;
  font-weight: 700;
}

.soa-directory-jobs button[aria-pressed="true"] {
  color: #fff;
  background: #6756de;
}

.soa-directory-minimum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #585c7a;
  font-weight: 800;
}

.soa-directory-minimum span {
  display: inline-flex;
  align-items: center;
  padding: 0 5px 0 9px;
  border: 1px solid #e9e1f3;
  border-radius: 10px;
  background: white;
}

.soa-directory-minimum select {
  padding: 7px;
  border: 0;
  color: #45496a;
  background: transparent;
  font: inherit;
}

.soa-directory-minimum .ico, .soa-directory-rating .ico, .soa-directory-profile-star .ico {
  width: 16px;
  height: 16px;
  color: #a96b03;
}

.soa-directory-empty {
  margin: 32px 0;
  text-align: center;
  color: #686b8c;
}

.soa-directory-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.soa-directory-card {
  background: #fffc;
}

.soa-directory-person {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 0;
  padding: 0;
  color: #2d314a;
  background: transparent;
  text-align: left;
}

.soa-directory-photo {
  position: relative;
  width: 52px;
  height: 52px;
}

.soa-directory-photo img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.soa-directory-photo span {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: #36c978;
}

.soa-directory-copy {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}

.soa-directory-copy strong {
  font-size: 1.06rem;
}

.soa-directory-copy small, .soa-directory-rating span {
  color: #636784;
}

.soa-directory-rating, .soa-directory-profile-star {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: .82rem;
  font-weight: 800;
}

.soa-directory-rating b {
  padding: 3px 6px;
  border-radius: 12px;
  background: #fcf0d9;
  color: #865705;
}

.soa-directory-presence {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: 82px;
  text-align: center;
  color: #676b88;
  font-size: .74rem;
  font-weight: 700;
}

.soa-directory-presence.online {
  color: #21844e;
}

.soa-directory-presence .ico {
  width: 19px;
  height: 19px;
}

.soa-directory-unblock {
  margin-top: 9px;
}

.soa-directory-profile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.soa-directory-profile .avatar {
  width: 96px;
  height: 96px;
}

.soa-directory-profile h2, .soa-directory-profile p {
  margin: 0;
}

.soa-directory-safety {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.soa-directory-safety summary {
  padding: 8px 14px;
  border-radius: 12px;
  color: #5040aa;
  background: #eee8fb;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.soa-directory-safety div {
  display: grid;
  padding: 6px;
  border: 1px solid #e7ddfa;
  border-radius: 12px;
  background: #fff;
}

.soa-directory-safety button {
  padding: 8px 12px;
  border: 0;
  color: #423b74;
  background: transparent;
  text-align: left;
}

.soa-directory-profile-metrics, .soa-directory-profile-actions, .soa-directory-preview-reviews {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.soa-directory-profile-metrics {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.soa-directory-profile-actions {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.soa-directory-profile-metrics > *, .soa-directory-preview-reviews article {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1px solid #eee7ff;
  border-radius: 16px;
  background: #ffffffdb;
  color: #4a3a92;
}

.soa-directory-profile-metrics strong {
  font-size: 1.25rem;
}

.soa-directory-preview-reviews article {
  justify-items: start;
  padding: 14px;
}

.soa-directory-preview-reviews .ico {
  width: 14px;
  height: 14px;
}

.soa-directory-safety-status {
  padding: 8px 12px;
  color: #625a78;
  font-size: .8rem;
}

.soa-notifications-page {
  width: min(100%, 960px);
  margin-inline: auto;
}

.soa-notification-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.soa-notification-tools .page-head { margin: 0; }

.soa-notification-tools .soa-notification-bulk {
  min-height: 44px;
  border-color: #ded2fb;
  background: #fbf8ff;
  color: #4f3eac;
}

.soa-notification-bulk:hover:not(:disabled) { background: #efe7ff; }

.soa-notification-list { display: grid; gap: 25px; }
.soa-notification-day-list { display: grid; gap: 10px; }

.soa-notification-day > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: #514665;
  font-size: .88rem;
  font-weight: 800;
}

.soa-notification-day > h2::after {
  flex: 1;
  height: 1px;
  background: #dcd1f2;
  content: "";
}

.soa-notification-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #e7def5;
  border-radius: 23px;
  background: #fdfbff;
  box-shadow: 0 8px 20px #4435710e;
}

.soa-notification-card.soa-unread {
  border-color: #cdbcfb;
  background: linear-gradient(115deg,#fbf8ff 8%,#f4edff 100%);
  box-shadow: 0 9px 24px #54419817;
}

.soa-notification-content {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 13px 8px 13px 12px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #252741;
  text-align: left;
}

button.soa-notification-content:hover:not(:disabled) { background: #ffffff9c; }

.soa-notification-avatar {
  position: relative;
  display: block;
  width: 57px;
  height: 57px;
}

.soa-notification-avatar-frame {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e5dafb;
  border-radius: 18px;
  background: linear-gradient(135deg,#f2ebff,#e4d7ff);
  color: #5341a8;
  font-size: 1.18rem;
  font-weight: 850;
}

.soa-notification-logo { width: 32px; height: 32px; }

.soa-notification-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soa-notification-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fdfbff;
  border-radius: 9px;
  background: #6352c9;
  color: #fff;
}

.soa-unread .soa-notification-icon { background: linear-gradient(145deg,#5849d8,#8c69f2); }
.soa-notification-icon .ico { width: 13px; height: 13px; }

.soa-notification-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.soa-notification-title { font: 800 1.1rem/1.24 'Inter Tight',Inter,sans-serif; }
.soa-notification-author { color: #523c9e; font-size: .87rem; font-weight: 760; }
.soa-notification-message { color: #585572; font-size: .9rem; white-space: pre-line; }

.soa-notification-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: #5d5578;
  font-size: .77rem;
  font-weight: 740;
}

.soa-notification-time, .soa-notification-unread {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.soa-notification-time { min-width: 0; overflow-wrap: anywhere; }
.soa-notification-time .ico { width: 14px; height: 14px; }

.soa-notification-unread {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9e0ff;
  color: #4d329a;
  white-space: nowrap;
}

.soa-notification-unread::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #704fee;
  content: "";
}

.soa-notification-remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  background: #f1eafa;
  color: #594773;
}

.soa-notification-remove:hover:not(:disabled) { background: #e8dcf8; }
.soa-notification-remove .ico { width: 17px; height: 17px; }

@media (max-width: 600px) {
  .soa-notification-tools { margin-bottom: 18px; }
  .soa-notification-content { grid-template-columns: auto minmax(0,1fr); gap: 9px 13px; padding: 11px 3px 11px 8px; }
  .soa-notification-avatar { width: 49px; height: 49px; }
  .soa-notification-avatar-frame { border-radius: 15px; }
  .soa-notification-card { gap: 3px; padding-right: 6px; border-radius: 18px; }
  .soa-notification-meta { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .soa-notification-meta:empty { display: none; }
}

.soa-chat-workspace .soa-chat-directory-head {
  flex-wrap: wrap;
  gap: 10px;
}

.soa-chat-new-message {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.soa-chat-new-message .ico {
  width: 16px;
  height: 16px;
}

#soa-chat-project-picker {
  width: min(92vw, 495px);
  max-height: min(85dvh, 680px);
  padding: 22px;
}

#soa-chat-project-options {
  display: grid;
  gap: 14px;
  max-height: none;
}

.soa-chat-picker-section {
  display: grid;
  gap: 6px;
}

.soa-chat-picker-section h3 {
  margin: 0;
  color: #5c5b7b;
  font-size: .86rem;
}

.soa-chat-picker-section > div {
  display: grid;
  gap: 8px;
}

.soa-chat-picker-section .muted {
  margin: 0;
  color: #535775;
}

.soa-role-nav .nav-symbol {
  position: relative;
}

.soa-chat-nav-badge {
  position: absolute;
  right: -4px;
  top: -1px;
  min-width: 17px;
  height: 17px;
  padding: 1px 3px;
  display: grid;
  place-items: center;
  border: 1px solid white;
  border-radius: 100px;
  color: #fff;
  background: #b73361;
  font: 800 .65rem/1 Inter, system-ui, sans-serif;
}

@media (width <= 750px) {
  .soa-chat-page.is-conversation > .soa-chat-page-title,
  body.soa-workspace:has(.soa-chat-page:is(.is-conversation,.is-contact)) .soa-role-nav {
    display: none;
  }

  .soa-chat-page.is-conversation .soa-chat-back {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (width < 960px) {
  .soa-workspace .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .soa-workspace .soa-role-nav {
    justify-content: space-around;
    margin: 0 16px max(10px, env(safe-area-inset-bottom));
    padding: 7px 8px;
    background: #fffffff2;
    border-radius: 22px;
  }

  .soa-role-nav .nav-item {
    min-height: 57px;
    gap: 1px;
    padding: 2px;
    color: #6f7391;
    font-size: .75rem;
    justify-content: center;
  }

  .soa-role-nav .nav-item.active {
    background: transparent;
    color: #6254d4;
    box-shadow: none;
  }

  .soa-role-nav .nav-item.active .nav-symbol {
    color: white;
    background: linear-gradient(145deg, #6c63ff, #8f76ff);
  }
}

@media (width >= 960px) {
  body.soa-workspace .page-wrap {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
  }

  body.soa-workspace .app-frame {
    width: 100%;
    height: 100dvh;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.soa-workspace .app-scroll {
    padding: 30px clamp(28px, 3.6vw, 64px) 48px;
  }

  .soa-view {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
  }

  body.soa-workspace .soa-role-nav {
    width: clamp(188px, 16.5vw, 254px);
    flex-basis: clamp(188px, 16.5vw, 254px);
    padding: 26px 16px;
    background: linear-gradient(170deg, #fbf8ff, #f0ebff);
  }

  body.soa-workspace .soa-role-nav::before {
    content: none;
  }

  .soa-workspace-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    align-self: stretch;
    padding: 7px 6px;
    margin-bottom: 24px;
    color: #2c2b4d;
  }

  .soa-workspace-brand img {
    flex: 0 0 auto;
  }

  .soa-workspace-brand strong,
  .soa-workspace-brand small {
    display: block;
  }

  .soa-workspace-brand strong {
    font: 900 1.55rem/1 "Inter Tight", Inter, system-ui, sans-serif;
  }

  .soa-workspace-brand strong span {
    color: #6c63ff;
  }

  .soa-workspace-brand small {
    margin-top: 4px;
    color: #595679;
    font-size: .68rem;
    line-height: 1.3;
  }

  body.soa-workspace .soa-role-nav .nav-item {
    gap: 10px;
    padding: 7px 12px;
  }

  .soa-role-nav .nav-item:not(.active) {
    color: #555877;
  }

  .soa-role-nav .nav-item:not(.active):hover {
    background: #ebe4ff;
    color: #4b40b2;
  }

  .soa-role-nav .nav-symbol {
    width: 32px;
    height: 36px;
  }

  body.soa-workspace .soa-desktop-dashboard {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr);
  }

  body.soa-workspace .soa-dash-secondary {
    position: static;
  }

  body.soa-workspace .soa-dash-secondary .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (960px <= width < 1140px) {
  body.soa-workspace .soa-desktop-dashboard {
    grid-template-columns: 1fr;
  }
}

.soa-report-dialog{width:min(440px,calc(100% - 24px));max-height:90dvh;overflow:auto;background:#fffafd;color:#302a48;padding:22px;border:1px solid #ded6ef;border-radius:20px;box-shadow:0 18px 70px #21194055}
.soa-report-dialog::backdrop{background:#211a40a8}
.soa-report-dialog form{display:grid;gap:13px}.soa-report-dialog h2,.soa-report-dialog p{margin:0}
.soa-report-dialog label{display:grid;gap:6px;font-weight:700}.soa-report-dialog select,.soa-report-dialog textarea{width:100%;font:inherit;font-weight:400;padding:10px;color:inherit;background:white;border:1px solid #dcd1ec;border-radius:12px}
.soa-report-dialog [role=status]:empty{display:none}.soa-report-dialog form>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
