/* Nav scrolls away (overrides preview top) */
nav#mainNav{position:relative!important;top:auto!important}
#page-landing .pk-purchase-banner{margin-top:24px}
/* Remove the old fixed-header spacer now that navigation occupies document flow. */
html body .dash-main{padding-top:20px!important}
html body .estimator-workspace{padding-top:44px}
@media(max-width:760px){html body .dash-main{padding-top:12px!important}}

/* Contact widget */
.contact-widget{position:fixed;right:24px;bottom:24px;width:min(370px,calc(100vw - 48px));display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.contact-widget>:not(#contactWidgetFab){width:100%}
#contactWidgetFab{min-height:48px;padding:0 20px;border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-size:16px;font-weight:600;line-height:1.2;cursor:pointer}
#contactWidgetFab:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #4f46e5}
.contact-widget.is-open #contactWidgetFab{display:none}
body.pk-form-flow .contact-widget{display:none}
@media (max-width:768px){body:has(#page-dashboard.active) .contact-widget{bottom:90px}}
@media (forced-colors:active){#contactWidgetFab{background:ButtonFace;color:ButtonText;border:2px solid ButtonText}#contactWidgetFab:focus-visible{outline-color:Highlight;box-shadow:none}}

/* Dashboard tracking cards: matches client-glass.css specificity prefix, then adds descendant */
body:has(#page-dashboard.active) #page-dashboard .tracking-card{font-size:16px;line-height:1.5}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-kicker{font-size:14px}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-meta{font-size:15px}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-badge{font-size:14px;line-height:1.3}
body:has(#page-dashboard.active) #page-dashboard .tracking-card :is(.tracking-summary,.tracking-next,.tracking-action){font-size:16px}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates{font-size:16px;display:grid;gap:4px;margin:0;padding:0;list-style:none;background:none;border:0}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0;padding:0;background:none;border:0;box-shadow:none}
body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-date-value{text-align:right;font-variant-numeric:tabular-nums}

/* Payment required: only when data-payment-required=true */
body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-badge{display:inline-flex;align-items:center;gap:6px;background:#fef3c7;color:#78350f;border:1px solid #d97706;border-radius:999px;padding:2px 10px;font-weight:700}
body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-badge svg{flex:none;color:#d97706}
body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-action{background:#c2410c;color:#fff;border:0;font-weight:700;animation:none;transition:none}
body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-action:focus-visible{outline:3px solid #7c2d12;outline-offset:2px}
@media (forced-colors:active){body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] :is(.tracking-badge,.tracking-action){border:2px solid CanvasText;background:Canvas;color:CanvasText}}
/* Codex maps the authored styling onto existing nested controls and their cascade. */
html body #page-dashboard .stat-label{font-size:14px;line-height:1.45;letter-spacing:.025em;color:#334155}
html body #page-dashboard :is(.tracking-filter,#trackingResultCount){font-size:14px;line-height:1.5}
html body #page-dashboard #jobSearch{font-size:16px!important}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card :is(.tracking-next p,.tracking-next strong,.tracking-actions button,.tracking-previous,.tracking-activity summary){font-size:16px;line-height:1.5}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card :is(.tracking-stage-disclosure summary,.tracking-steps li){font-size:14px;line-height:1.5}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card :is(.tracking-meta,.tracking-kicker,.tracking-activity,.tracking-activity time,.tracking-next p){color:#334155}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates{margin-top:12px;padding:0;gap:10px;max-width:620px;color:#334155}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates li{font-size:16px;line-height:1.5}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates time{font-size:16px;color:#172033}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-actions .tracking-action{background:#c2410c!important;color:#fff!important;border:1px solid #9a3412!important;box-shadow:none;text-shadow:none}
html body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-next{border-color:#d97706;background:#fffbeb}
.contact-widget-panel{box-sizing:border-box;max-height:calc(100dvh - 48px);overflow:auto}
#contactWidgetFab{box-shadow:0 8px 24px #6333d54d}
#contactWidgetFab:hover{background:linear-gradient(135deg,#4338ca,#6d28d9)}
@media(max-width:420px){html body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-dates>li{grid-template-columns:1fr;gap:0}html body:has(#page-dashboard.active) #page-dashboard .tracking-card .tracking-date-value{text-align:left}}
@media(forced-colors:active){html body:has(#page-dashboard.active) #page-dashboard .tracking-card :is(.tracking-meta,.tracking-kicker,.tracking-activity,.tracking-activity time,.tracking-next p,.tracking-dates){color:CanvasText}html body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-actions .tracking-action{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}html body:has(#page-dashboard.active) #page-dashboard .tracking-card[data-payment-required="true"] .tracking-next{background:Canvas;border-color:CanvasText}}

/* Concrete selector mappings from Opus's four-view screenshot review. */
html body #page-dashboard .stat-val{font-family:inherit;font-variant-numeric:tabular-nums}
html body :is(.estimator-workspace,.review-workspace) .btn-secondary{margin-inline-start:0;padding:8px 14px;min-height:44px;border:1px solid #c9cfdb;border-radius:10px;background:#fff;color:#172033;font-size:16px;line-height:1.5}
html body :is(.estimator-workspace,.review-workspace) .btn-secondary:focus-visible{outline:3px solid #5544db;outline-offset:3px}
html body #page-landing .hero-ctas :is(.btn-primary,.btn-secondary){font-family:var(--font-body,Inter,Arial,sans-serif)}
html body :is(#navEstimator,#navAdmin) .tag{font-size:14px;color:#d7deee}
html body .review-workspace{padding-top:42px}
@media(forced-colors:active){html body :is(.estimator-workspace,.review-workspace) .btn-secondary{background:ButtonFace;color:ButtonText;border-color:ButtonText}html body :is(#navEstimator,#navAdmin) .tag{color:CanvasText}}
