:root {
  font-family: "DM Sans", sans-serif;
  color: #252638;
  background: #f6f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --portal-purple: #7165df;
  --portal-muted: #898b99;
  --portal-border: #ededef;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.portal-login {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 35px 18px;
  background: radial-gradient(ellipse at 50% 15%, rgba(120, 106, 230, .11), transparent 42%), #f6f7fb;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #28293a;
  font: 800 24px "Manrope", sans-serif;
  letter-spacing: -1.2px;
  text-decoration: none;
}

.portal-brand>span:last-child {
  color: #9084ee;
}

.portal-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7165df;
  background: #efedff;
  font-size: 19px;
}

.portal-login>.portal-brand {
  position: absolute;
  top: 30px;
  left: max(26px, calc((100% - 1120px) / 2));
}

.portal-login-card {
  width: min(100%, 405px);
  margin-top: 20px;
  padding: 33px 35px 28px;
  border: 1px solid #ebebf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(37, 38, 56, .07);
}

.portal-login-symbol {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 11px;
  color: #7165df;
  background: #f0effc;
  font-size: 21px;
}

.portal-eyebrow {
  color: #8278db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.portal-login-card h1 {
  margin: 9px 0 6px;
  font: 700 28px "Manrope", sans-serif;
  letter-spacing: -.8px;
}

.portal-login-card>p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.65;
}

.portal-login-card form {
  margin-top: 25px;
}

.portal-login-card label,
.portal-dialog-form>label {
  display: block;
  margin: 15px 0 7px;
  color: #444657;
  font-size: 12px;
  font-weight: 600;
}

.portal-login-card input,
.portal-dialog-form>input,
.portal-dialog-form>select,
.portal-dialog-form>textarea {
  width: 100%;
  border: 1px solid #e7e8ef;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #363849;
  font: 13px "DM Sans", sans-serif;
}

.portal-login-card input,
.portal-dialog-form>input,
.portal-dialog-form>select {
  height: 41px;
  padding: 0 11px;
}

.portal-dialog-form>textarea {
  padding: 10px 11px;
  line-height: 1.55;
  resize: vertical;
}

.portal-login-card input:focus,
.portal-dialog-form>input:focus,
.portal-dialog-form>select:focus,
.portal-dialog-form>textarea:focus {
  border-color: #9187ec;
  box-shadow: 0 0 0 3px rgba(113, 101, 232, .1);
}

.portal-login-card input::placeholder,
.portal-dialog-form>input::placeholder,
.portal-dialog-form>textarea::placeholder {
  color: #adafba;
}

.portal-primary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--portal-purple);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s;
}

.portal-primary:hover {
  background: #6055ce;
}

.portal-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.portal-primary span {
  font-size: 16px;
}

.portal-login-card .portal-primary {
  width: 100%;
  margin-top: 8px;
}

.portal-message {
  min-height: 15px;
  margin: 10px 0 1px;
  color: #ad554e;
  font-size: 11px;
  line-height: 1.5;
}

.portal-login-help {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f4;
  color: #999ba8;
  text-align: center;
  font-size: 11px;
}

.portal-text-link {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--portal-purple);
  font: 600 12px "DM Sans", sans-serif;
  cursor: pointer;
}

.portal-back {
  position: absolute;
  bottom: 24px;
  color: #858797;
  font-size: 12px;
  text-decoration: none;
}

.portal-back:hover {
  color: #6258c9;
}

.portal-app {
  min-height: 100vh;
  display: flex;
  background: #f7f8fb;
}

.portal-sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 23px 14px 15px;
  border-right: 1px solid #ececf2;
  background: #fff;
}

.portal-sidebar .portal-brand {
  margin: 0 0 39px 7px;
}

.portal-side-caption {
  padding: 0 9px;
  color: #a2a4b0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.portal-nav {
  display: grid;
  gap: 4px;
  margin-top: 11px;
}

.portal-nav-link {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #777988;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.portal-nav-link:hover {
  color: #514a9f;
  background: #f8f7ff;
}

.portal-nav-link.active {
  color: #6257ca;
  background: #f1f0fc;
  font-weight: 600;
}

.portal-nav-link>span {
  width: 17px;
  color: #858798;
  font-size: 17px;
  text-align: center;
}

.portal-nav-link.active>span {
  color: #7165df;
}

.portal-nav-notification-count,
.staff-nav-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: #d94d5c;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.portal-notifications-list,
.staff-notifications-list,
.staff-followup-list {
  display: grid;
  gap: 10px;
}

.portal-notification-row,
.staff-notification-row,
.staff-followup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #e8e9ef;
  border-radius: 9px;
  background: #fff;
}

.portal-notification-row.is-unread,
.staff-notification-row.is-unread {
  border-color: #d7e9dd;
  background: #f7fcf8;
}

.portal-notification-row strong,
.staff-notification-row strong,
.staff-followup-row strong {
  color: #3f4355;
  font-size: 13px;
}

.portal-notification-row p,
.staff-notification-row p {
  margin: 5px 0;
  color: #606475;
  font-size: 12px;
  line-height: 1.5;
}

.portal-notification-row small,
.staff-notification-row small,
.staff-followup-row small {
  display: block;
  color: #888b99;
  font-size: 10px;
}

.staff-followup-row>div:first-child {
  display: grid;
  gap: 5px;
}

.staff-followup-row .staff-followup-due {
  color: #b33f4a;
  font-weight: 700;
}

.staff-followup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-followup-actions input,
.staff-service-followup-date {
  min-height: 33px;
  padding: 0 8px;
  border: 1px solid #e1e3eb;
  border-radius: 5px;
  color: #55596a;
  background: #fff;
  font: inherit;
  font-size: 11px;
}

.client-payment-summary,
.staff-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.client-payment-summary article,
.staff-payment-summary article {
  display: grid;
  gap: 6px;
  padding: 13px 16px;
  border: 1px solid #e8e9ef;
  border-radius: 8px;
  background: #fff;
}

.client-payment-summary article span,
.staff-payment-summary article span {
  color: #858896;
  font-size: 11px;
}

.client-payment-summary article strong,
.staff-payment-summary article strong {
  color: #3f4355;
  font: 700 18px "Manrope", sans-serif;
}

.staff-payment-ledger {
  display: grid;
  gap: 9px;
}

.staff-payment-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 16px;
  border: 1px solid #e8e9ef;
  border-radius: 8px;
  background: #fff;
}

.staff-payment-ledger-row>div {
  display: grid;
  gap: 4px;
}

.staff-payment-ledger-row>div:last-child {
  text-align: right;
}

.staff-payment-ledger-row strong {
  color: #424657;
  font-size: 13px;
}

.staff-payment-ledger-row small {
  color: #858896;
  font-size: 10px;
}

.staff-payment-ledger-row .payment-status-submitted {
  color: #96620a;
  font-weight: 700;
}

.staff-payment-ledger-row .payment-status-verified {
  color: #187744;
  font-weight: 700;
}

.staff-payment-ledger-row .payment-status-rejected {
  color: #b33f4a;
  font-weight: 700;
}

@media (max-width: 760px) {
  .portal-notification-row,
  .staff-notification-row,
  .staff-followup-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-payment-ledger-row {
    align-items: flex-start;
  }
}

.portal-sidebar-bottom {
  margin-top: auto;
  padding: 12px 8px 2px;
  border-top: 1px solid #f0f0f4;
  color: #9395a2;
  font-size: 11px;
}

.portal-online,
.portal-footer>span:last-child i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #55c29b;
}

.portal-main {
  width: calc(100% - 226px);
  min-height: 100vh;
  margin-left: 226px;
}

.portal-topbar {
  height: 61px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #ededf2;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #999ba8;
  font-size: 11px;
}

.portal-breadcrumb>span:nth-child(2) {
  color: #c3c4cd;
}

.portal-breadcrumb strong {
  color: #424455;
  font-weight: 600;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #595b6b;
  font-size: 11px;
  font-weight: 600;
}

.portal-admin-preview {
  padding: 4px 6px;
  border: 1px solid #efd39a;
  border-radius: 4px;
  color: #805c1c;
  background: #fff5dc;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.portal-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6c5fbe;
  background: #eeeafb;
  font-size: 11px;
  font-weight: 700;
}

.portal-app.is-staff-preview [data-open-dialog],
.portal-app.is-staff-preview #request-service-button,
.portal-app.is-staff-preview .portal-quick-grid,
.portal-app.is-staff-preview .purchase-form-button {
  display: none !important;
}

.portal-user button {
  margin-left: 8px;
  padding: 6px 8px;
  border: 1px solid #ececf2;
  border-radius: 5px;
  color: #7a7c8b;
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}

.portal-user .portal-profile-button {
  border-color: #e8e6f5;
  color: #6e62ca;
  background: #fbfaff;
}

.portal-user .portal-profile-button:hover {
  border-color: #d6d1f2;
  background: #f6f4ff;
}

.portal-content {
  max-width: 1260px;
  margin: 0 auto;
  padding: 26px 32px 20px;
}

.portal-welcome {
  min-height: 151px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 27px;
  border: 1px solid #e9e7f8;
  border-radius: 10px;
  background: linear-gradient(110deg, #fff 0%, #fbfaff 70%, #f1efff 100%);
}

.portal-welcome h1 {
  margin: 10px 0 6px;
  color: #292a3a;
  font: 700 26px "Manrope", sans-serif;
  letter-spacing: -.8px;
}

.portal-welcome h1>span:last-child {
  color: #9387e9;
  font-size: 19px;
}

.portal-welcome p {
  margin: 0;
  color: #898b99;
  font-size: 12px;
}

.portal-welcome-art {
  position: relative;
  width: 142px;
  height: 107px;
  margin-right: 13px;
}

.portal-welcome-art::before,
.portal-welcome-art::after {
  content: "";
  position: absolute;
  inset: 3px 10px;
  border: 1px solid rgba(130, 120, 219, .17);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.portal-welcome-art::after {
  inset: 18px -3px;
  transform: rotate(28deg);
}

.portal-welcome-art>span {
  position: absolute;
  z-index: 1;
  top: 31px;
  left: 56px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #7165df;
  background: #fff;
  box-shadow: 0 8px 25px rgba(81, 74, 159, .13);
  font-size: 20px;
}

.portal-welcome-art>i,
.portal-welcome-art>b {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a99df4;
}

.portal-welcome-art>i {
  top: 10px;
  right: 18px;
}

.portal-welcome-art>b {
  left: 7px;
  bottom: 12px;
  width: 6px;
  height: 6px;
  background: #85cdb8;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 14px 0 24px;
}

.portal-stat-grid article {
  min-height: 83px;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-content: center;
  column-gap: 10px;
  padding: 13px;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  background: #fff;
}

.portal-stat-icon {
  width: 30px;
  height: 30px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 16px;
}

.stat-purple {
  color: #6e62d1;
  background: #f0effc;
}

.stat-blue {
  color: #4988ad;
  background: #eaf4fa;
}

.stat-green {
  color: #418d74;
  background: #e9f6ef;
}

.portal-stat-grid article>span:nth-child(2) {
  color: #898b99;
  font-size: 11px;
}

.portal-stat-grid article>strong {
  margin-top: 4px;
  color: #303243;
  font: 700 20px "Manrope", sans-serif;
}

.portal-view {
  padding: 17px;
  border: 1px solid var(--portal-border);
  border-radius: 9px;
  background: #fff;
}

.portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-section-heading h2 {
  margin: 0;
  color: #333546;
  font: 700 15px "Manrope", sans-serif;
}

.portal-section-heading p {
  margin: 5px 0 0;
  color: #999ba8;
  font-size: 11px;
}

.portal-small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.portal-card-list {
  display: grid;
  gap: 9px;
}

.portal-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #f0f0f4;
  border-radius: 7px;
  background: #fff;
}

.portal-record-icon {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #7165df;
  background: #f0effc;
  font-size: 16px;
}

.portal-record-body {
  min-width: 0;
  flex: 1;
}

.portal-record-body h3 {
  margin: 0;
  color: #444657;
  font: 600 12px "Manrope", sans-serif;
}

.portal-record-body p {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #9698a5;
  font-size: 10px;
  line-height: 1.5;
}

.portal-record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #a0a2ae;
  font-size: 10px;
}

.portal-invoice-link {
  color: #28694c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.payment-offline-pending {
  flex-basis: 100%;
  color: #875914;
  font-weight: 600;
}

.purchase-form-button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #e8e6f5;
  border-radius: 5px;
  color: #6e62ca;
  background: #fbfaff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.purchase-form-button:hover {
  border-color: #d6d1f2;
  background: #f6f4ff;
}

.purchase-pay-button {
  border-color: #c8ead7;
  color: #187247;
  background: #effaf3;
}

.purchase-pay-button:hover {
  border-color: #a5d9bc;
  background: #e5f6eb;
}

.purchase-pay-button:disabled {
  border-color: #e7e8ef;
  color: #858797;
  background: #f5f5f8;
  cursor: not-allowed;
}

.milestone-list {
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #eaebf1;
  border-radius: 8px;
  background: #fbfbfd;
}

.milestone-list-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: #393d50;
  font-size: 12px;
  font-weight: 700;
}

.milestone-list-heading span {
  color: #797d8c;
  font-weight: 400;
}

.client-milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 7px;
}

.client-milestone-tile {
  display: grid;
  min-height: 66px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 7px 9px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: #858a92;
}

.client-milestone-tile.is-complete {
  border-color: #23984f;
  background: #27a95b;
}

.client-milestone-tile.is-active {
  border-color: #e5b329;
  color: #51400c;
  background: #f8c63d;
}

.client-milestone-tile.is-next {
  border-color: #3471b5;
  background: #397fc4;
}

.client-milestone-tile.is-locked {
  border-color: #858a92;
  background: #858a92;
}

.client-milestone-box {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  color: #fff;
  background: rgb(28 38 50 / 28%);
  font: 800 9px "Manrope", sans-serif;
}

.client-milestone-tile.is-active .client-milestone-box {
  border-color: rgb(81 64 12 / 20%);
  color: #51400c;
  background: rgb(255 255 255 / 46%);
}

.client-milestone-tile.is-complete .client-milestone-box {
  border-color: rgb(255 255 255 / 45%);
  color: #fff;
  background: rgb(28 38 50 / 24%);
}

.client-milestone-tile > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-milestone-tile > div strong {
  color: inherit;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.client-milestone-tile > div small {
  color: inherit;
  font-size: 9px;
  opacity: .9;
}

.client-milestone-tile.is-complete > div small {
  color: #fff;
}

.client-milestone-tile > div .client-milestone-email {
  font-size: 8px;
}

.client-milestone-document {
  grid-column: 2;
  color: inherit;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.client-service-comments {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #eef0f3;
  border-radius: 7px;
  background: #fcfcfd;
}

.client-service-comments h3 {
  margin: 0;
  color: #55576a;
  font: 600 11px "Manrope", sans-serif;
}

.client-service-comment {
  padding: 8px 9px;
  border-radius: 5px;
  background: #fff;
}

.client-service-comment p,
.client-service-comment small {
  display: block;
  margin: 0;
  color: #555969;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.client-service-comment small {
  margin-top: 5px;
  color: #9294a2;
  font-size: 10px;
}

.milestone-item,
.milestone-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #737584;
  font-size: 10px;
  line-height: 1.5;
}

.milestone-item label {
  cursor: pointer;
}

.milestone-box {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7dae2;
  border-radius: 4px;
  color: #fff;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.milestone-item.is-complete {
  color: #267748;
}

.milestone-item.is-complete .milestone-box {
  border-color: #35a765;
  background: #35a765;
}

.staff-milestone-list {
  margin-top: 11px;
}

.staff-milestone-list .milestone-item input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 0;
  accent-color: #2eaa62;
}

.staff-milestone-list .milestone-item input:disabled {
  cursor: wait;
}

.purchase-form-guidance {
  margin: -5px 0 12px;
  color: #9182ca;
  font-size: 11px;
}

.purchase-intake-fields {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}

.intake-form-intro {
  display: grid;
  gap: 4px;
  margin: 0 0 1px;
  padding: 10px;
  border: 1px solid #eceafa;
  border-radius: 6px;
  background: #faf9ff;
}

.intake-form-intro strong {
  color: #514d7a;
  font-size: 11px;
}

.intake-form-intro span {
  color: #898b99;
  font-size: 10px;
  line-height: 1.5;
}

.intake-answer-field {
  display: grid;
  gap: 6px;
}

.intake-answer-field>label {
  color: #444657;
  font-size: 11px;
  font-weight: 600;
}

.intake-answer-field>input,
.intake-answer-field>select,
.intake-answer-field>textarea {
  width: 100%;
  min-height: 37px;
  padding: 9px 10px;
  border: 1px solid #e7e8ef;
  border-radius: 6px;
  outline: 0;
  color: #363849;
  background: #fff;
  font: 12px "DM Sans", sans-serif;
}

.intake-answer-field>textarea {
  resize: vertical;
  line-height: 1.5;
}

.intake-answer-field>input:focus,
.intake-answer-field>select:focus,
.intake-answer-field>textarea:focus {
  border-color: #9187ec;
  box-shadow: 0 0 0 3px rgba(113, 101, 232, .1);
}

.intake-answer-field>input::placeholder,
.intake-answer-field>textarea::placeholder {
  color: #adafba;
}

.intake-answer-file-status {
  color: #6258c9;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.intake-answer-file-hint {
  color: #999ba8;
  font-size: 10px;
}

.required-mark {
  color: #cc6e69;
}

.intake-answer-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555768;
  font-size: 11px;
  line-height: 1.5;
}

.intake-answer-checkbox input {
  accent-color: #7165df;
}

.portal-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 10px;
  color: #6d62ca;
  background: #f0effb;
  font-size: 10px;
  white-space: nowrap;
}

.status-completed,
.status-verified {
  color: #3e9875;
  background: #eaf6ef;
}

.status-progress {
  color: #8b6a22;
  background: #fff4d4;
}

.status-awaiting,
.status-open,
.status-requested {
  color: #b37d39;
  background: #fbf1e5;
}

.status-planning {
  color: #647276;
  background: #edf1f1;
}

.status-review-needed {
  color: #b94f29;
  background: #fff0e8;
}

.status-submitted {
  color: #477ba5;
  background: #eaf2f8;
}

.status-rejected,
.status-cancelled {
  color: #b96262;
  background: #f9eceb;
}

.portal-empty {
  display: grid;
  justify-items: center;
  padding: 32px 14px;
  border: 1px dashed #e5e4ed;
  border-radius: 7px;
  text-align: center;
}

.portal-empty>span {
  color: #9a90e6;
  font-size: 24px;
}

.portal-empty>strong {
  margin-top: 8px;
  color: #484a5b;
  font-size: 12px;
}

.portal-empty p {
  margin: 5px 0 12px;
  color: #999ba8;
  font-size: 11px;
}

.portal-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.portal-quick-card {
  min-height: 81px;
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: center;
  column-gap: 9px;
  padding: 12px;
  border: 1px solid var(--portal-border);
  border-radius: 7px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.portal-quick-card:hover {
  border-color: #dcd9f3;
  background: #fcfbff;
}

.quick-icon {
  width: 29px;
  height: 29px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 15px;
}

.quick-purple {
  color: #6e62d1;
  background: #f0effc;
}

.quick-green {
  color: #418d74;
  background: #e9f6ef;
}

.quick-blue {
  color: #4988ad;
  background: #eaf4fa;
}

.portal-quick-card>strong {
  color: #484a5b;
  font-size: 11px;
}

.portal-quick-card>small {
  margin-top: 4px;
  color: #999ba8;
  font-size: 10px;
}

.quick-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #aaa6ca;
  font-size: 13px;
}

.document-category-list {
  display: grid;
  gap: 13px;
}

.document-group {
  overflow: hidden;
  border: 1px solid #efeff4;
  border-radius: 7px;
}

.document-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: #545667;
  background: #fafaff;
  font-size: 11px;
  font-weight: 600;
}

.document-group-heading span {
  color: #999ba8;
  font-size: 10px;
  font-weight: 400;
}

.document-row {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-top: 1px solid #f1f1f5;
}

.document-file-icon {
  width: 25px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #da726a;
  background: #fff0ee;
  font-size: 10px;
  font-weight: 700;
}

.document-row>div {
  flex: 1;
  min-width: 0;
}

.document-row strong,
.document-row small {
  display: block;
}

.document-row strong {
  overflow: hidden;
  color: #545667;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-row small {
  margin-top: 3px;
  color: #a0a2ae;
  font-size: 10px;
}

.document-row button {
  padding: 6px 8px;
  border: 1px solid #ececf2;
  border-radius: 5px;
  color: #6d62ca;
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 1px 0;
  color: #a0a2ae;
  font-size: 10px;
}

.portal-footer>span:last-child i {
  width: 5px;
  height: 5px;
  margin: 0 4px 0 0;
}

.portal-dialog {
  width: min(calc(100% - 30px), 430px);
  max-width: 430px;
  max-height: min(90vh, 700px);
  padding: 0;
  border: 1px solid #e9e9f0;
  border-radius: 10px;
  color: #252638;
  background: #fff;
  box-shadow: 0 22px 70px rgba(37, 38, 56, .2);
}

.portal-service-dialog {
  width: min(calc(100% - 30px), 760px);
  max-width: 760px;
}

.portal-service-dialog .portal-dialog-form {
  max-height: min(90vh, 700px);
  overflow-y: auto;
}

.portal-dialog::backdrop {
  background: rgba(34, 35, 52, .4);
  backdrop-filter: blur(2px);
}

.portal-dialog-form {
  padding: 23px;
}

.dialog-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.dialog-title h2 {
  margin: 6px 0 4px;
  color: #353647;
  font: 700 19px "Manrope", sans-serif;
}

.dialog-title p {
  margin: 0;
  color: #9294a2;
  font-size: 11px;
  line-height: 1.5;
}

.dialog-close {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  color: #828493;
  background: #f4f4f7;
  font-size: 20px;
  cursor: pointer;
}

.portal-dialog-form>label {
  margin: 13px 0 6px;
}

.portal-dialog-form input[type="file"] {
  height: auto;
  padding: 8px;
  font-size: 11px;
}

.portal-dialog-form>label span {
  color: #a1a3af;
  font-weight: 400;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}

.portal-secondary {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e8e8ef;
  border-radius: 6px;
  color: #6e7080;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.portal-toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  padding: 11px 14px;
  border: 1px solid #e8e6f5;
  border-radius: 7px;
  color: #47465c;
  background: #fff;
  box-shadow: 0 9px 30px rgba(35, 34, 68, .13);
  font-size: 12px;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.portal-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1500px) {
  .portal-content {
    padding-top: 34px;
  }

  .portal-welcome {
    min-height: 165px;
  }

  .portal-view {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .portal-sidebar {
    width: 66px;
    align-items: center;
    padding: 19px 8px 13px;
  }

  .portal-sidebar .portal-brand {
    margin: 0 auto 28px;
  }

  .portal-sidebar .portal-brand:not(.portal-brand-mark) {
    font-size: 0;
  }

  .portal-side-caption,
  .portal-sidebar-bottom {
    display: none;
  }

  .portal-nav {
    width: 100%;
    justify-items: center;
    margin: 0;
  }

  .portal-nav-link {
    width: 43px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .portal-nav-link>span {
    font-size: 18px;
  }

  .portal-main {
    width: calc(100% - 66px);
    margin-left: 66px;
  }

  .portal-content {
    padding-right: 21px;
    padding-left: 21px;
  }

  .portal-topbar {
    padding: 0 21px;
  }
}

@media (max-width: 600px) {
  .portal-login>.portal-brand {
    top: 20px;
    left: 20px;
  }

  .portal-login-card {
    padding: 27px 24px 23px;
  }

  .portal-app {
    display: block;
  }

  .portal-sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 58px;
    flex-direction: row;
    justify-content: center;
    padding: 4px 7px;
    border-top: 1px solid #ececf2;
    border-right: 0;
  }

  .portal-sidebar .portal-brand {
    display: none;
  }

  .portal-nav {
    display: flex;
    justify-content: space-around;
    gap: 1px;
  }

  .portal-nav-link {
    width: auto;
    min-width: 49px;
    min-height: 47px;
    flex-direction: column;
    gap: 1px;
    padding: 3px;
    font-size: 10px;
  }

  .portal-nav-link>span {
    font-size: 16px;
  }

  .portal-main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 58px;
  }

  .portal-topbar {
    height: 53px;
    padding: 0 13px;
  }

  .portal-user {
    gap: 6px;
    font-size: 10px;
  }

  .portal-user button {
    margin-left: 2px;
  }

  .portal-user .portal-profile-button {
    padding: 5px 6px;
  }

  .portal-content {
    padding: 14px 11px 17px;
  }

  .portal-welcome {
    min-height: 127px;
    padding: 17px 16px;
  }

  .portal-welcome h1 {
    font-size: 21px;
  }

  .portal-welcome p {
    max-width: 235px;
    font-size: 11px;
    line-height: 1.5;
  }

  .portal-welcome-art {
    width: 70px;
    height: 80px;
    flex: 0 0 auto;
    margin-right: -6px;
    transform: scale(.72);
    transform-origin: center;
  }

  .portal-stat-grid {
    gap: 7px;
    margin: 9px 0 12px;
  }

  .portal-stat-grid article {
    min-height: 75px;
    grid-template-columns: 27px 1fr;
    column-gap: 7px;
    padding: 8px;
  }

  .portal-stat-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .portal-stat-grid article>span:nth-child(2) {
    font-size: 10px;
  }

  .portal-stat-grid article>strong {
    font-size: 18px;
  }

  .portal-view {
    padding: 12px 10px;
  }

  .portal-section-heading {
    align-items: flex-start;
    gap: 6px;
  }

  .portal-section-heading h2 {
    font-size: 14px;
  }

  .portal-section-heading p {
    max-width: 220px;
    font-size: 10px;
    line-height: 1.45;
  }

  .portal-small {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .portal-quick-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .portal-quick-card {
    min-height: 59px;
  }

  .portal-footer {
    font-size: 10px;
  }

  .portal-dialog-form {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.client-credential-card { display: grid; gap: 10px; padding: 17px; border: 1px solid #e6e8ef; border-radius: 9px; background: #fff; }
.client-credential-card h3 { margin: 0; color: #393d50; font: 750 18px "Manrope", sans-serif; }
.client-credential-value { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: #515565; font-size: 14px; overflow-wrap: anywhere; }
.client-credential-value strong { min-width: 90px; color: #777b8a; font-size: 12px; }
.client-credential-reveal { padding: 4px 8px; border: 1px solid #e4e5ed; border-radius: 5px; color: #564bb0; background: #f9f8ff; font-size: 12px; cursor: pointer; }
.client-credential-notes { margin: 0; color: #737786; font-size: 13px; white-space: pre-wrap; }
.credential-login-link { color: #5e53b7; font-size: 12px; font-weight: 700; text-decoration: none; }