﻿    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #f5f7fb;
      color: #123d74;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px;
    }

    .globalFooter {
      margin-top: 16px;
      text-align: center;
      color: #123d74;
      font-size: 14px;
      font-weight: 800;
      padding: 12px 10px 6px;
    }

    .copyrightHover {
      position: relative;
      display: inline-block;
      cursor: default;
    }

    .buildStamp {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%);
      font-size: 11px;
      font-weight: 700;
      color: #64748b;
      font-family: Consolas, "Courier New", monospace;
      white-space: nowrap;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
      padding: 6px 8px;
      opacity: 0;
      visibility: hidden;
      pointer-events: auto;
      transition: opacity 0.16s ease;
      z-index: 10;
    }

    .copyrightHover:hover .buildStamp,
    .copyrightHover:focus-within .buildStamp {
      opacity: 1;
      visibility: visible;
    }

    .mainBox {
      margin-top: 24px;
      background: white;
      border-radius: 18px;
      min-height: 500px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      padding: 24px 32px;
    }
	
	
	/*** SECTION ***/
    .crtaOverviewHero img {
      display: none;
    }

    .crtaOverviewBody .crtaHowSection {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
      gap: 28px;
      align-items: flex-start;
      margin-bottom: 54px;
    }

    .crtaIndLabel {
      margin-top: -2px;
      color: #6f238d;
      font-size: 18px;
      line-height: 1.1;
      font-weight: 900;
    }

    .crtaIdentifyGrid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr);
      gap: 14px;
      align-items: flex-start;
    }

    .crtaIdentifyPane {
      border: none;
      border-radius: 8px;
      padding: 8px;
      display: grid;
      gap: 6px;
      justify-items: center;
      background: #fff;
    }

    .crtaIdentifyPane > img:first-child {
      width: 66%;
      max-width: 146px;
      height: auto;
      display: block;
    }

    .crtaMidArrow {
      font-size: 128px;
      line-height: 0.9;
      color: #a54cb3;
      font-weight: 900;
      text-shadow: 0 2px 0 rgba(58, 12, 79, 0.18);
    }



/*** SECTION ***/
    .onlineBadge {
      padding: 10px 16px;
      border-radius: 999px;
      background: #eef2ff;
      color: #123d74;
      font-weight: 900;
    }

    .profileFieldNote {
      color: #334155;
      font-size: 15px;
      font-weight: 400;
      line-height: 1.25;
      margin-top: -2px;
      margin-bottom: 2px;
    }

    .profileFieldNoteInline {
      display: inline;
      color: #334155;
      font-size: 15px;
      font-weight: 400;
      margin-left: 8px;
      line-height: 1.3;
    }

    .profileContactGrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      padding: 0 18px 18px;
    }

    .profileContactGrid .adminField {
      min-width: 0;
    }

    .profileContactHalfOnly {
      grid-column: 1 / 2;
    }

    .createUserPanel { order: 1; }
    .userTablePanel { order: 2; }

    .profileHeaderRow {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin: 0 18px 10px;
    }

    .profileHeaderRow h1 {
      margin: 0;
    }

    .profileTopActions {
      margin-left: auto;
    }

    .closeBtnX {
      min-width: 21px;
      width: 21px;
      height: 42px;
      padding: 0;
      font-size: 26px;
      line-height: 1;
      display: inline-flex;
      align-items: flex-start;
      justify-content: center;
    }

    .adminCompactGrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .passwordSuggestRow {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .passwordSuggestRow input {
      min-width: 0;
      flex: 1 1 auto;
    }

    input[type="password"]::-ms-reveal,
    input[type="password"]::-ms-clear {
      display: none;
    }

    .suggestPasswordBtn {
      flex: 0 0 auto;
      border: 1px solid #123d74;
      background: white;
      color: #123d74;
      border-radius: 10px;
      padding: 11px 12px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .suggestPasswordBtn:hover,
    .suggestPasswordBtn:focus {
      background: #eef2ff;
      outline: none;
    }

    .fullSpan,
    .questionEditor {
      grid-column: 1 / -1;
    }

    .questionEditor {
      display: grid;
      gap: 14px;
      padding: 0 18px 18px;
    }

    .questionEditorList {
      display: grid;
      gap: 12px;
    }

    .questionEditCard {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid #dbe3ef;
      border-radius: 12px;
      background: white;
    }

    .questionEditCard h3 {
      margin: 0;
      color: #123d74;
      font-size: 18px;
    }

    .profileSubPanel {
      border-color: #c7d2fe;
      background: #f8fafc;
    }

    .profileSectionHeader {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 8px;
      background: #e0e7ff;
      color: #1e3a8a;
      font-weight: 900;
      letter-spacing: 0;
    }

    .questionEditGrid,
    .consentGrid {
      display: grid;
      gap: 10px;
    }

    .choiceEditRow {
      display: grid;
      grid-template-columns: 44px minmax(220px, 1fr) minmax(220px, 1fr) 90px;
      gap: 10px;
      align-items: flex-start;
    }

    .choiceEditRow input,
    .questionEditCard textarea {
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 10px 12px;
      color: #123d74;
      font-size: 15px;
      font-weight: 700;
    }

    .questionEditCard textarea {
      min-height: 70px;
      resize: vertical;
    }

    .insertQuestionBtn {
      background: #7c2d83;
      border-color: #7c2d83;
    }

    .insertQuestionBtn:hover,
    .insertQuestionBtn:focus {
      background: #6b2172;
      border-color: #6b2172;
    }

    .questionCardActions {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      flex-wrap: wrap;
    }

      box-shadow: none;
    }

    .tinyToast {
      position: fixed;
      left: 50%;
      bottom: 22px;
      transform: translateX(-50%) translateY(10px);
      background: #123d74;
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      padding: 8px 12px;
      border-radius: 10px;
      box-shadow: 0 10px 20px rgba(18, 61, 116, 0.25);
      opacity: 0;
      pointer-events: auto;
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 4000;
    }

    .tinyToast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .paymentsList {
      display: grid;
      gap: 8px;
      padding: 0 18px 18px;
      color: #334155;
      font-weight: 800;
    }

/*** BOOKING-CALENDAR ***/
    .bookingGrid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
      gap: 28px;
    }

    .bookingCalendarPanel {
      display: grid;
      gap: 18px;
      align-content: start;
    }

    .bookingMonth {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 20px;
      color: #111827;
      font-size: 18px;
    }

    .bookingMonth button {
      border: none;
      background: white;
      cursor: pointer;
      color: #111827;
      font-size: 26px;
      font-weight: 900;
    }

    .calendarGrid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 10px;
      color: #111827;
    }

    .calendarDay,
    .calendarDow {
      min-height: 40px;
      border: none;
      background: transparent;
      border-radius: 999px;
      color: #7c6f9f;
      font-weight: 900;
    }

    .calendarDow {
      color: #111827;
      display: grid;
      place-items: center;
    }

    .calendarDay.available {
      background: #ece7f7;
      color: #123d74;
      cursor: pointer;
    }

    .calendarDay.selected {
      background: #111827;
      color: white;
    }

    .timePanel {
      border-left: 1px solid #e5e7eb;
      padding-left: 24px;
    }

    .timePanel h3 {
      margin: 0 0 18px;
      text-align: center;
      color: #111827;
    }

    .timeSlots {
      display: grid;
      gap: 12px;
      max-height: 420px;
      overflow: auto;
      padding-right: 8px;
    }

    .timeSlot {
      border: 1px solid #111827;
      border-radius: 12px;
      background: white;
      padding: 13px;
      cursor: pointer;
      color: #111827;
      font-weight: 900;
      font-size: 16px;
    }

    .timeSlot.selected {
      background: #111827;
      color: white;
    }

    .bookingConfirmBtn {
      justify-self: stretch;
      align-self: start;
    }



/*** SECTION ***/
    .adminDevNotifToggle {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 800;
      color: #123d74;
    }

    .adminSearchWrap {
      position: relative;
      width: 320px;
      max-width: 100%;
    }

    #adminPanelSearch {
      width: 100%;
      max-width: 100%;
      border: 2px solid #cbd5e1;
      border-radius: 10px;
      padding: 10px 34px 10px 12px;
      color: #123d74;
      font-size: 15px;
      background: #fff;
    }

    @media (max-width: 720px) {
      .questionSectionThumb { display: none; }
      .questionText { margin-left: 0; }
      .adminSearchWrap,
      #adminPanelSearch {
        width: 180px;
      }
    }

    .adminSearchClearBtn {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 22px;
      height: 22px;
      border: none;
      border-radius: 50%;
      background: #e2e8f0;
      color: #123d74;
      font-size: 15px;
      line-height: 22px;
      cursor: pointer;
      padding: 0;
      font-weight: 900;
    }

    .inlineBtnRow {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .faqDualRow {
      grid-column: 1 / -1;
    }

    .modalScrollable {
      max-height: 62vh;
      overflow-y: auto;
    }


/*** MENU-ORGANIZATION ***/
    .orgInfoLayout {
      display: grid;
      grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
      padding: 4px 0 0;
    }

    .orgInfoLogoColumn {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .orgInfoFieldsColumn {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .orgInfoFieldsColumn .adminField {
      margin-top: 0;
    }

    .orgLogoPreviewFrame {
      width: 100%;
      min-height: 180px;
      border: 1px solid #c7d0e5;
      border-radius: 12px;
      background: #fff;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }

    .orgLogoPreviewFrame img {
      max-width: 100%;
      max-height: 220px;
      object-fit: contain;
      display: block;
    }


/*** MENU-HIERARCHY ***/
    .orgHierarchyWrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 10px 10px;
    }

    .orgHierarchyRoot,
    .orgHierarchyAssistant {
      width: min(100%, 320px);
      border: 2px solid #31508f;
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 6px 18px rgba(49, 80, 143, 0.08);
      padding: 14px 16px;
      text-align: center;
    }

    .orgHierarchyAssistant {
      position: relative;
      padding-top: 30px;
    }

    .orgHierarchyMessageBtn {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      border: 1px solid #31508f;
      border-radius: 50%;
      background: #f8fafc;
      color: #31508f;
      font-size: 16px;
      font-weight: 900;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: flex-start;
      justify-content: center;
    }

    .orgHierarchyMessageBtn:hover {
      background: #eef4ff;
    }

    .orgHierarchyRole {
      font-size: 14px;
      font-weight: 900;
      color: #7a2b8c;
      letter-spacing: 0.01em;
    }

    .orgHierarchyName {
      margin-top: 4px;
      color: #123d74;
      font-size: 18px;
      font-weight: 900;
    }

    .orgHierarchyStem {
      width: 2px;
      min-height: 24px;
      background: linear-gradient(to bottom, #31508f, #c7d7ef);
      border-radius: 999px;
    }

    .orgHierarchyAssistants {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      width: 100%;
    }

    .orgHierarchyEmpty {
      color: #64748b;
      font-size: 15px;
      font-weight: 700;
    }

/*** PROFILE-LASTLOGINS ***/
    .profileLastLoginsTable {
      min-width: 0;
      table-layout: auto;
    }

    .profileLastLoginsTable th,
    .profileLastLoginsTable td {
      padding: 8px 10px;
      line-height: 1.15;
      white-space: nowrap;
    }

    .profileLastLoginsTable th:nth-child(1),
    .profileLastLoginsTable td:nth-child(1) {
      width: 130px;
    }

    .profileLastLoginsTable th:nth-child(2),
    .profileLastLoginsTable td:nth-child(2) {
      width: 170px;
    }

    .profileLastLoginsTable th:nth-child(3),
    .profileLastLoginsTable td:nth-child(3) {
      width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .profileLastLoginsTable th:nth-child(4),
    .profileLastLoginsTable td:nth-child(4),
    .profileLastLoginsTable th:nth-child(5),
    .profileLastLoginsTable td:nth-child(5) {
      width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
    }


/*** SECTION ***/
    #adminTestimoniesRows .fitContent {
      padding: 8px 12px;
      margin-top: 4px;
    }

    .reportActionRow {
      display: inline-flex;
      align-items: flex-start;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .reportActionRow + .reportActionRow {
      margin-left: 32px;
    }

    .reportLabelPill {
      border: none;
      color: #123d74;
      background: transparent;
      border-radius: 0;
      min-width: 0;
      text-align: left;
      font-size: 30px;
      font-weight: 900;
      line-height: 1;
      padding: 0;
      pointer-events: auto;
      user-select: none;
      white-space: nowrap;
    }

    .reportIconBtn {
      border: none;
      background: transparent;
      padding: 0;
      margin: 0;
      cursor: pointer;
      border-radius: 8px;
    }

    .reportIconBtn.busy {
      opacity: 0.6;
      cursor: wait;
    }

    .downloadTypeIcon {
      width: 44px;
      height: 44px;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .reportFeedbackHint {
      text-align: center;
      font-weight: 800;
      color: #123d74;
      margin-top: 6px;
    }

    @media (max-width: 900px) {
      .reportLabelPill {
        min-width: 170px;
        font-size: 24px;
      }
      .reportActionRow + .reportActionRow {
        margin-left: 12px;
      }
    }


    .dangerBtn {
      border: none;
      border-radius: 10px;
      min-width: 38px;
      min-height: 34px;
      cursor: pointer;
      color: white;
      font-size: 18px;
      font-weight: 900;
    }

    .dangerBtn {
      background: #dc2626;
    }

    .dangerBtn:disabled {
      opacity: 0.55;
      cursor: wait;
      filter: grayscale(0.2);
    }


    .contactTextBtn {
      border: none;
      background: transparent;
      color: #7c2d83;
      cursor: pointer;
      font-size: 18px;
      font-weight: 900;
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .contactTextBtn:hover,
    .contactTextBtn:focus {
      color: #123d74;
      outline: none;
    }


    .hidden {
      display: none !important;
    }


    .navBtn {
      border: none;
      background: #123d74;
      color: white;
      min-width: 88px;
      min-height: 48px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 24px;
      font-weight: 800;
      box-shadow: 0 8px 18px rgba(18, 61, 116, 0.18);
    }

    .navBtn:hover {
      background: #1d4f8f;
    }

    .navBtn:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      box-shadow: none;
    }

    .sectionBtn,
    .homeBtn,
    .listBtn {
      border: 2px solid #123d74;
      background: white;
      color: #123d74;
      padding: 10px 24px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 17px;
      font-weight: 800;
    }

    .sectionBtn:hover,
    .homeBtn:hover,
    .listBtn:hover {
      background: #f1f5f9;
    }

    .homeBtn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }


    #reportInfoModal .reviewActions {
      justify-content: center;
    }

    .reportsAdminBox,
    .reportDetailCard {
      display: grid;
      gap: 10px;
    }

    .reportRemainingRow {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 120px auto;
      gap: 10px;
      align-items: flex-start;
      padding: 0 18px 12px;
    }

    .reportRemainingRow label {
      color: #123d74;
      font-weight: 900;
    }

    .reportRemainingRow input {
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 10px 12px;
      color: #123d74;
      font-size: 15px;
      font-weight: 800;
    }

    .reportsList {
      display: grid;
      gap: 10px;
      padding: 0 18px 18px;
    }

    .profileBookingsActions {
      display: grid;
      grid-template-columns: auto auto;
      gap: 10px;
      align-items: flex-start;
      padding: 0 18px 12px;
      justify-content: center;
    }

    .profileBookingsActions input {
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 10px 12px;
      color: #123d74;
      font-size: 15px;
      font-weight: 800;
      min-height: 42px;
      background: #fff;
    }

    .profileBookingsActions .landingStartBtn {
      min-width: 220px;
      justify-self: center;
    }

    .profileBottomActions {
      margin-top: 8px;
      padding-top: 12px;
      border-top: 1px solid #dbe3ef;
      display: none;
    }

    #userProfilePage .summaryIcon,
    #referralPage .summaryIcon {
      display: none;
    }

    #referralPage .adminPanel summary {
      padding-left: 18px;
    }

    .referralTopActions {
      justify-content: flex-end;
      margin-bottom: 2px;
    }

    .referralTopActions .adminCreateBtn {
      min-width: 90px;
    }

    .referralHeaderActions {
      justify-content: flex-end;
      margin-left: 12px;
      flex-wrap: nowrap;
    }

    .referralHeaderActions .adminCreateBtn {
      min-width: 86px;
      padding-left: 16px;
      padding-right: 16px;
    }

    .referralTitleField select {
      width: max-content;
      min-width: 9.5ch;
      max-width: 100%;
    }

    .profileBookingRow {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 10px;
      align-items: flex-start;
    }

    #profileBookingsList .reportDetailCard[data-booking-id] {
      cursor: pointer;
    }

    .profileBookingWhen {
      font-size: 20px;
      font-weight: 900;
      color: #123d74;
      line-height: 1.25;
    }

    .reportPickerRow {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 10px;
      align-items: flex-start;
      margin: 0 18px 12px;
    }

    .reportPickerRow select {
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 16px;
      color: #123d74;
      background: #fff;
      min-height: 44px;
    }

 
    #adminMessageUserList {
      display: grid;
      gap: 8px;
      max-height: 260px;
      overflow-y: auto;
      padding-right: 4px;
    }

    #adminMessageUserList .adminCheck {
      margin: 0;
      padding: 8px 10px;
      border: 1px solid #dbe3ef;
      border-radius: 10px;
      background: #fff;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      min-height: 42px;
    }

    .serviceUpcomingBooking {
      margin-top: 12px;
      padding: 10px 12px;
      border: 1px solid #cfd5f0;
      border-radius: 8px;
      background: #f7f9ff;
      color: #20356f;
      font-size: 0.95rem;
      font-weight: 700;
    }

    .serviceUpcomingBooking > strong {
      display: block;
      margin-bottom: 6px;
      font-weight: 900;
    }

    .serviceManageBookingBtn {
      margin-top: 10px;
    }

    .statsCompactGrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 10px;
    }

    .statsCompactGrid .reportDetailCard {
      margin: 0;
    }

    .statsTileBtn {
      text-align: left;
      cursor: pointer;
      transition: transform 0.14s ease, box-shadow 0.14s ease;
    }

    .statsTileBtn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(19, 37, 84, 0.12);
    }

    .statsCompactGrid .statsWide {
      grid-column: 1 / -1;
    }

    .usersSearchRow {
      margin: 0 18px 14px;
    }

    .statsRecentEvents {
      margin-top: 8px;
      max-height: 340px;
      overflow-y: auto;
      border: 1px solid #dbe3ef;
      border-radius: 8px;
      padding: 8px 10px;
      background: #ffffff;
      line-height: 1.45;
    }

    .statsRecentEvents > div {
      padding: 2px 0;
      border-bottom: 1px solid #eef2ff;
    }

    .statsRecentEvents > div:last-child {
      border-bottom: none;
    }

    .statsBarRow {
      display: grid;
      grid-template-columns: 42px 1fr 110px;
      gap: 10px;
      align-items: flex-start;
      margin: 8px 0;
    }

    .statsBarIndex {
      font-weight: 800;
      color: #263875;
    }

    .statsBarTrack {
      height: 14px;
      border-radius: 999px;
      background: #e7ecfb;
      overflow: hidden;
      border: 1px solid #d6def6;
    }

    .statsBarFill {
      height: 100%;
      min-width: 4px;
      background: linear-gradient(90deg, #2d2e84 0%, #6d0ca3 100%);
      border-radius: 999px;
    }

    .statsBarMeta {
      text-align: right;
      font-size: 0.86rem;
      color: #243767;
      font-weight: 700;
      white-space: nowrap;
    }

    .progressWrap {
      margin-top: 10px;
    }

    .progressTrack {
      width: 100%;
      height: 14px;
      border-radius: 999px;
      border: 1px solid #cfd8f4;
      background: #edf2ff;
      overflow: hidden;
    }

    .progressFill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #2f2d83 0%, #7810a4 100%);
      transition: width 0.2s ease;
    }

    .progressMeta {
      margin-top: 6px;
      font-weight: 700;
      color: #263875;
      font-size: 0.9rem;
    }

    .routeLoadingModal {
      width: min(420px, 100%);
      text-align: center;
      padding: 20px 24px;
    }

    .dirtyPanel > summary {
      color: #8a1f4d;
    }

    .dirtyField {
      border-color: #8a1f4d !important;
      background: #fff6fa !important;
    }
    .adminField input[readonly] {
      background: #f0f0f0;
      color: #888;
      cursor: default;
    }

    .modalOverlay {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: grid;
      place-items: center;
      padding: 18px;
      background: rgba(15, 23, 42, 0.48);
    }

    .loadingSpinner {
      display: inline-block;
      width: 14px;
      height: 14px;
      margin-right: 8px;
      border-radius: 50%;
      border: 2px solid #cbd5e1;
      border-top-color: #123d74;
      animation: spin 0.8s linear infinite;
      vertical-align: middle;
    }

    .userPrefsForm.loading {
      opacity: 0.82;
      pointer-events: auto;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .accessRequired {
      max-width: 780px;
      margin: 70px auto;
      text-align: center;
      color: #123d74;
    }

    .accessRequired h2 {
      margin: 0 0 10px;
      color: #123d74;
      font-size: 36px;
      line-height: 1.15;
    }

    .accessRequired h1 {
      margin: 0 0 12px;
      font-size: 34px;
      color: #7c2d83;
    }

    .accessRequired p {
      margin: 0 0 24px;
      color: #334155;
      font-size: 20px;
      font-weight: 800;
      line-height: 1.45;
    }

    .contactModal {
      width: min(520px, 100%);
      background: white;
      border-radius: 18px;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
      padding: 24px;
      color: #123d74;
    }

    .contactModal h2 {
      margin: 0;
      color: #123d74;
      font-size: 28px;
    }

    .craIntro {
      display: grid;
      gap: 18px;
      margin-top: 18px;
      color: #123d74;
    }

    .craIntro h3 {
      margin: 0 0 8px;
      color: #7c2d83;
      font-size: 18px;
    }

    .craIntro ul {
      margin: 0;
      padding-left: 22px;
      color: #334155;
      font-size: 16px;
      font-weight: 800;
      line-height: 1.7;
    }

    .reportView {
      max-width: 900px;
      margin: 0 auto;
      color: #123d74;
    }

    .reportHeader {
      text-align: center;
      margin-bottom: 10px;
    }

    .reportHeader h1 {
      margin: 0 0 10px;
      font-size: 36px;
      color: #123d74;
    }

    .reportMeta {
      margin: 4px 0 12px;
      color: #475569;
      font-weight: 700;
    }

    .reportMetaHeader {
      text-align: center;
      margin: 0 0 6px;
    }

    .reportCollapse {
      margin: 18px 0;
      border: 1px solid #dbe3ef;
      border-radius: 10px;
      background: #ffffff;
      padding: 10px 12px;
    }

    .reportCollapse > summary {
      cursor: pointer;
      color: #123d74;
      font-weight: 900;
    }

    .reportCollapse > p {
      margin: 10px 0 0;
    }

    #traumaCounselorSystemReport,
    #churchCounselorSystemReport {
      color: #1f2937;
      line-height: 1.55;
    }

    #traumaCounselorSystemReport h2,
    #churchCounselorSystemReport h2 {
      margin: 8px 0;
      color: #0f4d6a;
      font-size: 30px;
    }

    #traumaCounselorSystemReport h3,
    #churchCounselorSystemReport h3 {
      margin: 8px 0;
      color: #123d74;
      font-size: 24px;
    }

    #traumaCounselorSystemReport h4,
    #churchCounselorSystemReport h4 {
      margin: 8px 0 4px;
      color: #123d74;
      font-size: 20px;
    }

    #traumaCounselorSystemReport p,
    #churchCounselorSystemReport p {
      margin: 4px 0;
    }

    #traumaCounselorSystemReport .churchSectionHeader,
    #churchCounselorSystemReport .churchSectionHeader {
      margin: 30px 0 14px;
      color: #123d74;
      font-size: 32px;
      line-height: 1.2;
      font-weight: 800;
    }

    #traumaCounselorSystemReport .churchSectionHeader:first-child,
    #churchCounselorSystemReport .churchSectionHeader:first-child {
      margin-top: 18px;
    }

    #traumaCounselorSystemReport .rlzReportCellLabel,
    #churchCounselorSystemReport .rlzReportCellLabel {
      color: #123d74;
      font-weight: 800;
    }

    #traumaCounselorSystemReport .rlzReportSectionConcern,
    #churchCounselorSystemReport .rlzReportSectionConcern {
      color: #475569;
      font-weight: 400;
    }

    #traumaCounselorSystemReport ul,
    #churchCounselorSystemReport ul {
      margin: 4px 0 10px 20px;
      padding: 0;
    }

    .mdGap {
      height: 8px;
    }

    .markdownTable {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
      margin-bottom: 10px;
      font-size: 17px;
    }

    .markdownTable th,
    .markdownTable td {
      border: 1px solid #94a3b8;
      padding: 6px 10px;
      text-align: left;
    }

    .markdownTable th {
      background: #dbeafe;
      color: #0f172a;
    }

    #traumaCounselorSystemReport .churchSectionHeader + .markdownTable,
    #churchCounselorSystemReport .churchSectionHeader + .markdownTable {
      margin-top: 14px;
      margin-bottom: 28px;
    }

    .finalScore {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 2px;
      min-width: 130px;
      margin-left: auto;
      padding: 4px 8px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: #7c2d83;
      font-weight: 800;
    }

    .finalScore span {
      font-size: 28px;
      line-height: 1;
      font-weight: 800;
      color: #b08ac1;
      order: 2;
      text-align: right;
      width: 100%;
    }

    .finalScore strong {
      font-size: 39px;
      line-height: 0.92;
      order: 1;
      color: #b08ac1;
      text-align: right;
      width: 100%;
    }

    .profileCard {
      border: 1px solid #dbe3ef;
      border-radius: 16px;
      padding: 22px;
      background: #f8fafc;
      box-shadow: 0 12px 28px rgba(18, 61, 116, 0.1);
    }

    .profileCard h2 {
      margin: 0 0 8px;
      color: #7c2d83;
      font-size: 28px;
    }

    .profileTopRow {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      border-top: 1px solid #4c63d6;
      border-bottom: 1px solid #4c63d6;
      padding-top: 8px;
      padding-bottom: 6px;
      margin-bottom: 10px;
    }

    .profileTopLeft {
      flex: 1 1 auto;
      min-width: 0;
    }

    .profileCard p {
      color: #334155;
      font-size: 18px;
      line-height: 1.5;
    }

    .reportAudience {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .audienceBtn {
      border: 2px solid #123d74;
      background: white;
      color: #123d74;
      padding: 10px 16px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 15px;
      font-weight: 800;
    }

    .audienceBtn.active {
      background: #123d74;
      color: white;
    }

    .reportGrid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      margin: 18px 0;
      border: 1px solid #4c63d6;
    }

    .reportMetric {
      border-right: 1px solid #4c63d6;
      border-radius: 0;
      padding: 14px;
      background: #ffffff;
      min-height: 120px;
    }

    .reportMetric:last-child {
      border-right: 0;
    }

    .reportMetric span {
      display: block;
      color: #123d74;
      font-size: 1.17em;
      font-weight: 700;
      margin: 0 0 8px;
      line-height: 1.2;
    }

    .reportMetric strong {
      display: block;
      color: #334155;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.5;
    }

    .sectionScores {
      margin-top: 22px;
    }

    .sectionScores h3 {
      margin: 0 0 12px;
      color: #123d74;
    }

    .scoreTable {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      border-radius: 12px;
    }

    .scoreTable th,
    .scoreTable td {
      border-bottom: 1px solid #dbe3ef;
      padding: 10px;
      text-align: left;
      color: #334155;
    }

    .scoreTable th {
      color: #7c2d83;
      background: #f8fafc;
      font-weight: 800;
    }

    .reportView[data-audience="client"] .rawCol,
    .reportView[data-audience="client"] .weightCol,
    .reportView[data-audience="church"] .rawCol,
    .reportView[data-audience="church"] .weightCol,
    .reportView[data-audience="church"] .redFlagBox {
      display: none;
    }

    .redFlagBox,
    .nextStepBox {
      border: 1px solid #dbe3ef;
      border-radius: 12px;
      padding: 14px;
      background: white;
      margin-top: 18px;
    }

    .redFlagBox h3,
    .nextStepBox h3 {
      margin: 0 0 8px;
      color: #123d74;
    }

    .redFlagList {
      display: grid;
      gap: 8px;
    }

    .redFlagItem {
      border-left: 5px solid #b91c1c;
      background: #fef2f2;
      color: #7f1d1d;
      border-radius: 8px;
      padding: 10px 12px;
      font-weight: 800;
    }

    .redFlagNone {
      color: #334155;
      font-weight: 700;
    }

    #nextStepText {
      color: #334155;
      font-size: 18px;
      font-weight: 800;
      margin: 0;
    }

    .reportActions {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 34px;
    }

    #giveAssessmentFeedbackBtn {
      margin-top: 16px;
    }

    .muted {
      color: #64748b;
    }

    @media (max-width: 1024px) {
      .container {
        padding: 12px;
      }

      .mainBox {
        padding: 20px;
      }

      .sectionIntro {
        grid-template-columns: minmax(0, 1fr);
      }

      .sectionLabel {
        font-size: 21px;
      }

      .sectionTitle {
        font-size: 32px;
      }

      .sectionDescription {
        font-size: 21px;
      }

      .startBtn {
        width: 100%;
      }

      .sectionIntroActions {
        flex-direction: column;
      }

      .questionHeader {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }

      .questionText {
        font-size: 24px;
        margin-left: 0;
      }

      .choiceHeader,
      .choiceRow {
        grid-template-columns: 54px minmax(0, 1fr) 42px;
        gap: 10px;
      }

      .choiceHeader {
        font-size: 16px;
      }

      .choiceOption {
        font-size: 20px;
      }

      .choiceText {
        font-size: 17px;
      }

      .commentRow {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
      }

      .commentCounterRow {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
      }

      .answerProgress {
        margin-left: 0;
      }

      .questionActions {
        gap: 10px;
      }

      .questionCenterActions {
        min-width: 120px;
      }

      .sectionBtn,
      .homeBtn,
      .listBtn {
        padding: 10px 16px;
        min-height: 44px;
      }

      .reportHeader h1 {
        font-size: 28px;
      }

      .reportGrid {
        grid-template-columns: minmax(0, 1fr);
      }

      .reportMetric {
        border-right: 0;
        border-bottom: 1px solid #4c63d6;
        min-height: 0;
      }

      .reportMetric:last-child {
        border-bottom: 0;
      }

      .profileTopRow {
        flex-direction: column;
      }

      .finalScore {
        margin-left: 0;
        margin-right: 0;
        align-self: flex-end;
      }

      .bookingGrid {
        grid-template-columns: minmax(0, 1fr);
      }

      .reportRemainingRow {
        grid-template-columns: minmax(0, 1fr);
      }

      .timePanel {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 18px;
      }

      #referralPage .userPrefsForm {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
      }

      #referralPage .adminField.fullSpan,
      #referralPage #refRelationship,
      #referralPage #refPromoCode,
      #referralPage #refEmail,
      #referralPage #refRelationship {
        grid-column: 1 / -1;
      }

      #referralPage .referralTitleField {
        min-width: 0;
      }

      #referralPage .referralTitleField select {
        width: max-content;
        min-width: 8ch;
      }

      #referralPage .referralFirstNameField input {
        width: 100%;
        min-width: 0;
      }

      .profileHeaderRow {
        margin: 0 0 10px;
      }

      .referralHeaderActions .adminCreateBtn {
        min-width: 78px;
      }

      .crtaIdentifyPane {
        padding: 10px;
      }

      .crtaIdentifyPane > img:first-child {
        width: min(64vw, 180px);
        min-width: 120px;
      }
    }

    @media (max-width: 480px) {
      .mainBox {
        border-radius: 14px;
        padding: 14px 12px;
      }
    }

.chatbotWidget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chatbotToggleBtn {
  border: 2px solid #1d3f7a;
  background: #1d3f7a;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
}

.chatbotPanel {
  width: min(360px, 90vw);
  background: #fff;
  border: 1px solid #cbd9f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.chatbotHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #1d3f7a;
  color: #fff;
}

.chatbotCloseBtn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chatbotMessages {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  background: #f8fbff;
}

.chatbotMsg {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}
.chatbotMsgBody {
  white-space: pre-wrap;
}
.chatbotMsgTime {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.75;
}

.chatbotMsg.user {
  background: #e3edff;
  color: #0f254d;
}

.chatbotMsg.bot {
  background: #f1f5ff;
  color: #1a2f5f;
}

.chatbotInputRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #d8e3f6;
}

.chatbotInputRow input {
  border: 1px solid #c2cfe6;
  border-radius: 10px;
  padding: 8px 10px;
}

.chatbotInputRow button {
  border: 1px solid #1d3f7a;
  border-radius: 10px;
  background: #1d3f7a;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}


@media (max-width: 1100px) {
  .choiceEditRow {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .choiceEditRow input[data-choice-score] {
    max-width: 120px;
  }
}


    .questionSectionThumb {
      width: 72px;
      height: 72px;
      border-radius: 10px;
      object-fit: cover;
      border: 2px solid #c7d2fe;
      grid-column: 1;
      grid-row: 1 / span 2;
      align-self: start;
      justify-self: start;
    }






