/* ReproHub Baseline Registry — Scientific Alabaster & Deep Marine Navy Design System */

:root {
  --rh-bg: #f6f8fa;
  --rh-surface: #ffffff;
  --rh-surface-subtle: #eff3f8;
  --rh-ink: #16202a;
  --rh-ink-secondary: #435162;
  --rh-ink-muted: #627082;
  --rh-primary: #1b365d;
  --rh-primary-hover: #122643;
  --rh-border: #d5dde6;
  --rh-border-strong: #b8c4d2;

  --rh-forest-bg: #ecfdf3;
  --rh-forest-border: #bbf7d0;
  --rh-forest-ink: #166534;

  --rh-amber-bg: #fffbeb;
  --rh-amber-border: #fde68a;
  --rh-amber-ink: #92400e;

  --rh-crimson-bg: #fef2f2;
  --rh-crimson-border: #fecaca;
  --rh-crimson-ink: #991b1b;

  --rh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --rh-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --rh-radius: 8px;
  --rh-radius-sm: 6px;
  --rh-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 3px 10px rgba(15, 23, 42, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--rh-bg);
  color: var(--rh-ink);
  font-family: var(--rh-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rh-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rh-primary-hover);
}

code,
pre {
  font-family: var(--rh-mono);
}

/* Top Bar & Navigation */
.site-topbar {
  background-color: var(--rh-surface);
  border-bottom: 1px solid var(--rh-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--rh-ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--rh-primary);
  color: #ffffff;
  font-family: var(--rh-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--rh-primary);
}

.brand-subtitle {
  font-size: 12.5px;
  color: var(--rh-ink-muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rh-ink-secondary);
  transition: color 0.15s ease;
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] {
  color: var(--rh-primary);
}

.topbar-nav .partner-nav-link {
  padding: 5px 10px;
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  background-color: var(--rh-bg);
  color: var(--rh-primary);
  font-weight: 600;
}

.topbar-nav .partner-nav-link:hover {
  border-color: var(--rh-border-strong);
  background-color: var(--rh-surface-subtle);
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  background-color: var(--rh-surface);
  color: var(--rh-primary);
  font-family: var(--rh-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle-btn:hover {
  background-color: var(--rh-surface-subtle);
  border-color: var(--rh-primary);
}

.lang-toggle-btn:focus-visible {
  outline: none;
  border-color: var(--rh-primary);
  box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.2);
}

.lang-toggle-btn[data-active-lang="zh-CN"] {
  background-color: var(--rh-surface-subtle);
  border-color: var(--rh-primary);
}

.topbar-beacon {
  display: flex;
  align-items: center;
}

/* Main Page Container */
.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* Editorial Header */
.hero-header {
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 28px 32px;
  box-shadow: var(--rh-shadow);
  margin-bottom: 28px;
}

.hero-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--rh-ink);
}

.hero-lead {
  margin: 0 0 18px;
  max-width: 82ch;
  color: var(--rh-ink-secondary);
  font-size: 15.5px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rh-border);
  border-bottom: 1px solid var(--rh-border);
  margin-bottom: 16px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-family: var(--rh-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--rh-primary);
}

.metric-label {
  font-size: 12.5px;
  color: var(--rh-ink-muted);
}

.facts-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  font-size: 13.5px;
  color: var(--rh-ink-secondary);
}

.facts-bar p {
  margin: 0;
}

/* Workbench Sections */
.workbench-section {
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 24px 28px;
  box-shadow: var(--rh-shadow);
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  color: var(--rh-ink);
}

.section-subtitle {
  margin: 0;
  color: var(--rh-ink-secondary);
  font-size: 14px;
}

/* Forms & Controls */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 16px;
  background-color: var(--rh-bg);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  margin-bottom: 16px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1.3fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-group label,
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-ink);
}

.control-hint {
  font-size: 12px;
  color: var(--rh-ink-muted);
}

.control-group input,
.control-group select,
.control-group textarea,
.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  background-color: #ffffff;
  color: var(--rh-ink);
  font-family: var(--rh-sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.control-group input:focus,
.control-group select:focus,
.control-group textarea:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rh-primary);
  box-shadow: 0 0 0 2px rgba(27, 54, 93, 0.16);
}

.button-row,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: var(--rh-radius-sm);
  font-family: var(--rh-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--rh-primary);
  color: #ffffff;
  border: 1px solid var(--rh-primary);
}

.btn-primary:hover {
  background-color: var(--rh-primary-hover);
  border-color: var(--rh-primary-hover);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--rh-primary);
  border: 1px solid var(--rh-border-strong);
}

.btn-secondary:hover {
  background-color: var(--rh-surface-subtle);
  border-color: var(--rh-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--rh-crimson-ink);
  border: 1px solid var(--rh-crimson-border);
}

.btn-ghost:hover {
  background-color: var(--rh-crimson-bg);
}

.btn-compact {
  padding: 5px 10px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Alerts & Audit Cards */
.panel-alert,
.field-error {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: var(--rh-radius-sm);
  background-color: var(--rh-crimson-bg);
  border: 1px solid var(--rh-crimson-border);
  color: var(--rh-crimson-ink);
  font-size: 13.5px;
  font-weight: 500;
}

.audit-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.audit-card {
  padding: 12px 16px;
  border-radius: var(--rh-radius-sm);
  border: 1px solid var(--rh-border);
}

.audit-card.audit-flagged {
  background-color: var(--rh-amber-bg);
  border-color: var(--rh-amber-border);
  color: var(--rh-amber-ink);
}

.audit-card.audit-ok {
  background-color: var(--rh-forest-bg);
  border-color: var(--rh-forest-border);
  color: var(--rh-forest-ink);
}

.audit-heading {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.audit-diagnostic {
  margin: 0;
  font-size: 13.5px;
}

/* Tabular Comparison Matrices */
.results-count {
  margin: 0;
  font-size: 13px;
  color: var(--rh-ink-muted);
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background-color: var(--rh-surface);
}

.data-table th {
  background-color: var(--rh-surface-subtle);
  color: var(--rh-ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rh-border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--rh-border);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #fafbfc;
}

.cell-benchmark {
  min-width: 210px;
}

.benchmark-title {
  display: block;
  color: var(--rh-ink);
  margin-bottom: 3px;
}

.benchmark-id {
  display: inline-block;
  font-size: 12px;
  color: var(--rh-ink-muted);
  background-color: var(--rh-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--rh-border);
}

.domain-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--rh-surface-subtle);
  color: var(--rh-primary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cell-numeric {
  font-family: var(--rh-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.canonical-score {
  display: block;
  font-size: 14px;
  color: var(--rh-primary);
}

.legacy-caption,
.vram-spec,
.hours-spec {
  display: block;
  font-family: var(--rh-sans);
  font-size: 12px;
  color: var(--rh-ink-muted);
  margin-top: 2px;
  white-space: normal;
}

.cell-protocol {
  min-width: 280px;
  max-width: 420px;
}

.recipe-summary {
  margin: 0 0 4px;
  color: var(--rh-ink);
}

.pitfall-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--rh-amber-ink);
}

.status-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--rh-sans);
  font-size: 12px;
  font-weight: 600;
}

.status-ok {
  background-color: var(--rh-forest-bg);
  border: 1px solid var(--rh-forest-border);
  color: var(--rh-forest-ink);
}

.status-flagged {
  background-color: var(--rh-crimson-bg);
  border: 1px solid var(--rh-crimson-border);
  color: var(--rh-crimson-ink);
}

/* Estimator Quote Panel */
.quote-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--rh-radius-sm);
  border: 1px solid var(--rh-border);
  background-color: var(--rh-bg);
}

.quote-box.quote-oom {
  background-color: var(--rh-crimson-bg);
  border-color: var(--rh-crimson-border);
  color: var(--rh-crimson-ink);
}

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

.quote-header .status-badge {
  margin-top: 0;
}

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.quote-metrics dt {
  font-size: 12px;
  color: var(--rh-ink-muted);
  margin-bottom: 2px;
}

.quote-metrics dd {
  margin: 0;
  font-family: var(--rh-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rh-ink);
}

.quote-reason {
  margin: 6px 0 0;
  font-size: 13.5px;
}

/* Workspace Split Layout */
.workspace-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

.workspace-pane {
  padding: 18px 20px;
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  background-color: var(--rh-bg);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pane-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.plan-stats-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 8px 12px;
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  font-family: var(--rh-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.version-chip {
  padding: 2px 8px;
  border-radius: 4px;
  background-color: var(--rh-primary);
  color: #ffffff;
  font-family: var(--rh-mono);
  font-size: 12px;
  font-weight: 700;
}

.empty-placeholder {
  margin: 8px 0;
  padding: 18px;
  background-color: var(--rh-surface);
  border: 1px dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-ink-muted);
  font-size: 13.5px;
  text-align: center;
}

.stack-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* Submitted Receipts Log */
.receipts-log {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rh-border);
}

.receipts-log h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.receipt-banner {
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: var(--rh-radius-sm);
  background-color: var(--rh-forest-bg);
  border: 1px solid var(--rh-forest-border);
  color: var(--rh-forest-ink);
}

.receipt-banner-title {
  display: block;
  margin-bottom: 2px;
}

.receipt-banner-body {
  margin: 0;
  font-size: 13.5px;
}

.receipts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-card {
  padding: 12px 16px;
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
}

.receipt-card-heading {
  margin: 0 0 4px;
  font-family: var(--rh-mono);
  font-size: 13.5px;
  color: var(--rh-primary);
}

.receipt-card-items {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 500;
}

.receipt-card-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--rh-ink-muted);
}

/* Guidelines Page Typography */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.protocol-card {
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 22px 24px;
  box-shadow: var(--rh-shadow);
}

.protocol-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--rh-primary);
}

.protocol-card p,
.protocol-card ul {
  margin: 0 0 10px;
  color: var(--rh-ink-secondary);
  font-size: 14px;
}

.protocol-card ul {
  padding-left: 20px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--rh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rh-ink-muted);
}

/* Cross-Origin Ticket Window (bridge/ticket-window.js) */
.ticket-window-header {
  background-color: var(--rh-primary);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-window-header .brand {
  font-weight: 700;
  font-size: 15px;
}

.ticket-window-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-window-tag {
  font-size: 12.5px;
  opacity: 0.9;
}

.ticket-lang-btn {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.ticket-lang-btn:hover,
.ticket-lang-btn[data-active-lang="zh-CN"] {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
}

.ticket-window-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}

.ticket-window-intro h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.ticket-window-intro p {
  margin: 0 0 18px;
  color: var(--rh-ink-secondary);
}

.panel {
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--rh-shadow);
}

.ticket-summary-line {
  margin: 0 0 6px;
  font-size: 13.5px;
}

.ticket-summary-line:last-child {
  margin-bottom: 0;
}

.ticket-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.ticket-form legend {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rh-primary);
}

.ticket-form .field {
  margin-bottom: 12px;
}

/* Embedded Assistant Layout & Runtime Isolation (from templates/assistant.css) */
.assistant {
  margin-top: 32px;
  background-color: var(--rh-surface);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  padding: 24px 28px;
  box-shadow: var(--rh-shadow);
}

.assistant h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.assistant > p {
  margin: 0 0 8px;
  color: var(--rh-ink-secondary);
  font-size: 14px;
}

.assistant-note {
  font-size: 13px !important;
  color: var(--rh-ink-muted) !important;
}

#assistant-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-primary);
  margin-bottom: 12px;
}

#agent-app {
  --ns-font: var(--rh-sans);
  --ns-bg: #ffffff;
  --ns-fg: #16202a;
  --ns-primary: #1b365d;
  --ns-accent: #1b365d;
  --ns-border: #d5dde6;
  --ns-panelbg: #ffffff;
  --ns-msgbg: #f6f8fa;
  --ns-muted: #59636e;
}

.assistant-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  margin-top: 16px;
}

#agent-app.ns-composed-app [data-ns-slot="chat"] {
  height: 720px;
}

#agent-app .ns-chat {
  background: var(--ns-bg);
}

#agent-app input[type="checkbox"],
#agent-app input[type="radio"] {
  width: auto;
}

#agent-app .ns-header {
  flex-wrap: wrap;
}

#agent-app .ns-settings-body label {
  margin: 4px 0;
  font-weight: 400;
}

#agent-app .ns-w-label {
  font-family: inherit;
}

#agent-app .ns-widget label {
  margin: 0;
}

#agent-app .ns-w-radio label,
#agent-app .ns-w-multi label,
#agent-app .ns-w-toggle {
  font-weight: 400;
}

#agent-app .ns-w-toggle {
  font-size: 13px;
}

#agent-app button {
  margin: 0;
}

#agent-app .ns-w-choice {
  color: var(--ns-fg);
}

#agent-app .ns-devtoggle:not(.on):hover,
#agent-app .ns-modal-close:hover {
  background: transparent;
}

#agent-app .ns-w-choice:disabled:hover {
  background: #fafbfc;
}

#agent-app .ns-consent {
  background: #fffbeb;
}

#agent-app .ns-msgs:has(.ns-consent-actions) > .ns-turn-status {
  display: none;
}

#agent-app .ns-msg {
  overflow-wrap: break-word;
}

#agent-app .ns-consent-actions {
  flex-wrap: wrap;
}

#agent-app .ns-consent-actions button {
  white-space: nowrap;
}

body > dialog h2 {
  margin: 0 0 12px;
  font: 700 1.25em system-ui, sans-serif;
}

body > dialog button {
  margin-right: 8px;
}

.assistant-review {
  max-width: 640px;
  width: 85%;
  max-height: 85vh;
  overflow: auto;
  border: 1px solid var(--rh-border-strong);
  border-radius: 12px;
  padding: 24px;
  font: 16px var(--rh-sans);
  color: var(--rh-ink);
  background-color: #ffffff;
}

.assistant-review dl {
  display: grid;
  grid-template-columns: fit-content(40%) 1fr;
  gap: 6px 16px;
  margin: 12px 0;
}

.assistant-review dt {
  font-weight: 600;
}

.assistant-review dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.assistant-review details {
  margin: 12px 0;
}

.assistant-review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  background-color: var(--rh-bg);
  padding: 10px;
  border-radius: var(--rh-radius-sm);
}

.assistant-review button {
  padding: 8px 16px;
  border-radius: var(--rh-radius-sm);
  border: 1px solid var(--rh-primary);
  background-color: var(--rh-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.assistant-review .assistant-decline {
  background: transparent;
  color: var(--rh-ink);
  border: 1px solid currentColor;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .quote-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-split,
  .facts-bar,
  .prose-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .metrics-strip,
  .filter-grid,
  .quote-metrics {
    grid-template-columns: 1fr;
  }
  .assistant-panels {
    grid-template-columns: 1fr;
  }
  .assistant-review dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .assistant-review dd {
    margin-bottom: 8px;
  }
}
