/* Omazu AX Diagnostics - Public Stylesheet V2.0 */
:root {
  --oad-navy: #12213F;
  --oad-navy-hover: #0B1730;
  --oad-blue: #2451D6;
  --oad-blue-bg: #EEF2FF;
  --oad-ink: #14161A;
  --oad-ink-2: #5A626E;
  --oad-ink-3: #8A919C;
  --oad-rule: #E3E6EA;
  --oad-bg: #FFFFFF;
  --oad-bg-2: #F7F8FA;
  --oad-radius: 6px;
}

.oad-app {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--oad-ink);
  line-height: 1.65;
}

.oad-loading-spinner {
  text-align: center;
  padding: 60px 20px;
}

.oad-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid var(--oad-rule);
  border-top-color: var(--oad-navy);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: oadSpin 0.8s linear infinite;
}

@keyframes oadSpin {
  to { transform: rotate(360deg); }
}

/* Header & Progress Bar */
.oad-header {
  background: var(--oad-bg);
  padding: 26px 30px;
  border-radius: var(--oad-radius);
  box-shadow: 0 2px 12px rgba(18, 33, 63, 0.05);
  margin-bottom: 24px;
  border: 1px solid var(--oad-rule);
  border-top: 4px solid var(--oad-navy);
}

.oad-header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2451D6;
  background: #EEF2FF;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.oad-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--oad-navy);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.oad-desc {
  font-size: 0.92rem;
  color: var(--oad-ink-2);
  margin: 0 0 16px 0;
  line-height: 1.55;
}

.oad-progress-bar-wrap {
  background: var(--oad-rule);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.oad-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--oad-navy), var(--oad-blue));
  width: 0%;
  transition: width 0.3s ease;
}

.oad-step-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--oad-ink-3);
  margin-top: 10px;
  font-weight: 500;
}

.oad-pct-badge {
  background: #F3F4F6;
  color: #374151;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Question Cards & Sections */
.oad-section-card {
  background: var(--oad-bg);
  padding: 32px;
  border-radius: var(--oad-radius);
  border: 1px solid var(--oad-rule);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.oad-section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--oad-navy);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.oad-section-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oad-navy);
  margin: 0;
}

.oad-section-target {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: #F3F4F6;
  color: #4B5563;
  font-weight: 600;
}

.oad-section-intro-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.oad-rubric-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 24px;
}

.oad-rubric-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.oad-rubric-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oad-rubric-item {
  display: flex;
  font-size: 0.82rem;
  line-height: 1.4;
}

.oad-rubric-score {
  width: 45px;
  font-weight: 700;
  color: #2563EB;
}

.oad-rubric-desc {
  color: #475569;
}

.oad-b1-notice-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.oad-notice-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}

.oad-b1-notice-box p {
  margin: 0;
  font-size: 0.85rem;
  color: #78350F;
}

/* Survey Item Styles */
.oad-item {
  padding: 20px 0;
  border-bottom: 1px solid #F1F3F5;
}

.oad-item:last-child {
  border-bottom: none;
}

.oad-item-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.oad-item-code {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2451D6;
  background: #EEF2FF;
  padding: 2px 7px;
  border-radius: 4px;
}

.oad-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #12213F;
  line-height: 1.5;
}

.oad-item-notice {
  font-size: 0.82rem;
  color: #6B7280;
  background: #F9FAFB;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.oad-example-box {
  background: #F8FAFC;
  border-left: 3px solid #64748B;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.oad-ex-badge {
  font-weight: 700;
  color: #334155;
  margin-right: 6px;
}

.oad-ex-text {
  color: #475569;
}

/* Scale Buttons (1~5) */
.oad-scale-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.oad-scale-btn {
  flex: 1;
  padding: 12px 6px;
  background: #F7F8FA;
  border: 1px solid var(--oad-rule);
  border-radius: var(--oad-radius);
  color: var(--oad-ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.oad-scale-btn:hover {
  background: #EBF1FD;
  border-color: var(--oad-blue);
  color: var(--oad-blue);
}

.oad-scale-btn.active {
  background: var(--oad-navy);
  color: #ffffff;
  border-color: var(--oad-navy);
  box-shadow: 0 2px 8px rgba(18, 33, 63, 0.25);
}

/* Radio & Checkbox Lists */
.oad-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.oad-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FAFAFB;
  border: 1px solid var(--oad-rule);
  border-radius: var(--oad-radius);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.15s;
}

.oad-option-label:hover {
  background: #F0F4FE;
  border-color: #BFDBFE;
}

.oad-option-label.selected {
  background: #EFF6FF;
  border-color: #3B82F6;
  font-weight: 600;
  color: #1E40AF;
}

.oad-option-label.oad-exclusive {
  border-style: dashed;
}

.oad-textarea-wrap {
  margin-top: 10px;
}

.oad-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--oad-rule);
  border-radius: var(--oad-radius);
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.oad-textarea:focus {
  outline: none;
  border-color: var(--oad-blue);
  box-shadow: 0 0 0 3px rgba(36, 81, 214, 0.1);
}

/* Nav Buttons */
.oad-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--oad-rule);
}

.oad-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--oad-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.oad-btn-prev {
  background: #F1F3F5;
  color: #495057;
}

.oad-btn-prev:hover {
  background: #E9ECEF;
}

.oad-btn-next {
  background: var(--oad-navy);
  color: #ffffff;
}

.oad-btn-next:hover {
  background: var(--oad-navy-hover);
}

.oad-btn-submit {
  background: #059669;
  color: #ffffff;
  padding: 12px 28px;
}

.oad-btn-submit:hover {
  background: #047857;
}

/* ==========================================================
   REPORT VIEW STYLES (Strictly conforming to V2.0 Spec)
   ========================================================== */
.oad-report-card {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--oad-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--oad-rule);
}

.oad-doc-brand {
  border-bottom: 3px solid var(--oad-navy);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.oad-brand-sub {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2451D6;
  letter-spacing: 0.08em;
}

.oad-report-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--oad-navy);
  margin: 6px 0;
  letter-spacing: -0.02em;
}

.oad-doc-meta-sub {
  font-size: 0.88rem;
  color: var(--oad-ink-2);
}

.oad-section-block {
  margin-bottom: 34px;
}

.oad-block-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--oad-navy);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #E2E8F0;
}

.oad-sub-notice {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: -6px;
  margin-bottom: 14px;
}

/* Tables (Overview, Glance, Area, Env, Track) */
.oad-overview-table,
.oad-glance-table,
.oad-area-table,
.oad-env-table,
.oad-champ-table,
.oad-track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.oad-overview-table th, .oad-overview-table td,
.oad-glance-table th, .oad-glance-table td,
.oad-area-table th, .oad-area-table td,
.oad-env-table th, .oad-env-table td,
.oad-champ-table th, .oad-champ-table td,
.oad-track-table th, .oad-track-table td {
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  text-align: left;
  vertical-align: middle;
}

.oad-overview-table th,
.oad-glance-table th,
.oad-area-table th,
.oad-env-table th,
.oad-champ-table th,
.oad-track-table th {
  background: #F8FAFC;
  color: var(--oad-navy);
  font-weight: 700;
}

.oad-glance-top-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 6px solid var(--oad-navy);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.oad-basic-badge-box {
  background: var(--oad-navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-align: center;
  min-width: 90px;
}

.oad-badge-sub-lbl {
  font-size: 0.7rem;
  opacity: 0.8;
  display: block;
}

.oad-badge-main-val {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
}

.oad-badge-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.oad-glance-summary-text strong {
  font-size: 1.05rem;
  color: var(--oad-navy);
}

/* Badges */
.oad-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.oad-badge-light {
  background: #F1F5F9;
  color: #334155;
}

.oad-badge-level {
  background: var(--oad-navy);
  color: #ffffff;
}

.oad-badge-na {
  background: #E2E8F0;
  color: #64748B;
}

.oad-badge-champ {
  background: #FEF3C7;
  color: #92400E;
}

.oad-badge-track {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Profile Graphic */
.oad-profile-container {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 16px 20px;
}

.oad-profile-levels-header {
  display: flex;
  justify-content: flex-end;
  padding-right: 110px;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 10px;
}

.oad-profile-levels-header span {
  width: 44px;
  text-align: center;
}

.oad-profile-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #EDF2F7;
}

.oad-profile-row:last-child {
  border-bottom: none;
}

.oad-profile-label {
  width: 250px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.oad-target-tag {
  font-size: 0.72rem;
  background: #E2E8F0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
}

.oad-profile-bars {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.oad-seg-cell {
  width: 44px;
  height: 18px;
  background: #E2E8F0;
  border-radius: 3px;
}

.oad-seg-cell.filled {
  background: #93C5FD;
}

.oad-seg-cell.active {
  background: #1D4ED8;
  box-shadow: 0 0 0 2px #BFDBFE;
}

.oad-profile-result-badge {
  width: 100px;
  text-align: right;
}

.oad-level-pill {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.pill-lvl {
  background: var(--oad-navy);
  color: #ffffff;
}

.pill-na {
  background: #E2E8F0;
  color: #64748B;
}

/* Cross Indicator Grid */
.oad-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.oad-cross-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 14px 16px;
}

.oad-cross-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--oad-navy);
}

.oad-cross-card-meaning {
  font-size: 0.78rem;
  color: #64748B;
  margin: 3px 0 8px 0;
}

.oad-cross-card-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1F2937;
  font-weight: 600;
}

/* Personal Action Plans Grid */
.oad-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oad-action-card {
  border: 1px solid #E2E8F0;
  border-left: 4px solid #2563EB;
  border-radius: 6px;
  padding: 16px 20px;
  background: #ffffff;
}

.oad-action-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.oad-action-area {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--oad-navy);
}

.oad-action-interp {
  font-size: 0.85rem;
  color: #4B5563;
  margin-bottom: 12px;
}

.oad-action-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.oad-step-box {
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

.oad-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563EB;
  display: block;
  margin-bottom: 4px;
}

.oad-step-box p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}

/* Disclaimer Box */
.oad-disclaimer-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 24px;
}

.oad-disclaimer-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.6;
}

/* Print CSS */
@media print {
  @page {
    size: A4 portrait !important;
    margin: 12mm 15mm 14mm 15mm !important;
  }

  html, body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #14161A !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide unnecessary elements on print */
  header, footer, .hdr, .ftr, #omazuMobileMenu, .mob-drawer,
  #wpadminbar, .mob-menu-btn-wrap, .hdr-cta-desktop,
  .oad-btn, .oad-btn-next, .oad-btn-prev, .oad-nav-row,
  .oad-print-btn-wrap, .oad-print-btn, .oad-retake-banner, .oad-retake-btn,
  #ait-root, #ait-label, #ait-fab, #ait-panel, [id*="ait-"], [class*="tutor"], [class*="chat"],
  [class*="accessibility"], [id*="accessibility"], [class*="widget"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
  }

  .oad-app, .oad-report-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  /* Document brand header */
  .oad-doc-brand {
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
    border-bottom: 3px solid #12213F !important;
  }
  .oad-brand-sub {
    font-size: 10px !important;
  }
  .oad-report-main-title {
    font-size: 1.4rem !important;
    margin: 2px 0 !important;
  }
  .oad-doc-meta-sub {
    font-size: 0.8rem !important;
  }

  /* Section blocks general */
  .oad-section-block {
    margin-bottom: 16px !important;
    page-break-inside: auto;
    break-inside: auto;
  }

  .oad-block-title {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  .oad-sub-notice {
    font-size: 0.78rem !important;
    margin-bottom: 10px !important;
  }

  /* Page 1: Overview & Glance */
  .oad-sec-overview table, .oad-sec-glance table {
    margin-bottom: 12px !important;
  }
  .oad-overview-table th, .oad-overview-table td,
  .oad-glance-table th, .oad-glance-table td {
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }
  .oad-glance-top-banner {
    padding: 10px 14px !important;
    margin-bottom: 10px !important;
    gap: 14px !important;
  }
  .oad-basic-badge-box {
    padding: 8px 14px !important;
    min-width: 90px !important;
  }
  .oad-badge-main-val {
    font-size: 1.8rem !important;
  }

  /* Page 2: Section 2 (Areas Profile & Table) */
  .oad-sec-areas {
    page-break-before: always !important;
    break-before: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .oad-profile-container {
    padding: 10px 14px !important;
    margin-bottom: 12px !important;
  }
  .oad-profile-row {
    padding: 5px 0 !important;
  }
  .oad-seg-cell {
    width: 36px !important;
    height: 14px !important;
  }
  .oad-area-table th, .oad-area-table td {
    padding: 5px 8px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  /* Page 3: Section 3 (Cross Indicators) & Section 4 (Environment) */
  .oad-sec-cross {
    page-break-before: always !important;
    break-before: page !important;
  }
  .oad-cross-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .oad-cross-card {
    padding: 8px 10px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .oad-cross-card-title {
    font-size: 0.85rem !important;
  }
  .oad-cross-card-meaning {
    font-size: 0.72rem !important;
    margin: 2px 0 4px 0 !important;
  }
  .oad-cross-card-text {
    font-size: 0.78rem !important;
  }
  .oad-sec-env table th, .oad-sec-env table td {
    padding: 5px 8px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  /* Page 4: Section 5 (Action Plans) & Section 6 & Section 7 & Disclaimers */
  .oad-sec-actions {
    page-break-before: always !important;
    break-before: page !important;
  }
  .oad-action-card {
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .oad-action-area {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }
  .oad-action-interp {
    font-size: 0.78rem !important;
    margin-bottom: 6px !important;
  }
  .oad-step-box {
    padding: 6px 10px !important;
  }
  .oad-step-box p {
    font-size: 0.78rem !important;
  }

  .oad-sec-champ table th, .oad-sec-champ table td,
  .oad-sec-track table th, .oad-sec-track table td {
    padding: 5px 8px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .oad-sec-champ, .oad-sec-track, .oad-disclaimer-box {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .oad-disclaimer-box {
    padding: 10px 14px !important;
    margin-top: 12px !important;
  }
  .oad-disclaimer-box ul {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
}


/* Mobile report: readable profile rows and tables without horizontal overflow. */
@media screen and (max-width: 768px) {
  .oad-app { padding: 16px 8px; width: 100%; box-sizing: border-box; }
  .oad-report-card { padding: 20px 16px; min-width: 0; overflow-wrap: anywhere; }
  .oad-report-card *, .oad-report-card *::before { box-sizing: border-box; }
  .oad-report-main-title { font-size: 1.4rem; line-height: 1.4; word-break: keep-all; }
  .oad-block-title { font-size: 1.1rem; line-height: 1.5; word-break: keep-all; }
  .oad-glance-top-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
  .oad-glance-summary-text { min-width: 0; }
  .oad-profile-container { padding: 12px; }
  .oad-profile-levels-header { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-right: 0; gap: 6px; font-size: 0.68rem; }
  .oad-profile-levels-header span { width: auto; min-width: 0; word-break: keep-all; }
  .oad-profile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px 0; }
  .oad-profile-label { grid-column: 1 / -1; width: auto; min-width: 0; flex-wrap: wrap; align-items: flex-start; }
  .oad-profile-label strong { flex: 1 1 160px; min-width: 0; word-break: keep-all; }
  .oad-target-tag { flex-shrink: 0; white-space: nowrap; }
  .oad-profile-bars { width: 100%; min-width: 0; margin-left: 0; gap: 6px; }
  .oad-seg-cell { flex: 1; width: auto; min-width: 0; }
  .oad-profile-result-badge { width: auto; white-space: nowrap; }
  .oad-level-pill { padding: 3px 8px; font-size: 0.75rem; }
  .oad-cross-grid { grid-template-columns: minmax(0, 1fr); }
  .oad-cross-card, .oad-action-card { min-width: 0; padding: 14px; }
  .oad-action-steps { grid-template-columns: minmax(0, 1fr); }
  .oad-step-box { min-width: 0; }
  .oad-disclaimer-box { padding: 14px; }
  .oad-report-card .oad-btn { max-width: 100%; white-space: normal; }

  /* Present each table record as a vertical card, retaining column labels. */
  .oad-report-card table, .oad-report-card tbody { display: block; width: 100%; }
  .oad-report-card thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .oad-report-card tbody tr { display: block; margin-bottom: 12px; border: 1px solid #E2E8F0; border-radius: 6px; overflow: hidden; }
  .oad-report-card tbody td, .oad-report-card tbody th { display: block; width: auto !important; padding: 10px 12px; border: 0; border-bottom: 1px solid #EDF2F7; overflow-wrap: anywhere; }
  .oad-report-card tbody tr > :last-child { border-bottom: 0; }
  .oad-report-card td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; color: #64748B; margin-bottom: 4px; }
  .oad-overview-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .oad-overview-table tbody th, .oad-glance-table tbody td:first-child { background: #F8FAFC; font-weight: 700; }
}

/* Short structured evidence fields and optional recall help. */
.oad-sub-input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 4px; font: inherit; box-sizing: border-box; }
.oad-sub-input:disabled { background: #E2E8F0; }
.oad-unknown-label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; color: #475569; }
.oad-field-help { margin-top: 8px; font-size: .85rem; color: #475569; }
.oad-field-help summary { cursor: pointer; font-weight: 600; }
@media screen and (max-width: 768px) {
 .oad-header, .oad-section-card { padding: 18px 14px; }
 .oad-section-title-wrap, .oad-step-info { flex-wrap: wrap; gap: 8px; }
 .oad-option-label { align-items: flex-start; min-width: 0; }
 .oad-option-label input { flex-shrink: 0; margin-top: 5px; }
 .oad-option-label span, .oad-item-title { min-width: 0; overflow-wrap: anywhere; }
 .oad-nav-row { gap: 10px; }
 .oad-nav-row .oad-btn { padding: 12px; flex: 1; min-width: 0; }
 .oad-scale-group { gap: 6px; }
}
