/* Script Bridge Design System & Brand Theme (scriptbridgepa.com) */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary-900: #002d62;
  --primary-800: #003876;
  --primary-700: #0d7c5f;
  --primary-600: #009688;
  --primary-500: #14b8a6;
  --primary-300: #5eead4;
  --primary-200: #99f6e4;
  --primary-100: #e6f4f1;
  --primary-50:  #f0fdf9;

  --accent-900: #134e4a;
  --accent-800: #115e59;
  --accent-700: #0f766e;
  --accent-600: #0d9488;
  --accent-500: #14b8a6;
  --accent-200: #99f6e4;
  --accent-100: #ccfbf1;
  --accent-50:  #f0fdf4;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f6f7f4;

  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --info: #003876;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;

  /* Semantic Status Indicators & Workflow Classification */
  --submitted:        #3b82f6;
  --submitted-bg:     #eff6ff;
  --submitted-border: #bfdbfe;
  --review:           #8b5cf6;
  --review-bg:        #f5f3ff;
  --review-border:    #ddd6fe;
  --info-req:         #d97706;
  --info-req-bg:      #fffbeb;
  --info-req-border:  #fde68a;
  --approved:         #059669;
  --approved-bg:      #ecfdf5;
  --approved-border:  #a7f3d0;
  --denied:           #dc2626;
  --denied-bg:        #fef2f2;
  --denied-border:    #fecaca;

  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

body.landing-bg {
  background-color: rgb(246, 247, 244);
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; line-height: 2.5rem; }
h2 { font-size: 1.75rem; line-height: 2rem; }
h3 { font-size: 1.25rem; line-height: 1.75rem; }
h4 { font-size: 1.1rem; line-height: 1.5rem; }

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-600);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.main-content {
  flex: 1 1 0%;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Top Navigation Bar */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  min-height: 76px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.navbar-logo {
  height: 52px;
  max-height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.navbar-centered {
  position: static !important;
  background-color: rgb(246, 247, 244) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  min-height: unset !important;
  padding: 30px 0 !important;
}

.nav-inner-centered {
  justify-content: center !important;
  text-align: center !important;
  height: auto !important;
  min-height: unset !important;
}

.nav-inner-centered .brand-link {
  margin: 0 auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.navbar-logo-lg {
  width: 164.4px !important;
  height: 109.6px !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .navbar-centered {
    padding: 24px 0 !important;
  }
  .navbar-logo-lg {
    width: 158.4px !important;
    height: 105.6px !important;
  }
}

.brand-link svg {
  color: var(--primary-600);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--primary-100);
  color: var(--primary-700);
}

/* Cursive Accent Typography & Badges matching scriptbridgepa.com */
.font-cursive {
  font-family: 'Caveat', cursive, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.highlight-cursive {
  font-family: 'Caveat', cursive, sans-serif;
  font-weight: 700;
  color: #00bfa5;
  font-size: 1.3em;
  display: inline-block;
  transform: rotate(-2deg);
  margin: 0 0.15em;
  line-height: 0.9;
}

.handwritten-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #00bfa5;
  background: rgba(0, 191, 165, 0.1);
  border: 1px dashed rgba(0, 191, 165, 0.35);
  padding: 0.2rem 0.85rem;
  border-radius: 9999px;
  transform: rotate(-1deg);
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--slate-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.mobile-toggle-btn:hover, .mobile-toggle-btn:focus-visible {
  background: var(--slate-100);
  color: var(--slate-900);
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.mobile-toggle-btn[aria-expanded="true"] {
  background: var(--slate-100);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  position: relative;
}

.nav-menu-glider {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-100);
  border-bottom: 2px solid var(--primary-600);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
}

.nav-menu-glider.is-active {
  opacity: 1;
  background: var(--primary-50);
}

.nav-menu-glider.is-hover {
  opacity: 1;
  background: var(--primary-100);
}

.nav-menu a {
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.nav-menu a.active {
  color: var(--primary-900);
  font-weight: 700;
}

.nav-menu a:hover {
  color: var(--primary-900);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user {
  font-size: 0.85rem;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge-phi {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--primary-100);
  color: var(--primary-800);
  border: 1px solid rgba(13, 124, 95, 0.2);
}

/* Responsive Navigation Breakpoint */
@media (max-width: 900px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  .nav-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 3px solid var(--primary-600);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    padding: 1.25rem 1.5rem 1.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-left: 0;
    z-index: 1000;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: navSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu-wrapper.nav-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    min-height: 44px;
    touch-action: manipulation;
  }

  .nav-menu a:hover, .nav-menu a:active {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-800);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-200);
    gap: 0.75rem;
  }

  .nav-actions a, .nav-actions button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-800);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(14, 60, 67, 0.2);
}
.btn-primary:hover {
  background-color: var(--primary-700);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--primary-600);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--primary-700);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--slate-700);
  border-color: var(--slate-300);
}
.btn-secondary:hover {
  background-color: var(--slate-50);
  color: var(--slate-900);
  border-color: var(--slate-400);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #b91c1c;
  color: #ffffff;
}

.btn-warning {
  background-color: #d97706;
  color: #ffffff;
}
.btn-warning:hover {
  background-color: #b45309;
  color: #ffffff;
}

.btn-sm {
  font-size: 0.825rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
}

/* Cards & Panels */
.card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--danger);
}

.form-control, select.form-control, textarea.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--slate-900);
  background-color: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle, low-intensity placeholder styling so inputs never look prefilled */
.form-control::placeholder,
select.form-control::placeholder,
textarea.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
  font-size: 0.9rem;
}

.form-control::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
}

.form-control::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
}

.form-control:-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
}

.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.form-control.is-invalid, select.form-control.is-invalid, textarea.form-control.is-invalid {
  border-color: var(--danger) !important;
  background-color: #fffbfa;
}

.form-control.is-invalid:focus, select.form-control.is-invalid:focus, textarea.form-control.is-invalid:focus {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
  animation: fadeIn 0.2s ease;
}

.field-error svg {
  flex-shrink: 0;
}

.field-success {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* Password Toggle Wrapper */
.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-wrapper .form-control {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--primary-700);
}

/* Live Age Calculation Badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  color: var(--primary-800);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.35rem;
  animation: fadeIn 0.2s ease;
}

/* Password Strength Meter */
.password-strength-container {
  margin-top: 0.5rem;
}

.password-strength-bar {
  height: 4px;
  background-color: var(--slate-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { width: 25%; background-color: var(--danger); }
.strength-fair { width: 50%; background-color: var(--warning); }
.strength-good { width: 75%; background-color: var(--primary-500); }
.strength-strong { width: 100%; background-color: var(--success); }

.password-requirements-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
}

.password-req-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.password-req-item.met {
  color: var(--success);
  font-weight: 600;
}

.password-req-item svg {
  flex-shrink: 0;
}

/* Copy Button Badge */
.copy-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-badge-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* Keyboard Shortcut Badge */
.kbd-shortcut {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--slate-300);
  color: var(--slate-600);
  line-height: 1;
}

.form-hint, .form-help {
  font-size: 0.775rem;
  color: var(--slate-400);
  margin-top: 0.35rem;
}

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

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* File Upload Dropzone */
.dropzone {
  border: 2px dashed var(--primary-500);
  background-color: var(--primary-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropzone:hover, .dropzone.dragover {
  background-color: var(--primary-100);
  border-color: var(--primary-700);
}
.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem auto;
  color: var(--primary-600);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-submitted {
  background-color: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.badge-under-review, .badge-review {
  background-color: var(--purple-bg);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.badge-info-requested {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
  animation: pulse-border 2s infinite;
}

.badge-pending-payer, .badge-payer-submitted {
  background-color: #fdf4ff;
  color: #c026d3;
  border: 1px solid #f5d0fe;
}

.badge-approved, .badge-success {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-denied, .badge-danger {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-partially-approved {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

.badge-appeal, .badge-appeal-in-progress {
  background-color: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.badge-closed {
  background-color: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.badge-warning {
  background-color: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.user-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

@keyframes pulse-border {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Stat KPI Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  position: relative;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-responsive > .table {
  min-width: 680px;
}

.table th {
  background-color: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.table td {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.table tr:hover td {
  background-color: var(--slate-50);
}

/* Timeline component */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-color: var(--slate-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--primary-600);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 400;
}

.timeline-body {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modal-pop 0.2s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left-color: var(--success); }
.toast-warning { border-left-color: var(--warning); }
.toast-danger { border-left-color: var(--danger); }

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--slate-200);
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

/* Comprehensive Responsive Styling for Mobile, Tablets & Small Screens */
@media (max-width: 900px) {
  .navbar {
    min-height: 64px;
  }
  .nav-inner {
    height: 4rem;
  }
  .navbar-logo {
    height: 42px;
    max-width: 175px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  h1 { font-size: 1.65rem; line-height: 2.1rem; }
  h2 { font-size: 1.35rem; line-height: 1.75rem; }
  h3 { font-size: 1.15rem; line-height: 1.5rem; }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-content {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  /* Responsive card padding - overrides inline desktop styles */
  .card, .auth-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }

  .card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .table th, .table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.825rem;
  }

  .modal {
    max-width: calc(100vw - 2rem);
    margin: 1rem auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .modal-footer .btn {
    flex: 1 1 auto;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }

  /* Prevent iOS auto-zoom by ensuring minimum 16px on inputs */
  .form-control, select.form-control, textarea.form-control, input.form-control {
    font-size: 16px !important;
    padding: 0.65rem 0.75rem;
  }

  .footer {
    padding: 2rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    min-height: 56px;
  }

  .nav-inner {
    height: 3.5rem;
  }

  .navbar-logo {
    height: 36px;
    max-width: 145px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.6rem 0.95rem;
    font-size: 0.875rem;
    min-height: 44px;
  }

  /* Auth tabs compact sizing */
  .auth-card {
    padding: 1.25rem 0.85rem !important;
  }

  .auth-tab-btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.4rem;
    gap: 0.35rem;
  }

  .auth-tab-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Dashboard action buttons full width on small screens */
  .page-action-group {
    width: 100%;
    flex-direction: column;
  }
  .page-action-group .btn {
    width: 100%;
  }
}

/* Extra narrow screens (<= 360px: iPhone SE 1st gen, Galaxy Fold) */
@media (max-width: 360px) {
  .container, .container-narrow {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .card, .auth-card {
    padding: 1rem 0.65rem !important;
  }

  h1 { font-size: 1.35rem; line-height: 1.75rem; }
  h2 { font-size: 1.2rem; line-height: 1.5rem; }

  .stat-card .stat-value {
    font-size: 1.3rem;
  }
}


/* ==========================================================================
   Auth Tab Switcher (Unified Pharmacy Sign In & Register)
   ========================================================================== */
.auth-tabs-container {
  margin-bottom: 1.75rem;
}

.auth-tabs-nav {
  display: flex;
  background: var(--slate-100);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.auth-tabs-glider {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.525rem);
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tabs-nav[data-active-tab="register"] .auth-tabs-glider {
  transform: translateX(calc(100% + 0.35rem));
}

.auth-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--slate-600);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-btn:hover {
  color: var(--primary-900);
}

.auth-tab-btn.active {
  color: var(--primary-900);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: authFadeIn 0.25s ease-out forwards;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ScriptBridge Homepage Full Styles (matching scriptbridgepa.com)
   ========================================================================== */
.sb-home {
  --sb-dk: #1b2332;
  --sb-pri: #0d7c5f;
  --sb-prl: #10a37f;
  --sb-warm: #d4772c;
  --sb-plum: #8b5cf6;
  --sb-grn: #16a34a;
  --sb-rose: #e11d48;
  --sb-amb: #d97706;
  --sb-bg: #f6f7f4;
  --sb-wh: #ffffff;
  --sb-bdr: rgba(27, 35, 50, 0.08);
  --sb-mut: rgba(27, 35, 50, 0.55);
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: #1a1f36;
  width: 100%;
}

.sb-home em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 700;
  color: var(--sb-pri);
  font-size: 1.15em;
}

/* Base Reveal Animation */
.sb-home .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sb-home .rv.show {
  opacity: 1;
  transform: translateY(0);
}
.sb-home .d1 { transition-delay: 0.08s; }
.sb-home .d2 { transition-delay: 0.16s; }
.sb-home .d3 { transition-delay: 0.24s; }
.sb-home .d4 { transition-delay: 0.32s; }

/* Buttons */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2.5px solid var(--sb-dk);
  transition: all 0.15s ease;
}
.sb-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}
.sb-btn-go {
  color: #ffffff !important;
  background: #0d7c5f !important;
  border-color: #0d7c5f !important;
  box-shadow: 0 4px 12px rgba(13, 124, 95, 0.25);
}
.sb-btn-go:hover {
  background: #0a664e !important;
  border-color: #0a664e !important;
  box-shadow: 0 6px 16px rgba(13, 124, 95, 0.35);
  transform: translateY(-2px);
}
.sb-btn-out {
  color: var(--sb-dk) !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.sb-btn-out:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.sb-btn-portal {
  color: #ffffff !important;
  background: var(--sb-dk);
  border-color: var(--sb-dk);
  box-shadow: 0 4px 12px rgba(27, 35, 50, 0.15);
}
.sb-btn-portal:hover {
  box-shadow: 0 6px 16px rgba(27, 35, 50, 0.25);
  transform: translateY(-2px);
}

/* Section 1: Hero */
.sb-hero {
  padding: 50px 0 60px;
  width: 100%;
}
.sb-hero-row {
  display: flex;
  gap: 48px;
  align-items: center;
}
.sb-hero-left { flex: 1.15; }
.sb-hero-right { flex: 0.85; }

.sb-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sb-pri);
  background: rgba(13, 124, 95, 0.08);
  border: 2px solid rgba(13, 124, 95, 0.2);
  margin-bottom: 24px;
}
.sb-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sb-grn);
  animation: sbBlink 2s infinite;
}
@keyframes sbBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.sb-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--sb-dk);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.sb-hero-p {
  font-size: 17px;
  color: var(--sb-mut);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 580px;
}

.sb-hero-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.sb-hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sb-dk);
}
.sb-hero-checks li svg {
  width: 19px;
  height: 19px;
  stroke: var(--sb-pri);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.sb-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Activity Feed */
.sb-feed {
  background: var(--sb-wh);
  border: 2.5px solid var(--sb-dk);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 6px 6px 0 var(--sb-dk);
}
.sb-feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sb-bdr);
}
.sb-feed-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-dk);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-feed-live {
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-grn);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 163, 74, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
}
.sb-feed-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sb-grn);
  animation: sbBlink 1.5s infinite;
}
.sb-feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: #f8faf9;
  border: 1px solid rgba(27, 35, 50, 0.04);
  transition: all 0.25s ease;
}
.sb-feed-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-feed-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sb-dk);
  flex: 1;
  overflow: hidden;
}
.sb-feed-name span {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sb-mut);
  margin-top: 1px;
}
.sb-feed-st {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1.5px solid;
  flex-shrink: 0;
}
.sb-st-ok  { color: var(--sb-grn);  border-color: rgba(22, 163, 74, 0.25);  background: rgba(22, 163, 74, 0.08); }
.sb-st-rev { color: var(--sb-amb);  border-color: rgba(217, 119, 6, 0.25);  background: rgba(217, 119, 6, 0.08); }
.sb-st-sub { color: var(--sb-pri);  border-color: rgba(13, 124, 95, 0.25);  background: rgba(13, 124, 95, 0.08); }
.sb-st-app { color: var(--sb-plum); border-color: rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.08); }

/* Ticker Marquee */
.sb-ticker {
  position: relative;
  width: 100%;
  height: 48px;
  overflow: hidden;
  background: #ffffff;
  border-top: 1.5px solid var(--sb-bdr);
  border-bottom: 1.5px solid var(--sb-bdr);
  margin: 20px 0 60px 0;
}
.sb-ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  will-change: transform;
  animation: sbScroll 32s linear infinite;
}
.sb-ticker-track:hover { animation-play-state: paused; }
@keyframes sbScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sb-ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sb-dk);
}
.sb-ticker-item svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
  fill: none;
}

/* Stats Section */
.sb-stats {
  padding: 40px 0 70px;
  width: 100%;
}
.sb-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.sb-section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.sb-section-head p {
  font-size: 16px;
  color: var(--sb-mut);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.sb-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sb-stat-card {
  background: var(--sb-wh);
  border: 1.5px solid var(--sb-bdr);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(27, 35, 50, 0.03);
}
.sb-stat-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.sb-stat-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-mut);
}

/* Comparison Section */
.sb-compare {
  padding: 40px 0 80px;
  width: 100%;
}
.sb-cmp-flex {
  display: flex;
  gap: 24px;
}
.sb-cmp-card {
  flex: 1;
  padding: 36px 32px;
  border-radius: 20px;
}
.sb-cmp-old {
  background: #fff8f8;
  border: 1px solid #fecdd3;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.04);
}
.sb-cmp-new {
  background: #f4fbf8;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 10px 25px -5px rgba(13, 124, 95, 0.12), 0 8px 10px -6px rgba(13, 124, 95, 0.08);
}
.sb-cmp-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-cmp-label svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  fill: none;
}
.sb-cmp-old .sb-cmp-label { color: var(--sb-rose); }
.sb-cmp-old .sb-cmp-label svg { stroke: var(--sb-rose); }
.sb-cmp-new .sb-cmp-label { color: var(--sb-pri); }
.sb-cmp-new .sb-cmp-label svg { stroke: var(--sb-pri); }
.sb-cmp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(27, 35, 50, 0.07);
}
.sb-cmp-row:last-child { border-bottom: none; }
.sb-cmp-metric { font-size: 14px; font-weight: 500; color: var(--sb-mut); }
.sb-cmp-val { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; }
.sb-cmp-old .sb-cmp-val { color: var(--sb-rose); }
.sb-cmp-new .sb-cmp-val { color: var(--sb-pri); }

/* Section 2: Process Timeline */
.sb-process {
  padding: 80px 0;
  width: 100%;
}
.sb-timeline {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}
.sb-tl-step {
  flex: 1;
  cursor: pointer;
  padding: 22px 18px;
  border-radius: 16px;
  background: var(--sb-wh);
  border: 2px solid var(--sb-bdr);
  transition: all 0.25s ease;
  text-align: center;
}
.sb-tl-step:hover {
  border-color: rgba(13, 124, 95, 0.4);
}
.sb-tl-step.active {
  border-color: var(--sb-pri);
  background: rgba(13, 124, 95, 0.04);
  box-shadow: 0 4px 14px rgba(13, 124, 95, 0.08);
}
.sb-tl-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sb-wh);
  border: 2.5px solid var(--sb-bdr);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--sb-mut);
}
.sb-tl-step.active .sb-tl-node {
  border-color: var(--sb-pri);
  color: var(--sb-pri);
  background: rgba(13, 124, 95, 0.08);
}
.sb-tl-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-dk);
  margin-bottom: 3px;
}
.sb-tl-desc {
  font-size: 12px;
  color: var(--sb-mut);
  line-height: 1.4;
}
.sb-tl-detail {
  background: var(--sb-wh);
  border: 2px solid var(--sb-bdr);
  border-radius: 20px;
  padding: 40px;
  min-height: 200px;
  box-shadow: 0 6px 20px rgba(27, 35, 50, 0.04);
}
.sb-process-signup {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.sb-tl-panel {
  display: none;
  gap: 36px;
  align-items: center;
}
.sb-tl-panel.active {
  display: flex;
  animation: authFadeIn 0.3s ease-out;
}
.sb-tl-panel-text { flex: 1; }
.sb-tl-panel-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.sb-tl-panel-text p {
  font-size: 16px;
  color: var(--sb-mut);
  line-height: 1.75;
}
.sb-tl-panel-visual {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: rgba(13, 124, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-tl-panel-visual svg {
  width: 64px;
  height: 64px;
  stroke: var(--sb-pri);
  stroke-width: 1.75;
  fill: none;
}

/* Problem Stats Section (Left-aligned editorial layout matching reference) */
.sb-problem {
  padding: 70px 0 85px;
  width: 100%;
  background: #f8faf9;
}
.sb-problem .sb-section-head {
  text-align: left;
  margin-bottom: 36px;
  max-width: 840px;
}
.sb-problem .sb-section-head h2 {
  text-align: left;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: #1b2332;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sb-problem .sb-section-head h2 em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 700;
  color: #e11d48 !important;
  font-size: 1.2em;
}
.sb-problem .sb-section-head p {
  text-align: left;
  margin: 0;
  max-width: 680px;
  font-size: 16px;
  color: #64748b;
  line-height: 1.65;
}
.sb-problem .sb-section-head p strong {
  color: #1b2332;
  font-weight: 700;
}
.sb-problem .sb-section-head p.sb-problem-note {
  margin-top: 14px;
  font-weight: 600;
  color: #1b2332;
}
.sb-problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.sb-prob-stat {
  padding: 32px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  text-align: left;
}
.sb-prob-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.06);
  border-color: rgba(225, 29, 72, 0.25);
}
.sb-prob-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.sb-prob-icon svg {
  width: 20px;
  height: 20px;
  stroke: #e11d48;
  stroke-width: 2.2;
  fill: none;
}
.sb-prob-val {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #e11d48;
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sb-prob-val .sb-val-unit {
  font-size: 26px;
  font-weight: 700;
}
.sb-prob-lbl {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
}

/* Services 6 Tabs */
.sb-svc {
  padding: 60px 0 80px;
  width: 100%;
}
.sb-tabs-row {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.sb-tab {
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sb-mut);
  background: var(--sb-wh);
  border: 1.5px solid var(--sb-bdr);
  transition: all 0.2s ease;
}
.sb-tab:hover {
  color: var(--sb-dk);
  border-color: rgba(27, 35, 50, 0.2);
}
.sb-tab.active {
  color: #ffffff;
  background: #0d7c5f;
  border-color: #0d7c5f;
  box-shadow: 0 4px 10px rgba(13, 124, 95, 0.2);
}
.sb-tab-panel {
  display: none;
  background: var(--sb-wh);
  border: 2px solid var(--sb-bdr);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 8px 24px rgba(27, 35, 50, 0.04);
}
.sb-tab-panel.active {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: authFadeIn 0.3s ease-out;
}
.sb-tab-text { flex: 1.2; }
.sb-tab-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 14px;
}
.sb-tab-text p {
  font-size: 15.5px;
  color: var(--sb-mut);
  line-height: 1.75;
  margin-bottom: 22px;
}
.sb-tab-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-tab-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sb-dk);
}
.sb-tab-bullets li svg {
  width: 18px;
  height: 18px;
  stroke: var(--sb-pri);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}
.sb-tab-visual {
  flex: 0.8;
  height: 220px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--sb-bdr);
}
.sb-tab-visual svg.sb-tab-ico {
  width: 100px;
  height: 100px;
}
.sb-tab-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-dk);
  background: var(--sb-wh);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--sb-bdr);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Big Quote Testimonial */
.sb-bigquote {
  padding: 80px 0;
  width: 100%;
  text-align: center;
}
.sb-bq-mark {
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--sb-pri);
  line-height: 1;
  opacity: 0.2;
  margin-bottom: -20px;
}
.sb-bq-bar {
  width: 48px;
  height: 3px;
  background: var(--sb-pri);
  margin: 20px auto 28px;
  border-radius: 2px;
}
.sb-bq-text {
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 500;
  color: var(--sb-dk);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 24px;
}
.sb-bq-who {
  font-size: 16px;
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 4px;
}
.sb-bq-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--sb-mut);
}

/* Payers Marquee */
.sb-payers {
  padding: 40px 0;
  width: 100%;
}
.sb-payer-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: sbScroll 36s linear infinite;
}
.sb-payer-track:hover { animation-play-state: paused; }
.sb-payer-badge {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid var(--sb-bdr);
  font-weight: 700;
  font-size: 14px;
  color: var(--sb-dk);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.sb-payer-chip-green {
  color: var(--sb-pri) !important;
  border-color: rgba(13, 124, 95, 0.25) !important;
  background: rgba(13, 124, 95, 0.05) !important;
}

/* Section 3: ROI Calculator */
.sb-roi {
  padding: 60px 0 80px;
  width: 100%;
}
.sb-roi-layout {
  display: flex;
  gap: 48px;
  align-items: center;
}
.sb-roi-left { flex: 1; }
.sb-roi-right { flex: 1; }

.sb-roi-input {
  margin-bottom: 28px;
}
.sb-roi-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-dk);
  margin-bottom: 10px;
}
.sb-roi-label span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  color: var(--sb-pri);
  font-weight: 800;
}
.sb-roi-slider {
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--sb-pri) 30%, rgba(13, 124, 95, 0.15) 30%);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.sb-roi-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--sb-pri);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(13, 124, 95, 0.3);
  transition: transform 0.1s ease;
}
.sb-roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.sb-roi-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--sb-pri);
  cursor: pointer;
}

.sb-roi-results {
  background: var(--sb-dk);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 16px 36px rgba(27, 35, 50, 0.15);
}
.sb-roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sb-roi-row:last-child { border-bottom: none; padding-top: 20px; }
.sb-roi-lbl {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.sb-roi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}
.sb-roi-val.highlight {
  color: var(--sb-prl);
  font-size: 30px;
  font-weight: 800;
}

/* FAQ Accordion */
.sb-faq {
  padding: 80px 0;
  width: 100%;
}
.sb-faq-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.sb-faq-left {
  flex: 0 0 340px;
  position: sticky;
  top: 90px;
}
.sb-faq-left h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 12px;
}
.sb-faq-left p {
  font-size: 15px;
  color: var(--sb-mut);
  line-height: 1.7;
}
.sb-faq-list { flex: 1; }
.sb-faq-item {
  border-bottom: 1px solid var(--sb-bdr);
}
.sb-faq-q {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.sb-faq-q-text {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--sb-dk);
  transition: color 0.2s ease;
}
.sb-faq-item.open .sb-faq-q-text {
  color: var(--sb-pri);
}
.sb-faq-q-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sb-faq-q-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--sb-pri);
  stroke-width: 2.5;
  fill: none;
}
.sb-faq-item.open .sb-faq-q-icon {
  transform: rotate(180deg);
}
.sb-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sb-faq-item.open .sb-faq-a {
  max-height: 250px;
}
.sb-faq-a-inner {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--sb-mut);
  line-height: 1.75;
}

/* Onboarding 3 Steps */
.sb-onboard {
  padding: 70px 0;
  width: 100%;
}
.sb-hsteps {
  display: flex;
  gap: 24px;
}
.sb-hstep {
  flex: 1;
  background: var(--sb-wh);
  border: 2px solid var(--sb-bdr);
  border-radius: 20px;
  padding: 34px 28px;
  position: relative;
  transition: all 0.3s ease;
}
.sb-hstep:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 124, 95, 0.3);
  box-shadow: 0 12px 28px rgba(27, 35, 50, 0.05);
}
.sb-hstep-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--sb-pri);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.sb-hstep h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--sb-dk);
  margin-bottom: 10px;
  line-height: 1.3;
}
.sb-hstep p {
  font-size: 14.5px;
  color: var(--sb-mut);
  line-height: 1.7;
}
.sb-hstep-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sb-pri);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(13, 124, 95, 0.08);
  border: 1px solid rgba(13, 124, 95, 0.15);
}
.sb-hstep-time svg {
  width: 13px;
  height: 13px;
  stroke: var(--sb-pri);
  stroke-width: 2.2;
  fill: none;
}

/* Testimonials */
.sb-test {
  padding: 70px 0;
  width: 100%;
}
.sb-test-mq {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.sb-test-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  gap: 20px;
  white-space: normal;
  will-change: transform;
  animation: sbTestScroll 45s linear infinite;
}
.sb-test-track:hover { animation-play-state: paused; }
@keyframes sbTestScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sb-tcard {
  flex-shrink: 0;
  width: 360px;
  background: var(--sb-wh);
  border: 1.5px solid var(--sb-bdr);
  border-radius: 20px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(27, 35, 50, 0.03);
}
.sb-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.sb-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--sb-amb);
  stroke: none;
}
.sb-tcard-txt {
  font-size: 15px;
  color: var(--sb-dk);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.sb-tcard-who {
  font-size: 15px;
  font-weight: 800;
  color: var(--sb-dk);
}
.sb-tcard-role {
  font-size: 13px;
  color: var(--sb-mut);
}

/* CTA Banner */
.sb-cta-sec {
  padding: 30px 0 80px;
  width: 100%;
}
.sb-cta {
  background: var(--sb-dk);
  border-radius: 28px;
  padding: 64px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(27, 35, 50, 0.2);
}
.sb-cta h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 16px;
}
.sb-cta h2 em {
  color: var(--sb-prl);
}
.sb-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.7;
}
.sb-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.sb-cta-float {
  position: absolute;
  top: 24px;
  right: 40px;
  opacity: 0.12;
  pointer-events: none;
}
.sb-cta-float svg {
  width: 80px;
  height: 80px;
  stroke: #ffffff;
  stroke-width: 1.5;
  fill: none;
}
@media (max-width: 600px) {
  .sb-cta-float {
    top: 14px;
    right: 20px;
    opacity: 0.08;
  }
  .sb-cta-float svg {
    width: 60px;
    height: 60px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .sb-hero-row { flex-direction: column; text-align: center; }
  .sb-hero-p { margin-left: auto; margin-right: auto; }
  .sb-hero-checks { align-items: center; }
  .sb-hero-btns { justify-content: center; }
  .sb-stats-grid { grid-template-columns: 1fr; }
  .sb-cmp-flex { flex-direction: column; }
  .sb-timeline { flex-wrap: wrap; }
  .sb-tl-step { flex: 1 1 45%; }
  .sb-tl-panel { flex-direction: column; text-align: center; }
  .sb-tl-panel-visual { margin: 0 auto; }
  .sb-problem-stats { grid-template-columns: 1fr; }
  .sb-tab-panel.active { flex-direction: column; text-align: center; }
  .sb-tab-visual { margin: 0 auto; }
  .sb-roi-layout { flex-direction: column; }
  .sb-faq-layout { flex-direction: column; }
  .sb-faq-left { position: static; }
  .sb-hsteps { flex-direction: column; }
}

@media (max-width: 600px) {
  .sb-hero { padding: 30px 0 40px; }
  .sb-hero h1 { font-size: clamp(28px, 7.5vw, 42px); }
  .sb-hero-btns { flex-direction: column; width: 100%; }
  .sb-hero-btns .sb-btn { width: 100%; min-height: 48px; }
  .sb-feed { padding: 16px 12px; }
  .sb-feed-row { padding: 8px 10px; gap: 8px; }
  .sb-feed-name { font-size: 12.5px; }
  .sb-feed-name span { font-size: 11px; }
  .sb-feed-st { font-size: 10.5px; padding: 3px 8px; }
  .sb-cmp-card { padding: 24px 18px; }
  .sb-cmp-row { flex-wrap: wrap; gap: 6px; }
  .sb-tl-step { flex: 1 1 100%; padding: 16px 14px; }
  .sb-tl-detail { padding: 20px 14px; }
  .sb-tab { padding: 8px 16px; font-size: 13.5px; }
  .sb-tab-panel { padding: 20px 14px; }
  .sb-roi-results { padding: 20px 16px; }
  .sb-roi-row { flex-wrap: wrap; gap: 6px; }
  .sb-roi-val.highlight { font-size: 26px; }
  .sb-test-mq { height: 320px; }
  .sb-tcard { width: min(320px, calc(100vw - 40px)); padding: 22px 18px; }
  .sb-cta { padding: 40px 18px; border-radius: 20px; }
  .sb-cta h2 { font-size: clamp(24px, 6.5vw, 36px); }
  .sb-cta-btns { flex-direction: column; width: 100%; }
  .sb-cta-btns .sb-btn { width: 100%; min-height: 48px; }
}

@media (max-width: 360px) {
  .sb-hero h1 { font-size: 26px; }
  .sb-feed { padding: 12px 8px; }
  .sb-cmp-card { padding: 18px 12px; }
  .sb-roi-results { padding: 16px 12px; }
  .sb-cta { padding: 32px 12px; }
}


/* Print-Ready Layout for Clinical Sheets */
@media print {
  .navbar, .footer, .btn, .modal-overlay, #toast-container, form {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }
  .container, .container-narrow {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card {
    border: 1px solid #94a3b8 !important;
    box-shadow: none !important;
    padding: 1rem !important;
    page-break-inside: avoid;
  }
  .badge {
    border: 1px solid #000000 !important;
    color: #000000 !important;
    background: transparent !important;
  }
}

/* Shared live-update and keyboard interaction states. */
.live-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 1rem; margin-bottom: 1rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-md); color: var(--slate-700); font-size: 0.875rem; }
th[tabindex]:focus-visible { outline: 2px solid var(--primary-500); outline-offset: -2px; }
.live-status [hidden] { display: none; }
@media print { .live-status { display: none; } }
.saved-filter-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Export-only date controls stay usable in narrow dashboard headers. */
.export-options { align-self: flex-start; max-width: 100%; }
.export-options > summary { cursor: pointer; }
.export-date-form { margin-top: 0.75rem; max-width: 24rem; padding: 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: #fff; }
.export-date-form fieldset { display: flex; flex-wrap: wrap; gap: 0.75rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.export-date-form legend { margin-bottom: 0.5rem; font-weight: 700; }
.export-date-form label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.export-date-form input { max-width: 100%; }
.export-date-form p { margin: 0.75rem 0; font-size: 0.825rem; color: var(--slate-600); }

/* Workflow classification, per section 6 of the intake form. Colour is carried
   by a dot and a label together, so the state never depends on hue alone. */
.workflow-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid; }
.workflow-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.workflow-green { color: var(--approved); background: var(--approved-bg); border-color: var(--approved); }
.workflow-yellow { color: var(--info-req); background: var(--info-req-bg); border-color: var(--info-req); }
.workflow-red { color: var(--denied); background: var(--denied-bg); border-color: var(--denied); }
.workflow-panel { border-left: 4px solid; }
.workflow-panel.workflow-green { border-left-color: var(--approved); }
.workflow-panel.workflow-yellow { border-left-color: var(--info-req); }
.workflow-panel.workflow-red { border-left-color: var(--denied); }
.workflow-callout { padding: 0.9rem 1rem; border-radius: var(--radius-md); border: 1px solid; margin-bottom: 1rem; }
.workflow-callout.workflow-green { color: var(--approved); background: var(--approved-bg); border-color: var(--approved); }
.workflow-callout.workflow-yellow { color: var(--info-req); background: var(--info-req-bg); border-color: var(--info-req); }
.workflow-callout.workflow-red { color: var(--denied); background: var(--denied-bg); border-color: var(--denied); }
.workflow-callout > div:not(:first-child) { color: var(--slate-700); }
.workflow-suggestion { padding: 0.8rem 1rem; margin-bottom: 1.25rem; background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--slate-700); }
.workflow-cell { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; }

/* Supporting-document checklist and PA tracking facts. Both are derived views:
   nothing here is a field somebody fills in twice. */
.doc-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.35rem; margin-bottom: 1.25rem; }
.doc-checklist-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--slate-500); }
.doc-checklist-item.received { color: var(--slate-800); font-weight: 600; }
.doc-check { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 4px; border: 1px solid var(--slate-300); background: #fff; font-size: 0.75rem; flex-shrink: 0; }
.doc-checklist-item.received .doc-check { background: var(--approved-bg); border-color: var(--approved); color: var(--approved); }
.tracking-fact { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.tracking-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--slate-500); margin-bottom: 0.2rem; }
.tracking-note { font-size: 0.72rem; color: var(--slate-500); margin-top: 0.2rem; }
.tracking-empty { color: var(--slate-400); }
.certification { margin-top: 1.25rem; padding: 0.9rem 1rem; border-left: 3px solid var(--primary-700); background: var(--primary-50); border-radius: var(--radius-md); font-size: 0.85rem; color: var(--slate-700); }
