[hidden] {
  display: none !important;
}

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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

:root {
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", sans-serif;
  --paper: #f7f5f1;
  --ink: #1f2933;
  --navy: #17324d;
  --navy-2: #244b6f;
  --moss: #2e5830;
  --moss-light: #e1eadf;
  --line: #d8d4cc;
  --white: #ffffff;
  --amber: #b46b1d;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.11);
  --radius-card: 12px;
  --grid-max: 1280px;
  --gutter: 24px;
  --outer: 32px;
  --primary: var(--navy);
  --primary-hover: var(--navy-2);
  --on-primary: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 4.2vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 780px;
  text-wrap: balance;
}

h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

button,
a.primary-cta,
.jump-tool-btn {
  white-space: nowrap;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 241, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 0 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  min-height: 68px;
}

.smart-fold-bar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(247, 245, 241, 0.78);
  border-bottom: 1px solid var(--line);
  display: none;
  justify-content: space-between;
  left: 0;
  padding: 0 32px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  height: 44px;
}

.smart-fold-bar[hidden] {
  display: none !important;
}

.wordmark {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a.jump-tool-btn,
.site-header a.jump-tool-btn,
.smart-fold-bar a.jump-tool-btn,
header [data-jump-tool],
.smart-fold-bar [data-jump-tool] {
  background: var(--primary) !important;
  background-color: var(--primary) !important;
  color: var(--on-primary, #ffffff) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.jump-tool-btn,
.primary-cta,
.checkout-btn,
.workspace-actions button,
[data-action="add-row"],
[data-preset-chip] {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 50, 77, 0.18);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  height: 44px;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.jump-tool-btn svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.jump-tool-btn:active,
.primary-cta:active,
.checkout-btn:active,
.workspace-actions button:active,
[data-action="add-row"]:active,
[data-preset-chip]:active {
  box-shadow: 0 4px 10px rgba(23, 50, 77, 0.16);
  transform: translateY(2px);
}

.page-shell {
  min-height: 100vh;
}

.marketing {
  margin: 0 auto;
  max-width: var(--grid-max);
  padding: 28px var(--outer) 44px;
}

.trust-bar {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  gap: 20px;
  justify-content: space-between;
  letter-spacing: 0.04em;
  padding: 14px 0;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, 1fr);
  padding-top: 58px;
}

.hero-copy {
  grid-column: span 6;
}

.eyebrow,
.meta-label {
  color: var(--moss);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.subhead {
  color: #42505d;
  font-size: 1.16rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 690px;
}

.primary-cta {
  max-width: 180px;
}

.hero-defaults {
  align-items: end;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(82px, 1fr));
  margin-top: 22px;
  padding: 14px;
}

.hero-defaults .proof-label {
  grid-column: 1 / -1;
}

.hero-defaults label {
  min-width: 0;
}

.hero-defaults input {
  height: 38px;
}

.proof-card,
.pricing-card,
.intake-card,
.bento-card,
.deliverable-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.proof-card {
  align-self: stretch;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: span 3;
  padding: 24px;
  text-align: left;
  white-space: normal;
}

.proof-label,
.proof-footer {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-footer {
  margin-top: auto;
}

.pricing-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: span 3;
  padding: 22px;
}

.billing-toggle {
  background: #ece7dd;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 52px;
  padding: 4px;
}

.billing-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.80rem;
  font-weight: 800;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-toggle .is-active {
  background: var(--white);
  box-shadow: 0 3px 10px rgba(31, 41, 51, 0.12);
}

.discount-badge {
  background: var(--moss-light);
  border-radius: 999px;
  color: #2f5d36;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
}

.workspace {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(247, 245, 241, 0));
  margin: 0 auto;
  max-width: var(--grid-max);
  padding: 28px var(--outer) 64px;
}

.workspace-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px;
}

.workspace-actions {
  display: flex;
  gap: 10px;
}

.workspace-actions [data-action="export-csv"] {
  background: var(--moss);
  border-color: var(--moss);
}

.status-region {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 14px;
  padding: 12px 16px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

[data-preset-chip] {
  background: #ffffff;
  color: var(--navy);
}

.workspace-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, 1fr);
}

.intake-card {
  grid-column: span 5;
  padding: 22px;
}

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 18px 0 0;
}

legend {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 900;
  padding-right: 12px;
}

label {
  color: #455461;
  display: grid;
  font-size: 0.83rem;
  font-weight: 850;
  gap: 7px;
}

input {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  height: 42px;
  padding: 0 12px;
  width: 100%;
}

input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 50, 77, 0.13);
  outline: none;
}

input[aria-invalid="true"] {
  background: #fff8f1;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(180, 107, 29, 0.14);
}

.field-error {
  color: #8a4312;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.25;
}

.validation-summary {
  background: #fff8f1;
  border: 1px solid rgba(180, 107, 29, 0.38);
  border-radius: 10px;
  color: #74370d;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.validation-summary strong {
  color: #74370d;
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.validation-summary li {
  margin: 3px 0;
}

.evidence-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bento-stack {
  display: grid;
  gap: 16px;
  grid-column: span 3;
}

.bento-card,
.logo-upload {
  padding: 18px;
}

.bento-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.formula-card li,
.formula-assumptions li {
  margin: 6px 0;
}

.estimate-note {
  border-left: 4px solid var(--moss);
}

.formula-assumptions {
  background: #f8f5ee;
  border: 1px solid var(--line);
  margin: 0 0 18px;
  padding: 12px 14px;
}

.estimate-disclaimer {
  background: #f8f5ee;
  border: 1px solid var(--line);
  color: #42505d;
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding: 10px 12px;
}

.bento-card strong[data-metric] {
  color: var(--navy);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.1;
}

.bento-card [data-metric="keep-pass-note"] {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.bento-card [data-decision="keep"] {
  color: #315f38;
}

.bento-card [data-decision="pass"] {
  color: var(--amber);
}

.deliverable-wrapper {
  grid-column: span 4;
  padding: 18px;
}

#executive-deliverable {
  background: #fffdfa;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 620px;
  padding: 24px;
}

.deliverable-letterhead {
  align-items: start;
  border-bottom: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.deliverable-logo {
  max-height: 52px;
  max-width: 150px;
  object-fit: contain;
}

.doc-meta,
.assumption-table {
  font-variant-numeric: tabular-nums;
}

.doc-meta {
  color: #5d6873;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 12px;
  margin: 14px 0;
}

.doc-meta [data-doc-time] {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.doc-meta .meta-date,
.doc-meta .meta-time {
  white-space: nowrap;
}

.doc-meta .meta-sep {
  color: #8c9ba5;
}

.assumption-table {
  border-collapse: collapse;
  width: 100%;
}

.snapshot-table {
  margin-bottom: 18px;
}

.assumption-table th,
.assumption-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  text-align: left;
}

.assumption-table th {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.assumption-table td.decision-cell {
  padding: 10px 0;
  white-space: normal;
}

.decision-row-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.decision-cell-label {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-cell-value {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.decision-cell-value[data-decision="keep"] {
  color: #315f38;
}

.decision-cell-value[data-decision="pass"] {
  color: var(--amber);
}

#executive-deliverable h4 {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 20px 0 8px;
  text-transform: uppercase;
}

#executive-deliverable ul {
  color: #42505d;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.free-watermark {
  border-top: 1px solid var(--line);
  color: #6d7680;
  font-size: 0.78rem;
  margin-top: 24px;
  padding-top: 12px;
  text-align: center;
}

dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  max-width: 440px;
}

dialog::backdrop {
  background: rgba(31, 41, 51, 0.34);
}

menu {
  display: flex;
  gap: 10px;
  justify-content: end;
  padding: 0;
}

body.returning .site-header,
body.returning [data-layer="marketing"] {
  display: none;
}

body.returning .smart-fold-bar:not([hidden]) {
  display: flex;
}

body.returning .workspace {
  padding-top: 0;
}

@media (max-width: 900px) {
  .site-header {
    bottom: auto;
    min-height: 58px;
    padding: 0 16px;
  }

  .site-header .wordmark {
    max-width: 52vw;
  }

  .jump-tool-btn {
    height: 44px;
    min-height: 44px;
    padding: 0 14px;
  }

  .marketing,
  .workspace {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: clamp(1.8rem, 7vw, 2.55rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
  }

  .subhead {
    line-height: 1.45;
    max-width: 100%;
  }

  .trust-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .hero-defaults {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-meta {
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.74rem;
    gap: 6px;
  }

  #executive-deliverable {
    padding: 16px;
  }

  .preset-row {
    flex-wrap: wrap;
  }

  .hero-grid,
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  fieldset {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy,
  .proof-card,
  .pricing-card,
  .intake-card,
  .bento-stack,
  .deliverable-wrapper {
    grid-column: auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .workspace-actions {
    flex-wrap: wrap;
  }
}

@media print {
  body,
  main,
  .page-shell,
  .workspace,
  .deliverable-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  form,
  nav,
  header,
  footer,
  button,
  [data-layer="marketing"],
  [data-action="print-deliverable"],
  .smart-fold-bar,
  .site-header,
  .workspace-header,
  .status-region,
  .preset-row,
  .bento-stack {
    display: none !important;
  }

  #executive-deliverable {
    border: 0;
    min-height: auto;
    padding: 0.4in;
  }

  .deliverable-letterhead {
    display: flex !important;
  }
}

button,
.button,
.button-ghost,
.button-secondary,
[data-action="copy-summary"],
[data-action="export-csv"],
.preset-chip,
[data-preset-chip] {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}

.reference-links a,
.footer-links a,
footer a,
.discovery-spokes a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}

/* ==========================================================================
   Option B+ Statutory Desktop Cockpit (100dvh Zero Window Scroll)
   ========================================================================== */

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

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

.mode-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

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

.mode-tab:hover {
  color: #f8fafc;
}

.mode-tab.active {
  background: var(--primary, #17324d);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab-icon {
  flex-shrink: 0;
}

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

.preset-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.preset-chip.active,
.preset-chip[aria-pressed="true"] {
  background: rgba(23, 50, 77, 0.4);
  border-color: #38bdf8;
  color: #38bdf8;
}

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

.engine-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.free-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Workflow Directional Bar */
.workflow-direction-bar {
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 20px;
  color: #cbd5e1;
  font-size: 12px;
}

.wf-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  max-width: 1720px;
  margin: 0 auto;
}

.wf-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  width: fit-content;
}

.role-badge-in {
  background: #0f172a;
  color: #94a3b8;
  border: 1px solid #334155;
}

.role-badge-out {
  background: rgba(23, 50, 77, 0.2);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

/* Pinned Dock Jump Shelf */
.dock-jump-shelf {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
  z-index: 10;
  flex-shrink: 0;
  box-sizing: border-box;
}

.dock-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--primary, #17324d);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 50, 77, 0.3);
  transition: all 0.15s ease;
  width: 100%;
}

.dock-jump-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.action-confirmation-badge,
.action-msg {
  display: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.action-confirmation-badge.msg-flash,
.action-msg.msg-flash {
  display: inline-block;
  animation: flash-fade 2.5s forwards;
}

@keyframes flash-fade {
  0% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); display: none; }
}

/* Deliverable Dock */
.deliverable-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dock-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dock-doc-type {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dock-actions button {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

/* Spotlight Pulse Animation */
.spotlight-pulse {
  animation: deliverable-spotlight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes deliverable-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6), 0 4px 12px rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.25), 0 8px 24px rgba(2, 132, 199, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0), 0 4px 12px rgba(15, 23, 42, 0.08);
  }
}

/* Cockpit Horizon Sill Footer */
.cockpit-horizon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  min-height: 28px;
  padding: 0 20px;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-sizing: border-box;
}

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

.horizon-link {
  color: #cbd5e1;
  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: 48px;
    min-height: 48px;
    padding: 0 20px;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    flex-shrink: 0;
  }

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

  .workspace {
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(500px, 1.15fr) minmax(440px, 1fr);
    gap: 24px;
    padding: 12px 0 24px 0;
    margin: 0;
  }

  .inspector-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line, #e2e8f0);
    flex-shrink: 0;
  }

  .pane-subtitle {
    font-size: 11.5px;
    color: #64748b;
  }

  .inspector-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 96px 18px;
    scroll-behavior: smooth;
  }

  .dock-jump-shelf {
    flex-shrink: 0;
    padding: 14px 18px 18px 18px;
    background: #ffffff;
    border-top: 1px solid var(--line, #e2e8f0);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
  }

  .btn-dock-jump {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 6px 16px;
    background: var(--navy, #17324d);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
  }

  .btn-dock-jump .jump-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    color: #ffffff !important;
  }

  .btn-dock-jump .jump-sub {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
    display: block;
    color: #ffffff !important;
  }

  .deliverable-zone {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    grid-column: auto !important;
  }

  .deliverable-dock {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line, #e2e8f0);
    flex-shrink: 0;
  }

  .deliverable-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 96px 18px;
    scroll-behavior: smooth;
  }

  .deliverable-sheet {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 24px;
    box-sizing: border-box;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {
  .workflow-direction-bar {
    display: none !important;
  }

  .cockpit-horizon-bar {
    display: none !important;
  }

  .page-shell {
    padding-bottom: 84px;
  }

  .mobile-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 16px;
    z-index: 999;
    box-sizing: border-box;
  }

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

  .hud-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
  }

  .hud-value {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
  }

  .hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: var(--primary, #17324d);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
  }
}



.sample-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* self-heal blue-link: a.trust-link */
a.trust-link {
  color: var(--brand, var(--primary, #38bdf8)) !important;
  text-decoration: underline;
}

a.checkout-btn,
.checkout-btn,
a.pro-link,
.pro-link,
[data-checkout] {
  background: var(--navy);
  background-color: var(--navy);
  border: 1px solid var(--navy);
  color: var(--on-primary, #ffffff);
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* accessibility-guard:2026-10-22 */
@media (max-width: 900px) {
  button,
  a.btn,
  [role="button"],
  select,
  input[type="button"],
  input[type="submit"],
  .masthead .nav-tools-link,
  a.nav-tools-link,
  .nav-tools-link,
  a.jump-tool-btn,
  .jump-tool-btn,
  .preset-chip,
  [data-preset-chip],
  .step-chip,
  .pro-link,
  a.pro-link,
  .checkout-btn,
  a.checkout-btn,
  .masthead-actions button,
  .masthead-actions a,
  .masthead-actions .btn,
  [class*="cookie"] button,
  [id*="cookie"] button,
  .header-brand,
  a.header-brand,
  .skip-link,
  .btn-remove-row,
  .icon-btn {
    min-height: 44px !important;
  }
  .btn-remove-row,
  .icon-btn {
    min-width: 44px !important;
  }
}

/* accessibility-guard: pro CTA contrast */
.pro-link, a.pro-link, a.checkout-btn:not(.modal-checkout-btn), .checkout-btn:not(.modal-checkout-btn) {
  color: #1c1917 !important;
}

.checkout-btn {
  background: #9a3412;
  background-color: #9a3412;
  border-color: #9a3412;
  color: #ffffff;
}

.pro-link {
  background: #92400e;
  background-color: #92400e;
  border-color: #92400e;
  color: #ffffff;
}

.trade-tools p,
.trade-module p,
[data-module="trade-tools"] p,
.module-description {
  color: #5c534c;
}

section p,
.section-lede,
.section-desc,
.module-lede,
.lede,
p.muted,
.text-muted,
.descriptive {
  color: #5c564f;
}

/* accessibility-guard: round2 */
@media (max-width: 900px) {
  a.btn-primary, .btn-primary, a.wordmark, .wordmark { min-height: 44px !important; }
  a.wordmark, .wordmark { min-width: 44px !important; }
}


/* accessibility-guard: muted */
.related-tools-grid p, .related-tool-card p { color: #57534e !important; }
