/* HVAC Parts Desk application shell. Colors resolve through tokens.css. */
:root { color-scheme: light; }
html, body { min-height: 100%; background: var(--bg); color: var(--text); }
body { margin: 0; font-family: var(--font-body); line-height: 1.5; }
button, [role="button"] { cursor: pointer; }
button, input, select { font: inherit; }
button, .btn-primary, .jump-tool-btn, .pro-link { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--primary) !important; outline-offset: 2px; }
.site-header, .smart-fold-bar { position: sticky; top: 0; z-index: 20; padding: 8px max(16px, calc((100% - 1360px) / 2)); background: color-mix(in srgb, var(--surface) 96%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.site-header nav, .smart-fold-bar nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--text); text-decoration: none; font-family: var(--font-heading); font-weight: 800; }
.wordmark svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2; }
.badge, .status-pill, .sample-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 10px; font-size: .8rem; font-weight: 700; background: var(--surface-subtle); color: var(--text-muted); }
.pro-link, .jump-tool-btn, .btn-primary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; box-sizing: border-box; padding: 9px 15px; border: 0; border-radius: 999px; color: var(--on-primary, #fff) !important; background: var(--primary) !important; font-weight: 700 !important; text-decoration: none !important; line-height: 1.25; white-space: nowrap; }
.pro-link { background: var(--text) !important; }
.page-shell { max-width: 1360px; margin: 0 auto; padding: 20px 16px 32px; }
.marketing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; align-items: center; margin-bottom: 24px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -.02em; text-wrap: balance; }
h1 { max-width: 760px; margin: 0 0 14px; font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.18; }
h2 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.25; }
.lede { max-width: 720px; margin: 0 0 16px; color: var(--text-muted); }
.hero-actions, .pane-header > div, .pro-tools, .structured-toolbar, .form-actions, .deliverable-dock { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.proof-card, .preset-strip button, [data-action="copy-summary"], [data-action="print-deliverable"], .pro-tools button, .structured-toolbar button { min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 12px; color: var(--text); background: var(--surface); font-weight: 700; }
.proof-card { white-space: normal; text-align: left; }
button:active, .btn-primary:active, .jump-tool-btn:active { transform: translateY(1px) scale(.99); }
.pricing-card, .inspector-pane, .deliverable-zone { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.pricing-card strong { display: block; margin: 8px 0; font: 800 1.1rem/1.25 var(--font-heading); }
.pricing-card p, .pricing-card small { display: block; margin: 0 0 14px; color: var(--text-muted); }
.pro-card-link { display: inline-flex; margin-bottom: 16px; color: var(--primary); font-weight: 800; }
.unified-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.unified-toolbar h2 { margin: 0; }
.free-reassurance { margin: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); font-size: .86rem; }
.free-reassurance strong { color: var(--primary); }
.text-link { color: var(--primary); font-weight: 700; }
.workflow-direction-bar { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; color: var(--text-muted); background: var(--primary-light); font-weight: 600; }
.preset-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.preset-strip > span:first-child { font-weight: 800; }
.preset-strip button { background: var(--surface); }
.preset-strip [data-reset-blank] { margin-left: auto; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.pane-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.pane-header h2 { margin: 0; }
.form-validation-cue { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; color: #7c2d12; background: var(--amber-soft); font-weight: 700; }
fieldset { min-width: 0; margin: 0 0 20px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; }
legend { padding: 0 6px; color: var(--text); font: 800 .95rem var(--font-heading); }
.field-grid, .financial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid label, .financial-grid label, .modal label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--text); font-size: .9rem; font-weight: 700; }
.wide { grid-column: 1 / -1; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); background: #fff; font-size: 16px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.inline-error { min-height: 1.3em; margin: 2px 0 0; color: var(--danger); font-size: .82rem; font-weight: 700; }
.field-note, .form-actions p, .deliverable-disclosure, .trust-footer, .modal-note { color: var(--text-muted); font-size: .84rem; }
.structured-toolbar { justify-content: space-between; margin: 18px 0 10px; }
.table-responsive { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
td input { min-width: 130px; }
.remove-part { min-width: 44px; padding: 8px; border: 0; color: var(--danger); background: transparent; font-weight: 800; }
.form-actions { align-items: start; margin: 0; }
.form-actions p { max-width: 370px; margin: 0; }
.deliverable-zone { position: sticky; top: 76px; }
.deliverable-dock { justify-content: space-between; margin: -4px 0 14px; padding: 10px; border-radius: 10px; background: var(--surface-subtle); font-variant-numeric: tabular-nums; }
.pro-tools { margin-bottom: 14px; }
.pro-tools span { font-size: .8rem; color: var(--text-muted); }
.deliverable-sheet { min-height: 460px; padding: 26px; border: 1px solid #cbd5e1; color: #172033; background: #fff; box-shadow: 0 8px 18px rgba(15,23,42,.07); }
.sheet-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.sheet-top h2 { margin: 0 0 5px; font-size: 1.32rem; }
.sheet-top p, .sheet-meta p { margin: 0; font-size: .86rem; }
.sheet-meta { display: grid; gap: 4px; text-align: right; font-family: var(--font-mono); font-size: .8rem; }
.deliverable-logo { display: block; max-width: 140px; max-height: 52px; object-fit: contain; margin-bottom: 8px; }
.sheet-section { margin-top: 20px; break-inside: avoid; page-break-inside: avoid; }
.sheet-section h3 { margin: 0 0 8px; font-size: .95rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.sheet-grid p { margin: 0; overflow-wrap: anywhere; }
.sheet-grid strong { display: block; color: #475569; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.result-callout { min-height: 7.5em; padding: 14px; border-radius: 10px; background: var(--primary-light); }
.result-callout p { margin: 0 0 6px; }
.warning-banner { margin: 14px 0 0; padding: 11px 12px; border-left: 4px solid var(--amber); color: #78350f; background: var(--amber-soft); font-weight: 700; }
.photo-thumb { display: block; max-width: 180px; max-height: 130px; border: 1px solid var(--border); object-fit: cover; }
.financial-summary { max-width: 340px; margin-left: auto; font-variant-numeric: tabular-nums; }
.financial-summary p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 5px 0; }
.financial-summary p:last-child { border-top: 2px solid var(--text); font-size: 1.05rem; font-weight: 800; }
.free-watermark { margin-top: 20px; color: #64748b; font-size: .75rem; text-align: right; }
footer { max-width: 1360px; margin: 0 auto; padding: 16px; }
.trust-footer { margin: 0; }
.mobile-action-dock { display: none; }
.toast-container { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: grid; gap: 8px; }
.toast { max-width: 300px; padding: 12px 14px; border-radius: 10px; color: #fff; background: var(--text); box-shadow: var(--shadow-lg); }
dialog[open] { max-width: min(560px, calc(100vw - 32px)); margin: auto; inset: 0; padding: 0; border: 0; border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(15,23,42,.5); }
.modal > div { padding: 26px; }
.modal h2 { margin: 0 0 12px; }
.modal p { margin: 0 0 14px; }
.modal-close { float: right; min-width: 44px; border: 0; border-radius: 8px; background: var(--surface-subtle); font-size: 1.25rem; }
.modal table { margin: 16px 0; }
.modal label { margin-top: 16px; }
.recent-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.recent-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.recent-card.is-active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 1px var(--primary); }
.recent-card h3 { margin: 0 0 4px; font-size: 1rem; }
.recent-card p { margin: 0 0 4px; font-size: .84rem; color: var(--text-muted); }
.recent-card .recent-kpi { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--primary); font-size: .86rem; }
[hidden], .modal[hidden], .upgrade-modal[hidden] { display: none !important; }
body.returning .marketing { display: none; }
body.returning .site-header { min-height: 44px; }

@media (min-width: 901px) { .unified-toolbar { position: sticky; top: var(--sticky-header-offset, 105px); z-index: 15; margin: 0 -12px 12px; padding: 10px 12px; border-radius: 0 0 12px 12px; background: var(--bg); box-shadow: 0 1px 0 var(--border); } .deliverable-zone { top: calc(var(--sticky-header-offset, 105px) + var(--sticky-toolbar-offset, 76px) + 12px); } }
@media (max-width: 900px) { .marketing, .workbench { grid-template-columns: minmax(0, 1fr); } .deliverable-zone { position: static; } }
@media (max-width: 640px) { .site-header { position: sticky; } .badge { display: none; } .page-shell { padding: 14px 12px 88px; } .marketing, .pricing-card, .inspector-pane, .deliverable-zone { padding: 20px; } .field-grid, .financial-grid, .sheet-grid { grid-template-columns: minmax(0, 1fr); } .preset-strip [data-reset-blank] { margin-left: 0; } .preset-strip button, .sample-badge, .free-watermark { white-space: normal; text-wrap: wrap; } .mobile-action-dock { position: fixed; z-index: 25; right: 10px; bottom: 10px; left: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); } .mobile-action-dock button { min-height: 44px; border: 0; border-radius: 9px; color: #fff; background: var(--primary); font-weight: 700; } .sheet-meta { text-align: left; }
  .site-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
  .site-header nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
  .site-header .wordmark { min-width: 0; font-size: .95rem; }
  .site-header .wordmark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .pro-link { padding: 8px 12px; font-size: .85rem; }
  .site-header .jump-tool-btn, .site-header .nav-tools-link, .header-submit-btn { display: none !important; }
  fieldset { max-width: 100%; padding: 14px; box-sizing: border-box; }
  .structured-toolbar { justify-content: flex-start; }
  #parts-body tr, .inspector-pane table, .inspector-pane thead, .inspector-pane tbody { display: block; width: 100%; }
  .inspector-pane thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #parts-body tr { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  #parts-body td { display: block; padding: 0; border: 0; min-width: 0; }
  #parts-body td:nth-child(3), #parts-body td:nth-child(4) { grid-column: 1 / -1; }
  #parts-body td input { min-width: 0; }
  .deliverable-sheet { padding: 16px; }
  .pane-header > div button { white-space: normal; } }
@media print { @page { margin: 10mm; size: auto; } body, main, .page-shell, .workspace, .utility, .workbench, .deliverable-wrapper { display: block !important; margin: 0 !important; padding: 0 !important; background: #fff !important; } .site-header, .smart-fold-bar, body > header, nav, footer, form, .unified-toolbar, .workflow-direction-bar, .preset-strip, .inspector-pane, [data-role="intake"], .related-tools-grid, #tools, .nav-tools-link, button, .pricing-card, #pricing, .marketing, [data-layer="marketing"], .pane-header, .deliverable-dock, .pro-tools, .deliverable-disclosure, .mobile-action-dock, [data-mobile-dock], .toast-container, [data-toast-container], [data-action="print-deliverable"], .no-print { display: none !important; } .deliverable-zone { display: block !important; position: static !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; } #executive-deliverable, .sheet-section, tr { break-inside: avoid !important; page-break-inside: avoid !important; } #executive-deliverable { display: block !important; min-height: 0; padding: 0; border: 0; box-shadow: none; } #executive-deliverable .sheet-top { display: flex !important; } }
