.portal-page {
  --red: #075ceb;
  --navy: #09214d;
  --ink: #14244b;
  background: #f6f9ff;
  color: #14244b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.portal-page [hidden] {
  display: none !important;
}
.portal-page h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
.portal-page h2 {
  font-size: 19px;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
.portal-page h3 {
  font-size: 16px;
}
.portal-page a {
  color: #0755ca;
}
.portal-page button,
.portal-page input,
.portal-page select {
  font: inherit;
}
.portal-page :focus-visible {
  outline: 3px solid #ed264a;
  outline-offset: 3px;
}
.portal-page .button {
  background: #075ceb;
  border-color: #075ceb;
  border-radius: 7px;
  padding: 10px 16px;
  min-height: 42px;
}
.portal-page .button-outline {
  background: #fff;
  color: #0755ca;
  border: 1px solid #a8c5ef;
}
.portal-page .text-button {
  color: #0755ca;
}
.portal-page label {
  font-size: 13px;
}
.portal-page .small,
.portal-page small {
  font-size: 12px;
  color: #526180;
}
.portal-page input,
.portal-page select,
.portal-page textarea {
  border: 1px solid #c7d4e8;
  border-radius: 6px;
  background: white;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  color: #14244b;
}
.portal-page textarea {
  width: 100%;
  min-height: 90px;
}
.portal-page input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
}
.portal-page .portal-card {
  padding: 20px;
  margin: 0;
  border-color: #e0e9f7;
  box-shadow: 0 3px 15px #12366a04;
  background: #fff;
  border-radius: 9px;
}
.portal-startup {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #c7d4e8;
  border-radius: 7px;
  background: #fff;
}
.portal-startup p {
  margin: 0 0 6px;
}
.portal-startup.error {
  border-color: #c63346;
}
.portal-page .portal-card + .portal-card {
  margin-top: 16px;
}
.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: #042348;
  color: white;
  z-index: 30;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.portal-brand {
  display: block;
  background: white;
  padding: 14px 16px;
}
.portal-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.portal-sidebar nav {
  padding: 18px 12px;
}
.portal-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #f6f9ff;
  padding: 14px 12px;
  border-radius: 6px;
  margin: 5px 0;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.5;
}
.portal-sidebar nav a[aria-current='page'] {
  background: #0065ff;
  box-shadow: 0 5px 20px #00162e40;
}
.portal-sidebar nav a:hover {
  background: #0b3970;
}
.portal-sidebar nav svg {
  flex: none;
}
.sidebar-story {
  margin-top: auto;
  min-height: 300px;
  padding: 170px 26px 32px;
  background:
    linear-gradient(0deg, #042348 4%, #04234855 76%, #042348),
    url('/assets/hero-family.jpeg') center/cover;
}
.sidebar-story p {
  font-size: 25px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
}
.sidebar-story > span {
  display: block;
  width: 44px;
  height: 5px;
  background: #ed1640;
  margin-top: 20px;
  border-radius: 6px;
}
.portal-frame {
  margin-left: 260px;
}
.portal-topbar {
  height: 74px;
  border-bottom: 1px solid #e0e9f7;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 28px;
  background: #fff;
  position: relative;
  z-index: 20;
}
.portal-icon-button {
  border: 1px solid #d7e2f2;
  background: white;
  border-radius: 6px;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
  color: #09214d;
  font-size: 22px;
}
.portal-topbar #sidebar-toggle {
  display: none;
}
#workspace-label {
  color: #526180;
}
.portal-page .portal-install-app {
  min-height: 38px;
  padding: 7px 12px;
  border-color: #a8d5c5;
  color: #075b43;
  white-space: nowrap;
}
.notification-bell {
  position: relative;
  margin-left: auto;
  font-size: 18px;
}
.notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d51f37;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.notification-count[hidden] {
  display: none;
}
.notification-bell .notification-count {
  position: absolute;
  top: -7px;
  right: -8px;
}
.portal-sidebar .notification-count {
  margin-left: auto;
}
.notification-toolbar,
.notification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-toolbar {
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2eaf5;
}
.notification-toolbar p {
  margin: 5px 0 0;
}
.notification-actions label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
}
.notification-actions select {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #cad7e8;
  border-radius: 6px;
  background: white;
  color: #09214d;
}
.notification-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d8e4f2;
  border-left: 4px solid #92a9c5;
  border-radius: 8px;
  background: #fff;
}
.notification-item.is-unread {
  border-left-color: #087b54;
  background: #f0fbf6;
}
.notification-item h3,
.notification-item p {
  margin: 0 0 5px;
}
.notification-item p:last-child {
  margin-bottom: 0;
}
.notification-item .small {
  color: #526180;
}
.notification-item-actions {
  display: flex;
  flex: none;
  gap: 8px;
}
.portal-notification-banner {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(460px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #98d8be;
  border-radius: 10px;
  background: #f0fbf6;
  box-shadow: 0 12px 36px #09234b24;
}
.portal-notification-banner[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .notification-item,
  .notification-toolbar,
  .notification-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .notification-item-actions {
    flex-wrap: wrap;
  }
  .portal-notification-banner {
    top: 80px;
    left: 16px;
    right: 16px;
    width: auto;
  }
}
.account-menu {
  position: relative;
  margin-left: auto;
}
.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.account-menu strong,
.account-menu small {
  display: block;
}
.account-menu > div {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 210px;
  border: 1px solid #d7e2f2;
  background: white;
  box-shadow: 0 8px 25px #09214d20;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 12px;
}
.portal-avatar {
  width: 42px;
  height: 42px;
  background: #071c40;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex: none;
}
.portal-main {
  max-width: 1750px;
  margin: auto;
  padding: 24px;
}
.portal-main > .status:empty {
  display: none;
}
.portal-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.portal-welcome p {
  margin: 6px 0 0;
  color: #526180;
}
.portal-date {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding: 12px 16px;
  background: #edf4ff;
  border: 1px solid #e0e9f7;
  border-radius: 7px;
}
.portal-date small,
.portal-date strong {
  display: block;
  font-size: 12px;
}
.portal-date svg {
  color: #075ceb;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metric-card {
  border: 1px solid #e0e9f7;
  border-radius: 8px;
  padding: 17px;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  background: #f4f8ff;
  color: #14244b;
  cursor: pointer;
}
.metric-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.15;
  margin-top: 6px;
}
.metric-card svg {
  width: 30px;
  height: 30px;
}
.metric-icon {
  background: #e1edff;
  color: #0060e5;
  padding: 12px;
  border-radius: 10px;
  display: flex;
}
.metric-card:nth-child(2) {
  background: #f1faf4;
}
.metric-card:nth-child(2) .metric-icon {
  background: #daf2e3;
  color: #057c3f;
}
.metric-card:nth-child(3) {
  background: #fff9ee;
}
.metric-card:nth-child(3) .metric-icon {
  background: #ffedca;
  color: #a85b00;
}
.metric-card:nth-child(4) {
  background: #fff3f5;
}
.metric-card:nth-child(4) .metric-icon {
  background: #ffe0e6;
  color: #c0143b;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr);
  gap: 16px;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.dashboard-bottom .portal-card + .portal-card {
  margin: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-heading h2 {
  margin: 0;
}
.card-heading > a {
  white-space: nowrap;
  font-size: 12px;
}
.portal-table-wrap {
  overflow: auto;
  max-width: 100%;
}
.portal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 590px;
  text-align: left;
  font-size: 12px;
}
.portal-table th {
  background: #f5f8fd;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  padding: 11px 8px;
  color: #18254b;
}
.portal-table td {
  padding: 13px 8px;
  border-bottom: 1px solid #edf1f8;
  vertical-align: middle;
}
.portal-table .cell-secondary {
  display: block;
  font-size: 11px;
  color: #526180;
  margin-top: 4px;
}
.portal-table .table-button {
  font-size: 12px;
  border: 1px solid #acc8f5;
  padding: 5px 10px;
  background: white;
  border-radius: 5px;
  color: #0755ca;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.portal-table details {
  margin: 0;
  padding: 0;
  border: 0;
}
.portal-table summary {
  cursor: pointer;
}
.portal-table details button {
  display: block;
  margin: 6px 0;
}
.status-pill,
.insurance-pill {
  font-size: 11px;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 6px;
  display: inline-block;
  background: #eaf2ff;
  color: #0755ca;
}
.insurance-pill.health,
.status-completed {
  background: #e5f6ec;
  color: #046b35;
}
.status-rescheduled,
.status-meeting-pending {
  background: #fff1da;
  color: #875100;
}
.status-cancelled,
.status-no-show {
  background: #ffe6ec;
  color: #a90b33;
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-actions a {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 12px;
  background: #edf4ff;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
}
.quick-actions a:nth-child(2) {
  background: #eaf7ef;
  color: #046b35;
}
.quick-actions a:last-child {
  background: #f3eeff;
  color: #6535ba;
}
.calendar-tabs {
  display: flex;
  border: 1px solid #d7e2f2;
  border-radius: 6px;
}
.portal-page .calendar-tabs button,
.portal-page .calendar-toolbar button {
  margin: 0;
  background: white;
  border: 0;
  padding: 7px 11px;
  color: #18315c;
  border-radius: 5px;
  cursor: pointer;
}
.calendar-tabs button[aria-pressed='true'] {
  background: #0065ff;
  color: white;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.calendar-toolbar button {
  border: 1px solid #d7e2f2;
}
.calendar-toolbar input {
  width: 145px;
  padding: 5px;
  margin-left: auto;
}
.calendar-events-day {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.calendar-events-day h3 {
  margin: 6px 0;
}
.calendar-event {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 9px;
  position: relative;
  border: 0;
  border-left: 4px solid #0866ff;
  border-radius: 5px;
  background: #edf4ff;
  padding: 11px;
  text-align: left;
  color: #14244b;
  cursor: pointer;
  width: 100%;
}
.calendar-event.health {
  border-color: #009950;
  background: #eaf7ef;
}
.calendar-event small {
  display: block;
}
.calendar-event.cancelled {
  opacity: 0.7;
  text-decoration: line-through;
}
.calendar-event:focus-visible {
  outline-offset: 1px;
}
.calendar-events-week {
  max-height: 470px;
  overflow-y: auto;
  padding: 3px;
}
.profile-summary-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 14px;
}
.profile-summary-heading strong {
  display: block;
}
.profile-summary-line {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.connection-line {
  border-top: 1px solid #e0e9f7;
  padding-top: 12px;
  margin-top: 14px;
}
.lead-filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  align-items: end;
  gap: 12px;
  margin: 20px 0;
}
.lead-filters label {
  display: grid;
  gap: 5px;
}
.portal-detail-dialog {
  width: min(850px, 94vw);
  max-height: 90vh;
  padding: 22px;
  border: 1px solid #d7e2f2;
  border-radius: 12px;
  color: #14244b;
}
.portal-detail-dialog::backdrop {
  background: #071b43a8;
}
.portal-page .portal-record {
  border-color: #e0e9f7;
}
.portal-page #management > .portal-card {
  margin: 16px 0;
}
.portal-page .summary-grid {
  margin: 16px 0;
}
.portal-page #availability .portal-card {
  margin-top: 18px;
}
.portal-page form:not(.lead-filters) {
  display: grid;
  gap: 8px;
}
.portal-page .portal-card form {
  margin-top: 12px;
}
.portal-page .portal-card details {
  margin-top: 14px;
}
.portal-footer {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e0e9f7;
  font-size: 12px;
  color: #526180;
}
.portal-footer a {
  float: right;
}
.portal-skip {
  position: fixed;
  left: 0;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.portal-skip:focus {
  top: 0;
}
.portal-empty {
  padding: 24px 12px;
  color: #526180;
}
.portal-loading {
  padding: 25px;
  color: #526180;
}
.portal-case-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.portal-case-form label {
  display: grid;
  gap: 6px;
}
.portal-case-form fieldset {
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.portal-case-form legend {
  font-weight: bold;
  padding: 0 6px;
}

/* Advisor Management uses the existing portal palette and controls. */
#advisor-management {
  --am-line: #e2e9f3;
  --am-muted: #5d6c85;
  --am-blue: #075ceb;
  --am-green: #08765f;
}
.am-page-heading,
.am-directory-heading,
.am-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.am-page-heading {
  margin: 4px 0 25px;
}
.am-page-heading p {
  margin: 0;
  color: var(--am-muted);
  font-size: 13px;
}
.am-page-heading .am-eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #576d91;
  margin-bottom: 10px;
}
.portal-page .am-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #294368;
  border: 1px solid #d4dfed;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 42px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.am-refresh svg {
  width: 16px;
  height: 16px;
}
.am-refresh:hover {
  background: #edf4ff;
  border-color: #a6c4ed;
}
.am-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}
.am-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.am-metric {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 19px;
  border: 1px solid var(--am-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 9px #15386103;
}
.am-metric-label,
.am-metric-note {
  display: block;
  color: var(--am-muted);
  font-size: 12px;
}
.am-metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 7px 0 5px;
  color: #11284c;
}
.am-metric-note {
  font-size: 10px;
}
.am-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf4ff;
  color: #1763d6;
}
.am-symbol svg {
  width: 20px;
  height: 20px;
}
.am-metric-green .am-symbol {
  background: #e9f6f1;
  color: #08765f;
}
.am-metric-violet .am-symbol {
  background: #f1edfd;
  color: #6b50b2;
}
.am-metric-amber .am-symbol {
  background: #fff4df;
  color: #98600a;
}
.am-directory-heading {
  margin-bottom: 17px;
}
.portal-page .am-directory-heading h2,
.portal-page .am-panel-heading h2 {
  margin: 0;
  font-size: 18px;
}
.am-directory-heading p {
  margin: 4px 0 0;
  color: var(--am-muted);
  font-size: 12px;
}
.am-updated {
  font-size: 11px;
  color: var(--am-muted);
  white-space: nowrap;
}
.am-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.am-filters {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e1e8f3;
  border-radius: 10px;
  background: #eaf0f9;
}
.portal-page .am-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #475e7c;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.am-filter > span {
  font-size: 10px;
  background: #dfe7f4;
  color: #4c607c;
  border-radius: 4px;
  padding: 1px 6px;
}
.am-filter[aria-pressed='true'] {
  background: #fff;
  border-color: #dbe5f4;
  color: #0755ca;
  font-weight: 600;
  box-shadow: 0 2px 4px #15386109;
}
.am-filter[aria-pressed='true'] > span {
  background: #eaf2ff;
  color: #0755ca;
}
.am-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 1 270px;
}
#advisor-search-icon {
  position: absolute;
  left: 12px;
  color: #6e7d94;
  pointer-events: none;
  display: flex;
}
#advisor-search-icon svg {
  width: 17px;
  height: 17px;
}
.portal-page .am-search input {
  padding: 11px 12px 11px 38px;
  border-radius: 8px;
  border-color: #d7e2f0;
  width: 100%;
  font-size: 12px;
  margin: 0;
}
.am-search input::placeholder {
  color: #667994;
}
.am-advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.am-advisor-card {
  min-width: 0;
  border: 1px solid #dce6f3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px #17335d04;
  overflow: hidden;
}
.am-advisor-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 21px 17px;
}
.am-advisor-avatar {
  width: 43px;
  height: 43px;
  border: 1px solid #d4e5ff;
  background: #edf4ff;
  color: #0755ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.am-health .am-advisor-avatar {
  background: #eaf7f2;
  border-color: #d5ece4;
  color: #08765f;
}
.am-advisor-identity {
  min-width: 0;
  flex: 1;
}
.portal-page .am-advisor-identity h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.am-department {
  margin: 0;
  color: #426897;
  font-size: 11px;
}
.am-health .am-department {
  color: #28725f;
}
.am-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px;
  background: #f0f3f8;
  color: #53617a;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.am-advisor-heading > .am-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.am-success {
  background: #e8f5ed;
  color: #136641;
}
.am-warning {
  background: #fff3df;
  color: #8c5603;
}
.am-booking-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 21px 16px;
  padding: 14px 16px;
  background: #f7f9fd;
  border: 1px solid #eef2f8;
  border-radius: 8px;
}
.am-booking-stats > div + div {
  border-left: 1px solid #e2e8f1;
  padding-left: 20px;
}
.am-booking-stats dt {
  color: var(--am-muted);
  font-size: 11px;
}
.am-booking-stats dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #172d51;
}
.am-readiness {
  display: grid;
  gap: 12px;
  padding: 0 21px;
}
.am-readiness-row,
.am-readiness-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.am-readiness-row {
  justify-content: space-between;
}
.am-readiness-label {
  font-size: 12px;
  color: #4b5f7d;
}
.am-readiness-label svg {
  width: 16px;
  height: 16px;
  color: #7085a4;
}
.am-last-login {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 17px 21px 13px;
  color: #65748b;
  font-size: 10px;
}
.am-last-login svg,
.am-setup-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.am-setup-note {
  margin: 0 21px 17px;
  padding: 7px 9px;
  background: #fff9ef;
  border: 1px solid #f8ecd6;
  border-radius: 5px;
  color: #8b601b;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.am-card-actions {
  position: relative;
  border-top: 1px solid #e8eef7;
  padding: 0 21px;
}
.am-manage > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  width: fit-content;
  cursor: pointer;
  color: #2c496f;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.am-manage > summary::-webkit-details-marker {
  display: none;
}
.am-manage > summary svg {
  width: 15px;
  height: 15px;
}
.am-manage > summary svg:last-child {
  width: 12px;
  transition: transform 0.15s;
}
.am-manage[open] > summary svg:last-child {
  transform: rotate(90deg);
}
.portal-page .am-quick-reset {
  position: absolute;
  right: 21px;
  top: 9px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #0755ca;
  padding: 7px 0 7px 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  min-height: 32px;
}
.am-quick-reset:hover {
  text-decoration: underline;
}
.am-account-settings {
  padding: 2px 0 20px;
}
.am-account-settings h4 {
  margin: 0 0 7px;
  font-size: 13px;
}
.am-account-settings > .small {
  margin: 0 0 10px;
}
.am-setting {
  border-top: 1px solid #e5ecf5;
  margin-top: 15px;
  padding-top: 13px;
}
.am-setting > summary {
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  color: #294468;
}
.am-account-settings form {
  margin-top: 12px;
}
.portal-page .am-account-settings .button {
  font-size: 12px;
  gap: 8px;
}
.portal-page .am-account-settings .button:hover {
  background: #064dc4;
  border-color: #064dc4;
  transform: none;
}
.portal-page .am-account-settings .button-outline:hover {
  color: #0755ca;
  background: #edf4ff;
  border-color: #95b8e7;
}
.am-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 25px;
}
.portal-page .am-support-grid > .portal-card {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--am-line);
  min-width: 0;
}
.am-panel-heading {
  gap: 8px;
  margin-bottom: 17px;
}
.portal-page .am-panel-heading h2 {
  font-size: 16px;
}
.am-label {
  font-size: 9px;
  color: #5d708b;
  background: #f1f5fa;
  border: 1px solid #e4ebf5;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
}
.am-notification-empty {
  padding: 19px 20px 13px;
  text-align: center;
}
.am-notification-empty .am-symbol {
  width: 44px;
  height: 44px;
  background: #f0f6ff;
  margin-bottom: 11px;
}
.portal-page .am-notification-empty h3 {
  margin: 0 0 5px;
  font-size: 13px;
}
.am-notification-empty p {
  margin: 0 auto;
  max-width: 270px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--am-muted);
}
.am-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.am-activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
}
.am-activity-list li + li {
  border-top: 1px solid #eef2f8;
}
.am-activity-list .am-symbol {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #f1f5fb;
  color: #657e9f;
}
.am-activity-list .am-symbol svg {
  width: 15px;
  height: 15px;
}
.am-activity-list li > div {
  flex: 1;
  min-width: 0;
}
.am-activity-list strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.am-activity-list small,
.am-activity-list time {
  font-size: 10px;
  color: #667791;
}
.am-activity-list small {
  overflow-wrap: anywhere;
}
.am-activity-list time {
  text-align: right;
  max-width: 100px;
}
.am-more-activity {
  font-size: 11px;
  color: #0755ca;
  cursor: pointer;
}
.am-empty-search {
  padding: 45px 20px;
  border: 1px dashed #cbd9ec;
  background: white;
  border-radius: 12px;
  text-align: center;
}
.am-empty-search h3 {
  margin: 0 0 5px;
}
.am-empty-search p {
  color: var(--am-muted);
  font-size: 12px;
}
#advisor-provision:not(:empty) {
  background: white;
  padding: 20px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  margin-bottom: 20px;
}
@media (max-width: 1150px) {
  .am-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .am-toolbar {
    flex-wrap: wrap;
  }
  .am-search {
    flex-basis: 100%;
  }
  .am-advisor-heading {
    flex-wrap: wrap;
  }
  .am-advisor-heading > .am-badge {
    margin-left: auto;
  }
}
@media (max-width: 650px) {
  .am-page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .am-page-heading > div {
    flex: 1 1 220px;
  }
  .am-page-heading p {
    font-size: 12px;
  }
  .am-overview {
    gap: 10px;
    margin-bottom: 24px;
  }
  .am-metric {
    padding: 13px;
    gap: 7px;
  }
  .am-metric-label {
    font-size: 11px;
  }
  .am-metric .am-symbol {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .am-metric .am-symbol svg {
    width: 16px;
    height: 16px;
  }
  .am-metric strong {
    font-size: 27px;
  }
  .am-metric-note {
    font-size: 9px;
  }
  .am-directory-heading {
    align-items: flex-start;
    gap: 5px;
    flex-direction: column;
  }
  .am-directory-heading p {
    font-size: 11px;
  }
  .am-updated {
    font-size: 10px;
    margin-top: 3px;
  }
  .am-toolbar {
    gap: 12px;
  }
  .am-filters {
    width: 100%;
    gap: 1px;
    padding: 3px;
  }
  .portal-page .am-filter {
    flex: 1;
    padding: 8px 5px;
    gap: 5px;
    font-size: 10px;
  }
  .am-filter > span {
    padding: 1px 5px;
  }
  .am-advisor-grid,
  .am-support-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .am-advisor-heading {
    flex-wrap: nowrap;
    padding: 18px;
    gap: 10px;
  }
  .portal-page .am-advisor-identity h3 {
    font-size: 14px;
  }
  .am-advisor-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .am-booking-stats {
    margin: 0 18px 16px;
  }
  .am-readiness {
    padding: 0 18px;
  }
  .am-last-login {
    margin-left: 18px;
    margin-right: 18px;
  }
  .am-setup-note {
    margin-left: 18px;
    margin-right: 18px;
  }
  .am-card-actions {
    padding: 0 18px;
  }
  .am-quick-reset {
    right: 18px;
  }
}
.portal-case-form .wide {
  grid-column: 1/-1;
}
.portal-page .portal-case-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-case-history {
  margin-top: 16px;
}
.portal-case-history pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.portal-page #auth-heading {
  max-width: 700px;
  margin: 20px 0;
}
.portal-page:not([data-signed-in='true']) .portal-sidebar .sidebar-story {
  min-height: 60vh;
}
.portal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1650px) {
  .portal-main {
    padding: 30px;
  }
  .portal-sidebar {
    width: 280px;
  }
  .portal-frame {
    margin-left: 280px;
  }
}
@media (max-width: 1250px) {
  .portal-sidebar {
    width: 225px;
  }
  .portal-frame {
    margin-left: 225px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-columns > .calendar-panel {
    margin: 0;
  }
  .calendar-events-day {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-welcome h1 {
    font-size: 25px;
  }
  .portal-date {
    display: none;
  }
  .lead-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  .portal-sidebar {
    transform: translateX(-100%);
    width: 250px;
    transition: transform 0.2s;
  }
  .portal-page.sidebar-open .portal-sidebar {
    transform: translateX(0);
  }
  .portal-frame {
    margin-left: 0;
  }
  .portal-topbar #sidebar-toggle {
    display: block;
  }
  .portal-topbar {
    padding: 0 16px;
  }
  .portal-main {
    padding: 18px;
  }
  .portal-page.sidebar-open .portal-frame::after {
    content: '';
    position: fixed;
    inset: 74px 0 0 250px;
    background: #09214d88;
    z-index: 25;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .account-menu small {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .portal-main {
    padding: 14px;
  }
  .portal-topbar {
    height: 68px;
  }
  #workspace-label {
    display: none;
  }
  .portal-welcome {
    margin: 12px 0 20px;
  }
  .portal-welcome h1 {
    font-size: 24px;
  }
  .portal-welcome p {
    font-size: 13px;
  }
  .dashboard-metrics {
    gap: 9px;
  }
  .metric-card {
    padding: 12px;
    gap: 9px;
    font-size: 11px;
  }
  .metric-icon {
    padding: 7px;
  }
  .metric-icon svg {
    width: 22px;
    height: 22px;
  }
  .metric-card strong {
    font-size: 25px;
  }
  .portal-page .portal-card {
    padding: 15px;
  }
  .calendar-events-day {
    grid-template-columns: 1fr;
  }
  .calendar-toolbar input {
    width: 140px;
  }
  .lead-filters {
    grid-template-columns: 1fr;
  }
  .portal-case-form {
    grid-template-columns: 1fr;
  }
  .portal-page h1 {
    font-size: 24px;
  }
  .portal-page .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-page .button {
    white-space: normal;
  }
  .portal-detail-dialog {
    padding: 14px;
  }
}
