* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--app-frame);
  color: var(--ink);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}

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

button,
[role="button"],
[type="button"],
[type="submit"],
.preset-chip,
[data-preset-chip],
[data-action] {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 14px;
}

.mobile-sticky-header {
  display: none;
}

.wordmark {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 24px 0;
  box-sizing: border-box;
}

.site-header a,
.smart-fold-bar a {
  color: rgba(255, 255, 255, 0.78);
}

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

.jump-tool-btn,
.btn-primary,
.btn-ghost,
.btn-small,
.checkout {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  height: 46px;
  justify-content: center;
  padding: 0 20px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.jump-tool-btn:active,
.btn-primary:active,
.btn-ghost:active,
.btn-small:active {
  transform: translateY(1px) scale(0.985);
}

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

.btn-primary {
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 127, 122, 0.24);
  color: var(--on-primary);
}

.btn-primary:disabled,
.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-ghost,
.btn-small {
  background: #eef4f1;
  color: var(--ink);
}

.marketing {
  background:
    radial-gradient(circle at 78% 30%, rgba(0, 127, 122, 0.28), transparent 32%),
    linear-gradient(145deg, #16201d 0%, #20342f 58%, #0f1715 100%);
  min-height: 900px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 92px 24px 0;
}

.eyebrow {
  color: #065f46 !important;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-subhead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 16px;
}

.storage-note {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  max-width: 560px;
}

.hero-proof {
  display: grid;
  gap: 16px;
}

.proof-card,
.pricing-card,
.bento,
.deliverable-wrapper {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.proof-card,
.pricing-card {
  background: rgba(255, 255, 255, 0.88);
  padding: 20px;
}

.proof-header,
.proof-row,
.section-title-row,
.workspace-heading,
.deliverable-letterhead,
.deliverable-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.proof-header strong,
.missing-proof {
  color: var(--urgency);
}

.proof-row {
  border-top: 1px solid var(--line);
  gap: 18px;
  min-height: 54px;
}

.proof-row b {
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 5px 10px;
}

.proof-row.complete b {
  background: rgba(56, 122, 90, 0.14);
  color: var(--completion);
}

.proof-row.warning b {
  background: rgba(215, 100, 43, 0.14);
  color: var(--urgency);
}

.pricing-card h2 {
  color: var(--ink);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.billing-toggle,
.segmented {
  background: rgba(22, 32, 29, 0.08);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.billing-toggle button,
.segmented span {
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 750;
  min-height: 38px;
  padding: 9px 13px;
  white-space: nowrap;
}

.billing-toggle button {
  background: transparent;
}

.billing-toggle .is-active,
.segmented input:checked + span {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 32, 29, 0.12);
}

.price-line {
  align-items: baseline;
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.price-line strong {
  font-size: 1.7rem;
}

.smart-fold-bar {
  align-items: center;
  background: rgba(22, 32, 29, 0.96);
  display: none;
  height: 44px;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.save-pill {
  background: #d1fae5;
  border: 1px solid #10b981;
  border-radius: 999px;
  color: #065f46;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 760;
  padding: 7px 11px;
  white-space: nowrap;
}

body.is-returning .smart-fold-bar {
  display: flex;
}

body.is-returning .marketing {
  display: none;
}

body.is-returning .page-shell {
  padding-top: 0;
}

.page-shell {
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.04), rgba(247, 244, 236, 0.12)),
    var(--app-frame);
  max-width: 100%;
  overflow-x: hidden;
  padding: 42px 20px 56px;
}

.workspace {
  background: rgba(247, 244, 236, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  margin: 0 auto;
  max-width: 1220px;
  min-width: 0;
  overflow-x: hidden;
  padding: 16px;
}

.workflow-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.workspace-heading h2 {
  color: var(--ink, #0f172a);
  margin-bottom: 4px;
}
.workspace-heading .eyebrow {
  color: #065f46;
  font-weight: 800;
  margin-bottom: 4px;
}

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

.preset-row button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  min-height: 42px;
  padding: 9px 13px;
}

.bento,
.deliverable-wrapper {
  background: var(--glass);
  padding: 18px;
}

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

label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 760;
  gap: 6px;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 32, 29, 0.16);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.segmented-block[data-invalid="true"] .segmented {
  border-color: var(--urgency);
  box-shadow: 0 0 0 3px rgba(215, 100, 43, 0.18);
}

textarea {
  resize: vertical;
}

.segmented-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.segmented-block > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.segmented {
  flex-wrap: wrap;
}

.segmented input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.area-list {
  display: grid;
  gap: 10px;
}

.area-row {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(22, 32, 29, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 0.7fr 1.2fr 0.78fr;
  padding: 12px;
}

.file-field input {
  padding-top: 9px;
}

.photo-count {
  color: var(--warning);
  font-size: 0.75rem;
}

.missing-proof {
  background: rgba(215, 100, 43, 0.12);
  border: 1px solid rgba(215, 100, 43, 0.26);
  border-radius: 8px;
  font-weight: 760;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.notes-bento {
  display: grid;
  gap: 12px;
}

.readiness-panel {
  background: rgba(22, 32, 29, 0.08);
  border-radius: 8px;
  padding: 14px;
}

.readiness-panel p {
  color: var(--muted);
  margin-bottom: 12px;
}

.essentials-progress {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(22, 32, 29, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.progress-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.progress-head span {
  color: var(--ink);
  display: block;
  font-weight: 800;
}

.progress-head small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
}

.progress-head strong {
  color: var(--primary);
  font-size: 0.84rem;
  white-space: nowrap;
}

.progress-track {
  background: rgba(22, 32, 29, 0.12);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-track span {
  background: var(--primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0%;
}

.progress-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.progress-list li {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 8px;
  grid-template-columns: 14px 1fr;
  min-width: 0;
}

.progress-list li > span {
  background: rgba(22, 32, 29, 0.16);
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

.progress-list li[data-complete="true"] > span {
  background: var(--completion);
  box-shadow: 0 0 0 4px rgba(56, 122, 90, 0.14);
}

.progress-list strong,
.progress-list small {
  display: block;
}

.progress-list strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.progress-list small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.validation-summary {
  background: rgba(215, 100, 43, 0.12);
  border: 1px solid rgba(215, 100, 43, 0.28);
  border-radius: 8px;
  color: #7b3519;
  font-weight: 760;
  line-height: 1.45;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.validation-summary strong {
  color: #652a13;
  display: block;
  margin-bottom: 4px;
}

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

.field-error {
  color: var(--urgency);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}

.deliverable-wrapper {
  align-self: start;
  display: grid;
  gap: 14px;
  position: relative;
}

[data-deliverable="sheet"] {
  background: var(--paper);
  border-radius: 8px;
  padding: 18px;
}

#executive-deliverable {
  background: var(--paper);
  color: #1c2421;
  min-height: 760px;
}

.deliverable-letterhead {
  border-bottom: 2px solid rgba(22, 32, 29, 0.22);
  gap: 18px;
  padding-bottom: 14px;
}

.deliverable-letterhead > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
}

.deliverable-logo {
  background: var(--primary);
  border-radius: 6px;
  display: inline-block;
  height: 34px;
  width: 34px;
}

.deliverable-logo.has-image {
  background-position: center;
  background-size: cover;
}

.meta {
  color: var(--muted);
  display: grid;
  font-size: 0.75rem;
  gap: 3px;
  text-align: right;
}

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

.preview-status {
  align-self: end;
  background: rgba(0, 127, 122, 0.12);
  border: 1px solid rgba(0, 127, 122, 0.22);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-weight: 800;
  justify-self: end;
  padding: 4px 8px;
  white-space: nowrap;
}

.packet-label {
  color: var(--primary);
  font-weight: 800;
  margin: 20px 0 8px;
}

.preview-copy {
  background: rgba(0, 127, 122, 0.08);
  border-left: 3px solid var(--primary);
  color: #334d40;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.45;
  margin-bottom: 12px;
  padding: 8px 10px;
}

.compiled-banner {
  align-items: center;
  background: rgba(56, 122, 90, 0.13);
  border: 1px solid rgba(56, 122, 90, 0.28);
  border-radius: 8px;
  color: var(--completion);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 12px;
}

.compiled-banner strong {
  color: var(--completion);
}

.compiled-banner span {
  color: #334d40;
  font-size: 0.82rem;
  font-weight: 760;
  text-align: right;
}

#executive-deliverable h2 {
  color: var(--ink);
  font-size: 2rem;
  margin-bottom: 8px;
}

#executive-deliverable h3 {
  margin-top: 18px;
}

.report-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.report-grid div,
.report-zones .zone-card,
.report-notes,
.report-readiness {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 32, 29, 0.13);
  border-radius: 8px;
  padding: 10px;
}

.report-grid span,
.zone-card span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.report-zones {
  display: grid;
  gap: 8px;
}

#executive-deliverable footer {
  border-top: 1px solid rgba(22, 32, 29, 0.18);
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 12px;
}

body.is-pro .free-watermark {
  display: none;
}

dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 440px;
  padding: 0;
}

dialog form {
  padding: 22px;
}

@media (max-width: 840px) {
  .mobile-sticky-header {
    background: rgba(22, 32, 29, 0.94);
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    padding-top: 16px;
  }

  .site-header .jump-tool-btn {
    display: none;
  }

  .marketing {
    min-height: auto;
  }

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

  .hero-grid {
    padding-top: 48px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .field-grid,
  .area-row,
  .progress-list,
  .report-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-heading,
  .section-title-row,
  .deliverable-actions,
  .compiled-banner,
  #executive-deliverable footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .compiled-banner span {
    text-align: left;
  }

  .deliverable-wrapper {
    position: static;
  }
}

@page {
  margin: 10mm;
}

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

  article,
  section,
  .report-grid,
  .zone-card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  header,
  nav,
  footer,
  form,
  button,
  [data-layer="marketing"],
  [data-action="print-deliverable"],
  .deliverable-actions {
    display: none !important;
  }

  [data-deliverable="sheet"],
  #executive-deliverable {
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.hero-copy .eyebrow {
  color: #fbbf24 !important;
}
.pricing-card .eyebrow, .proof-header strong, .missing-proof {
  color: #9a3412 !important;
}

/* ==========================================================================
   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, #007f7a);
  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(0, 127, 122, 0.25);
  border-color: var(--primary, #007f7a);
  color: #5eead4;
}

.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(0, 127, 122, 0.15);
  color: #0f766e;
  border: 1px solid rgba(0, 127, 122, 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, #007f7a);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 127, 122, 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;
}

.dock-doc-type {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

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

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

/* 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(0, 127, 122, 0.6), 0 4px 12px rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 127, 122, 0.25), 0 8px 24px rgba(0, 127, 122, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 127, 122, 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;
}

/* Universal Inspector Pane Styling (Crisp white canvas on all viewports) */
.inspector-pane {
  background: #ffffff !important;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
}

/* 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);
    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;
  }

  .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: 6px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line, #e2e8f0);
    flex-shrink: 0;
  }

  .deliverable-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 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, #007f7a);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
  }
}


a.nav-tools-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .nav-tools-link,
  a.nav-tools-link {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
  }
}

