@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --om-deep: #103e41;
  --om-deep-dark: #0a2a2c;
  --om-ink: #112f31;
  --om-muted: #496564;
  --om-glass: #d9efe7;
  --om-line: #bdd2c8;
  --om-alert: #b43c1c;
  --om-alert-bg: #fdf2ee;
  --om-pass: #145d4a;
  --om-pass-bg: #e7f4ee;
  --om-warn: #9a5409;
  --om-warn-bg: #fcf4e6;
  --cf-bg-paper: #f3f8f3;
  --cf-bg-stone: #e0ece4;
  --cf-bg-surface: #ffffff;
  --cf-ink-primary: var(--om-ink);
  --cf-ink-secondary: var(--om-muted);
  --cf-ink-muted: #4c6463;
  --cf-ink-on-dark: #f6fbf3;
  --cf-rule-strong: #112f31;
  --cf-rule-mid: #bdd2c8;
  --cf-rule-subtle: #dce9e2;
  --cf-accent-primary: #17625d;
  --cf-accent-hover: #124d4a;
  --cf-accent-tint: #e3f3e9;
  --cf-forest-pass: #145d4a;
  --cf-forest-tint: #e7f4ee;
  --cf-highlight-mark: #e2edb7;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-serif: Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cf-bg-paper);
  color: var(--om-ink);
  font: 16px/1.5 var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #bd5e16;
  outline-offset: 2px;
}

[hidden],
.om-hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--om-muted);
}

.om-bound {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header & Brand Bar (Flex-wrap safe across 1440 / 820 / 390) */
.om-search-head {
  background: var(--om-deep);
  color: #f6fbf3;
}

.om-brand-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  padding-block: 13px;
  border-bottom: 1px solid #54807b;
}

.om-brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.om-brand-right {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
}

.om-brand-line a {
  color: #d4eae0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}

.om-brand-line a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.om-brand-line .om-wordmark {
  font: 700 22px/1 var(--font-sans);
  color: #ffffff;
  letter-spacing: -0.05em;
}

.om-license-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #e6f4ee;
  border: 1px solid rgba(212, 234, 224, 0.35);
  white-space: nowrap;
}

.om-license-pill.is-unlocked {
  background: #145d4a;
  color: #ffffff;
  border-color: #6bc4a5;
}

.om-header-cta {
  background: var(--om-glass);
  color: var(--om-deep);
  border: 1px solid var(--om-glass);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.om-header-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.om-intro {
  padding-block: 22px 24px;
}

.om-intro h1 {
  font: 400 clamp(34px, 5vw, 64px)/1.0 var(--font-display);
  letter-spacing: -0.025em;
  margin: 0;
}

.om-intro p {
  margin: 10px 0 16px;
  color: #e0eee6;
  max-width: 66ch;
  font-size: 15px;
}

.om-search {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  max-width: 740px;
}

.om-search input,
.om-compare-fields input,
.om-form-input {
  border: 0;
  min-width: 0;
  flex: 1;
  max-width: 100%;
  padding: 8px 12px;
  color: var(--om-ink);
  background: #ffffff;
  border-radius: 6px;
  font: inherit;
}

.om-search button {
  background: var(--om-glass);
  color: var(--om-deep);
  border: 0;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.om-search button:hover {
  background: #c5e6da;
}

/* Main Workspace */
.om-work {
  padding-block: 16px 28px;
  flex: 1;
}

/* Guided 3-Step Bar (ADR-018) — compact so first question stays above fold on 390x844 */
.om-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.om-step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #ffffff;
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
}

.om-step-btn:hover {
  border-color: var(--om-deep);
  background: var(--om-glass);
}

.om-step-btn.is-active {
  border-color: var(--om-deep);
  background: #e5f3ec;
}

.om-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--om-deep);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.om-choice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.om-choice-head h2 {
  margin: 0;
  font: 400 26px/1.15 var(--font-display);
}

#omPackName {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--om-muted);
}

#promptChipsContainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#promptChipsContainer .prompt-chip {
  font: 600 14.5px/1.35 var(--font-sans);
  text-align: left;
  background: #ffffff;
  color: var(--om-ink);
  border: 1px solid var(--om-line);
  border-radius: 8px;
  min-height: 50px;
  padding: 10px 13px;
  cursor: pointer;
  white-space: normal;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

#promptChipsContainer .prompt-chip:hover,
.om-pack-list .pack-card:hover {
  border-color: #22736b;
  background: var(--om-glass);
}

/* Answers & Findings Stream */
.om-answer-list:empty {
  display: none;
}

.om-answer-list {
  margin: 16px 0 0;
}

.om-answer-list .msg-system {
  margin: 10px 0;
  background: #ffffff;
  border: 1px solid var(--om-line);
  border-left: 5px solid #267c6e;
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 100%;
  scroll-margin-top: 16px;
}

.om-answer-list .msg-system.is-alert {
  border-left-color: var(--om-alert);
}

.om-receipt-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #38635c;
  margin: 0 0 6px;
}

.om-answer-list .finding-card {
  border: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  color: var(--om-ink);
  font: 15.5px/1.55 var(--font-sans);
}

.om-answer-list .finding-card strong {
  font-size: 17px;
}

.om-answer-list .finding-card p {
  margin: 7px 0;
}

.finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.finding-proof-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #e3f3e9;
  color: #155550;
  border: 1px solid #a3caba;
  min-height: 32px;
  font: 600 13px/1.35 var(--font-sans);
  cursor: pointer;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

.citation-badge:hover {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
}

.pack-status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.pack-status-ok {
  background: var(--om-pass-bg);
  color: var(--om-pass);
  border: 1px solid #96ccb7;
}

.pack-status-warn {
  background: var(--om-alert-bg);
  color: var(--om-alert);
  border: 1px solid #e4a390;
}

.diff-compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
}

.diff-col-a,
.diff-col-b {
  background: var(--cf-bg-paper);
  border: 1px solid var(--om-line);
  border-radius: 5px;
  padding: 8px 10px;
}

.diff-col-mismatch {
  background: var(--om-alert-bg);
  border: 1px solid var(--om-alert);
  border-radius: 5px;
  padding: 8px 10px;
}

/* Reusable Buttons */
.btn-tactile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--om-line);
  background: #ffffff;
  color: var(--om-ink);
  cursor: pointer;
  white-space: normal;
}

.btn-tactile:hover {
  border-color: var(--om-deep);
  background: var(--om-glass);
}

.btn-tactile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-tactile-primary {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
}

.btn-tactile-primary:hover {
  background: #17575a;
  border-color: #17575a;
}

.btn-tactile-forest {
  background: var(--om-pass);
  color: #ffffff;
  border-color: var(--om-pass);
}

.btn-tactile-forest:hover {
  background: #0f4738;
  border-color: #0f4738;
}

.btn-tactile-ink {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
}

/* Collapsible Tool Sections */
.om-tool {
  border: 0;
  border-top: 1px solid var(--om-line);
  background: transparent;
  min-width: 0;
}

.om-tool > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}

.om-tool > summary::-webkit-details-marker {
  display: none;
}

.om-tool > summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--om-muted);
}

.om-tool[open] > summary::after {
  content: '−';
}

.om-summary-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--om-muted);
  margin-left: auto;
  margin-right: 10px;
}

#omUpload {
  margin-top: 18px;
}

/* Upload Dropzone & Real-Time Parse Progress (ADR-024) */
.om-upload-panel {
  background: #ffffff;
  border: 1px solid var(--om-line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.om-upload-dropzone {
  border: 1.5px dashed #7aa398;
  background: #f7fbf8;
  border-radius: 7px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.om-upload-dropzone.is-dragover {
  background: var(--om-glass);
  border-color: var(--om-deep);
}

.om-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.om-upload-note {
  font-size: 13px;
  color: var(--om-muted);
  margin: 0;
  line-height: 1.45;
}

.om-progress-wrap {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--om-line);
  border-radius: 6px;
  background: var(--cf-bg-paper);
}

.om-progress-wrap.is-done {
  background: var(--om-pass-bg);
  border-color: #96ccb7;
}

.om-progress-wrap.is-warn {
  background: var(--om-warn-bg);
  border-color: #dfbe89;
}

.om-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.om-progress-track {
  width: 100%;
  height: 6px;
  background: #d7e5de;
  border-radius: 3px;
  overflow: hidden;
}

.om-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--om-deep);
  transition: width 0.18s ease;
}

.om-progress-wrap.is-done .om-progress-fill {
  background: var(--om-pass);
}

.om-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.om-file-card {
  border: 1px solid var(--om-line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fbfdfb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.om-file-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.om-file-name {
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-word;
}

.om-file-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--om-muted);
}

.om-file-remove {
  border: 1px solid var(--om-line);
  background: #ffffff;
  color: var(--om-muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11.5px;
  cursor: pointer;
}

.om-file-remove:hover {
  border-color: var(--om-alert);
  color: var(--om-alert);
}

.om-crosscheck-box {
  margin-top: 12px;
  border-top: 1px solid var(--om-line);
  padding-top: 12px;
}

.om-crosscheck-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--om-deep);
  margin: 0 0 8px;
}

.om-crosscheck-card {
  border: 1px solid var(--om-line);
  border-left: 4px solid var(--om-pass);
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  margin-bottom: 8px;
}

.om-crosscheck-card.is-mismatch {
  border-left-color: var(--om-alert);
  background: #fffcfa;
}

/* Source Documents Panel */
#omSources {
  margin-top: 6px;
}

.om-tool.right-pane {
  display: block;
  overflow: visible;
}

.pane-toolbar {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--om-line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#activeCitationBanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: #deedd1;
  border-left: 1px solid var(--om-line);
  border-right: 1px solid var(--om-line);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.doc-viewport {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--om-line);
  border-radius: 0 0 7px 7px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.doc-chunk {
  padding: 13px 15px;
  background: #fbfdfb;
  border: 1px solid var(--om-line);
  border-radius: 6px;
  cursor: pointer;
}

.doc-chunk:hover {
  border-color: var(--om-deep);
}

.doc-chunk.source-highlighted {
  background: var(--cf-highlight-mark);
  border: 1.5px solid var(--om-ink);
}

.chunk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--cf-rule-subtle);
  padding-bottom: 6px;
}

.chunk-coord-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--om-ink);
  background: var(--cf-bg-paper);
  color: var(--om-ink);
}

.doc-chunk.source-highlighted .chunk-coord-pill {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
}

.chunk-body-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--om-ink);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

/* Extras Grid */
.om-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
}

#docTabsContainer,
.om-pack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.om-pack-list {
  padding-bottom: 12px;
}

.om-pack-list .pack-card {
  font: 600 13.5px/1.35 var(--font-sans);
  min-width: 0;
  background: #ffffff;
  color: var(--om-ink);
  padding: 8px 12px;
  border: 1px solid var(--om-line);
  border-radius: 6px;
  cursor: pointer;
}

.om-pack-list .active-pack {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
}

.om-compare-fields {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
}

.om-compare-fields label {
  display: grid;
  gap: 3px;
  color: var(--om-muted);
  font-size: 13px;
}

.om-compare-fields input {
  width: 100%;
  border: 1px solid var(--om-line);
  font-size: 14.5px;
}

.om-compare-fields button {
  justify-self: start;
}

#customDiffStatusBadge {
  font-size: 13px;
  margin: 0;
}

/* Report & Footer Actions */
.om-report-actions,
.om-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--om-line);
  padding-top: 15px;
  margin-top: 8px;
}

.om-report-actions button {
  background: var(--om-glass);
  color: var(--om-deep);
  border: 1px solid #9ec4b7;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.om-report-actions button:hover {
  background: #c5e6da;
}

.om-report-actions .om-btn-commercial {
  background: var(--om-deep);
  color: #ffffff;
  border-color: var(--om-deep);
  margin-left: auto;
}

.om-report-actions .om-btn-commercial:hover {
  background: #17575a;
}

.om-footer {
  justify-content: space-between;
  padding-bottom: 18px;
  color: var(--om-muted);
  font-size: 13px;
}

.om-footer a {
  color: var(--om-ink);
}

/* Flash animation */
@keyframes cfFlashPulse {
  0% {
    box-shadow: 0 0 0 4px #fce588;
    background-color: #fef3c7;
  }
  100% {
    box-shadow: none;
  }
}

.cf-flash-active {
  animation: cfFlashPulse 0.8s ease;
}

/* Modals (Evidence Dossier & $249 Licensing / Corporate Invoice) */
.om-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 42, 44, 0.64);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.om-modal-window {
  background: #ffffff;
  border: 1.5px solid var(--om-ink);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(10, 32, 34, 0.28);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
}

.om-modal-header {
  background: var(--om-deep);
  color: #f6fbf3;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.om-modal-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bce4d6;
}

.om-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin: 2px 0 0;
  color: #ffffff;
}

.om-modal-close {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.om-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.om-modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.55;
}

.om-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--om-line);
  flex-wrap: wrap;
}

/* Evidence Dossier Sheet */
.om-dossier-meta {
  background: var(--cf-bg-paper);
  border: 1px solid var(--om-line);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 16px;
  font-size: 13px;
}

.om-dossier-section-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--om-deep);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--om-ink);
}

.om-table-wrap {
  overflow-x: auto;
}

.om-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.om-data-table th {
  background: var(--cf-bg-stone);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px;
  border-bottom: 1.5px solid var(--om-ink);
}

.om-data-table td {
  padding: 8px;
  border-bottom: 1px solid var(--cf-rule-subtle);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.om-qa-block {
  border: 1px solid var(--om-line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #ffffff;
  break-inside: avoid;
}

/* Commercial $249 Licensing (3 Options ADR-023) & Corporate Invoice */
.om-paywall-alert {
  background: var(--om-warn-bg);
  border: 1px solid #dfbe89;
  border-left: 4px solid var(--om-warn);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.om-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.om-plan-card {
  border: 1.5px solid var(--om-line);
  border-radius: 7px;
  padding: 13px;
  background: #fbfdfb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.om-plan-card.is-selected {
  border-color: var(--om-deep);
  background: #eef7f3;
  box-shadow: 0 0 0 1px var(--om-deep);
}

.om-plan-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--om-deep);
}

.om-plan-name {
  font-size: 16px;
  font-weight: 700;
  margin: 3px 0;
}

.om-plan-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--om-ink);
}

.om-plan-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--om-muted);
}

.om-plan-list {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--om-muted);
}

.om-plan-list li {
  margin-bottom: 4px;
}

.om-billing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.om-billing-box {
  border: 1px solid var(--om-line);
  border-radius: 7px;
  padding: 14px;
  background: #ffffff;
}

.om-billing-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.om-form-grid {
  display: grid;
  gap: 9px;
}

.om-field {
  display: grid;
  gap: 3px;
}

.om-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--om-muted);
}

.om-form-input {
  width: 100%;
  border: 1px solid var(--om-line);
  font-size: 14px;
}

.om-invoice-sheet {
  margin-top: 14px;
  border: 1.5px solid var(--om-ink);
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
  font-size: 13px;
}

.om-invoice-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1.5px solid var(--om-ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.om-invoice-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.om-invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--om-line);
  border-bottom: 1px solid var(--om-line);
  margin-bottom: 10px;
}

.om-status-msg {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  background: var(--om-pass-bg);
  border: 1px solid #96ccb7;
  color: var(--om-ink);
}

.om-status-msg.is-error {
  background: var(--om-alert-bg);
  border-color: #e4a390;
  color: var(--om-alert);
}

/* Case Study Shared Classes (preserved for /work/omnirag.html compatibility) */
.om-case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.om-case-actions a {
  font: 600 15px var(--font-sans);
  color: #ffffff;
  text-underline-offset: 4px;
}

.om-case-actions a:first-child {
  background: var(--om-glass);
  color: var(--om-deep);
  padding: 12px 16px;
  border-radius: 7px;
  text-decoration: none;
}

.om-case-body {
  padding-block: 28px;
  color: var(--om-ink);
}

.om-case-body h2 {
  margin: 0;
  font: 400 35px/1.1 var(--font-display);
}

.om-case-body p {
  max-width: 63ch;
}

.om-case-body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  max-width: 75ch;
}

.om-case-body dt,
.om-case-body dd {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--om-line);
}

.om-case-body dt {
  font-weight: 700;
}

/* Responsive Tablet & Mobile Portrait (820px and 390px) */
@media (max-width: 820px) {
  .om-plan-grid,
  .om-billing-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .om-bound {
    width: calc(100% - 28px);
  }
  .om-brand-line {
    padding-block: 11px;
    gap: 8px;
  }
  .om-intro {
    padding-block: 16px 18px;
  }
  .om-intro p {
    font-size: 14px;
    margin: 8px 0 12px;
  }
  .om-search button {
    padding: 9px 11px;
    font-size: 13.5px;
  }
  .om-search input {
    font-size: 14.5px;
    padding-inline: 6px;
  }
  .om-work {
    padding-top: 14px;
  }
  .om-stepper {
    gap: 6px;
    margin-bottom: 12px;
  }
  .om-step-btn {
    padding: 6px 7px;
    font-size: 12px;
    gap: 5px;
  }
  #promptChipsContainer,
  .om-extras,
  .diff-compare-grid,
  .om-invoice-cols {
    grid-template-columns: 1fr;
  }
  #promptChipsContainer .prompt-chip {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 14px;
  }
  .om-report-actions .om-btn-commercial {
    margin-left: 0;
  }
}

/* Print-Ready Evidence Dossier & Corporate Tax Invoice (@media print) */
@page {
  size: auto;
  margin: 12mm;
}

@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
    display: block !important;
  }

  .no-print,
  #cfFeedbackDockRoot,
  #cfFeedbackModalBackdrop,
  #cfContactModalBackdrop {
    display: none !important;
  }

  /* Isolate Evidence Dossier Modal when printing dossier */
  body.om-printing-dossier > :not(#auditReportModalBackdrop),
  body:has(#auditReportModalBackdrop:not(.om-hidden)):not(.om-printing-invoice) > :not(#auditReportModalBackdrop) {
    display: none !important;
  }

  body.om-printing-dossier #auditReportModalBackdrop,
  body:has(#auditReportModalBackdrop:not(.om-hidden)):not(.om-printing-invoice) #auditReportModalBackdrop {
    position: static !important;
    inset: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Isolate Corporate Invoice when printing invoice */
  body.om-printing-invoice > :not(#omPaywallModal) {
    display: none !important;
  }

  body.om-printing-invoice #omPaywallModal {
    position: static !important;
    inset: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    display: block !important;
  }

  body.om-printing-invoice #omPaywallModal .om-modal-header,
  body.om-printing-invoice #omPaywallModal .om-paywall-alert,
  body.om-printing-invoice #omPaywallModal .om-plan-grid,
  body.om-printing-invoice #omPaywallModal .om-invoice-form-col,
  body.om-printing-invoice #omPaywallModal .om-license-col,
  body.om-printing-invoice #omPaywallModal .om-invoice-actions {
    display: none !important;
  }

  .om-modal-window {
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .om-modal-header {
    position: static !important;
    background: #ffffff !important;
    color: #111111 !important;
    border-bottom: 2px solid #111111 !important;
    padding: 0 0 10px 0 !important;
  }

  .om-modal-title,
  .om-modal-kicker {
    color: #111111 !important;
  }

  .om-modal-body {
    padding: 12px 0 0 0 !important;
  }

  .om-data-table thead {
    display: table-header-group;
  }

  .om-data-table tr,
  .om-qa-block,
  .om-crosscheck-card,
  .om-invoice-sheet {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
