:root {
  /* Precision CAD Workbench — Deep Teal-Slate & Restrained Warm Amber */
  --bg: #F3F6F6;
  --bg-subtle: #FAFBFB;
  --surface: #FFFFFF;
  --control-bg: #EEF2F3;
  --control-hover: #E4ECEE;
  --border: rgba(15, 23, 42, 0.07);
  --border-card: rgba(15, 76, 92, 0.09);
  --border-strong: rgba(15, 76, 92, 0.18);
  --ink: #0F172A;
  --ink-hover: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --accent: #0F4C5C;
  --accent-hover: #134E4A;
  --accent-soft: #E6F2F3;
  --teal: #134E4A;
  --teal-soft: #E6F2F3;
  --teal-border: rgba(15, 76, 92, 0.22);
  --danger: #B91C1C;

  /* Restrained Warm Amber & Architectural Ledger Tokens */
  --amber-accent: #D97706;
  --amber-bg: #FEF7EC;
  --amber-border: rgba(217, 119, 6, 0.28);
  --amber-ink: #92400E;
  --seg-material: #0F4C5C;
  --seg-purge: #D97706;
  --seg-machine: #134E4A;
  --seg-labor: #334155;
  --seg-fees: #92400E;

  --accent-border: rgba(15, 76, 92, 0.18);
  --danger-soft: rgba(185, 28, 28, 0.07);
  --danger-border: rgba(185, 28, 28, 0.22);
  --overlay: rgba(15, 23, 42, 0.44);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 76, 92, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.03), 0 12px 32px rgba(15, 76, 92, 0.07);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.pqc-modal-open {
  overflow: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 92, 0.30);
  text-underline-offset: 3px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pqc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--surface);
  padding: 10px 16px;
  text-decoration: none;
  z-index: 2000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------
   Header (Frosted Precision Bar + Currency Switcher + Teal-Slate Auth)
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 54px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  justify-self: start;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 140ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}

.header-currency-select {
  height: 36px;
  padding: 0 28px 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: var(--control-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.header-currency-select:hover {
  background-color: var(--control-hover);
}

.header-currency-select:focus {
  background-color: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
  outline: none;
}

.header-account-wrap {
  position: relative;
}

.header-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.header-auth-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.header-auth-btn .account-avatar {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.account-avatar-lg {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 200;
}

.account-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.account-menu-identity {
  min-width: 0;
}

.account-menu-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-email {
  font-size: 12px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-tier-row {
  margin-bottom: 10px;
}

.account-tier-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--ink-secondary);
}

.account-tier-pill.is-pro {
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}

.account-menu-section {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 13px;
}

.account-entitlement-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.account-perk-row {
  font-size: 12.5px;
  color: var(--ink-secondary);
  padding: 2px 0;
}

.account-upgrade-link {
  display: block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.account-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.account-menu-item:hover {
  background: var(--control-bg);
  color: var(--ink);
}

.account-menu-item.is-danger-subtle {
  color: var(--danger);
}

.account-delete-confirm {
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
}

.account-delete-warn {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--ink);
}

.account-delete-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.account-btn-cancel,
.account-btn-danger {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.account-btn-cancel {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.account-btn-danger {
  border: none;
  background: var(--danger);
  color: var(--surface);
}

.account-feedback {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 6px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--ink);
}

.mobile-nav-drawer {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 18px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  padding: 10px 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.mobile-account-section {
  margin-top: 12px;
  padding-top: 10px;
}

.mobile-account-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.mobile-account-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* Checkout banner */
.checkout-global-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 13.5px;
}

.checkout-global-banner.is-success {
  background: var(--teal-soft);
  border-bottom-color: var(--teal-border);
}

.checkout-global-banner.is-error {
  background: var(--danger-soft);
  border-bottom-color: var(--danger-border);
}

.checkout-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.checkout-banner-close,
.pqc-modal-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-secondary);
  flex-shrink: 0;
  z-index: 0;
  transition: color 140ms ease;
}

.checkout-banner-close::before,
.pqc-modal-close::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 9999px;
  background: var(--control-bg);
  transition: background-color 140ms ease;
  z-index: -1;
}

.checkout-banner-close:hover,
.pqc-modal-close:hover {
  color: var(--ink);
}

.checkout-banner-close:hover::before,
.pqc-modal-close:hover::before {
  background: var(--control-hover);
}

.checkout-banner-close svg,
.pqc-modal-close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Buttons (Deep Teal-Slate Primary + Recessed Surface Secondary)
   ------------------------------------------------------------------ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(15, 76, 92, 0.16), 0 4px 12px rgba(15, 76, 92, 0.14);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  text-decoration: none;
}

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

.btn-secondary {
  background: var(--control-bg);
  color: var(--ink);
  border: 1px solid rgba(15, 76, 92, 0.11);
}

.btn-secondary:hover {
  background: var(--control-hover);
  border-color: rgba(15, 76, 92, 0.20);
  color: var(--ink);
  text-decoration: none;
}

.btn-sm {
  height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------------
   Section Bands & Left-Aligned Precision Workbench Header
   ------------------------------------------------------------------ */
.band {
  padding: 64px 0;
}

.band-canvas {
  background: var(--bg);
}

.band-white {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-band {
  padding: 14px 0 36px;
}

.hero-head {
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  max-width: none;
  margin: 0 0 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.hero-lead {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------
   Calculator Workbench (58% CAD Console : 42% Live Quote Sheet)
   ------------------------------------------------------------------ */
.pqc-workbench {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.pqc-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pqc-inputs-card {
  gap: 15px;
}

.pqc-quote-card {
  gap: 8px;
  border-top: 3px solid var(--accent);
}

@media (min-width: 861px) {
  .pqc-workbench:has(#pqc-shop-drawer:not([hidden])),
  .pqc-workbench:has([data-pqc-filaments-panel]:not([hidden])) {
    align-items: start;
  }

  .pqc-workbench:has(#pqc-shop-drawer:not([hidden])) .pqc-quote-card,
  .pqc-workbench:has([data-pqc-filaments-panel]:not([hidden])) .pqc-quote-card {
    position: sticky;
    top: 74px;
  }
}

/* Segmented Control (Recessed Track + Deep Teal-Slate Active Pill) */
.pqc-seg-group {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 3px;
  border-radius: 10px;
  background: var(--control-bg);
  border: 0;
  gap: 2px;
  flex-shrink: 0;
}

.pqc-seg-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.pqc-seg-btn:hover {
  color: var(--ink);
}

.pqc-seg-btn.is-active {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 76, 92, 0.22);
}

/* Left Top Row: FDM | Resin + Printer Profile */
.pqc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pqc-printer-select {
  height: 36px;
  max-width: 220px;
  flex: 1;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background-color: var(--control-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.pqc-printer-select:hover {
  background-color: var(--control-hover);
}

.pqc-printer-select:focus {
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
  outline: none;
}

/* Dropzone Bar */
.pqc-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px 6px 12px;
  border-radius: 12px;
  border: 1.5px dashed rgba(15, 76, 92, 0.22);
  background: var(--bg-subtle);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.pqc-dropzone:hover,
.pqc-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pqc-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
}

.pqc-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.pqc-drop-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sample {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: #FFFFFF;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.btn-sample:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Interactive 94px 3D Wireframe Preview */
.pqc-preview-box {
  position: relative;
  height: 94px;
  border-radius: 12px;
  border: 1px solid rgba(15, 76, 92, 0.12);
  background: var(--bg);
  overflow: hidden;
}

.pqc-wireframe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.pqc-wireframe-canvas:active {
  cursor: grabbing;
}

.pqc-preview-top-left {
  position: absolute;
  top: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.pqc-preview-top-right {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.pqc-preview-bottom-left {
  position: absolute;
  bottom: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.pqc-preview-bottom-right {
  position: absolute;
  bottom: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.pqc-preview-box.is-metadata-only {
  height: auto;
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-subtle);
}

.pqc-preview-box.is-metadata-only .pqc-wireframe-canvas {
  display: none;
}

.pqc-preview-box.is-metadata-only .pqc-preview-top-left,
.pqc-preview-box.is-metadata-only .pqc-preview-top-right,
.pqc-preview-box.is-metadata-only .pqc-preview-bottom-left,
.pqc-preview-box.is-metadata-only .pqc-preview-bottom-right {
  position: static;
}

.pqc-preview-box.is-metadata-only .pqc-preview-top-right {
  flex: 1 1 auto;
}

.pqc-inputs-card:has([data-pqc-filaments-panel]:not([hidden])) .pqc-label-row [data-pqc-add-filament] {
  display: none;
}

.pricing-band {
  padding-top: 28px;
}

.pqc-overlay-select {
  height: 26px;
  padding: 0 28px 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  background-color: rgba(255, 255, 255, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pqc-bbox-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 76, 92, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pqc-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.pqc-preview-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #FFFFFF;
}

.pqc-inches-alert {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 700;
}

.pqc-inches-alert:hover {
  border-color: var(--amber-accent);
}

.pqc-error-msg {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Core 4 Inputs + Purge/Plate Row (Borderless Soft-Filled Controls) */
.pqc-core-grid,
.pqc-purge-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.pqc-purge-row.is-resin .pqc-purge-field {
  opacity: 0.45;
  pointer-events: none;
}

.pqc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pqc-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.2;
}

.pqc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.2;
}

.pqc-add-fil-btn {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pqc-add-fil-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.pqc-control {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background-color: var(--control-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

select.pqc-control {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.pqc-control:hover {
  background-color: var(--control-hover);
}

.pqc-control:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

.pqc-control.is-locked-preview {
  background-color: var(--control-bg);
  color: var(--ink-secondary);
}

.pqc-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pqc-unit-wrap::after {
  content: attr(data-unit);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  pointer-events: none;
}

.pqc-control-unit {
  padding-right: 28px;
}

.pqc-control-unit-wide {
  padding-right: 46px;
}

.pqc-time-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Multi-Filament Spools Panel */
.pqc-filaments-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
}

.pqc-filaments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.pqc-filaments-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pqc-filaments-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pqc-fil-action-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.pqc-fil-action-btn.is-muted {
  color: var(--ink-muted);
}

.pqc-fil-action-btn:hover {
  color: var(--ink);
  text-decoration: underline;
}

.pqc-fil-col-head {
  display: grid;
  grid-template-columns: minmax(86px, 1.15fr) repeat(3, minmax(0, 1fr)) 28px;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pqc-filaments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pqc-filament-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pqc-fil-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(86px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pqc-fil-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pqc-fil-sub {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.15;
}

.pqc-fil-control {
  height: 34px;
  font-size: 13px;
}

.pqc-fil-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink-secondary);
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease;
}

.pqc-fil-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* Fill-the-Plate Amortization Strip */
.pqc-amortize-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pqc-amortize-text {
  min-width: 0;
  line-height: 1.3;
}

.pqc-amortize-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--amber-border);
  background: var(--surface);
  color: var(--amber-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pqc-amortize-btn:hover {
  border-color: var(--amber-accent);
}

/* Left Footer Controls Bar (40px height, flush bottom) */
.pqc-left-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px;
}

.pqc-drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 76, 92, 0.11);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.pqc-drawer-toggle:hover {
  background: var(--control-hover);
  border-color: rgba(15, 76, 92, 0.20);
}

.pqc-chevron {
  transition: transform 160ms ease;
}

.pqc-drawer-toggle.is-open .pqc-chevron {
  transform: rotate(90deg);
}

.pqc-add-part-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 92, 0.11);
  background: var(--control-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.pqc-add-part-btn:hover {
  background: var(--control-hover);
  border-color: rgba(15, 76, 92, 0.20);
}

/* Collapsed Shop & Labor Drawer */
.pqc-shop-drawer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pqc-presets-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pqc-preset-group,
.pqc-preset-pro-actions,
.pqc-custom-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pqc-preset-btn,
.pqc-mini-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 92, 0.11);
  background: var(--control-bg);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.pqc-preset-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.pqc-mini-btn:hover,
.pqc-preset-btn:hover:not(.is-active) {
  background: var(--control-hover);
  color: var(--ink);
}

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

/* ------------------------------------------------------------------
   Right Column (42%): Architectural "Live Quote Sheet"
   ------------------------------------------------------------------ */
.pqc-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-height: 36px;
}

.pqc-channel-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.pqc-offsite-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.pqc-offsite-label input[type="checkbox"] {
  accent-color: var(--accent);
  margin: 0;
}

.pqc-offsite-label[hidden] {
  display: none;
}

.pqc-landed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--control-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.pqc-landed-pill strong {
  color: var(--ink);
  font-weight: 700;
}

/* Electronic Quote Hero Display */
.pqc-quote-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 76, 92, 0.10);
}

.pqc-quote-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pqc-quote-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  line-height: 1.2;
}

.pqc-tax-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  padding: 1px 7px;
  border-radius: 999px;
}

.pqc-quote-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pqc-hero-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pqc-profit-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

/* Monochrome Single-Row Margin Selector + Linked Slider */
.pqc-margin-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pqc-margin-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--control-bg);
}

.pqc-margin-btn {
  height: 30px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.pqc-margin-btn:hover {
  color: var(--ink);
}

.pqc-margin-btn.is-active {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 76, 92, 0.22);
}

.pqc-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pqc-custom-slider {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  width: 100%;
  min-width: 48px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0F4C5C 0%, #134E4A var(--pqc-slider-pct, 50%), #DCE4E7 var(--pqc-slider-pct, 50%), #DCE4E7 100%);
  outline: none;
  cursor: pointer;
}

.pqc-custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 3px solid var(--accent);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.20);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pqc-custom-slider:hover::-webkit-slider-thumb,
.pqc-custom-slider:active::-webkit-slider-thumb,
.pqc-custom-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.14), 0 1px 5px rgba(15, 23, 42, 0.20);
}

.pqc-custom-slider::-moz-range-thumb {
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #FFFFFF;
  border: 3px solid var(--accent);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.20);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pqc-custom-slider:hover::-moz-range-thumb,
.pqc-custom-slider:active::-moz-range-thumb,
.pqc-custom-slider:focus-visible::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.14), 0 1px 5px rgba(15, 23, 42, 0.20);
}

.pqc-custom-num-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
}

.pqc-custom-num-wrap::after {
  content: "%";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  pointer-events: none;
}

.pqc-custom-num {
  width: 100%;
  height: 30px;
  padding: 0 22px 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: var(--control-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.pqc-custom-num:hover {
  background-color: var(--control-hover);
}

.pqc-custom-num:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.12);
}

/* 5px Precision Allocation Meter + 5 Always-Visible Electronic Receipt Lines */
.pqc-ledger-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pqc-alloc-bar {
  display: flex;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--control-bg);
  gap: 1.5px;
}

.pqc-alloc-seg {
  height: 100%;
  min-width: 0;
  transition: flex-grow 180ms ease;
}

.pqc-alloc-seg.seg-mat,
.pqc-alloc-dot.seg-mat { background: var(--seg-material); }
.pqc-alloc-seg.seg-purge,
.pqc-alloc-dot.seg-purge { background: var(--seg-purge); }
.pqc-alloc-seg.seg-mach,
.pqc-alloc-dot.seg-mach { background: var(--seg-machine); }
.pqc-alloc-seg.seg-labor,
.pqc-alloc-dot.seg-labor { background: var(--seg-labor); }
.pqc-alloc-seg.seg-ship,
.pqc-alloc-dot.seg-ship { background: var(--ink-muted); }
.pqc-alloc-seg.seg-fees,
.pqc-alloc-dot.seg-fees { background: var(--seg-fees); }

.pqc-alloc-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pqc-ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px dashed rgba(15, 76, 92, 0.14);
}

.pqc-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(15, 76, 92, 0.12);
  font-size: 12.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pqc-ledger-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-secondary);
  font-weight: 500;
  min-width: 0;
}

.pqc-ledger-val {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.pqc-ledger-val strong {
  color: var(--ink);
  font-weight: 600;
}

.pqc-ledger-val em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  min-width: 30px;
  text-align: right;
}

/* Right Bottom CTA Row (40px height, pushed flush to bottom) */
.pqc-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}

.pqc-cta-btn {
  width: 100%;
  height: 40px;
}

/* Batch Quote Tray */
.pqc-batch-section {
  max-width: 100%;
  margin: 18px auto 0;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.pqc-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.pqc-batch-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.pqc-batch-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

.pqc-batch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pqc-batch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
}

.pqc-batch-row.is-active {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 76, 92, 0.08);
}

.pqc-batch-select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}

.pqc-batch-select span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.pqc-batch-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
}

.pqc-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.pqc-batch-price {
  min-width: 72px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 700;
}

.pqc-batch-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 18px;
}

/* ------------------------------------------------------------------
   Modals (PDF Quote Preview & Pro Unlock)
   ------------------------------------------------------------------ */
.pqc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pqc-modal-backdrop[hidden] {
  display: none;
}

.pqc-modal {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.pqc-modal-wide {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  padding: 22px 26px;
}

.pqc-modal-compact {
  max-width: 520px;
}

.pqc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pqc-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pqc-modal-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pqc-modal-close {
  margin: -4px -4px 0 0;
}

.pqc-pdf-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.pqc-pdf-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.pqc-pdf-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.pqc-pdf-check input[type="checkbox"] {
  accent-color: var(--accent);
}

.pqc-pdf-stage {
  flex: 1 1 auto;
  min-height: 180px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.pqc-pdf-sheet {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.pqc-pdf-watermark {
  position: absolute;
  inset: -40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transform: rotate(-24deg);
  pointer-events: none;
  z-index: 2;
}

.pqc-pdf-watermark[hidden] {
  display: none;
}

.pqc-pdf-watermark span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(15, 76, 92, 0.09);
  white-space: nowrap;
}

.pdf-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(15, 76, 92, 0.12);
  margin-bottom: 16px;
}

.pdf-shop-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.pdf-client-line {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.pdf-meta-right {
  text-align: right;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

.pdf-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.pdf-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pdf-composition-box {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.pdf-composition-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.pdf-composition-bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  gap: 1.5px;
  margin-bottom: 8px;
}

.pdf-composition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.pdf-composition-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pdf-totals {
  margin-left: auto;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.pdf-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-secondary);
}

.pdf-total-row.is-grand {
  padding-top: 8px;
  border-top: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.pdf-foot-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.pqc-pro-compare-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 700;
}

.pqc-pro-perks {
  margin: 0 0 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.pqc-pro-guarantee {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.pqc-pro-guarantee a {
  white-space: nowrap;
}

.pqc-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pqc-modal-foot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.pqc-print-only {
  display: none;
}

/* ------------------------------------------------------------------
   Fold-2 Pricing, Fold-3 Formula & Fold-4 FAQ
   ------------------------------------------------------------------ */
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pricing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.plan-card.is-featured {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 36px rgba(15, 76, 92, 0.10);
}

.plan-tier {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.plan-tier.is-recommended {
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.plan-price span {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.plan-summary {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.plan-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
  flex: 1;
}

.plan-unlocked-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.unlocked-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.checkout-status-msg {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.checkout-status-msg.is-error {
  color: var(--danger);
}

.checkout-status-msg.is-info {
  color: var(--ink);
}

.pricing-band-footnote,
.pricing-legal-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* Formula 4-Card Balanced Grid */
.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.formula-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.formula-eq {
  margin: 0 0 8px;
}

.formula-eq code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--control-bg);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--ink);
}

.formula-card p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* FAQ Accordion */
.faq-shell {
  max-width: 880px;
}

.faq-heading {
  margin-bottom: 20px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------
   Pricing Page & Comparison Table
   ------------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-secondary);
}

.pricing-hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.pricing-hero-copy {
  max-width: 580px;
}

.pricing-hero-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.pricing-hero-lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-muted);
}

.pricing-auth-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--ink-muted);
}

.compare-table-wrap {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table thead th {
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .is-featured-col {
  background: rgba(15, 76, 92, 0.03);
}

/* ------------------------------------------------------------------
   Legal, About, Contact & 404 Documents
   ------------------------------------------------------------------ */
.doc-shell {
  max-width: 860px;
  padding-top: 36px;
  padding-bottom: 64px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
}

.doc-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.doc-header h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.doc-meta,
.doc-lead {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.prose h2 {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--ink-secondary);
}

.prose ul,
.prose ol {
  padding-left: 20px;
}

.not-found-box {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  text-align: center;
}

.not-found-code {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ------------------------------------------------------------------
   Footer & EU Consent Dialog (Harmonized Deep Teal-Slate)
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.footer-brand-link svg rect {
  fill: var(--accent);
}

.footer-brand-link svg circle {
  fill: var(--amber-accent);
}

.footer-disclaimer {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  align-items: center;
}

.footer-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-consent-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--ink-muted);
  font-size: 13px;
  text-decoration: underline;
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  pointer-events: none;
}

.consent-card {
  pointer-events: auto;
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.consent-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.consent-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

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

.consent-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.consent-btn-reject {
  border: 1px solid rgba(15, 76, 92, 0.14);
  background: var(--control-bg);
  color: var(--ink);
}

.consent-btn-accept {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

/* ------------------------------------------------------------------
   Responsive Breakpoints (Mobile 390px & 375px zero overflow)
   ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .pqc-workbench {
    grid-template-columns: 1fr;
  }

  .pqc-pdf-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .pqc-fil-col-head {
    display: none;
  }

  .pqc-filaments-list {
    gap: 10px;
  }

  .pqc-filament-row {
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
  }

  .pqc-filament-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .pqc-fil-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pqc-fil-sub {
    display: block;
  }

  .pqc-fil-remove {
    margin-top: 17px;
  }
}

@media (max-width: 768px) {
  .shell {
    padding: 0 16px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    height: 54px;
  }

  .site-nav,
  .header-account-wrap {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-band {
    padding: 16px 0 36px;
  }

  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .pqc-workbench {
    gap: 16px;
  }

  .pqc-card {
    padding: 16px;
  }

  .pqc-inputs-card,
  .pqc-quote-card {
    gap: 11px;
  }

  .pqc-hero-price {
    font-size: 34px;
  }

  .pricing-grid-2,
  .formula-grid,
  .pdf-composition-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .consent-card {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-actions {
    justify-content: flex-end;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .compare-table tr:last-child {
    border-bottom: none;
  }

  .compare-table tbody th {
    padding: 0 0 8px;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
  }

  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: none;
    font-size: 13.5px;
    text-align: right;
  }

  .compare-table tbody td.is-featured-col {
    background: transparent;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-muted);
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .pqc-margin-seg {
    grid-template-columns: auto auto auto auto;
  }

  .pqc-margin-btn {
    padding: 0 7px;
    font-size: 12px;
  }

  .pqc-dropzone {
    gap: 8px;
    padding: 6px 8px 6px 10px;
  }

  .pqc-drop-trigger,
  .pqc-drop-text,
  .btn-sample {
    font-size: 12.5px;
  }

  .pqc-printer-select {
    max-width: 162px;
    font-size: 12.5px;
  }

  .pqc-time-pair {
    gap: 6px;
  }

  .pqc-time-pair .pqc-control-unit {
    padding: 0 22px 0 8px;
  }

  .pqc-unit-wrap::after {
    right: 7px;
  }

  .pqc-amortize-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .pqc-shop-grid {
    grid-template-columns: 1fr;
  }

  .pqc-pdf-controls {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }

  .pqc-pdf-controls .pqc-field:nth-child(1),
  .pqc-pdf-controls .pqc-field:nth-child(2) {
    grid-column: 1 / -1;
  }

  .pqc-pdf-controls .pqc-control {
    height: 36px;
  }

  .pqc-modal-backdrop {
    padding: 12px;
  }

  .pqc-modal,
  .pqc-modal-wide {
    padding: 16px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .pqc-modal-head {
    margin-bottom: 12px;
  }

  .pqc-pdf-toggle-row {
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .pqc-pdf-stage {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 10px;
    margin-bottom: 12px;
  }

  .pqc-pdf-sheet {
    padding: 14px;
  }

  .pdf-table {
    table-layout: auto;
    width: 100%;
  }

  [data-pqc-pdf-content] {
    position: relative;
    z-index: 1;
  }

  .pqc-pdf-watermark {
    inset: 0 18px;
    z-index: 0;
    transform: rotate(-12deg);
  }

  .pqc-pdf-watermark span {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(15, 76, 92, 0.06);
  }

  .pdf-doc-head {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .pdf-meta-right {
    text-align: left;
  }

  .pdf-table th:nth-child(3),
  .pdf-table td:nth-child(3),
  .pdf-table th:nth-child(4),
  .pdf-table td:nth-child(4),
  .pdf-table th:nth-child(6),
  .pdf-table td:nth-child(6) {
    display: none;
  }

  .pdf-table th:nth-child(5),
  .pdf-table td:nth-child(5),
  .pdf-table th:nth-child(7),
  .pdf-table td:nth-child(7) {
    width: 1%;
    white-space: nowrap;
  }

  .pdf-table th {
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .pdf-table th,
  .pdf-table td {
    padding: 7px 12px 7px 0;
  }

  .pdf-table th:first-child,
  .pdf-table td:first-child {
    padding-right: 18px;
  }

  .pdf-table th:last-child,
  .pdf-table td:last-child {
    padding: 7px 0 7px 6px;
  }

  .pdf-table td {
    font-size: 12px;
    overflow-wrap: break-word;
  }

  .pqc-modal-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .pqc-modal-foot-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .pqc-modal-foot .btn-primary,
  .pqc-modal-foot .btn-secondary,
  .pqc-modal-foot-actions .btn-primary,
  .pqc-modal-foot-actions .btn-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .pqc-batch-row {
    flex-wrap: wrap;
  }

  .pqc-cta-row {
    gap: 8px;
  }
}

/* ------------------------------------------------------------------
   Print Stylesheet (Clean Commercial PDF Quote Output)
   ------------------------------------------------------------------ */
@media print {
  body > *:not(.site-main),
  .site-header,
  .site-footer,
  .consent-banner,
  .checkout-global-banner,
  .hero-head,
  .pqc-workbench,
  .pqc-batch-section,
  .pqc-modal-backdrop,
  .pricing-band,
  .formula-band,
  .faq-band {
    display: none !important;
  }

  body,
  .band,
  .shell {
    background: var(--surface) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .pqc-print-only {
    display: block !important;
    padding: 24px;
    color: var(--ink);
  }
}
