:root,
[data-theme="field-industrial"] {
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-light: #ffedd5;
  --on-primary: #ffffff;
  --primary-accent: #f59e0b;
  --canvas: #18181b;
  --bg: #18181b;
  --ink: #fafafa;
  --text: #fafafa;
  --muted: #a1a1aa;
  --text-muted: #a1a1aa;
  --rule: #3f3f46;
  --border: #3f3f46;
  --border-strong: #52525b;
  --orange: #ea580c;
  --orange-light: #431407;
  --green: #22c55e;
  --green-bg: #14532d;
  --green-border: #16a34a;
  --green-text: #86efac;
  --red: #ef4444;
  --red-bg: #450a0a;
  --red-border: #dc2626;
  --red-text: #fca5a5;
  --paper: #27272a;
  --surface: #27272a;
  --field: #18181b;
  --chip-bg: #3f3f46;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Barlow Condensed", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

/* ==========================================================================
   Utility Top Bar
   ========================================================================== */
.site-header,
.utility-bar {
  align-items: center;
  background: #18181b;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 32px;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.2;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.utility-bar-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compliance-tag {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.storage-tag {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pro-link,
.utility-bar-cta .pro-link {
  background: #3f1d0b;
  border: 1px solid var(--primary-accent);
  color: var(--primary-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.pro-link:hover,
.utility-bar-cta .pro-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pro-branding-section {
  background: var(--surface) !important;
  border: 1px dashed var(--rule) !important;
}

.pro-upload-label {
  color: var(--ink) !important;
}

.pro-upload-hint {
  color: var(--muted) !important;
}

/* Mobile Quick Jump Bar */
.mobile-jump-bar {
  display: none;
  background: var(--ink);
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-jump-bar .jump-button {
  background: var(--orange);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-jump-bar .jump-pro-link {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

/* Page Shell */
.page-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 28px 60px;
}

/* ==========================================================================
   Layer 1: Smart-Fold Marketing Layer
   ========================================================================== */
.marketing-layer {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fold-controls {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.fold-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.returning-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.standard-pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.fold-toggle-btn {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  transition: all 0.2s;
}

.fold-toggle-btn:hover {
  border-color: var(--primary-accent);
  background: var(--field);
}

.marketing-layer.collapsed .marketing-content {
  display: none;
}

.marketing-layer.collapsed {
  margin-bottom: 20px;
  box-shadow: none;
}

.marketing-content {
  padding: 28px 32px 36px;
}

.hero-strip {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--primary-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-subhead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 820px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.badge-item {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-cta {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.hero-sample-cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Pricing Grid */
.pricing-deck {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

.pricing-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
}

.pricing-card.pro-tier {
  border: 2px solid var(--primary);
  background: #221a14;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tier-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.tier-badge.pro-popular {
  background: var(--primary);
  color: #fff;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.pricing-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ink);
}

.price-lockup {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.price-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.price-num-alt {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.price-sub {
  color: var(--muted);
  font-size: 14px;
}

.or-text {
  color: var(--muted);
  font-size: 13px;
  margin: 0 4px;
}

.tier-desc {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 16px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.tier-features li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(188, 200, 205, 0.4);
  color: var(--ink);
}

.tier-features li:last-child {
  border-bottom: none;
}

.watermark-note {
  color: var(--muted);
  font-size: 12px;
}

.tier-btn {
  width: 100%;
  text-align: center;
}

.pro-cta-btn {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.pro-cta-btn:hover {
  background: var(--primary-hover);
}

.secure-checkout {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ==========================================================================
   Layer 2: Utility Tool & Ledger Layer
   ========================================================================== */
.presets-bar {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.presets-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.presets-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-chip {
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  color: #d4d4d8;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  white-space: normal;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: #27272a;
  border-color: var(--primary-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="field-industrial"] .preset-chip.active,
[data-theme="field-industrial"] [data-preset-chip].active,
.preset-chip.active,
.preset-chip[aria-pressed="true"],
.preset-chip[data-active="true"] {
  background: #3f1d0b !important;
  border-color: var(--primary-accent) !important;
  color: #fed7aa !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary-accent) inset;
}

.related-tools-grid {
  background: var(--paper, #27272a) !important;
  border-top: 1px solid var(--rule, #3f3f46) !important;
}
.related-tools-grid h3 {
  color: var(--text, #fafafa) !important;
}
.related-tools-grid p {
  color: var(--text-muted, #a1a1aa) !important;
}
.related-tools-grid > div > div {
  background: var(--field, #18181b) !important;
  border: 1px solid var(--border, #3f3f46) !important;
}
.related-tools-grid a {
  color: var(--primary-accent, #f59e0b) !important;
}

.modal-card {
  background: var(--surface, #27272a) !important;
  color: var(--text, #fafafa) !important;
  border: 1px solid var(--border, #3f3f46) !important;
}
.modal-card h3 {
  color: var(--text, #fafafa) !important;
}
.modal-card p {
  color: var(--text-muted, #a1a1aa) !important;
}

.workspace {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  align-items: start;
}

.ledger {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.ledger-section {
  border-bottom: 1px solid var(--rule);
  padding: 0 0 24px;
}

.ledger-section + .ledger-section {
  padding-top: 24px;
}

.section-heading {
  display: grid;
  gap: 14px;
  grid-template-columns: 36px 1fr;
  margin-bottom: 16px;
}

.section-heading > span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--primary-accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.section-heading h2 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--ink);
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 106, 44, 0.15);
}

.unit-field {
  display: grid;
  grid-template-columns: 1fr 48px;
}

.unit-field input {
  border-radius: 8px 0 0 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.unit-field b {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: center;
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Macro Steppers */
.weight-input-group {
  display: flex;
  flex-direction: column;
}

.macro-steppers {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.stepper-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: #d4d4d8;
  cursor: pointer;
  flex: 1 1 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 4px;
  text-align: center;
  transition: all 0.15s;
  white-space: nowrap;
}

.stepper-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Statutory Explainer Banner */
.statutory-explainer-banner {
  background: var(--surface);
  border-left: 4px solid var(--primary-accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.statutory-explainer-banner strong {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.statutory-explainer-banner span {
  font-size: 12.5px;
  color: var(--muted);
  font-family: monospace;
}

/* Reactive Mass Balance Card */
.balance-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
}

.balance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.balance-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formula-label {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}

.balance-equation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.eq-block {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  flex: 1;
}

.eq-sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}

.eq-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.eq-block.eq-result {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.eq-block.eq-result .eq-sub {
  color: var(--green-text);
}

.eq-block.eq-result .eq-val {
  color: var(--green-text);
}

.eq-op {
  font-size: 18px;
  font-weight: 800;
  color: var(--muted);
}

.text-orange { color: var(--primary-accent) !important; }
.text-green { color: var(--green-text) !important; }
.text-muted { color: var(--muted) !important; }

/* EPA Leak Rate Card */
.leak-rate-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}

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

.leak-rate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rate-numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rate-display {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.rate-sub {
  font-size: 13px;
  color: var(--muted);
}

.threshold-pill {
  background: var(--field);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.compliance-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
}

.compliance-pill.status-within {
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  color: var(--green-text);
}

.compliance-pill.status-mandatory {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  color: var(--red-text);
  animation: pulseMandatory 2s infinite ease-in-out;
}

.repair-countdown-alert {
  background: #fef2f2;
  border: 1.5px solid var(--red-border);
  border-left: 4px solid #b91c1c;
  border-radius: 6px;
  color: var(--red-text);
  padding: 10px 14px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  animation: pulseMandatory 2s infinite ease-in-out;
}

.repair-countdown-alert strong {
  font-weight: 800;
  color: #991b1b;
}

@keyframes pulseMandatory {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(197, 48, 48, 0.1); }
}

.statutory-text {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Checklist */
.checklist {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist label {
  align-items: center;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
}

.checklist input {
  accent-color: var(--green);
  min-height: auto;
  width: auto;
}

.checklist label span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}

/* Actions */
.primary-action,
.outline-action {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 14px;
  transition: all 0.15s ease;
}

.primary-action {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.primary-action:hover {
  background: var(--primary-hover);
}

.outline-action {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.outline-action:hover {
  background: var(--surface);
  border-color: var(--primary-accent);
}

.compact-action {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.submit-action {
  margin-top: 24px;
  width: 100%;
  font-size: 16px;
}

/* Status Rail */
.status-rail {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  position: static;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.status-rail h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
}

.progress-bar-container {
  background: var(--rule);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  background: var(--green);
  height: 100%;
  transition: width 0.3s ease;
}

.progress {
  color: var(--green-text);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
}

#statusMessage {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

#missingList {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--red-text);
}

#missingList li + li {
  margin-top: 4px;
}

.rail-epa-box {
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  color: var(--ink, #fafafa);
}

.rail-epa-box h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink, #fafafa);
  margin: 0 0 8px;
}

.epa-threshold-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink, #fafafa);
}

.epa-threshold-list li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(188, 200, 205, 0.4);
  color: var(--ink, #fafafa);
}

.epa-threshold-list li:last-child {
  border-bottom: none;
}

.repair-rule-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-actions .primary-action,
.rail-actions .outline-action {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Executive EPA 608 Certificate Deliverable Sheet
   ========================================================================== */
#executive-deliverable,
.deliverable-sheet {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 36px;
  padding: 32px;
  position: relative;
}

.cert-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.cert-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cert-badge {
  background: #0f172a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 6px;
}

.cert-company {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  margin: 0 0 2px;
}

.cert-dispatch {
  font-size: 12px;
  color: #475569;
  margin: 0;
}

.cert-meta-block {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.cert-meta-row {
  margin-bottom: 4px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.cert-meta-row strong {
  color: #475569;
}

.cert-title-section {
  text-align: center;
  margin-bottom: 20px;
}

.cert-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.cert-statute-citation {
  color: #475569;
  font-size: 13px;
  margin: 0;
}

.cert-determination-banner {
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.cert-determination-banner.status-within {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.cert-determination-banner.status-mandatory {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
}

.determination-pill {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-within .determination-pill {
  background: #166534;
  color: #fff;
}

.status-mandatory .determination-pill {
  background: #dc2626;
  color: #fff;
}

.determination-desc {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.status-within .determination-desc { color: #166534; }
.status-mandatory .determination-desc { color: #991b1b; font-weight: 600; }

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.cert-section-head {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin: 0 0 12px;
}

.cert-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
}

.cert-dl dt {
  color: #475569;
  font-weight: 700;
}

.cert-dl dd {
  margin: 0;
  color: #0f172a;
}

/* Mass Balance Table */
.cert-table-wrap {
  margin-bottom: 24px;
  overflow-x: auto;
  max-width: 100%;
}

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

.cert-table th {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.cert-table td {
  border: 1px solid #cbd5e1;
  padding: 10px;
  color: #0f172a;
  background: #ffffff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.table-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.table-pill.within {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.table-pill.mandatory {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Narrative & Checklist */
.cert-narrative-section {
  margin-bottom: 28px;
}

.cert-narrative-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cert-checklist-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-check-item {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Dual Signatures */
.doc-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-bottom: 24px;
}

.sig-block {
  display: flex;
  flex-direction: column;
}

.sig-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 28px;
}

.sig-line {
  border-bottom: 1.5px solid #0f172a;
  margin-bottom: 8px;
}

/* FieldSignaturePad Canvas Styles */
.field-signature-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-bottom: 6px;
}

.field-signature-pad {
  width: 100%;
  height: 80px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-bottom: 2px solid #0f172a;
  border-radius: 4px 4px 0 0;
  touch-action: none;
  cursor: crosshair;
  display: block;
}

.signature-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}

.sig-clear-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
}

.sig-clear-btn:hover {
  color: #dc2626;
}

.sig-hint {
  font-size: 10px;
  color: #475569;
  font-style: italic;
  pointer-events: none;
}

@media print {
  .signature-tools {
    display: none !important;
  }
  .field-signature-pad {
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #000 !important;
  }
}

.sig-printed-name {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.sig-cert-num {
  font-size: 12px;
  color: #475569;
  margin: 0 0 2px;
}

.sig-date {
  font-size: 12px;
  color: #475569;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.sig-legal {
  font-size: 10.5px;
  color: #475569;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
}

/* Certificate Footer & Watermark */
.cert-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 16px;
  margin-top: 16px;
}

.cert-retention-notice {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 12px;
}

.cert-watermark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.watermark-text {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-hash {
  color: #64748b;
  font-family: monospace;
}

/* Deliverable Actions */
.deliverable-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

.deliverable-actions .primary-action {
  background: var(--primary);
  color: #ffffff;
}

.deliverable-actions .outline-action {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.deliverable-actions .outline-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.copied-toast {
  color: var(--green-text);
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .pricing-deck {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .status-rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }
  .brand-group,
  .brand-text,
  .header-actions {
    min-width: 0;
    width: 100%;
  }
  .brand-text strong,
  .brand-text span {
    overflow-wrap: anywhere;
  }
  .header-status {
    display: none;
  }
  .header-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-actions .pro-link,
  .header-actions .jump-tool-btn {
    flex: 1 1 140px;
    max-width: 100%;
    text-align: center;
  }
  .utility-bar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .utility-bar-status {
    display: none;
  }
  .mobile-jump-bar {
    display: flex;
  }
  .page-shell {
    padding: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .field-grid,
  .checklist,
  .cert-grid,
  .doc-signatures {
    grid-template-columns: 1fr;
  }
  .cert-letterhead {
    flex-direction: column;
    gap: 12px;
  }
  .cert-meta-block {
    text-align: left;
  }
  .cert-determination-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .determination-pill {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
  .cert-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .deliverable-sheet {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ==========================================================================
   Executive Deliverable Print Isolation (@media print)
   ========================================================================== */
@media print {
  @page {
    size: letter portrait;
    margin: 0.4in;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9.5pt !important;
  }

  body > *:not(.page-shell),
  .site-header,
  .utility-bar,
  .mobile-jump-bar,
  .marketing-layer,
  [data-layer="marketing"],
  .presets-bar,
  .workspace,
  .ledger,
  .status-rail,
  .deliverable-actions,
  .fold-controls,
  button,
  .button {
    display: none !important;
  }

  .page-shell {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .utility-layer {
    display: block !important;
  }

  #executive-deliverable {
    display: block !important;
    border: 2px solid #142b3d !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cert-letterhead,
  .cert-determination-banner,
  .cert-grid,
  .cert-table-wrap,
  .cert-narrative-section,
  .doc-signatures,
  .cert-footer {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .cert-determination-banner.status-within {
    border: 1.5px solid #166534 !important;
    background: #f0fdf4 !important;
  }

  .cert-determination-banner.status-mandatory {
    border: 1.5px solid #991b1b !important;
    background: #fef2f2 !important;
  }

  .no-print,
  [data-action="print-deliverable"],
  .secondary-action,
  .signature-tools {
    display: none !important;
  }
}

/* ==========================================================================
   Tabular Numerals (System Charge, Leak Rates, and Dates)
   ========================================================================== */
#systemChargeLbs,
#addedLbs,
#recoveredLbs,
.unit-field input,
.eq-val,
#eqInitial,
#eqAdded,
#eqRecovered,
#eqNet,
#calcLeakRateDisplay,
.rate-display,
#epaThresholdTag,
.threshold-pill,
#serviceDate,
input[type="date"],
.cert-meta-row,
.cert-meta-block,
.cert-table td,
#tableFullCharge,
#tableAdded,
#tableRecovered,
#tableNetBalance,
#tableDays,
#tableLeakRate,
#tableThreshold,
#certTimestampDisplay,
#sigTechDate,
#sigOwnerDate,
.sig-date,
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

button:active,
.primary-action:active,
.outline-action:active,
.jump-button:active,
.macro-chip:active,
.scenario-card:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   Option B+ Cockpit & Unified Toolbar Quality Gate Standards
   ========================================================================== */

/* Unified 46px Flex Toolbar */
.unified-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 6px 20px;
  background: #182635;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  z-index: 100;
  box-sizing: border-box;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-tabs {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2px;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mode-tab.active {
  color: #fff;
  background: #ea580c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.preset-strip-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preset-strip-inline .preset-chip {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-strip-inline .preset-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.preset-strip-inline .preset-chip.active {
  background: rgba(234, 88, 12, 0.2);
  border-color: #ea580c;
  color: #ffedd5;
  font-weight: 600;
}

.engine-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #4ade80;
}

.engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.free-badge {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

/* Workflow Directional Vector Bar */
.workflow-direction-bar {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 20px;
  font-size: 11px;
  color: #94a3b8;
}

.wf-track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wf-step strong {
  color: #f1f5f9;
}

.wf-arrow {
  color: #ea580c;
  font-weight: bold;
}

/* In-Flow Action Shelf at Form End */
.dock-jump-shelf {
  position: static;
  background: #0f172a;
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-jump-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  background: #ea580c !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-jump-btn:hover {
  background: #c2410c !important;
  transform: translateY(-1px);
}

.dock-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px;
  cursor: pointer;
}

.dock-scroll-cue:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Action Confirmation Message */
.action-msg {
  display: none;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: #ffedd5;
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid rgba(234, 88, 12, 0.6);
  border-radius: 4px;
  padding: 6px 12px;
  text-align: center;
}

.action-msg.msg-flash {
  display: block;
  animation: msgFlash 0.3s ease-out;
}

@keyframes msgFlash {
  0% { opacity: 0; transform: translateY(-3px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0.95; }
}

@keyframes spotlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); outline: 2px solid rgba(234, 88, 12, 0.9); }
  50% { box-shadow: 0 0 0 14px rgba(234, 88, 12, 0); outline: 2px solid rgba(234, 88, 12, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); outline: 2px solid transparent; }
}

.spotlight-pulse {
  animation: spotlightPulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Anchored Cockpit Horizon Bar */
.cockpit-horizon-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #090e17;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  color: #64748b;
  z-index: 900;
}

.horizon-left,
.horizon-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.horizon-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.horizon-link {
  color: #94a3b8;
  text-decoration: none;
}

.horizon-dim {
  color: #475569;
}

/* Mobile Sticky HUD */
.mobile-hud {
  display: none;
}

/* Option B+ Desktop Cockpit (100dvh Zero Window Scroll) */
@media screen and (min-width: 901px) {
  html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
  }

  .site-header {
    height: 52px;
    padding: 0 20px;
    flex-shrink: 0;
  }

  .page-shell {
    height: calc(100dvh - 52px - 46px - 32px);
    overflow: hidden;
    padding: 0 20px;
    max-width: 1720px;
    margin: 0 auto;
    width: 100%;
  }

  .workbench {
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.25fr);
    gap: 24px;
    padding: 16px 0 34px 0;
  }

  .inspector-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid rgba(234, 88, 12, 0.3);
  }

  .inspector-pane .pane-header {
    flex: 0 0 auto;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
  }

  .inspector-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
  }

  .dock-jump-shelf {
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #0f172a;
    border-top: 1.5px solid rgba(234, 88, 12, 0.3);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    border-radius: 0 0 8px 8px;
  }

  .role-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono, monospace);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
  }

  .role-badge-in {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f59e0b;
    margin-right: 8px;
  }

  .role-badge-out {
  background: #d1fae5;
  color: #064e3b;
  border: 1px solid #10b981;
    margin-right: 8px;
  }

  .pane-subtitle {
    font-size: 12px;
    color: var(--muted, #94a3b8);
  }

  .deliverable-zone .pane-header {
    flex: 0 0 auto;
    padding: 10px 16px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
  }

  .deliverable-dock {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #0f172a;
    padding: 10px 14px;
    margin: 0 0 14px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .deliverable-dock .sheet-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .deliverable-dock .primary-action {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
  }

  .deliverable-dock .outline-action {
    padding: 8px 14px;
    font-size: 12px;
  }

  .deliverable-dock .dock-scroll-cue {
    padding: 7px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted, #94a3b8);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .deliverable-dock .dock-scroll-cue:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .deliverable-zone {
    height: 100%;
    overflow-y: auto;
    padding-right: 12px;
  }
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }

  .workflow-direction-bar {
    display: none !important;
  }

  .preset-strip-inline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 2px 0;
  }
  .preset-strip-inline::-webkit-scrollbar {
    display: none;
  }

  .workbench {
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
  }

  .inspector-pane {
    height: auto;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
  }

  .inspector-scroll-body {
    overflow-y: visible;
    max-height: none;
    min-height: 0;
    padding: 0;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .dock-jump-shelf {
    display: block;
    margin: 16px 0 20px 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .mobile-hud {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid rgba(234, 88, 12, 0.4);
    padding: 8px 16px;
    z-index: 999;
  }

  .mobile-hud-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
  }

  .hud-kpi {
    display: flex;
    flex-direction: column;
  }

  .hud-label {
    font-size: 10px;
    color: #94a3b8;
    font-family: var(--font-mono, monospace);
  }

  .hud-value {
    font-size: 16px;
    font-weight: 700;
    color: #ea580c;
  }

  .hud-jump-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    background: #ea580c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
}

