/* === CONFIG: fixed rail height === */
:root { --rail-h: 96px; }  /* adjust once to your taste */

.hero-title {
  font-size: 66px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 56px;
}

@media (max-width: 992px) {
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 36px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 28px; }
}

.spacer-100 { height: 100px; }

/* Modal layout & scroll */
.modal-dialog-scrollable .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--bs-modal-margin) * 2);
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  padding-bottom: var(--rail-h);   /* keep content clear of the rail */
  box-sizing: border-box;
}

body.modal-open .wrapper { 
  transform: none !important; 
  filter: none !important; 
  perspective: none !important;
}


.number {
  font-variant-numeric: tabular-nums;      /* modern */
  font-feature-settings: "tnum" 1, "lnum" 1; /* fallback */
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none !important; 
}

.white-text {
  color: white;
}

.white-border {
  border-color: white;
}

.contact-textarea {
  height: 280px !important;
  min-height: 280px !important;
}

.no-bold {
  font-weight: normal;
}

.negative-value {
  color: red;
}

.width-15 {
  width:15%;
}

.large-font {
  font-size: 5rem;
}

.content-margin {
  margin-top: 60px;
}

/* Allow selected pages to escape the parent container gutter padding. */
.page-bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body:has(.page-bleed) {
  background-color: #edf4ff;
}

body:has(.navbar-unauthenticated) .content-margin {
  --bs-gutter-x: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

.container-fluid.content-margin:has(> .page-bleed),
.container-fluid.content-margin:has(> .wrapper.home-wrapper) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background-color: #edf4ff;
  overflow-x: clip;
}

.doc-width {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.review-document-frame {
  margin-bottom: calc(var(--review-toolbar-space, 72px) + 0.75rem);
}

/* Modern browsers: use the data-doc-width-px attribute as max-width */
@supports (max-width: calc(attr(data-doc-width-px number, 0) * 1px)) {
  .doc-width {
    max-width: calc(attr(data-doc-width-px number, 0) * 1px);
  }
}

.full-height {
  height: 700px; /* Set the height of the div */
}

#spinner { display:none; } 
  body.busy .spinner { display:block !important; }

.custom-tooltip {
    --bs-tooltip-bg: var(--bs-primary);
}

.edit-input {
  display: none;
}

.wrap {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.h4 {
  font-size: 1.5em;
  text-decoration: none;
}

.border-primary-color {
  border-color: #0d6efd !important;
}

.border-transparent { 
  --bs-border: 0 !important;
  --bs-border-color: transparent !important; 
}

.doc-search-answer {
  font-family: var(--bs-body-font-family);
  color: inherit;
  line-height: 1.4;
}

.doc-search-answer p {
  margin: 0.3rem 0 0.95rem 0 !important;
}

.doc-search-answer h5 {
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  margin: 0.3rem 0 0.8rem 0 !important;
}

.doc-search-answer br {
  display: block;
  content: "";
  margin: 0.3rem 0 0.8rem 0;
}

.doc-search-answer.is-streaming {
  white-space: pre-wrap;
}

.doc-search-summary-body {
  font-family: var(--bs-body-font-family);
  color: inherit;
  line-height: 1.2;
}

.doc-search-summary-note {
  margin-bottom: 0.4rem;
}

.doc-search-summary-body p {
  margin: 0.3rem 0 0.8rem 0 !important;
}

.doc-search-summary-body h5 {
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  margin: 0.3rem 0 0.8rem 0 !important;
}

.doc-search-summary-body br {
  display: block;
  content: "";
  margin: 0.3rem 0 0.8rem 0;
}

.doc-search-shell {
  --doc-search-preview-min-width: 390px;
  min-height: 78vh;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  position: relative;
  height: calc(100vh - 140px);
}

/* Keep a desktop preview floor without forcing horizontal overflow on touch devices (iPhone). */
@media (hover: hover) and (pointer: fine) {
  .doc-search-shell {
    min-width: var(--doc-search-preview-min-width);
  }
}

.doc-search-layout {
  display: flex;
  min-height: 78vh;
  height: 100%;
  position: relative;
}

.doc-search-sidebar {
  min-height: 78vh;
  flex: 0 0 300px;
  max-width: 520px;
  min-width: 220px;
  position: sticky;
  top: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.doc-search-sidebar-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.doc-search-sidebar .list-group-item {
  cursor: pointer;
  border: 0;
  padding: 0.625rem 0.875rem;
  gap: 0.625rem;
}

.doc-search-sidebar .list-group-item.active {
  border-left: 3px solid var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.06);
  padding-left: calc(0.875rem - 3px);
}

.doc-search-sidebar .doc-search-conversation-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.18;
  font-weight: 500;
  color: var(--bs-primary);
  word-break: break-word;
}

.doc-search-sidebar .doc-search-conversation-title:hover,
.doc-search-sidebar .doc-search-conversation-title:focus {
  color: #0a58ca;
}

.doc-search-sidebar .doc-search-conversation-delete {
  flex: 0 0 1.9rem;
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  line-height: 1;
  border-radius: 0.65rem;
}

.doc-search-sidebar .doc-search-conversation-delete:hover,
.doc-search-sidebar .doc-search-conversation-delete:focus-visible {
  color: #495057;
  background-color: rgba(108, 117, 125, 0.08);
  border-color: rgba(108, 117, 125, 0.35);
}

.doc-search-sidebar .doc-search-conversation-delete svg {
  width: 14px;
  height: 14px;
}

.doc-search-sidebar #agentic-chat-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0.5rem 0.5rem;
}

.doc-search-shell .doc-search-sidebar .doc-search-sidebar-heading {
  color: #0d6efd !important;
  font-size: 1.125rem;
}

.doc-search-sidebar-overlay {
  display: none;
}

.doc-search-sidebar-footer {
  margin-top: auto;
  background: #fff;
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  flex: 0 0 auto;
}

.doc-search-main {
  min-height: 78vh;
  background: #f8f9fb;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0;
  height: 100%;
}

.doc-search-splitter {
  width: 8px;
  flex: 0 0 8px;
  cursor: col-resize;
  background: transparent;
  position: relative;
  touch-action: none;
}

.doc-search-splitter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease;
}

.doc-search-splitter:hover {
  background: rgba(15, 23, 42, 0.03);
}

.doc-search-splitter:hover::before,
.doc-search-resizing .doc-search-splitter::before {
  background: rgba(15, 23, 42, 0.28);
}

.doc-search-composer {
  background: #f8f9fb;
  position: fixed;
  bottom: 0;
  z-index: 4;
  margin: 0;
  border-top: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.doc-search-messages {
  padding-bottom: var(--agentic-composer-space, 8rem);
}

.doc-search-composer .input-group {
  border: 0;
  border-radius: 0.75rem;
  overflow: visible;
  background: #fff;
}

.doc-search-composer .input-group:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.doc-search-composer .input-group .form-control,
.doc-search-composer .input-group .btn {
  border: 0;
  box-shadow: none;
}

.doc-search-composer .doc-search-question-input {
  resize: none;
  min-height: calc(1.5em + 0.5rem + 2px);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.doc-search-composer .doc-search-question-input::-webkit-scrollbar {
  display: none;
}

.doc-search-composer #agentic-file-picker-btn svg {
  width: 22px;
  height: 22px;
}

.doc-search-composer .input-group .btn-outline-primary {
  background: #fff;
}

.doc-search-composer .input-group #agentic-file-picker-btn,
.doc-search-composer .input-group #agentic-submit,
.doc-search-composer .input-group #agentic-send-dropdown,
.doc-search-composer .input-group #agentic-save {
  color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.doc-search-composer .input-group .btn-outline-primary:hover,
.doc-search-composer .input-group .btn-outline-primary:focus {
  color: #fff;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.doc-search-composer .input-group .btn-outline-primary:active,
.doc-search-composer .input-group .btn-outline-primary.active,
.doc-search-composer .input-group .btn-outline-primary.show,
.doc-search-composer .input-group .show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

.doc-search-composer .doc-search-send-group .btn {
  border-radius: 0;
}

.doc-search-composer .doc-search-send-group #agentic-send-dropdown {
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

#agentic-system-prompt-badge {
  z-index: 1085;
}

.doc-search-disclaimer {
  margin-top: -0.5rem;
  margin-bottom: -1rem;
  font-size: 0.7rem;
  line-height: 1.2;
}

.doc-search-documents-btn {
  position: relative;
}

.doc-search-documents-btn .badge {
  font-size: 0.6rem;
  min-width: 1.35rem;
  padding: 0.2rem 0.35rem;
}

.doc-search-documents-btn .badge.doc-search-documents-badge-warning {
  min-width: auto;
  padding: 0;
  background: transparent !important;
  color: var(--bs-danger);
  border: 0;
}

.doc-search-documents-btn .badge.doc-search-documents-badge-warning .doc-search-machine-icon {
  margin-left: 0;
}

.doc-search-documents-btn .badge.doc-search-documents-badge-warning svg {
  display: block;
}

.doc-search-documents-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.doc-search-documents-btn.is-uploading svg {
  opacity: 0.35;
}

.doc-search-attachments-popover {
  max-width: 520px;
  width: min(520px, calc(100vw - 2rem));
}

.doc-search-attachments-popover .popover-body {
  width: 100%;
  min-width: min(460px, calc(100vw - 3rem));
}

.doc-search-attachments-popover a,
.doc-search-attachments-popover a:hover,
.doc-search-attachments-popover a:focus,
.doc-search-attachments-popover a:active,
.doc-search-attachments-popover a:visited {
  text-decoration: none;
}

.doc-search-attachment-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  min-width: 0;
}

.doc-search-attachment-row > .doc-search-file-icon-wrap {
  grid-column: 1;
}

.doc-search-attachment-row > .doc-search-attachment-name {
  grid-column: 2;
}

.doc-search-attachment-row .btn-group {
  grid-column: 3;
  flex: 0 0 auto;
}

.doc-search-attachment-row .doc-search-ocr-progress {
  grid-column: 2 / 4;
  margin-left: 0 !important;
  width: 100%;
  max-width: none;
}

.doc-search-analysis-link {
  color: var(--bs-primary);
  cursor: pointer;
}

.doc-search-attachment-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.doc-search-attachment-name .doc-search-analysis-link {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-search-upload-confirmation .doc-search-upload-row {
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
}

.doc-search-upload-main {
  min-width: 0;
  flex: 1 1 auto;
}

.doc-search-upload-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.doc-search-upload-text {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.doc-search-upload-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-search-upload-actions {
  flex: 0 0 auto;
  margin-left: 0.5rem;
  align-self: flex-start !important;
  white-space: nowrap;
}

.doc-search-machine-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
  vertical-align: text-bottom;
}

.doc-search-file-ocr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 4.25rem;
  white-space: nowrap;
}

.doc-search-file-ocr-spinner {
  position: static;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  pointer-events: none;
  flex: 0 0 auto;
}

.doc-search-file-ocr-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.doc-search-file-upload {
  position: relative;
  min-width: 2.35rem;
}

.doc-search-file-upload-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

.doc-search-file-ocr.is-running {
  min-width: 5.25rem;
  color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.35);
}

.doc-search-file-ocr.is-running:disabled,
.doc-search-file-ocr.is-running[aria-disabled="true"] {
  opacity: 1;
}

.doc-search-ocr-progress {
  max-width: 280px;
}

.doc-search-ocr-progress .progress {
  min-width: 140px;
  width: min(260px, 100%);
  height: 0.55rem;
}

.doc-search-ocr-progress-bar {
  min-width: 2.4rem;
  font-size: 0.65rem;
  line-height: 0.55rem;
  transition: width 0.2s ease;
}

.doc-search-upload-row.is-deleted .doc-search-upload-name {
  text-decoration: line-through;
  opacity: 0.7;
}

.doc-search-upload-row.is-deleted .doc-search-machine-icon,
.doc-search-upload-row.is-deleted .doc-search-ocr-progress {
  display: none !important;
}

.doc-search-upload-row.is-deleted .doc-search-file-review,
.doc-search-upload-row.is-deleted .doc-search-file-ocr,
.doc-search-upload-row.is-deleted .doc-search-file-download {
  pointer-events: none;
  opacity: 0.4;
}

.doc-search-analysis-note.is-deleted .doc-search-analysis-link strong {
  text-decoration: line-through;
  opacity: 0.7;
}

.doc-search-analysis-note.is-deleted .doc-search-analysis-link {
  pointer-events: none;
  cursor: default;
  color: inherit;
}

.doc-search-analysis-note.is-deleted .doc-search-file-upload,
.doc-search-analysis-note.is-deleted .doc-search-file-download {
  pointer-events: none;
  opacity: 0.4;
}

.doc-search-shell a {
  text-decoration: none;
}

.doc-search-shell a:hover,
.doc-search-shell a:focus {
  text-decoration: none;
}

.doc-search-email-link .doc-search-email-chain-trigger {
  color: inherit;
}

.doc-search-email-link .doc-search-email-chain-trigger:hover,
.doc-search-email-link .doc-search-email-chain-trigger:focus {
  color: inherit;
}

.doc-search-email-preview {
  position: relative;
  max-height: 7.2em;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 1.42;
}

.doc-search-email-preview p {
  margin: 0 0 0.35rem;
}

.doc-search-email-preview p:last-child {
  margin-bottom: 0;
}

.doc-search-email-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.6em;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0) 0%, rgba(241, 245, 249, 1) 90%);
  pointer-events: none;
}

.doc-search-email-chain-item {
  border: 1px solid #d7e0ea;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.doc-search-email-chain-subject {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.doc-search-email-chain-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.doc-search-email-chain-meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.doc-search-email-chain-meta-label {
  min-width: 5.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
}

.doc-search-email-chain-meta-value {
  font-size: 0.95rem;
  color: #374151;
  word-break: break-word;
}

.doc-search-email-chain-divider {
  border-top: 1px solid #e5e7eb;
  margin: 0.7rem 0 0.6rem;
}

.doc-search-email-chain-body-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.doc-search-email-chain-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  color: #1f2937;
  font-size: 0.96rem;
}

.doc-search-email-chain-body p {
  margin: 0 0 0.55rem;
}

.doc-search-email-chain-body p:last-child {
  margin-bottom: 0;
}

.doc-search-email-chain-download-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.5rem;
  line-height: 1;
}

.doc-search-analysis-note {
  font-size: 0.875rem;
}

#agentic-document-modal .modal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#agentic-document-modal-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#agentic-document-modal .btn-close {
  flex: 0 0 auto;
}

#agentic-document-modal .form-check-input:checked {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23adb5bd'/%3e%3c/svg%3e");
}

#agentic-document-modal .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23adb5bd'/%3e%3c/svg%3e");
}

#agentic-document-modal .form-check-input:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

#agentic-document-modal .form-control:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.agentic-send-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 0.15em;
}

.doc-search-file-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.doc-search-file-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.doc-search-version-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background-color: var(--bs-secondary);
  color: #fff;
  font-size: 0.55rem;
  line-height: 1;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
}

.doc-search-resizing {
  cursor: col-resize;
  user-select: none;
}

body.doc-search-mobile-sidebar-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .doc-search-page {
    padding: 0.35rem !important;
  }

  .doc-search-shell {
    border-radius: 0.5rem;
  }

  .doc-search-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .doc-search-header-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }

  .doc-search-header-controls .form-check {
    margin-right: 0.25rem;
  }

  .doc-search-title-group {
    width: 100%;
  }

  .doc-search-messages {
    padding: 0.75rem !important;
    padding-bottom: var(--agentic-composer-space, 7rem) !important;
  }

  .doc-search-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: min(84vw, 320px) !important;
    min-width: 0 !important;
    max-width: min(84vw, 320px) !important;
    flex-basis: min(84vw, 320px) !important;
    z-index: 1060;
    transform: translateX(-104%);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
  }

  .doc-search-layout.doc-search-sidebar-open .doc-search-sidebar {
    transform: translateX(0);
  }

  .doc-search-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.35);
    transition: opacity 0.2s ease;
    z-index: 1055;
  }

  .doc-search-layout.doc-search-sidebar-open .doc-search-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .doc-search-splitter {
    display: none;
  }

  .doc-search-disclaimer {
    font-size: 0.62rem;
  }
}

.doc-search-composer .doc-search-question-input {
  white-space: pre-wrap;
}

.doc-search-agentic-progress {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(13, 110, 253, 0.12);
}

.doc-search-agentic-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #0d6efd;
  will-change: width;
}

@media (min-width: 992px) {
  .doc-search-shell {
    min-height: 82vh;
  }
  .doc-search-layout {
    min-height: 82vh;
  }

  .doc-search-composer .doc-search-question-input {
    font-size: 1.1rem;
    line-height: 1.45;
    min-height: calc(1.5em + 0.95rem + 2px);
    padding: 0.45rem 0.75rem;
  }

  .doc-search-composer #agentic-file-picker-btn,
  .doc-search-composer #agentic-submit,
  .doc-search-composer #agentic-send-dropdown,
  .doc-search-composer #agentic-save {
    font-size: 1.05rem;
    line-height: 1.45;
    padding: 0.45rem 0.9rem;
  }

  .doc-search-composer #agentic-file-picker-btn svg {
    width: 28px;
    height: 28px;
  }
}

.doc-search-messages {
  overflow-y: auto;
}

.doc-search-message {
  max-width: 75%;
  padding: 0.75rem 1rem 2.25rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.doc-search-message.doc-search-upload-message {
  padding-bottom: 0.75rem;
}

.doc-search-message.assistant:has(.doc-search-analysis-note) {
  padding-bottom: 0.75rem;
}

.doc-search-analysis-note .btn-group {
  margin-left: auto;
}

.doc-search-message.user {
  margin-left: auto;
  background: #f3f4f6;
  color: #4b5563;
}

.doc-search-message.system {
  margin-left: auto;
  background: #e3f7e8;
}

.doc-search-message.assistant {
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .doc-search-message {
    max-width: 90%;
    margin-bottom: 0.75rem;
  }
}

.doc-search-message .doc-search-answer {
  background: transparent;
  border: 0;
  padding: 0;
}

.pulse-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 999px;
  opacity: 0.35;
  animation: pulse-dot 1.8s ease-out infinite;
}

.pulse-dot-user {
  background: #6b7280;
}

.pulse-dot-user::after {
  background: rgba(107, 114, 128, 0.22);
}

.doc-search-message.user .btn-link {
  color: #6b7280;
}

.doc-search-message.user .btn-link:hover,
.doc-search-message.user .btn-link:focus {
  color: #4b5563;
}

.pulse-dot-system {
  background: #22c55e;
}

.pulse-dot-system::after {
  background: rgba(34, 197, 94, 0.35);
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.4);
    opacity: 0.35;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.doc-search-message {
  position: relative;
}

.doc-search-message.doc-search-message-has-quick-replies {
  padding-bottom: 4.25rem;
}

.doc-search-actions {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.doc-search-toolbuilder-actions {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 0.75rem;
  background: rgba(13, 110, 253, 0.04);
}

.doc-search-toolbuilder-actions-label {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f6f82;
}

.doc-search-scroll-bottom {
  position: sticky;
  bottom: 1rem;
  float: right;
  z-index: 3;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.citations-off .citation {
  display: none;
}

.doc-search-answer h1,
.doc-search-answer h2,
.doc-search-answer h3,
.doc-search-answer h4,
.doc-search-answer h5,
.doc-search-answer h6,
.doc-search-answer .doc-search-legal-heading {
  font-family: var(--bs-body-font-family);
  font-size: 1rem !important;
  line-height: 1.5;
  font-weight: 700;
  margin: 1rem 0 0.4rem 0;
}

.doc-search-answer .doc-search-legal-heading strong {
  font-weight: 700;
  letter-spacing: 0.005em;
}

.doc-search-shell .doc-search-message,
.doc-search-shell .doc-search-answer,
.doc-search-shell .doc-search-answer p,
.doc-search-shell .doc-search-answer li,
.doc-search-shell .doc-search-answer h2,
.doc-search-shell .doc-search-answer h3,
.doc-search-shell .doc-search-answer h4,
.doc-search-shell .doc-search-answer h5,
.doc-search-shell .doc-search-answer h6 {
  color: var(--bs-secondary-color, #6c757d);
}

.doc-search-answer ul {
  padding-left: 1.25rem;
}

.doc-search-inline-plan-field {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  border-radius: 0.2rem;
  box-shadow: inset 0 -1px 0 rgba(13, 110, 253, 0);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.doc-search-inline-plan-field:hover {
  background-color: rgba(13, 110, 253, 0.06);
  box-shadow: inset 0 -1px 0 rgba(13, 110, 253, 0.22);
}

.doc-search-inline-plan-field:focus {
  outline: none;
  background-color: rgba(13, 110, 253, 0.08);
  box-shadow: inset 0 -1px 0 rgba(13, 110, 253, 0.45);
}

.doc-search-inline-plan[data-plan-save-state="error"] .doc-search-inline-plan-field,
.doc-search-inline-plan[data-plan-save-state="error"] .doc-search-inline-plan-field:focus {
  background-color: rgba(220, 53, 69, 0.08);
  box-shadow: inset 0 -1px 0 rgba(220, 53, 69, 0.4);
}

.doc-search-inline-plan-editor {
  display: block;
  min-height: 1.2em;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  border-radius: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.doc-search-inline-plan-editor:hover {
  background-color: rgba(13, 110, 253, 0.04);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.18);
}

.doc-search-inline-plan-editor:focus {
  outline: none;
  background-color: rgba(13, 110, 253, 0.06);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.38);
}

.doc-search-inline-plan[data-plan-save-state="error"] .doc-search-inline-plan-editor,
.doc-search-inline-plan[data-plan-save-state="error"] .doc-search-inline-plan-editor:focus {
  background-color: rgba(220, 53, 69, 0.06);
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.35);
}

.doc-search-answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.doc-search-answer th,
.doc-search-answer td {
  border: 1px solid #cfd6dd;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.doc-search-answer th {
  background: #f4f6f8;
  font-weight: 600;
}

.doc-search-answer .typing-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #1f2a44;
  margin-left: 2px;
  animation: caretBlink 1s step-end infinite;
  vertical-align: baseline;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-custom-violet {
  background-color: #8a2be2;
}

.bg-purple {
  background-color: #8a2be2 !important;
}

/* Same RGBA palette you used server-side */
.bg-ref-blue   > *, .bg-ref-blue   { background-color: rgba(130, 177, 255, 0.15) !important; }
.bg-ref-green  > *, .bg-ref-green  { background-color: rgba(200, 230, 201, 0.2) !important; }
.bg-ref-red    > *, .bg-ref-red    { background-color: rgba(255, 235, 238, 0.6) !important; }
.bg-ref-purple > *, .bg-ref-purple { background-color: rgba(196, 78, 255, 0.107) !important; }

/* If you ever add .table-hover, keep your color on hover */
.table-hover tbody tr.bg-ref-blue  > *:hover,
.table-hover tbody tr.bg-ref-green > *:hover,
.table-hover tbody tr.bg-ref-red   > *:hover {
  background-color: inherit !important;
}

.table-clause tr > td,
.table-clause tr > th {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.table-clause {
  border-collapse: separate;
  border-spacing: 0;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1100;
  pointer-events: auto;
  background-color: #ffffff;
  color: black;
  text-align: center;
  padding: 10px;
}

.first-cell {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}


.last-cell {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.form-switch .form-check-input:checked ~ .form-check-label::before {
  background-color: #a71414;
}

.form-control.text-muted {
  color: #6c757d;                 /* keep the muted text color */
  border: 1px solid #ced4da !important;
}

.rounded-textarea {
  border-radius: 0.5rem;
}

.comment-editor {
  border-radius: 5px;          
  height: auto;                
  min-height: 60px;
  margin-left: -15px;
  padding-left: 5px;
}

.navbar-rounded-bottom {
  border-radius:  0.5rem;
  margin: 10px;
}

.navbar-unauthenticated {
  margin-top: 0px;
}

.btn.btn-outline-light {
  background-color: transparent;
}

.btn.btn-outline-light:hover {
  background-color: transparent;
}

.btn.btn-outline-light-success {
  background-color: transparent;
  border-color: #ffffff; 
}

.btn.btn-outline-light-success:hover {
  background-color: #157347;
  border-color: #ffffff; 
}

/* Fixed size utility */
.btn-65x58 {
  width: 65px;
  height: 58px;
}

.btn-save { width: 108px; }

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

.centered-navbar {
  max-width: 450px;
  margin-right: auto;
  margin-left: auto;
}

.navbar-light .navbar-toggler-icon {
  border-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
}

form {
  width: 100%;
}

.centered-text {
  position: fixed;
  top: clamp(450px, 50%, 80%);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.larger-text .text-primary {
  font-size: 5em;
  animation: textGrow 0.5s forwards;
}

.larger-text .text-primary sup {
  font-size: 0.7em;
  vertical-align: super;
}

@keyframes textGrow {
  0%, 100% {
      transform: scale(0.98);
  }
  50% {
      transform: scale(1);
  }
}

.form-min-width {
  min-width: 370px;
}

.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

/* each card */
.card.subscription-box,
.card.legend-card {
  border: none;
  box-shadow: none;
  display: flex;             /* keep your internal flex layout */
  flex-direction: column;
  height: 100%;
}

/* optional padding tweak */
.card.subscription-box .card-body,
.card.legend-card .card-body {
  padding: 1rem;
}

/* ———————————————————————————— */
/*  Desktop & up: multi-column grid */
/* ———————————————————————————— */
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

/*  Card layout stays the same… */
.card.subscription-box,
.card.legend-card {
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .card-body {
  padding: 1rem;
}

.feature-icon::before {
  display: none;
}
/* ———————————————————————————— */
/*  Pseudo-label is hidden by default */
/* ———————————————————————————— */
.feature-icon::before {
  content: attr(data-label);
  display: none;
}

/* ———————————————————————————— */
/*  Mobile only: show the label, shrink it */
/* ———————————————————————————— */
@media (max-width: 767.98px) {
  /* hide legend on phones */
  .legend-card { display: none!important; }
  .subscriptions-grid { grid-template-columns: 1fr; }

  /* turn your icon-only <h5> into “📦 Open Source” */

  .feature-icon {
    font-size: 0;
    /* if you want a different bottom‐margin on mobile, override here */
    margin-bottom: 1rem !important;
  }

  .feature-icon::before {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #6c757d; /* Bootstrap .text-secondary */
  }

  /* if you need extra spacing on the SVG itself… */
  .feature-icon svg {
    margin-top: 0.25rem;
  }
}

.subscription-selected {
  background-color: rgba(81, 81, 81, 0.1) !important;
}

.feature-text { 
  margin-bottom: 35px; 
}

/* mobile only: smaller font and tighter margin */
@media (max-width: 767px) {
  .feature-text{
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

.border-primary {
  border: 1px solid #007bff;
}

ins:not(.inserted-text) { text-decoration: none; }
del { text-decoration-thickness: .09em; }

/* Base style – matches a <p> as closely as possible */
.borderless-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 2.5em;              
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent;  
  border-radius: 0.3rem !important;
  box-sizing: border-box;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  resize: vertical;               /* or 'none' if you prefer */
  font: inherit;                  /* inherit font-size, family, etc */
  line-height: inherit;
  white-space: pre-wrap;          /* so \n behaves like in normal text */
}

/* Only visual cue on focus – do *not* change size/padding/margins */
.borderless-textarea:focus {
  border-color: rgba(0, 123, 255, 0.4) !important;         /* softer blue */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25) !important;       /* subtle outer shadow */
  background-color: rgba(0, 123, 255, 0.03) !important;     /* tiny tint, optional */
}

.borderless-textarea-modal {
  border: 0 !important;
  width: 100%;
  max-width: 100%;
  outline: none !important;
  box-shadow: inset 0 0 2px rgba(154, 160, 252, 0.7);
  border-radius: 0.5rem !important;
  background-color: transparent !important;
}

.borderless-textarea-login {
  border: 0 !important;
  outline: none !important;
  box-shadow: inset 0 0 2px rgba(154, 160, 252, 0.7); 
  border-radius: 0.5rem !important;
  background-color: #4d01e7;
  padding: 10px; 
}

.borderless-card {
  border: 0 !important;
  outline: none !important;
  box-shadow: inset 0 0 2px rgba(154, 160, 252, 0.7);
  border-radius: 0.5rem !important;
  background-color: #4d01e7;
  padding: 10px;
}

@media (max-width: 768px) {
  .input-container {
      flex-basis: 100%;
      max-width: 100%;
      box-sizing: border-box;
  }
}

@media (min-width: 576px) and (max-width: 969.98px) {
  .navbar #home span,
  .navbar #referenceContracts span,
  .navbar #bd_activity span,
  .navbar #billing_summary span,
  .navbar #podcast span,
  .navbar #therapist span,
  .navbar #userd_text span   {
    display: none;
  }
}

@media (max-width: 575.98px), (min-width: 970px) {
  .navbar #home span,
  .navbar #referenceContracts span,
  .navbar #bd_activity span,
  .navbar #billing_summary span,
  .navbar #podcast span,
  .navbar #therapist span {
    display: inline;
  }
}

#autoAmendOverlay {
  position: absolute;        
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;     
  border-radius:  0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.5rem 1rem;
  z-index: 1000;              
}

.blinking-cursor {
  font-weight: 100;
  color: #2e3d49;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


.cookie-popup {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: min(820px, calc(100vw - 32px));
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(var(--bs-primary-rgb), 0.14), transparent 42%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.93));
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.14);
  backdrop-filter: blur(16px);
  color: #1d2330;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  z-index: 1200;
}

.cookie-popup--visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cookie-popup__layout {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
}

.cookie-popup__content {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
}

.cookie-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--bs-primary-rgb), 0.78);
}

.cookie-popup__eyebrow::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), 0.14);
  flex-shrink: 0;
}

.cookie-popup__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.15;
  color: #1d2330;
  font-weight: 700;
}

.cookie-popup__text {
  margin: 0;
  max-width: 58ch;
  color: rgba(29, 35, 48, 0.78);
  line-height: 1.65;
}

.cookie-popup__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-popup__link {
  border-color: rgba(13, 110, 253, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--bs-primary);
}

.cookie-popup__link:hover,
.cookie-popup__link:focus {
  background: rgba(13, 110, 253, 0.06);
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: none;
  color: var(--bs-primary);
}

.cookie-popup__link,
.cookie-popup__button {
  border-radius: 0.95rem;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
}

.cookie-popup__button {
  min-width: 240px;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
}

.cookie-popup__button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 768px) {
  .cookie-popup {
    bottom: 16px;
    width: calc(100vw - 20px);
  }

  .cookie-popup__layout {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .cookie-popup__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .cookie-popup__link,
  .cookie-popup__button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  
  .dropdown-menu[data-bs-popper] {
    left: 0 !important;
    right: auto !important;
  }
}

@media (min-width: 576px) {
  .dropdown-menu[data-bs-popper] {
    right: 0 !important;
    left: auto !important;
  }
}

.btn-group-holder {
  display: inline-block;
  width: 100%;
}

.btn-group .dropdown-menu {
  min-width: 0;
  width: auto; 
}

/* Reference view paragraph styling driven by data-* attributes */
.clause-text-ref {
    margin-left: calc(attr(data-indent-px number, 0) * 1px);
    font-size: calc(attr(data-font-pt number, 11) * 1pt);
  }


/* Spacer between number and body in reference view */
.flex-spacer {
  width: attr(data-width-px px, 0px);
  flex:  0 0 auto;
}

.clause-text-user{
  /* expose as custom props so you can reuse elsewhere if needed */
  --indent:      attr(data-indent px, 0px);
  --font-pt:     attr(data-font pt, 11pt);
  --space-after: attr(data-space-after pt, 0pt);

  margin-left: var(--indent);
  font-size: var(--font-pt);
  padding-bottom: var(--space-after);
}

.wrapper {
  height: 100vh;  
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 10px;
}

header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; 
  height: 50%;
  width: 100%;
  z-index: -1;
}

header_1 {
  margin-top: -40vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; 
  height: 100%;
  width: 100%;
  z-index: -1;
}

header_2 {
  margin-top: -75vh;
  margin-bottom: -20vh;
  border-radius: 15px; 
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; 
  height: 1100px;
  width: 100%;
  z-index: -1;
}
.typed-cursor {
  color: rgba(13, 110, 253, 0.75);
}

/* (Optional) Tweak the blink speed or keyframes */
@keyframes typedjsCursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.typed-cursor {
  animation: typedjsCursorBlink 0.7s infinite;
}

.background_img {
  mask-image: linear-gradient(to right, transparent 20%, black 60%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 20%, black 600px, black 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  margin-top: 15vh;
  transform: translateZ(-10px) scale(2);
  opacity: 0; 
  transition: opacity 1s ease-out;
}

.background_img.visible {
  opacity: 1;
}

.foreground_img {
  mask-image: linear-gradient(to left, transparent 0%, black 60%, black 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 600px, black 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  margin-top: 40vh;
  transform: translateZ(-3px) scale(2);
  transition: opacity 1s ease-out;
}

.foreground_img.visible {
  opacity: 1;
}

.background_img,
.foreground_img {
  position: absolute;
  height: 70%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.visible {
  opacity: 1; /* Set the opacity to full when the class 'visible' is added */
}

.title {
  margin-top: -60vh;
}

.title_1 {
  font-size: 40px;
  margin-top: 0vh;
  height: 30%;
  color: white;
}

@media (max-width: 768px) { 
  .title_1 {
    color: #0d6efd !important;
  }
}

.title_2 {
  font-size: 40px;
  margin-top: 20vh;
}

.title_3 {
  font-size: 40px;
  color: #0d6efd !important;
  margin-top: 0vh;
}


.cap-strip { background: transparent; }

.cap-strip .feature-box {
  border: 1px solid rgba(13,110,253,.18);
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 8px 24px rgba(13,110,253,.12);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cap-strip .feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(13,110,253,.35);
  box-shadow: 0 14px 36px rgba(13,110,253,.18);
}

.cap-strip .icon {
  color: var(--bs-primary);
  margin-bottom: .5rem;
  line-height: 1;
}

.cap-strip h3 {
  margin: 0 0 .5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bs-primary);
}

/* --- “Bootstrap primary” bullets using paragraphs --- */
.cap-strip .feature-box p {
  position: relative;
  margin: .35rem 0;
  padding-left: 1.25rem;                 /* indent for dash */
  color: var(--bs-secondary-color);      /* same as .text-muted */
  line-height: 1.4;
}

.cap-strip .feature-box p::before {
  content: "–";                          /* en dash bullet */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--bs-primary);              /* Bootstrap primary blue */
}

/* Tighter layout on small screens */
@media (max-width: 767.98px) {
  .cap-strip .feature-box { padding: 1rem; }
  .cap-strip .feature-box p { margin: .3rem 0; }
}

.icon {
  font-size: 2rem; 
  margin-bottom: 10px;
}

.blue-filter {
  filter: invert(27%) sepia(86%) saturate(2126%) hue-rotate(180deg) brightness(94%) contrast(104%);
}

.green-filter {
  filter: invert(40%) sepia(90%) saturate(500%) hue-rotate(85deg) brightness(95%) contrast(85%);
}

.white-filter {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.logo-hover {
  display: inline-block;
  padding: 2px;
  border-radius: 3px;
}

.logo-hover.blue-hover:hover {
  background-color: var(--bs-primary);
}

.logo-hover.green-hover:hover {
  background-color: var(--bs-success);
}

.logo-hover:hover img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}


.audio-player {
  width: 100%; /* Make the audio player take the full width */
  max-width: 600px; /* Set a max-width for larger screens */
  max-height: 30px;
  margin: 0 auto; /* Center the audio player */
}

.modal-body-chat {
  max-height: 700px; /* Adjust as necessary */
  min-height: 100px;
  overflow-y: auto;  /* Enable vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  padding: 20px;
  white-space: normal; /* Prevent text from creating horizontal scroll */
}

.speech-bubble-left {
  max-width: 80%;
  background-color: #e9ecef !important;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  clear: both; /* Ensure it clears any previous floats */
}

.speech-bubble-right {
  max-width: 80%;
  background-color: #007bff;
  color: white;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  float: right;
}

.speech-bubble-right textarea {
  max-width: 860px;
  min-width: 860px;/* Ensure textarea occupies full width of the speech bubble */
  color: white; /* Ensure text remains white inside the textarea */
  background-color: #007bff; /* Background of textarea same as the bubble */
  padding: 8px;
  box-sizing: border-box; /* Ensure padding doesn't overflow */
  float: right;
}

.text-black {
  color: black;
  margin: 0;
}

.text-white {
  color: white;
  margin: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

#transcriptionProgressBar {
  transition: width 0.6s ease;
}
.progress-bar {
  width: 0%;
  transition: width 0.6s ease;
}

@supports (width: calc(attr(data-progress number, 0) * 1%)) {
  .progress-bar[data-progress] {
    width: calc(attr(data-progress number, 0) * 1%);
  }
}

.progress-bar.custom-height {
  transition: width 0.6s ease;
  min-height: 50px;
  max-height: 50px;
}

input.site-search {
   box-sizing: border-box;
   padding: 5px;
   border: 1px solid #ffffff;
   margin-right: 10px !important;
}

.audio-container {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
}

.modal-content-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

.table__row.text-muted > * {
  color: var(--bs-secondary-color) !important;
}

.text-muted {
  color: var(--bs-secondary-color) !important;
}

.table-responsive-stack {
  width: 100% !important;
}

.table-responsive-stack th {
  font-weight: normal !important;
}

@media (min-width: 768px) {
  .table-responsive-stack {
    table-layout: fixed !important;
  }
  .table-responsive-stack th:nth-of-type(1),
  .table-responsive-stack td:nth-of-type(1) {
    width: 120px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .table-responsive-stack th:nth-of-type(3),
  .table-responsive-stack td:nth-of-type(3) {
    width: 80px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
    .table-responsive-stack {
    table-layout: auto !important;
    width: 100% !important;
  }

  .table-responsive-stack col {
    width: auto !important;
  }

  .table-responsive-stack thead { display: none; }
  .table-responsive-stack tr {
    display: block;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
  }
  .table-responsive-stack td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem !important;
    border-top: 1px solid #dee2e6;
  }

  .table-responsive-stack {
    table-layout: auto !important;
  }
  /* hide header row */
  .table-responsive-stack thead {
    display: none;
  }
  /* make each row a block “card” */
  .table-responsive-stack tr {
    display: block;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
  }
  /* make each cell flex with label/value split */
  .table-responsive-stack td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem !important;
    border-top: 1px solid #dee2e6;
  }
  /* audioCell: stack children full-width */
  .table-responsive-stack td[id^="audioCell"] {
    display: block !important;
    text-align: left;
  }
  .table-responsive-stack td[id^="audioCell"] > * {
    width: 100% !important;
    margin-bottom: .5rem;
  }
  .table-responsive-stack td[id^="audioCell"] > *:last-child {
    margin-bottom: 0;
  }
  /* Podcast Name: label left, value right */
  .table-responsive-stack td.podcast-name-cell {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .table-responsive-stack td.podcast-name-cell .d-inline.d-md-none {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: .5rem;
  }
  .table-responsive-stack td.podcast-name-cell span.value {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: right;
  }
  /* editable input fills available space */
  .table-responsive-stack td.podcast-name-cell .editable-name {
    flex: 1 1 auto !important;
    display: flex !important;
  }
  .table-responsive-stack td.podcast-name-cell .editable-name input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  /* BD List only */
  .bd-list-stack td[data-label]::before {
    content: attr(data-label);
    color: var(--bs-primary);
    font-weight: 400;
    margin-right: .5rem;
    white-space: nowrap;
    text-align: left;
  }
}

@media (max-width: 768px) {
  /* 1) Hide any header row if you had one */
  .details-table thead { display: none; }

  /* 2) Stack each row into its own block “card” */
  .details-table tbody tr {
    display: block;
    border-bottom: 1px solid #dee2e6;
  }

  /* 3) Make both cells full-width and remove side-by-side */
  .details-table tbody td {
    display: block;
    width: 100%;
    padding: .25rem 0;
  }

  /* 4) Ensure the “label” (text-primary) sits on top */
  .details-table tbody td p.text-primary {
    margin-bottom: .25rem;
  }
}

.card.custom-shadow {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.fixed-width-badge {
  display: inline-block;
  min-width: 2rem;        /* ensure at least circle for “0” */
  padding: 0.25rem 0.5rem; /* top/bottom + left/right */
  font-size: 0.875rem;
  line-height: 1;         /* center vertically inside the padding */
  text-align: center;
}

.min-w-0 {
  min-width: 0;
}

#docTypeModal .doc-type-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

#docTypeModal .doc-type-row-main {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

#docTypeModal .doc-type-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

#docTypeModal .doc-type-delete-form {
  width: auto;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

#docTypeModal .doc-type-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog.custom-wide {
  max-width: 90vw;
}

@keyframes blink {
  0%, 49%   { visibility: visible; }
  50%, 100% { visibility: hidden;  }
}

#cursor {
  /* 1 second total cycle, jump at the end of each half */
  animation: blink 1s step-end infinite;
}

/* ===== Tri-state switch (Bootstrap-friendly) ===== */

/* Host */
.tri-switch {
  /* sizing */
  --tri-width: 132px;                         /* 3 stops */
  --tri-height: 28px;                         /* track height */
  --tri-radius: var(--bs-border-radius-pill, 50rem);

  /* palette */
  --tri-border: var(--bs-border-color, rgba(0,0,0,.15));
  --tri-bg: var(--bs-body-bg, #fff);
  --tri-mark: var(--bs-secondary-color, rgba(0,0,0,.6));
  --tri-accent: var(--bs-primary, #0d6efd);
  --tri-thumb-bg: var(--bs-body-bg, #fff);

  /* fx */
  --tri-shadow: 0 .15rem .3rem rgba(0,0,0,.15);

  /* presentational box (makes it feel like a button tile) */
  display: inline-flex;            /* aligns better in button rows */
  align-items: center;
  vertical-align: middle;
  line-height: 1;
  padding: .25rem;                 /* padding around track */
  border: 1px solid var(--tri-border);
  border-radius: var(--bs-border-radius, .375rem);
  background-color: var(--tri-bg);

  /* align with neighbors (don’t stretch inside flex containers) */
  flex: 0 0 auto;

  /* toolbar tile height matching .btn (~38px) */
  --tile-h: 38px;
  --tile-pad: .25rem;
  height: var(--tile-h);
}

/* Track (one definition – hardened) */
.tri-track {
  /* sizing */
  width: var(--tri-width);
  height: calc(var(--tile-h) - (var(--tile-pad) * 2));

  /* visuals */
  border: 1px solid var(--tri-border);
  border-radius: var(--tri-radius);
  background: #fff; /* solid so nothing shows through */

  /* layout & clipping */
  display: block !important;       /* avoid inherited flex/inline rules */
  position: relative !important;   /* anchor absolute children */
  overflow: hidden !important;     /* critical: no spill of marks/caption */
  box-sizing: border-box;

  /* transitions/focus */
  transition: box-shadow .15s ease-in-out, background-color .15s ease-in-out, border-color .15s;
  outline: none;
}

/* Focus ring (like .btn focus) */
.tri-track:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

/* Marks (L, N, T) */
.tri-marks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center;
  pointer-events: none;            /* clicks go to track unless explicitly enabled */
  font-size: .75rem;
  font-weight: 500;
  color: var(--tri-mark);
  user-select: none;
  line-height: 1;
  z-index: 1;                      /* sits under the thumb */
  white-space: nowrap;
}

/* Thumb: width = 1/3 of track, inset 2px all around */
.tri-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc((var(--tri-width) - 4px) / 3);
  height: calc(var(--tri-height) - 4px);      /* keeps pill smaller than track */
  border-radius: calc(var(--tri-radius) - 2px);
  background: var(--tri-thumb-bg);
  box-shadow: var(--tri-shadow);
  border: 1px solid var(--tri-border);
  transition: transform .18s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  z-index: 2;                      /* above marks */
  box-sizing: border-box;
}

/* Caption inside the thumb */
.tri-thumb .tri-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--bs-body-color, #000);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;             /* never wrap “L/N/T” or short labels */
}

/* Active state tint (optional) */
.tri-switch[data-state="landlord"] .tri-track,
.tri-switch[data-state="neutral"]  .tri-track,
.tri-switch[data-state="tenant"]   .tri-track {
  border-color: color-mix(in srgb, var(--tri-accent) 25%, var(--tri-border));
}

/* Positioning via CSS var --pos: 0|1|2 */
.tri-switch { --pos: 1; }                  /* default = middle */
.tri-switch[data-state="landlord"] { --pos: 0; }
.tri-switch[data-state="neutral"]  { --pos: 1; }
.tri-switch[data-state="tenant"]   { --pos: 2; }

.tri-switch .tri-thumb {
  transform: translateX(calc(var(--pos) * ((var(--tri-width) - 4px) / 3)));
}

/* Legacy Bootstrap .form-switch padding should not apply here */
.form-switch.tri-switch { padding-left: 0 !important; }

/* Keep an outline button transparent with a visible border in all states */
.btn.keep-outline {
  background: transparent !important;

  /* force white outline + text (works on hover/active/disabled too) */
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: #fff;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fff;
}

.btn.keep-outline .spinner-border {
  color: #fff !important; /* spinner stays white */
}

/* Soft page veil: translucent + slight blur (overrides the existing one) */
.page-fader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .16s ease; /* a hair quicker */
  pointer-events: none;
  z-index: 2001;
}
.page-fader.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .page-fader { transition: none; backdrop-filter: none; }
}

/* Top loader for perceived continuity */
.soft-progress {
  position: fixed;
  top: 0; left: 0; height: 3px; width: 0;
  background: var(--bs-primary, #0d6efd);
  z-index: 2000;
  transition: width .25s ease, opacity .25s ease;
}
.soft-progress.show { width: 80vw; }
.soft-progress.done { width: 100vw; opacity: 0; }

/* Keep the fixed-bottom navbar rock solid during the fade */
.navbar.fixed-bottom { transform: translateZ(0); will-change: transform; }

/* Anchor & highlight: your rows use this class in the template */
.clause-row-user { scroll-margin-top: 96px; } /* avoids header overlap on restore */ /* review_user.html rows */ 

/* Clause row reads values from data-* and exposes custom props */
.clause-row{
  position: relative; 
  --indent:      attr(data-indent px, 0px);
  --gap:         attr(data-gap px, 0px);
  --font-pt:     attr(data-font pt, 11pt);
  --space-after: attr(data-space-after pt, 0pt);
  padding-bottom: var(--space-after, 0pt);
  font-size: var(--font-pt);
}

.clause-row > p { margin-bottom: 0; }
.clause-num { margin-left: var(--indent); flex: 0 0 auto; }
.clause-gap { flex: 0 0 var(--gap); width: var(--gap); }
.clause-body { flex: 1 1 auto; }

.clause-body,
.clause-editor {
  font-size: inherit !important;
}

/* flash target (where we return focus), and flash for new rows */
.flash-target { animation: targetFlash .9s ease; }
@keyframes targetFlash {
  0%   { background: rgba(13,110,253,.12); }
  100% { background: transparent; }
}

.preserve {
  white-space: pre-wrap;     /* keep \n and multiple spaces */
  word-break: break-word;    /* avoid overflow */
  font-family: inherit;      /* no monospace look */
}

/* ==== Login page utilities (no inline styles needed) ==== */

/* Full-page overlay used for the spinner */
.loading-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hidden by default; fade/slide in when .show is added */
#loginFields {
  display: none;
  opacity: 0;
  transform: translateY(-10%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#loginFields.show {
  display: flex;              /* flex layout when visible */
  opacity: 1;
  transform: translateY(0);
}

/* Max width helper for narrow forms */
.max-w-475 { max-width: 475px; }
/* ==== Auth/Signup utilities (CSP-safe) ==== */

/* Spinner overlay (replaces width/height/background/z-index inline styles) */
.loading-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-overlay.recaptcha-spinner {
  display: flex;
}

.auth-gated-panel {
  position: relative;
}

.auth-card-spinner {
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.signup-form-spinner {
  border-radius: 1.25rem;
  justify-content: flex-start !important;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

/* Fade-in container for gated content */
#loginFields {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#loginFields.show {
  display: block;
  opacity: 1;
}

.mt-01em { margin-top: 0.1em !important; }
.mt-04em { margin-top: 0.4em !important; }

/* Width helpers */
.w-3p5 { width: 3.5%; }
.w-5   { width: 5%; }
.w-4   { width: 4%; }
.w-5   { width: 5%; }
.w-7   { width: 7%; }
.w-8   { width: 8%; }
.w-10  { width: 10%; }
.w-11  { width: 11%; }
.w-12  { width: 12%; }
.w-14  { width: 14%; }
.w-15  { width: 15%; }
.w-20  { width: 20%; }
.w-21  { width: 21%; }
.w-25  { width: 25%; }
.w-30  { width: 30%; }
.w-35  { width: 35%; }
.w-42  { width: 42%; }
.w-43  { width: 43%; }
.w-55  { width: 55%; }
.w-100  { width: 100%; }
.w-200 { min-width: 200px; max-width: 200px; }
.w-380 { width: 380px !important; }

.min-w-200 { min-width: 200px; }
.max-w-100 { max-width: 100px; }
.max-w-475 { max-width: 475px; }
.mw-400 { max-width: 400px; }

.h-100 { height: 100%; }
.h-400 { height: 400px; }
.h-500 { height: 500px; }

.size-15 { width: 15px; height: 15px; }

/* column width helpers for <col> */
.col-w-40  { width: 40px; }
.col-w-50  { width: 50px; }
.col-w-70  { width: 70px; }
.col-w-180 { width: 180px; }
.col-w-120 { width: 120px; }
.col-w-250 { width: 250px; }

/* min-width helper */
.min-w-150 { min-width: 150px; }

.col-w-2p  { width: 2%; }
.col-w-6p  { width: 6%; }
.col-w-10p { width: 10%; }
.col-w-12p { width: 12%; }
.col-w-16p { width: 16%; }
.col-w-20p { width: 20%; }
.col-w-28p { width: 28%; }

/* purple text utility (if not already added) */
.text-purple { color: #8a2be2 !important; }

/* Margin utilities to replace 25/30/32/40px inline margins */
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-22 { margin-bottom: 22px !important; }
.mb-25 { margin-bottom: 25px !important; }
.mb-28 { margin-bottom: 28px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }

.pb-15px { padding-bottom: 15px !important; }

/* Feature icon rows default spacing */
.feature-icon { margin-bottom: 1rem; }

/* Padding utility to replace "padding: 10px 10px" */
.p-10 { padding: 10px 10px !important; }

/* Cursors / vertical align / text align replacements */
.cursor-pointer { cursor: pointer !important; }
.va-top {
  font-size: 0.65em !important;       /* shrink text size */
  vertical-align: super !important;   /* true superscript positioning */
  line-height: 1;                     /* keeps it neat beside the label */
}
.text-justify { text-align: justify !important; }

/* Price pill look (optional extra sugar) */
.price-pill { border-radius: .375rem; }

/* Contact “button” styled h5 */
.contact-btn { border-radius: .375rem; }

/* Image sizing helpers */
.img-max-70p { max-width: 100%; max-height: 70%; }

/* Exact 10px margin-bottom */
.mb-10 { margin-bottom: 10px !important; }

.text-italic {
  font-style: italic;
}

#signinModal .modal-body > :last-child { margin-bottom: 0 !important; }
#signinModal .modal-body { padding-bottom: 0 !important; }
#signinModal .ack-close { position: sticky; bottom: 0; background: var(--bs-body-bg); }

/* Optional: visually center the footer links container */
.footer .container a { margin: 0 .125rem; }

.modal .modal-body > :last-child { margin-bottom: 0 !important; }

.w-from-var { width: var(--w); }

/* 4 */
.deltaview-box {
  display: flex;
  align-items: flex-start;
  text-align: justify;
  position: relative;
  width: 100%;
}

/* Keep these as separate flex items so order is explicit */
.clause-num { margin: 0; flex: 0 0 auto; }          
.indent-30  { flex: 0 0 30px; }                     

@supports (font-size: calc(attr(data-font-pt number, 11) * 1pt)) {
  .clause-text {
    font-size: calc(attr(data-font-pt number, 11) * 1pt);
  }
}

.clause-text {
  font-size: inherit;
}

/* Utilities you’re already using, listed for completeness */
.table-fixed     { table-layout: fixed; }
.me-15           { margin-right: 15px !important; }
.col-w-200       { width: 200px; }
.col-w-70        { width: 70px; }

/* Optional: if you still want dynamic offsets and font sizes (safe via CSS vars) */
.ml-from-var     { margin-left: var(--ml); }         /* set via data- attribute + small JS */
.fs-from-var-pt  { font-size: var(--fs-pt); }

/* 5 */
.ml-from-var     { margin-left: var(--ml); }     /* e.g., --ml: "24px" */
.fs-from-var-pt  { font-size:  var(--fs-pt); }   /* e.g., --fs-pt: "11pt" */

/* 6 */
.flex-fixed      { flex: 0 0 auto; }
.indent-from-var { width: var(--indent); }       /* e.g., --indent: "32px" */

/* 7 */
.me-15 { margin-right: 15px !important; }

.textarea-inline {
  text-align: justify;
  margin: -2px 12px 10px 0;
  width: 100%;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

.top-30p   { top: 30% !important; } 
.square-20 { width: 20px !important; height: 20px !important; }
.square-30 { width: 30px !important; height: 30px !important; }
.square-35 { width: 40px !important; height: 35px !important; }

.w-auto { width: auto !important; }
.w-32px { width: 32px !important; }

.comment-dynamic {
  text-align: justify;
  resize: none;
  overflow: hidden;
  margin-left: calc(var(--x0) - 32px);
  width: calc(100% - (var(--x0) + 15px));
}

.w-105px { width: 105px !important; }
.w-108px { width: 108px !important; }
.mw-340 { max-width: 340px; }
.mw-500 { max-width: 500px; } 
.mw-950 { max-width: 950px; }
.mw-1050 { max-width: 1050px; }
.mh-70vh { max-height: 70vh; }
.min-w-90 { min-width: 90px; }
.min-w-370 { min-width: 370px; }

.btn-65x58 { width: 65px; height: 58px; }

.spinner-16 { width: 16px; height: 16px;}
.spinner-20 { width: 20px; height: 20px; }
.spinner-40 { width: 40px; height: 40px; }

.log-block{
  margin: .1rem 0 .2rem;
  padding: .3rem .45rem;
  white-space: pre-wrap;      
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: .82rem;          
  line-height: 1.15;          
  border-left: 3px solid transparent;
  background: #fafafa;
}
.level-error   { border-left-color: #dc3545; background:#fff5f6; }
.level-warning { border-left-color: #ffc107; background:#fff9e6; }
.level-info    { border-left-color: #0dcaf0; background:#f5fbff; }

.level-filter.active {
  color: #fff !important;
}
.level-filter[data-level="all"].active     { background:#6c757d; border-color:#6c757d; }
.level-filter[data-level="error"].active   { background:#dc3545; border-color:#dc3545; }
.level-filter[data-level="warning"].active { background:#ffc107; border-color:#ffc107; color:#212529 !important; }
.level-filter[data-level="info"].active    { background:#0dcaf0; border-color:#0dcaf0; color:#212529 !important; }

.text-purple {
  color: #8a2be2 !important;
}

.btn-purple {
  background-color: #8a2be2 !important;
  border-color: #8a2be2 !important;
  color: #fff !important;
}
.btn-purple:hover,
.btn-purple:focus {
  background-color: #7a26cb !important;
  border-color: #7a26cb !important;
  color: #fff !important;
}

.ref-table .btn-group {
  display: none;
  margin: 0;
}

/* show button-group on row hover — BUT only when hover is not locked */
body:not(.ref-hover-disabled)
  .ref-table tr[data-action="hover-ref-row"]:hover .btn-group,
body:not(.ref-hover-disabled)
  .ref-table tr[data-action="hover-ref-row"]:hover .ref-cell-actions .btn-group {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

/* when a row is "active" (its dropdown is open), keep its group visible */
.ref-table tr[data-action="hover-ref-row"].ref-row-active .btn-group {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

.ref-table p { margin: 0; }
.ref-table p { margin-top: 0; margin-bottom: 0; }          /* classic */
@supports (margin-block: 0) {
  .ref-table p { margin-block: 0; }                         /* logical */
}

/* hide action groups by default in hover-ref rows (reference view) */
.ref-table tr[data-action="hover-ref-row"] .btn-group {
  display: none;
}

/* ── Reference rows: spacing + stable hover + vertical centering ─────────── */

.ref-table {
  table-layout: fixed;
  width: 100%;
  margin-bottom: 1.2em;                 
  border-collapse: separate;
  border-spacing: 0;
}

.docx-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.docx-table,
.docx-row-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.docx-table td,
.docx-table th,
.docx-row-table td,
.docx-row-table th {
  border: 1px solid #cfd6dd;
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.docx-row-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}

.docx-row-cell {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
}

.docx-row-tr > td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ref-table.docx-row-container {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  border-spacing: 0 !important;
}

.ref-table.docx-row-container > :not(caption) > * > * {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ref-table > :not(caption) > * > * {
  padding-top: .10rem !important;   
  padding-bottom: .10rem !important;
  border-bottom-width: 0 !important; 
}

.ref-table .clause-editor {
  font: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.ref-table .btn-group.is-visible,
.ref-cell-actions .btn-group.is-visible {
  display: inline-flex !important;
  align-items: center;
  margin: 0; /* match your hover rule */
}

.ref-table tr.insert-row .ref-cell-actions .btn-group {
  display: none !important;
}

/* make sure the dropdown menu sits above neighbouring rows */
.ref-cell-actions .dropdown-menu {
  z-index: 1050;
}

.clause-gap {
  margin-top: 0 !important;
}

.break-word {
  word-break: break-word;
  overflow-wrap: anywhere; /* broader support */
}

input[type='number']::-webkit-inner-spin-button, 
input[type='number']::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.custom-modal-width {
    max-width: 90% !important; 
    width: 90% !important; 
}

.no-bullets {
    list-style-type: none;
    padding-left: 0; 
    margin-left: 0;  
}

.hidden-input {
  display: none !important;
}

.ref-cell-text {
  vertical-align: top !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ref-cell-actions {
  position: relative;              
  white-space: nowrap;
  min-height: 35px;
}

.ref-cell-actions .btn-group {
  position: absolute;
  top: 50%;
  left: 50%;        
  right: auto;                     
  transform: translate(-50%, -50%);   
  display: none;                   
  align-items: center;
  margin: 0;
  min-height: 35px;
}


/* base editable textarea */
.clause-editor {
  border: none !important;
  min-height: 0 !important; 
  outline: none !important;
  box-shadow: none !important;
  text-align: inherit;
  text-justify: auto;
  margin: 0 !important;
  padding: 0;               /* or whatever you already tuned */
  width: 100%;
  font: inherit;
  line-height: inherit;
  box-sizing: border-box;
  background-color: transparent !important;
}

/* softer, less prominent focus state for clause editor */
.clause-editor:focus {
  border: none !important;
  outline: none !important;
  min-height: 0 !important;
  font: inherit !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

/* start with a clean left edge so "indent" measures from the border */
.ref-table td.first-cell { padding-left: 0; }

/* default: read a per-element fallback variable if present */
[data-indent] { margin-left: var(--indent, 0px); }
[data-font]   { font-size:  var(--font-pt, 11pt); }
[data-space-after] { padding-bottom: var(--space-after, 0pt); }

/* Chrome 133+ (and future engines): use typed attr() + calc() */
@supports (margin-left: calc(attr(data-indent number, 0) * 1px)) {
  :root { --pt-to-px: 1.3333333333; } /* 96/72 */

  [data-indent] {
    /* convert points (number) -> pixels */
    margin-left: calc(attr(data-indent number, 0) * var(--pt-to-px) * 1px);
  }
  [data-font] {
    /* points are fine for type if you want to keep pt */
    font-size: calc(attr(data-font number, 11) * 1pt);
  }
  [data-space-after] {
    padding-bottom: calc(attr(data-space-after number, 0) * 1pt);
  }
}

.d-inline { display: inline !important; }      /* Bootstrap has d-none; this complements it */
.shadow-none { box-shadow: none !important; }
.size-30 { width: 30px; height: 30px; }

/* borders used instead of .style.borderLeft */
.border-start-transparent { border-left: 1px solid transparent !important; }

td.last-cell .btn-group > button[data-bs-toggle="dropdown"],
td.last-cell .btn-group > button.btn:last-of-type {
  border-top-right-radius: var(--bs-btn-border-radius, .375rem) !important;
  border-bottom-right-radius: var(--bs-btn-border-radius, .375rem) !important;
}

.adjust-textarea { resize: none; overflow-y: hidden; }

.ml-from-var { margin-left: var(--ml, attr(data-ml px, 0px)); }
@supports (margin-left: calc(attr(data-ml number, 0) * 1px)) {
  .ml-from-var { margin-left: calc(attr(data-ml number, 0) * 1px); }
}

/* We already use this in JS to remove the red left border without inline styles */
.border-start-transparent { border-left: 1px solid transparent !important; }

.clause-row > .spinner-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:10}
.spinner-overlay .spinner-grow{--bs-spinner-width:1.75rem;--bs-spinner-height:1.75rem}

/* Base gated form behaviour */
.recaptcha-form {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hidden state */
.recaptcha-form-hidden {
  display: none !important;
  opacity: 0 !important;
}

/* Visible state – must override #loginFields and d-none */
.recaptcha-form-visible {
  display: flex !important;          
  flex-direction: column;
  align-items: center;
  opacity: 1 !important;
}

/* Prevent layout jump on login card by keeping space reserved */
.login-shell #loginFields.recaptcha-form-hidden {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.login-shell #loginFields.recaptcha-form-visible {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}

/* Spinner fade-out behaviour */
.recaptcha-spinner {
  transition: opacity 0.3s ease;
}

.recaptcha-spinner-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hide reCAPTCHA badge globally. */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
}

.comment-highlight {
  background-color: #e6ffe6 !important;
  padding: 2px 4px !important;
  border-radius: 2px; /* optional, can remove */
  display: inline-block; /* matches your visual behaviour */
}

/* Inline explanation editor textarea */
.explanation-textarea {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #ffffff !important;
  font-size: 1em;
  font-family: inherit;
  color: inherit;
  padding: 5px;
  margin: 0;
  text-decoration: none !important;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Helper textarea used for programmatic copy (fallback path) */
.clipboard-helper {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

/* Read-only synopsis text */
.synopsis {
  padding: 6px 8px !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Editable version – same layout, just with border/visual tweaks */
.editor-textarea {
  color: var(--bs-secondary-color) !important;
  border: 1px solid #007bff !important;
  border-radius: 6px;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.4;
  resize: none !important;
}

/* Diff markup should stay obvious even when DOCX inline runs nest spans/links. */
ins,
.inserted-text {
  background-color: #e6ffe6;
  color: #1f6b2a;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 0.08em;
}

del,
.deleted-text {
  background: #ffe6e6;
  color: #a33657;
  text-decoration-line: line-through !important;
  text-decoration-style: solid !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 0.09em;
}

ins *,
.inserted-text *,
del *,
.deleted-text * {
  color: inherit !important;
  text-decoration-line: inherit !important;
  text-decoration-style: inherit !important;
  text-decoration-color: inherit !important;
  text-decoration-thickness: inherit !important;
}

/* Explanation pill – replaces `style="background-color: #e6ffe6;"` */
.explanation-tag {
  background-color: #e6ffe6;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  margin-left: 0.25rem;
}

.report-icon-btn {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.report-icon-btn:focus,
.report-icon-btn:active {
  background-color: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.comment-highlight {
  background-color: #e6ffe6 !important;
  padding: 2px 4px !important;
  border-radius: 2px;
  display: inline-block;
  text-decoration: underline;   /* underline whole note */
  font-style: normal;           /* default: not italic */
}

/* Only the "Note: ..." part should be italic */
.comment-highlight .comment-body {
  font-style: italic !important;
}

/* Brackets [ and ] stay normal */
.comment-highlight .comment-bracket {
  font-style: normal !important;
}

.text-black-30 {
  color: rgba(0, 0, 0, 0.33);
}

.ref-table tr.text-black-30 > td,
.ref-table tr.text-black-30 > th {
  color: rgba(0, 0, 0, 0.33) !important;
}
.ref-table tr.text-black-30 .clause-editor {
  color: inherit;
}

.ref-table tr.row-write-error > td:first-child,
.ref-table tr.row-write-error > th:first-child {
  border-left: 2px solid var(--bs-danger, #dc3545) !important;
}

.ref-table tr.row-write-error > td:last-child,
.ref-table tr.row-write-error > th:last-child {
  border-right: 2px solid var(--bs-danger, #dc3545) !important;
}
.doc-search-sidebar-footer .form-check-input,
.doc-search-sidebar-footer .form-check-input:focus {
  box-shadow: none;
  outline: none;
}

.doc-search-sidebar-footer .form-check-input.doc-search-toggle {
  box-shadow: none;
}

.doc-search-sidebar-footer .form-check-input:focus-visible {
  box-shadow: none;
  outline: none;
}
.doc-search-guidance-toggle {
  gap: 6px;
  padding-left: 0;
}

.doc-search-guidance-icon {
  flex: 0 0 auto;
  display: block;
}

.doc-search-guidance-toggle .form-check-input {
  margin-left: 0;
}

/* ==== Home redesign ==== */
.home-wrapper {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--bs-primary-rgb), 0.1), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(var(--bs-primary-rgb), 0.08), transparent 50%),
    linear-gradient(180deg, #eff5ff 0%, #edf4ff 52%, #eaf2ff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 1800px 1100px, 1600px 1000px, auto;
  background-position: 10% top, 85% top, center top;
  font-family: "Manrope", "Sora", sans-serif;
}

.home-wrapper.login-shell,
.contact-shell,
.signup-shell {
  min-height: calc(100vh - 60px);
}

/* Public pages: fixed translucent backgrounds. */
.home-wrapper,
.contact-shell,
.signup-shell {
  background-attachment: fixed;
}

.display-font {
  font-family: "Cormorant Garamond", "Fraunces", "Times New Roman", Georgia, serif;
  letter-spacing: -0.02em;
}

.home-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.home-atmosphere,
.contact-atmosphere {
  display: block;
}

.home-atmosphere .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.18), transparent 65%);
  filter: blur(10px);
  opacity: 0.9;
  animation: float 10s ease-in-out infinite;
}

.home-atmosphere .orb-a {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -140px;
}

.home-atmosphere .orb-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 220px;
  animation-delay: 1.5s;
}

.home-atmosphere .grid-glow {
  position: absolute;
  inset: 16% 8% 8% 50%;
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.24), transparent 72%);
  transform: rotate(-8deg);
  filter: blur(46px);
  opacity: 0.9;
}

.home-parallax,
.home-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  pointer-events: none;
  object-position: left center;
}

.home-foreground {
  top: 56vh;
  transform: translateZ(-6px) scale(1.4);
  opacity: 0.7;
  margin-top: 0;
}

.home-hero {
  position: relative;
  z-index: 2;
  padding: 6rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: rgba(var(--bs-primary-rgb), 0.8);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  color: var(--bs-primary);
  margin-top: 0.75rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2c2f3a;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.metric-pill {
  background: rgba(var(--bs-primary-rgb), 0.08);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
}

.metric-pill .metric-number {
  min-width: 84px;
  text-align: left;
}

.metric-pill .metric-label {
  white-space: nowrap;
}

.metric-number {
  font-weight: 700;
  color: var(--bs-primary);
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.5rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
  padding: 1.5rem 1.8rem;
  backdrop-filter: blur(8px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b2f3a;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), 0.2);
  animation: pulse 2.2s infinite;
}

.hero-card-body {
  display: grid;
  gap: 0.85rem;
  min-height: 300px;
}

.hero-card-line {
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.08);
  color: #1e2330;
  font-weight: 600;
}

.hero-card-divider {
  height: 1px;
  background: rgba(13, 110, 253, 0.15);
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.4rem;
}

.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(44, 47, 58, 0.7);
}

.hero-card-value {
  font-weight: 700;
  color: var(--bs-primary);
}

#typed-text {
  display: inline-block;
  min-height: 48px;
}

.hero-card-label-lg {
  font-size: 0.95rem;
  letter-spacing: 0.28em;
}

.hero-card-value-lg {
  font-size: 3rem;
  line-height: 1;
  min-height: 148px;
}

.hero-card-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.16);
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.hero-card-workspace .hero-card-body {
  min-height: 310px;
  max-height: 310px;
}

.home-strip {
  position: relative;
  z-index: 2;
  padding: 2rem 0 3rem;
}

.strip-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.strip-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.strip-card h3 {
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
}

.home-capabilities {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  color: #1d2330;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: rgba(29, 35, 48, 0.7);
  max-width: 640px;
  margin: 0 auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.cap-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.08);
  min-height: 180px;
  height: 100%;
}

@media (max-width: 1200px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

.cap-card h4 {
  color: var(--bs-primary);
  margin-bottom: 0.6rem;
  display: inline-block;
  vertical-align: middle;
}

.cap-card .pulse-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
  margin-bottom: 0.6rem;
}

.home-workflow {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.workflow-copy h2 {
  color: #1d2330;
  margin-bottom: 1rem;
}

.workflow-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workflow-steps {
  display: grid;
  gap: 1rem;
}

.step-card {
  padding: 1.25rem 1.4rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 110, 253, 0.1);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.08);
}

.step-number {
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.home-proof {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
}

.proof-card {
  background: linear-gradient(120deg, rgba(var(--bs-primary-rgb), 0.1), rgba(255, 255, 255, 0.95));
  border-radius: 1.6rem;
  padding: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 16px 36px rgba(13, 110, 253, 0.12);
}

.proof-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

.proof-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.proof-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(44, 47, 58, 0.7);
}

.home-cta {
  position: relative;
  z-index: 2;
  padding: 2rem 0 5rem;
}

.cta-card {
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 16px 36px rgba(13, 110, 253, 0.1);
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(var(--bs-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0); }
}

@media (max-width: 768px) {
  .home-hero { padding-top: 4rem; }
  .hero-card { order: -1; }
  .hero-actions .btn { width: 100%; }
  .cta-card { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .home-atmosphere .orb,
  .pulse-dot {
    animation: none;
  }
}

/* ==== Contact page ==== */
.contact-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #eaf1ff;
  background-image:
    radial-gradient(140% 96% at 50% 20%, rgba(var(--bs-primary-rgb), 0.11) 0%, rgba(var(--bs-primary-rgb), 0.08) 24%, rgba(var(--bs-primary-rgb), 0.03) 48%, transparent 72%),
    linear-gradient(180deg, #eaf1ff 0%, #e8f0ff 54%, #e6eeff 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 6.75rem 0 4rem;
}

.contact-shell.page-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.contact-footer,
.public-footer {
  background: transparent;
  background-color: transparent;
  color: #2c2f3a;
}

/* ==== Document Search muted typography ==== */
.doc-search-shell {
  color: var(--bs-secondary-color, #6c757d);
}

.doc-search-shell h1,
.doc-search-shell h2,
.doc-search-shell h3,
.doc-search-shell h4,
.doc-search-shell h5,
.doc-search-shell h6,
.doc-search-shell .list-group-item,
.doc-search-shell .doc-search-message,
.doc-search-shell .doc-search-messages,
.doc-search-shell .doc-search-header,
.doc-search-shell .doc-search-sidebar-panel,
.doc-search-shell .doc-search-composer {
  color: inherit;
}

.doc-search-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.doc-search-title-group .doc-search-title-text {
  font-size: 1.25rem;
  cursor: text;
  min-width: 0;
}

.doc-search-title-group .doc-search-title-base {
  display: inline-block;
  min-width: 1ch;
}

.doc-search-title-group .doc-search-title-tag {
  white-space: pre;
}

.doc-search-title-group .doc-search-title-base[contenteditable="true"] {
  outline: none;
  white-space: pre-wrap;
}

.doc-search-header-controls #agentic-citations-toggle {
  border-color: var(--bs-secondary);
  background-color: rgba(108, 117, 125, 0.2);
}

.doc-search-header-controls #agentic-citations-toggle:focus {
  border-color: var(--bs-secondary);
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.18);
}

.doc-search-header-controls #agentic-citations-toggle:checked {
  border-color: var(--bs-secondary);
  background-color: var(--bs-secondary);
}

.doc-search-header-controls #agentic-citations-toggle:not(:checked) {
  background-color: rgba(108, 117, 125, 0.16);
}

.doc-search-shell .doc-search-messages strong,
.doc-search-shell .doc-search-messages b {
  color: inherit;
}

.contact-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.2), transparent 60%);
  filter: blur(8px);
  opacity: 0.7;
}

.contact-orb-a {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 120px;
}

.contact-orb-b {
  width: 220px;
  height: 220px;
  right: -70px;
  top: 40px;
}

.contact-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 7rem);
  padding-top: 1.25rem;
}

.contact-hero {
  margin-bottom: 2rem;
}

.contact-hero-copy {
  max-width: 700px;
}

.contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  font-size: 0.75rem;
  color: rgba(var(--bs-primary-rgb), 0.8);
}

.contact-title {
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  color: var(--bs-primary);
  margin: 0.6rem 0 1rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: #2c2f3a;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(44, 47, 58, 0.7);
}

.contact-value {
  font-weight: 600;
  color: #1f2430;
}

.contact-info-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.4rem;
  padding: 2rem 2rem 2.5rem 2rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.12);
  max-width: 720px;
  margin: 0 auto;
}

.contact-info-card h3 {
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.contact-info-card ul {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
  color: #2c2f3a;
  line-height: 1.6;
}

.contact-info-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), 0.12);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .contact-shell {
    padding: 7rem 0 3rem;
  }
  .contact-content {
    min-height: auto;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
}

/* ==== Sign up polish ==== */
.signup-shell {
  position: relative;
  overflow-x: hidden;
  min-height: calc(100vh - 60px);
  padding: 3.5rem 0 1.5rem;
  background-color: #eaf1ff;
  background-image:
    radial-gradient(140% 94% at 50% 16%, rgba(var(--bs-primary-rgb), 0.11) 0%, rgba(var(--bs-primary-rgb), 0.08) 22%, rgba(var(--bs-primary-rgb), 0.03) 46%, transparent 72%),
    linear-gradient(180deg, #eaf1ff 0%, #e8f0ff 55%, #e6eeff 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
  .home-wrapper,
  .contact-shell,
  .signup-shell {
    background-attachment: scroll;
  }
}

.signup-hero {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 6rem;
  position: relative;
  z-index: 2;
}

.signup-hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Fraunces", "Times New Roman", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #4f5663;
  text-wrap: balance;
  white-space: nowrap;
}

.signup-hero-copy {
  max-width: 640px;
  margin: 1rem auto 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #5f6775;
}

.signup-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.signup-shell {
  color: var(--bs-secondary-color, #6c757d);
}

.signup-shell .wrap {
  margin-bottom: 0.5rem;
}

.signup-shell h1,
.signup-shell h2,
.signup-shell h3,
.signup-shell h4,
.signup-shell h5,
.signup-shell h6 {
  color: inherit;
}

.signup-shell .subscriptions-grid {
  max-width: 100%;
  margin: 2.5rem auto 0;
  padding: 1.75rem 1rem 0;
  gap: 0.75rem;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  align-items: stretch;
}

.signup-shell #loginFields {
  margin-top: 0;
  padding-top: 1.5rem;
  display: block;
}

.login-shell #loginFields .auth-card-form,
.login-shell #loginFields .login-form,
.login-shell #resetPasswordForm {
  width: min(100%, 300px);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 0;
}

.login-shell #loginFields .form-floating .form-control {
  min-height: calc(3.5rem + calc(var(--bs-border-width) * 2));
  padding: 1rem 0.75rem;
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: normal;
}

.login-shell #loginFields .form-floating {
  width: 100%;
}

.login-shell #loginFields .form-floating > label {
  padding: 1rem 0.75rem;
}

.login-shell #loginFields .form-floating > .form-control:focus,
.login-shell #loginFields .form-floating > .form-control:not(:placeholder-shown),
.login-shell #loginFields .form-floating > .form-control:-webkit-autofill {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.login-shell #loginFields .hero-card-body {
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  align-items: start;
  justify-items: center;
}

.login-shell #loginFields .hero-card-header {
  align-items: center;
  line-height: 1.2;
}

.login-shell #loginFields .pulse-dot {
  flex: 0 0 10px;
  margin: 0;
}

.login-shell #loginFields .auth-card-form > .mb-3,
.login-shell #loginFields .auth-card-form > .d-grid,
.login-shell #loginFields .auth-card-form > .text-center {
  width: 100%;
  max-width: 100%;
}

.login-shell #loginFields .form-floating .form-control,
.login-shell #loginFields .form-floating label,
.login-shell #loginFields .d-grid {
  width: 100%;
  max-width: 100%;
}

.login-shell #loginFields .mb-3 {
  width: 100%;
}

.login-shell #loginFields .form-floating,
.login-shell #loginFields .form-control {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.login-shell #loginFields .d-grid .btn {
  width: 100%;
  transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.login-shell #loginFields .d-grid .btn:active,
.login-shell #loginFields .d-grid .btn:focus,
.login-shell #loginFields .d-grid .btn:focus-visible {
  transform: none;
}

.login-shell #loginFields input:-webkit-autofill,
.login-shell #loginFields input:-webkit-autofill:hover,
.login-shell #loginFields input:-webkit-autofill:focus,
.login-shell #loginFields input:-webkit-autofill:active {
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  -webkit-text-fill-color: #212529;
  caret-color: #212529;
  box-shadow: 0 0 0 1000px rgba(13, 110, 253, 0.08) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.login-shell #loginFields input:-webkit-autofill::first-line {
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
}

.login-shell #resetPasswordForm .mb-3,
.login-shell #resetPasswordForm .form-floating,
.login-shell #resetPasswordForm .form-control,
.login-shell #resetPasswordForm .d-grid {
  width: 100%;
  max-width: 100%;
}

.btn-subscribe-size {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.subscription-cancel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.subscription-cancel-card .hero-card-body {
  min-height: auto;
  padding-bottom: 0.5rem;
}

.verify-card .hero-card-body {
  min-height: auto;
  padding-bottom: 0.5rem;
}

.legal-shell .hero-grid {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
}

.wrapper.legal-shell {
  height: auto;
  min-height: calc(100vh - 60px);
  overflow-y: visible;
  padding-bottom: 2rem;
}

.legal-shell .hero-card {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
}

.legal-shell .hero-card-body {
  display: block;
}

.legal-shell .hero-card-body h4,
.legal-shell .hero-card-body h5 {
  margin-top: 1.25rem;
}

.legal-shell + .footer {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  z-index: 2;
  margin-top: -2rem;
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .legal-shell .hero-grid {
    grid-template-columns: 1fr;
  }

  .legal-shell .hero-copy {
    order: 1;
  }

  .legal-shell .hero-card {
    order: 2;
  }

  .signup-hero {
    margin-bottom: 0;
    padding-bottom: 3rem;
  }

  .signup-shell .subscriptions-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem !important;
  }

  .signup-shell #loginFields {
    padding-top: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .home-wrapper.login-shell,
  .contact-shell,
  .signup-shell {
    background:
      radial-gradient(circle at 10% 8%, rgba(var(--bs-primary-rgb), 0.16), transparent 42%),
      radial-gradient(circle at 90% 14%, rgba(var(--bs-primary-rgb), 0.12), transparent 46%),
      linear-gradient(180deg, #edf4ff 0%, #ebf3ff 58%, #e8f1ff 100%);
    background-size: 900px 680px, 900px 680px, auto;
    background-position: left top, right top, center top;
  }

  .signup-shell {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .signup-hero {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
  }

  .signup-hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.02;
    white-space: normal;
  }

  .signup-hero-copy {
    font-size: 1rem;
  }

  .signup-shell .subscriptions-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    overflow-x: visible;
    padding: 0.25rem 0.5rem 0;
    margin-top: 0;
  }

  .signup-shell #loginFields {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .signup-shell #loginFields {
    margin-top: 0 !important;
  }
}

/* Keep signup content in flow during reCAPTCHA gating */
.signup-shell #loginFields.recaptcha-form-hidden {
  display: block !important;
  visibility: hidden;
}

.signup-shell #loginFields.recaptcha-form-visible {
  display: block !important;
  visibility: visible;
}

.card.subscription-box,
.card.legend-card {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1.1rem;
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.subscription-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(13, 110, 253, 0.12);
}

.subscription-selected {
  border-color: rgba(13, 110, 253, 0.45) !important;
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.18) !important;
  background: rgba(13, 110, 253, 0.04) !important;
}

.price-pill {
  letter-spacing: 0.02em;
}

#paymentForm .form-floating .form-control {
  background: #fff;
}

#paymentForm .form-floating label {
  color: #6c757d;
}

#submit_btn_card {
  padding: 0.7rem 1.6rem;
  font-weight: 600;
}

@media (max-width: 991px) {
  .signup-shell {
    padding-top: 6.5rem;
  }
  .subscriptions-grid {
    max-width: 95%;
  }
}

@media (max-width: 1200px) {
  .signup-shell #loginFields {
    padding-top: 4rem !important;
  }
}

/* OCR progress width utility classes (CSP-safe; no inline styles) */
.doc-search-ocr-progress-pct-0 { width: 0%; }
.doc-search-ocr-progress-pct-1 { width: 1%; }
.doc-search-ocr-progress-pct-2 { width: 2%; }
.doc-search-ocr-progress-pct-3 { width: 3%; }
.doc-search-ocr-progress-pct-4 { width: 4%; }
.doc-search-ocr-progress-pct-5 { width: 5%; }
.doc-search-ocr-progress-pct-6 { width: 6%; }
.doc-search-ocr-progress-pct-7 { width: 7%; }
.doc-search-ocr-progress-pct-8 { width: 8%; }
.doc-search-ocr-progress-pct-9 { width: 9%; }
.doc-search-ocr-progress-pct-10 { width: 10%; }
.doc-search-ocr-progress-pct-11 { width: 11%; }
.doc-search-ocr-progress-pct-12 { width: 12%; }
.doc-search-ocr-progress-pct-13 { width: 13%; }
.doc-search-ocr-progress-pct-14 { width: 14%; }
.doc-search-ocr-progress-pct-15 { width: 15%; }
.doc-search-ocr-progress-pct-16 { width: 16%; }
.doc-search-ocr-progress-pct-17 { width: 17%; }
.doc-search-ocr-progress-pct-18 { width: 18%; }
.doc-search-ocr-progress-pct-19 { width: 19%; }
.doc-search-ocr-progress-pct-20 { width: 20%; }
.doc-search-ocr-progress-pct-21 { width: 21%; }
.doc-search-ocr-progress-pct-22 { width: 22%; }
.doc-search-ocr-progress-pct-23 { width: 23%; }
.doc-search-ocr-progress-pct-24 { width: 24%; }
.doc-search-ocr-progress-pct-25 { width: 25%; }
.doc-search-ocr-progress-pct-26 { width: 26%; }
.doc-search-ocr-progress-pct-27 { width: 27%; }
.doc-search-ocr-progress-pct-28 { width: 28%; }
.doc-search-ocr-progress-pct-29 { width: 29%; }
.doc-search-ocr-progress-pct-30 { width: 30%; }
.doc-search-ocr-progress-pct-31 { width: 31%; }
.doc-search-ocr-progress-pct-32 { width: 32%; }
.doc-search-ocr-progress-pct-33 { width: 33%; }
.doc-search-ocr-progress-pct-34 { width: 34%; }
.doc-search-ocr-progress-pct-35 { width: 35%; }
.doc-search-ocr-progress-pct-36 { width: 36%; }
.doc-search-ocr-progress-pct-37 { width: 37%; }
.doc-search-ocr-progress-pct-38 { width: 38%; }
.doc-search-ocr-progress-pct-39 { width: 39%; }
.doc-search-ocr-progress-pct-40 { width: 40%; }
.doc-search-ocr-progress-pct-41 { width: 41%; }
.doc-search-ocr-progress-pct-42 { width: 42%; }
.doc-search-ocr-progress-pct-43 { width: 43%; }
.doc-search-ocr-progress-pct-44 { width: 44%; }
.doc-search-ocr-progress-pct-45 { width: 45%; }
.doc-search-ocr-progress-pct-46 { width: 46%; }
.doc-search-ocr-progress-pct-47 { width: 47%; }
.doc-search-ocr-progress-pct-48 { width: 48%; }
.doc-search-ocr-progress-pct-49 { width: 49%; }
.doc-search-ocr-progress-pct-50 { width: 50%; }
.doc-search-ocr-progress-pct-51 { width: 51%; }
.doc-search-ocr-progress-pct-52 { width: 52%; }
.doc-search-ocr-progress-pct-53 { width: 53%; }
.doc-search-ocr-progress-pct-54 { width: 54%; }
.doc-search-ocr-progress-pct-55 { width: 55%; }
.doc-search-ocr-progress-pct-56 { width: 56%; }
.doc-search-ocr-progress-pct-57 { width: 57%; }
.doc-search-ocr-progress-pct-58 { width: 58%; }
.doc-search-ocr-progress-pct-59 { width: 59%; }
.doc-search-ocr-progress-pct-60 { width: 60%; }
.doc-search-ocr-progress-pct-61 { width: 61%; }
.doc-search-ocr-progress-pct-62 { width: 62%; }
.doc-search-ocr-progress-pct-63 { width: 63%; }
.doc-search-ocr-progress-pct-64 { width: 64%; }
.doc-search-ocr-progress-pct-65 { width: 65%; }
.doc-search-ocr-progress-pct-66 { width: 66%; }
.doc-search-ocr-progress-pct-67 { width: 67%; }
.doc-search-ocr-progress-pct-68 { width: 68%; }
.doc-search-ocr-progress-pct-69 { width: 69%; }
.doc-search-ocr-progress-pct-70 { width: 70%; }
.doc-search-ocr-progress-pct-71 { width: 71%; }
.doc-search-ocr-progress-pct-72 { width: 72%; }
.doc-search-ocr-progress-pct-73 { width: 73%; }
.doc-search-ocr-progress-pct-74 { width: 74%; }
.doc-search-ocr-progress-pct-75 { width: 75%; }
.doc-search-ocr-progress-pct-76 { width: 76%; }
.doc-search-ocr-progress-pct-77 { width: 77%; }
.doc-search-ocr-progress-pct-78 { width: 78%; }
.doc-search-ocr-progress-pct-79 { width: 79%; }
.doc-search-ocr-progress-pct-80 { width: 80%; }
.doc-search-ocr-progress-pct-81 { width: 81%; }
.doc-search-ocr-progress-pct-82 { width: 82%; }
.doc-search-ocr-progress-pct-83 { width: 83%; }
.doc-search-ocr-progress-pct-84 { width: 84%; }
.doc-search-ocr-progress-pct-85 { width: 85%; }
.doc-search-ocr-progress-pct-86 { width: 86%; }
.doc-search-ocr-progress-pct-87 { width: 87%; }
.doc-search-ocr-progress-pct-88 { width: 88%; }
.doc-search-ocr-progress-pct-89 { width: 89%; }
.doc-search-ocr-progress-pct-90 { width: 90%; }
.doc-search-ocr-progress-pct-91 { width: 91%; }
.doc-search-ocr-progress-pct-92 { width: 92%; }
.doc-search-ocr-progress-pct-93 { width: 93%; }
.doc-search-ocr-progress-pct-94 { width: 94%; }
.doc-search-ocr-progress-pct-95 { width: 95%; }
.doc-search-ocr-progress-pct-96 { width: 96%; }
.doc-search-ocr-progress-pct-97 { width: 97%; }
.doc-search-ocr-progress-pct-98 { width: 98%; }
.doc-search-ocr-progress-pct-99 { width: 99%; }
.doc-search-ocr-progress-pct-100 { width: 100%; }

/* Profile settings table */
.profile-settings-card {
  max-width: 920px;
}

.profile-settings-table {
  table-layout: fixed;
}

.profile-settings-label-col {
  width: 46%;
}

.profile-settings-tooltip-label {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.profile-settings-input {
  width: 88px;
  max-width: 88px;
}

.profile-settings-icon-btn {
  width: 42px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-settings-action-btn {
  width: 220px;
  max-width: 100%;
}
