/* Automotive Service Intake & Follow-Up - Hardened Agency-Grade Stylesheet */
:root {
  color-scheme: light;
  --canvas: #f6f4ef;
  --shell: #1f252b;
  --text: #1f252b;
  --surface: rgba(255, 255, 255, 0.95);
  --card: #ffffff;
  --muted: #66706f;
  --line: #d8d1c6;
  --orange: #c2410c;
  --orange-legacy: #e87524;
  --orange-hover: #9a3412;
  --steel: #2e6480;
  --green: #2f7d57;
  --red: #b54734;
  --yellow: #b8820a;
  --shadow: 0 18px 46px rgba(31, 37, 43, 0.1);
  --soft-shadow: 0 10px 28px rgba(31, 37, 43, 0.08);
  font-family: Barlow, Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  background: var(--canvas);
  color: var(--text);
  font-family: Barlow, Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

/* ==========================================================================
   1. VISUAL ERGONOMICS & INTERACTION POLISH
   ========================================================================== */

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

/* Mandatory cursor: pointer across all interactive and clickable components */
button,
[role="button"],
.preset-chip,
[data-preset-chip],
.channel-tab,
.pricing-option,
[data-action],
[data-checkout="pro"],
.table-action-row,
.clickable-card,
.marketing-toggle-btn,
.mobile-jump-action,
.toggle-whitelabel-btn,
.print-deliverable-btn,
.export-csv-btn,
.action-btn-sm {
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              border-color 0.15s ease;
}

button:disabled {
  cursor: not-allowed !important;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none !important;
}

/* Hover elevations for primary and interactive buttons */
button:not(:disabled):hover,
[role="button"]:hover,
.preset-chip:hover,
[data-checkout="pro"]:hover,
[data-action]:hover {
  transform: translateY(-1px);
}

/* Tactile physics across all buttons */
button:not(:disabled):active,
[role="button"]:active,
.preset-chip:active,
[data-checkout="pro"]:active,
[data-action]:active,
.start-button:active,
.primary-pill:active,
.primary-action:active,
.print-button:active,
.print-deliverable-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  transition: transform 0.05s ease !important;
}

/* Table action rows interactive state */
.table-action-row {
  transition: background-color 0.12s ease;
}
.table-action-row:hover {
  background-color: rgba(232, 117, 36, 0.04);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.site-header .wordmark,
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header .pro-link,
.site-header a.pro-link {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.site-header .pro-link:hover {
  opacity: 0.92;
}

.wordmark-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
  color: #ffffff;
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 14px;
}

.site-nav a:not(.pro-link):not(.jump-tool-btn) {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.text-link {
  color: var(--shell);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--orange);
}

.start-button,
.primary-pill,
.primary-action,
.print-button,
.print-deliverable-btn,
.mobile-jump-action {
  height: 48px;
  max-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 800;
  padding: 0 24px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232, 117, 36, 0.28);
}

.start-button:hover,
.primary-pill:hover,
.primary-action:not(:disabled):hover,
.print-button:hover,
.print-deliverable-btn:hover,
.mobile-jump-action:hover {
  background: var(--orange-hover);
  box-shadow: 0 6px 18px rgba(232, 117, 36, 0.36);
}

.secondary-pill {
  height: 48px;
  max-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--shell);
  font-weight: 800;
  padding: 0 22px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.secondary-pill:hover {
  border-color: var(--shell);
  background: #fbfaf7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. LAYER 1: MARKETING & PRO MONETIZATION
   ========================================================================== */

[data-layer="marketing"] {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 36px;
  align-items: start;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  overflow: visible;
}

[data-layer="marketing"].collapsed {
  display: none !important;
}

.hero-copy {
  padding-top: 20px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(38px, 5.5vw, 60px);
  color: var(--shell);
}

.hero-subhead {
  max-width: 650px;
  margin: 18px 0 0;
  color: #3b4548;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-tagline {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-guarantee {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.proof-card,
.intake-card,
.rail-card {
  border: 1px solid rgba(216, 209, 198, 0.9);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.proof-card-header,
.pricing-header,
.workspace-toolbar,
.toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stage-pill,
.draft-badge,
.badge-pro {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.stage-pill {
  background: #f7e5d8;
  color: #7c2d12;
}

.draft-badge {
  background: #e6eff3;
  color: var(--steel);
}

.badge-pro {
  background: #f0e6ff;
  color: #6333cc;
  border: 1px solid #d5c2fc;
}

.proof-card h2,
.pricing-card h2 {
  margin-top: 14px;
  font-size: 30px;
}

.pricing-card h2 span {
  color: var(--muted);
  font-size: 18px;
}


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

.proof-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfaf7;
}

dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  font-size: 15px;
}

.channel-tabs,
.pricing-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #f2eee7;
}

.pricing-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.channel-tab,
.pricing-option {
  min-height: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.channel-tab.active,
.pricing-option.active {
  background: var(--shell);
  color: #ffffff;
}

.follow-up-preview,
.pricing-card p {
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* Tier Comparison in Pro Card */
.tier-features-comparison {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tier-box {
  background: #f8f6f0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.tier-box.pro-tier {
  background: #fcfaff;
  border-color: #d8cafc;
}

.tier-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.tier-box.pro-tier .tier-name {
  color: #6333cc;
}

.tier-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #4a5457;
  display: grid;
  gap: 6px;
  line-height: 1.35;
}

.pro-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  margin-top: 12px;
  padding: 10px 14px;
  background: #6333cc;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(99, 51, 204, 0.25);
}

.pro-checkout-btn:hover {
  background: #5025aa;
  box-shadow: 0 6px 16px rgba(99, 51, 204, 0.35);
}

/* ==========================================================================
   3. LAYER 2: UTILITY WORKSPACE & SMART FOLD
   ========================================================================== */

[data-layer="utility"] {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 60px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(31, 37, 43, 0.95);
  box-shadow: 0 24px 60px rgba(31, 37, 43, 0.25);
  backdrop-filter: blur(12px);
}

.marketing-toggle-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.marketing-toggle-btn {
  background: #242c34;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #ffffff;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
}

.marketing-toggle-btn:hover {
  background: #2f3943;
}

.workspace-toolbar {
  min-height: 64px;
  padding: 4px 6px 16px;
  color: #ffffff;
}

.workspace-toolbar .panel-kicker {
  color: #d7dfdc;
  text-transform: none; /* Preserves exact text match for test assertion */
}

.toolbar-status .local-status {
  color: #d7dfdc;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.save-copy-group {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 2px;
}

.device-saved-note {
  color: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.workspace-toolbar h2 {
  margin-top: 4px;
  font-size: 28px;
  color: #ffffff !important;
}

.reset-button,
.keep-button,
.clear-button {
  min-height: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.reset-button,
.keep-button {
  background: transparent;
}

.clear-button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--red);
}

.reset-confirmation {
  min-height: 54px;
  margin-bottom: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.reset-confirmation[hidden] {
  display: none;
}

/* ==========================================================================
   4. CONTEXTUAL ASE PRESETS
   ========================================================================== */

.presets-container {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.presets-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.presets-icon {
  font-size: 18px;
}

.presets-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.presets-desc {
  color: #b7c3c0;
  font-size: 12px;
  margin-left: 6px;
}

.presets-chip-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: #ffffff;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.preset-chip:hover {
  background: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(232, 117, 36, 0.22);
}

.chip-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange);
  background: #fdf2e9;
  border-radius: 4px;
  padding: 2px 6px;
}

.chip-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #273038;
  word-break: break-word;
}

/* ==========================================================================
   5. INTAKE FORM & SIDEBAR
   ========================================================================== */

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}

.intake-card {
  grid-column: span 7;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.right-rail {
  grid-column: span 5;
  display: grid;
  gap: 16px;
}

.rail-card {
  padding: 20px;
}

.card-heading {
  display: grid;
  gap: 4px;
}

.card-heading h3,
.rail-card h3 {
  font-size: 22px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

legend {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.field strong {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9c2b5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(232, 117, 36, 0.22);
  border-color: var(--orange);
}

[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(181, 71, 52, 0.13);
}

.field-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.field-error[hidden],
.validation-summary[hidden] {
  display: none;
}

.completeness-strip,
.validation-summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.completeness-strip {
  border: 1px solid #edcaa6;
  background: #fff2e8;
  color: #71390e;
  flex-wrap: wrap;
}

.completeness-count {
  color: var(--shell);
  font-weight: 800;
  white-space: nowrap;
}

.completeness-detail {
  min-width: 220px;
  flex: 1 1 360px;
}

.completeness-strip.complete {
  border-color: #a9cab9;
  background: #e7f3ed;
  color: var(--green);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--orange);
}

.completeness-strip.complete .status-dot {
  background: var(--green);
}

.validation-summary {
  border: 1px solid rgba(181, 71, 52, 0.38);
  background: #fff0ed;
  color: var(--red);
  font-weight: 800;
}

.primary-action {
  width: 100%;
}

.primary-action:disabled {
  background: #cbd5e1;
  color: #475569;
  box-shadow: none;
}

.timeline,
.compact-checklist,
.inspection-checklist {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.timeline li,
.compact-checklist li,
.inspection-checklist li {
  line-height: 1.45;
}

.timeline li::marker,
.inspection-checklist li::marker {
  color: var(--orange);
  font-weight: 800;
}

.timeline .complete {
  color: var(--green);
  font-weight: 800;
}

/* Pro quick action buttons */
.quick-action-buttons {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.action-btn-sm {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secondary-action {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.action-btn-sm:hover,
.secondary-action:hover {
  background: #f7f5f0;
  border-color: var(--shell);
}

.action-btn-sm.pro-btn-sm {
  background: #f4eeff;
  border-color: #d1bdfc;
  color: #5c24c7;
}

.action-btn-sm.pro-btn-sm:hover {
  background: #ebdfff;
}

/* ==========================================================================
   6. EXECUTIVE SHOP WORK ORDER DELIVERABLE (#executive-deliverable)
   ========================================================================== */

.deliverable-sheet {
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid #d8d1c6;
  color: #1f252b;
}

.deliverable-actions-bar {
  background: #252c34;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.deliverable-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-doc-badge {
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.edition-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #aed9f4;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.deliverable-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.print-deliverable-btn,
.export-csv-btn,
.copy-summary-btn,
.toggle-whitelabel-btn {
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.copy-summary-btn,
.export-csv-btn,
.toggle-whitelabel-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.copy-summary-btn:hover,
.export-csv-btn:hover,
.toggle-whitelabel-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.work-order-paper {
  padding: 32px;
  display: grid;
  gap: 24px;
  background: #ffffff;
}

/* Shop Brand Header */
.shop-brand-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--shell);
  padding-bottom: 18px;
}

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

.shop-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--shell);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
}

.shop-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--shell);
  margin: 0;
  outline: none;
}

.shop-name:hover {
  background: #fdf7ee;
  border-radius: 4px;
}

.shop-meta-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.shop-order-meta {
  text-align: right;
  display: grid;
  gap: 4px;
}

.order-number-row,
.order-date-row {
  font-size: 13px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.meta-label {
  color: var(--muted);
  font-weight: 700;
  margin-right: 6px;
}

.meta-val {
  font-weight: 800;
}

.order-status-badge {
  display: inline-block;
  justify-self: end;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Deliverable Metadata Grid */
.deliverable-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.meta-cell {
  display: grid;
  gap: 3px;
}

.meta-cell dt {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}

.meta-cell dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--shell);
}

.meta-cell.highlight-cell dd {
  color: var(--orange);
}

/* Inspection Table */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title-bar h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--shell);
  letter-spacing: 0.5px;
}

.inspection-legend {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
}

.inspection-table,
.itemized-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.inspection-table th,
.itemized-table th {
  background: #f1ede5;
  color: var(--shell);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.inspection-table td,
.itemized-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: #2b3336;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-indicator.green {
  background: #e7f3ed;
  color: #1e7048;
  border: 1px solid #a9cab9;
}

.status-indicator.yellow {
  background: #fff6e5;
  color: #9a6500;
  border: 1px solid #f0cf85;
}

.status-indicator.red {
  background: #fdf0ed;
  color: #b54734;
  border: 1px solid #f2bbb3;
}

/* Tabular Figures for Financial Tables and Metric Numbers */
.itemized-table,
.itemized-table th,
.itemized-table td,
.itemized-table tfoot td,
.proof-meta dd,
.tech-rate-tag,
.highlight-cell dd,
[data-result="estimateTotal"],
.deliverable-meta-grid dd,
.pricing-header,
#pricing-title,
.order-number-row .meta-val,
.order-date-row .meta-val,
.completeness-count,
.tabular-nums,
[data-tabular-nums],
.metric-number,
.stat-value,
.financial-figure,
table td.numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Itemized Table */
.tech-rate-tag {
  background: #f4f0e8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--steel);
}

.itemized-table tfoot td {
  background: #fbfaf7;
  font-weight: 700;
}

.foot-label {
  text-align: right;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.grand-total-row td {
  background: #fdf3eb !important;
  color: var(--orange) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  border-top: 2px solid var(--orange) !important;
}

/* Diagnostic Triage & Summary */
.diagnostic-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.triage-block {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.triage-block h3 {
  color: var(--steel);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.triage-block p {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.action-block {
  border-left: 4px solid var(--orange);
}

.message-draft {
  background: #f9fbfb;
  border-left: 4px solid var(--steel);
}

.checklist-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.checklist-box h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--steel);
}

/* Watermark & ASE Stamp */
.whitelabel-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.watermark-footer {
  color: #8c9695;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.watermark-text {
  display: inline-block;
  padding: 4px 8px;
  background: #f2eee7;
  border-radius: 4px;
}

.ase-stamp-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #234b75;
  border-radius: 8px;
  padding: 6px 12px;
  background: #f0f6fc;
}

.ase-badge-logo {
  font-weight: 900;
  font-size: 16px;
  color: #234b75;
}

.ase-badge-copy {
  display: grid;
  font-size: 11px;
  color: #17385c;
  line-height: 1.25;
}

/* Dual Formal Signatures (.doc-signatures) */
.doc-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.signature-block {
  display: grid;
  gap: 4px;
}

.signature-line {
  border-bottom: 1.5px solid var(--shell);
  height: 38px;
  margin-bottom: 4px;
}

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

.field-signature-pad {
  width: 100%;
  height: 80px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px dashed var(--line);
  border-bottom: 2px solid var(--shell);
  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: var(--muted);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: underline;
}

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

.sig-hint {
  font-size: 10px;
  color: var(--muted);
  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-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--shell);
}

.sig-meta {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.generated-stamp {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.submitted-result-panel {
  margin: 0 32px 32px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #a9cab9;
  border-radius: 8px;
  background: #e7f3ed;
  color: var(--shell);
}

.submitted-result-panel[hidden] {
  display: none !important;
}

.submitted-result-panel h3 {
  margin-top: 4px;
  font-size: 18px;
}

.submitted-result-panel p:last-child {
  margin: 6px 0 0;
  color: #31594a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.submitted-result-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.submitted-result-grid section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(49, 89, 74, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.submitted-result-grid section:last-child {
  grid-column: 1 / -1;
}

.submitted-result-grid h4 {
  margin: 0 0 6px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.submitted-result-grid p,
.submitted-result-grid ul {
  margin: 0;
  color: var(--shell);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.submitted-result-grid ul {
  padding-left: 18px;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  display: none;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    position: static;
    min-height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  [data-layer="marketing"] {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    font-size: 34px;
  }

  [data-layer="utility"] {
    margin-top: 20px;
    padding: 14px;
  }

  .presets-chip-group {
    grid-template-columns: 1fr;
  }

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

  .toolbar-status,
  .reset-confirmation {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .intake-card,
  .right-rail {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
  }

  .field-grid,
  .proof-meta,
  .tier-features-comparison,
  .deliverable-meta-grid,
  .diagnostic-summary-grid,
  .doc-signatures {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .shop-brand-header {
    flex-direction: column;
  }

  .shop-order-meta {
    text-align: left;
    justify-self: start;
  }

  .order-status-badge {
    justify-self: start;
  }

  .work-order-paper {
    padding: 16px;
  }

  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 99;
  }

  .mobile-jump-action {
    width: 100%;
    height: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 640px) {
  .submitted-result-panel {
    margin-inline: 16px;
    flex-direction: column;
  }

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

/* Touch Target & Interactivity Floors (Apple HIG 44x44pt) */
.jump-tool-btn,
a.jump-tool-btn,
.mobile-sticky-action a.jump-tool-btn,
.related-tools-grid a {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   8. PRINT ENGINE: ISOLATE EXECUTIVE DELIVERABLE
   ========================================================================== */

@media print {
  @page {
    margin: 0.35in;
    size: letter portrait;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font: 10pt/1.3 Barlow, Arial, sans-serif !important;
  }

  /* Isolate executive deliverable: hide everything else */
  .site-header,
  [data-layer="marketing"],
  .hero-section,
  .marketing-toggle-bar,
  .workspace-toolbar,
  .reset-confirmation,
  .presets-container,
  #intake-form,
  .right-rail,
  .deliverable-actions-bar,
  .mobile-sticky-bar,
  .no-print,
  button,
  .print-button,
  .print-deliverable-btn,
  .export-csv-btn,
  .toggle-whitelabel-btn,
  .header-cta-group {
    display: none !important;
  }

  [data-layer="utility"],
  .workspace-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  #executive-deliverable {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }

  .work-order-paper {
    padding: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
  }

  .deliverable-meta-grid {
    background: #ffffff !important;
    border: 1px solid #999999 !important;
  }

  .inspection-table th,
  .itemized-table th {
    background: #eeeeee !important;
    color: #000000 !important;
  }

  .inspection-table td,
  .itemized-table td {
    border: 1px solid #999999 !important;
    color: #000000 !important;
  }

  .status-indicator,
  .status-indicator.green,
  .status-indicator.yellow,
  .status-indicator.red {
    border: 1px solid #666666 !important;
  }

  .doc-signatures,
  .whitelabel-section,
  .estimate-itemized-section,
  .inspection-section {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}
