/* Appearance controls and theme overrides. Keep data plots and solver contours intact. */
.appearance-settings{padding:28px;margin-bottom:23px}.appearance-settings h2{font-size:20px;margin:4px 0 9px}.appearance-settings>p{max-width:680px;color:var(--muted);font-size:12px;line-height:1.85;margin-bottom:20px}.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.appearance-option{display:flex;flex-direction:column;gap:12px;min-width:0;padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer}.appearance-option:hover{border-color:var(--accent-border)}.appearance-option[data-selected="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}.appearance-option strong{font-size:13px;font-weight:600}.appearance-option small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:3px}.appearance-swatch{display:block;width:100%;height:82px;border:1px solid #dfe5eb;border-radius:6px;background:linear-gradient(90deg,#fff 0 24%,#e6ebef 24% 25%,transparent 25%),linear-gradient(#f1f3f6 0 20%,#fff 20% 22%,#f6f7f9 22%);position:relative;overflow:hidden}.appearance-swatch:after{content:'';position:absolute;top:30px;left:34%;right:10%;height:32px;border:1px solid #e7ebef;border-radius:4px;background:#fff}.appearance-swatch.dark,.appearance-swatch[data-swatch="dark"]{border-color:#38414c;background:linear-gradient(90deg,#19212b 0 24%,#333e4a 24% 25%,transparent 25%),linear-gradient(#202a36 0 20%,#333e4a 20% 22%,#121922 22%)}.appearance-swatch.dark:after,.appearance-swatch[data-swatch="dark"]:after{background:#202a36;border-color:#384555}.appearance-swatch.system,.appearance-swatch[data-swatch="system"]{background:linear-gradient(110deg,transparent 0 50%,#19212b 50% 100%),linear-gradient(90deg,#fff 0 24%,#e6ebef 24% 25%,transparent 25%),linear-gradient(#f1f3f6 0 20%,#fff 20% 22%,#f6f7f9 22%)}.appearance-swatch.system:after,.appearance-swatch[data-swatch="system"]:after{background:linear-gradient(110deg,#fff 0 40%,#273341 40% 100%);border-color:#71808d}.appearance-current{display:flex;align-items:center;gap:8px;margin:17px 0 0;font-size:11px;line-height:1.8;color:var(--muted)}.appearance-current:before{content:'';display:block;width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}

.appearance-option:focus-visible{outline:3px solid var(--accent-ring);outline-offset:4px}.appearance-swatch.swatch-dark{border-color:#38414c;background:linear-gradient(90deg,#19212b 0 24%,#333e4a 24% 25%,transparent 25%),linear-gradient(#202a36 0 20%,#333e4a 20% 22%,#121922 22%)}.appearance-swatch.swatch-dark:after{background:#202a36;border-color:#384555}.appearance-swatch.swatch-system{background:linear-gradient(110deg,transparent 0 50%,#19212b 50% 100%),linear-gradient(90deg,#fff 0 24%,#e6ebef 24% 25%,transparent 25%),linear-gradient(#f1f3f6 0 20%,#fff 20% 22%,#f6f7f9 22%)}.appearance-swatch.swatch-system:after{background:linear-gradient(110deg,#fff 0 40%,#273341 40% 100%);border-color:#71808d}
html[data-theme="dark"]{color-scheme:dark;--bg:#11171f;--panel:#1a232e;--ink:#edf2f7;--muted:#a3b0be;--line:#34414f;--border:#34414f;--nav:#263240;--accent:#FFB71B;--accent-hover:#ffc340;--accent-soft:#342b19;--accent-ink:#ffd47b;--accent-contrast:#18222e;--accent-border:#725825;--accent-ring:#ffcf6b;--green:#6bd4af;--theme-raised:#202c38;--theme-soft:#16202a;--theme-error:#3c2524;--theme-error-ink:#ffb6a5;--theme-success:#18382f;--theme-blue:#1c314c;--theme-blue-ink:#a9ccff}
html[data-theme="dark"]{--text:var(--ink)}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] :is(.chip,.runs-status,.diagnostics-status,.study-workflow button span){background:var(--theme-raised);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] .model-viewer-stage{background:var(--theme-soft)}
html[data-theme="dark"] :is(.sidebar,.panel,.hero,.stat,.file-strip,.assistant-compose,.modal,.payment-plan,.trial-step,.trial-type-picker .type-option,.runs-filter-group,.runs-facts,.runs-outcome,.setup-guide-check,.billing-faq-help,.workflow-preset-card,.report-section-tabs,.share-option,.share-package-summary,.share-package-notes,.diagnostics-connector,.watch-demo-report,.model-viewer-controls,.contact-help-card,.contact-help-cards>.panel){background:var(--panel);border-color:var(--line)}
html[data-theme="dark"] .topbar{background:#18212be8;border-color:var(--line)}
html[data-theme="dark"] :is(.btn,.study-workflow button,.mesh-placeholder-steps span,.setup-guide-contents>button>span,.development-plan-options .btn,.watch-demo-speed-label select,.model-viewer-control-group select){background:var(--theme-raised);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] :is(.btn:hover,.report-section-tabs button:hover,.runs-filter:hover,.runs-stat:hover,.watch-demo-chapters>button:hover){background:#2a3949;border-color:#4b5b6b;color:var(--ink)}
html[data-theme="dark"] :is(.btn.primary,.send-btn){background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}
html[data-theme="dark"] .btn.primary:hover{background:var(--accent-hover);color:var(--accent-contrast)}
html[data-theme="dark"] .btn.dark{background:#dbe5ee;border-color:#dbe5ee;color:#18222e}
html[data-theme="dark"] .btn.subtle{background:transparent;border-color:transparent;color:var(--muted)}
html[data-theme="dark"] :is(.field input,.field select,.field textarea,.message-input,#mesh-feedback-form>textarea,.runs-search,.runs-search input,.runs-type select){background:var(--theme-soft);color:var(--ink);border-color:#415162}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#8a9aaa;opacity:1}
html[data-theme="dark"] :is(input,select,textarea):disabled{background:#19212a;color:#95a2af}
html[data-theme="dark"] :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--accent)}
html[data-theme="dark"] :is(.local-card,.avatar,.stat-icon,.empty-icon,.check-symbol,.demo-card,.tab .tiny-number,.file-item .file-icon,.message.user,.report pre,.command,.live-job,.usage-card,.auth-tabs,.trial-step>span,.trial-example,.legal-table th,.runs-table th,.runs-detail-row>td,.setup-guide-command,.setup-guide-products>article,.workflow-routing>div,.workflow-routing thead th,.workflow-connection-summary,.mesh-analysis-link,.contact-topic,.contact-preview pre,.report-request-examples .btn,.report-scope-note,.report-evidence-note,.report-metric-table thead th,.report-image-frame,.report-version-history>summary>span,.share-contents,.diagnostics-next,.diagnostics-step-marker,.diagnostics-technical pre,.watch-demo-player-top,.watch-demo-example-picker,.watch-demo-message.user,.watch-demo-job,.watch-demo-run-stages>li>span,.watch-demo-caption,.watch-demo-chapters,.watch-demo-paper-pill,.watch-demo-report-grid>div,.watch-demo-controls,.demo-example-field-picker,.demo-example-readouts>div,.demo-example-result-table caption,.demo-example-report-preview,.model-viewer-toolbar){background:var(--theme-raised);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] :is(.model-panel,.dropzone,.mesh-image-scroll,.watch-demo-viewport,.watch-demo-cfd-visual){background:var(--theme-soft);border-color:var(--line)}
html[data-theme="dark"] :is(.hero-visual,.trial-mesh-drawing){background:radial-gradient(ellipse at 50% 50%,#263643,var(--panel) 75%)}
html[data-theme="dark"] .hero-visual:before{opacity:.2}
html[data-theme="dark"] :is(.mesh-placeholder,.model-viewer-loading,.model-viewer-empty){background:linear-gradient(135deg,var(--theme-raised),var(--theme-soft));border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] :is(.plan-card.featured,.landing-callout,.runs-welcome,.setup-guide-intro,.watch-demo-next){background:linear-gradient(125deg,var(--accent-soft),var(--panel) 70%)}
html[data-theme="dark"] .lifetime-plan{background:linear-gradient(150deg,var(--theme-raised),var(--panel))}
html[data-theme="dark"] .setup-guide-costs{background:#1a232ed9;border-color:var(--accent-border)}
html[data-theme="dark"] :is(.nav-item,.label,.sidebar-empty,.stat-note,.visual-tag,.model-caption,.model-axes,.preview-disclaimer,.field label,.message,.compose-footer,.context-note,.run-check,.event,.event small,.connections ol,.privacy-note,.footer-note,.mesh-summary,.mesh-placeholder-steps,.mesh-review figcaption,.mesh-checks small,.review-confirm,.estimate-empty,.plan-features li,.landing-hero small,.auth-illustration>span,.legal-document p,.legal-section li,.legal-table td,.project-table th,.runs-welcome-features>span,.runs-live-indicator,.runs-footnote,.runs-table th,.runs-current-phase,.runs-latest,.runs-last-update,.runs-started>time,.runs-elapsed>span,.runs-elapsed>small,.runs-facts dt,.runs-facts dd,.runs-outcome>strong,.runs-outcome>p,.runs-timeline-heading>span,.runs-timeline time,.runs-event-stage,.runs-timeline p,.runs-report .report-toolbar p,.setup-guide-intro>div>p,.setup-guide-costs p>small,.setup-guide-contents>button,.setup-guide-check>p,.setup-guide-check li small,.setup-guide-instructions p,.setup-guide-detail>p,.setup-guide-products p,.setup-guide-product-icon,.setup-guide-source,.setup-guide-footer,.final-results-card p,.results-help p,.viewer-playground-footer p,.workflow-routing tbody td,.analysis-report-excerpt,.analysis-checklist,.contact-inline-note strong,.report-field-note,.report-request-panel .form-actions>small,.report-scope-note>p,.report-evidence-note>p,.report-metric-table summary,.report-metric-table details p,.report-image-gallery figcaption>small,.report-no-images,.report-version-history>summary,.report-version-history small){color:var(--muted)}
html[data-theme="dark"] :is(.setup-guide-page b,.setup-guide-callout.neutral p>strong,.setup-guide-detail>summary,.setup-guide-command>code,.contact-preview pre,.share-package h4,.share-option strong,.share-preview-state>strong,.share-package-summary strong,.share-group-list strong,.share-file-details>summary,.share-opening-help>summary,.share-package-actions strong,.demo-example-readouts dd,.demo-example-inputs dd,.demo-example-result-table td,.demo-example-report-preview dd,.model-viewer-empty h4,.model-viewer-legend strong,.model-viewer-caption strong){color:var(--ink)}
html[data-theme="dark"] :is(.share-package-heading p,.share-option>span>span,.share-recipient-note p,.share-preview-state p,.share-package-summary span,.share-group-list span,.share-folder>summary,.share-folder>summary>span,.share-folder li,.share-folder li>small,.share-preview-truncated,.share-package-notes>strong,.share-package-notes ul,.share-package-actions small,.share-opening-help ol,.share-sample>p,.diagnostics-technical summary,.diagnostics-step-skipped,.model-viewer-view-label,.model-viewer-mouse-help,.model-viewer-control-group>label:first-child,.model-viewer-control-group legend,.model-viewer-control-group legend span,.model-viewer-control-group>p,.model-viewer-check,.model-viewer-slider-label,.model-viewer-caption span,.model-viewer-caption p,.model-viewer-scope,.model-viewer-empty .model-viewer-empty-note,.model-viewer-range,.model-viewer-legend small){color:var(--muted)}
html[data-theme="dark"] :is(.watch-demo-heading p,.watch-demo-heading h1>span,.watch-demo-heading-note>span,.watch-demo-example-picker>button,.watch-demo-prepared-label,.watch-demo-study>div:first-child>span,.watch-demo-viewport-top,.watch-demo-viewport-top>span,.watch-demo-viewport-bottom,.watch-demo-overline,.watch-demo-scene-copy,.watch-demo-message>p,.watch-demo-message.user>span,.watch-demo-message.user>p,.watch-demo-setup-checks>div>span,.watch-demo-setup-checks p,.watch-demo-side-note,.watch-demo-job>div>span,.watch-demo-run-stages>li strong,.watch-demo-run-stages>li small,.watch-demo-caption,.watch-demo-replay,.watch-demo-clock,.watch-demo-clock>span,.watch-demo-chapters>button,.watch-demo-chapters>button strong,.watch-demo-chapters>button small,.watch-demo-footnote p,.watch-demo-footnote p>strong,.watch-demo-next p,.watch-demo-report-head>div>span,.watch-demo-paper-pill,.watch-demo-mini-label,.watch-demo-report-summary p,.watch-demo-report-grid span,.watch-demo-report-grid small,.watch-demo-report-section>span,.watch-demo-report-section p,.watch-demo-report-foot,.watch-demo-side-checks>div,.demo-example-heading p,.demo-example-field-picker button,.demo-example-figure figcaption,.demo-example-legend>div:first-child>span,.demo-example-legend-values,.demo-example-readouts dt,.demo-example-formulas p,.demo-example-formulas small,.demo-example-report section p,.demo-example-report section ul,.demo-example-inputs dt,.demo-example-result-table caption,.demo-example-result-table th,.demo-example-report>footer p,.demo-example-report-preview p,.demo-example-report-preview dt){color:var(--muted)}
html[data-theme="dark"] :is(.watch-demo-setup-checks strong,.watch-demo-job>div>strong,.watch-demo-run-stages>li.active strong,.watch-demo-report-head h3,.watch-demo-report-grid strong,.watch-demo-report-section strong,.demo-example-legend strong,.demo-example-formulas>strong,.demo-example-report h4){color:var(--ink)}
html[data-theme="dark"] :is(.nav-item.active,.notice,.question,.study-workflow button.active,.payment-plan.selected,.type-option:has(input:checked),.trial-step.active,.runs-filter.active,.runs-stat.selected,.workflow-preset-card.selected,.share-option.selected,.contact-topic[aria-pressed="true"],.report-section-tabs button.active,.watch-demo-message,.watch-demo-chapters>button[aria-current="step"],.diagnostics-change,.diagnostics-notice,.diagnostics-recent){background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-ink)}
html[data-theme="dark"] :is(.question small,.setup-guide-callout>p,.diagnostics-recent small,.watch-demo-mesh-state small,.development-plan-panel>p,.development-plan-panel>small){color:#d9be87}
html[data-theme="dark"] :is(.contact-aside .stat-icon,.chip.orange,.share-option strong>small,.diagnostics-status-attention,.diagnostics-status-checking){background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] :is(.setup-guide-callout,.watch-demo-source,.watch-demo-mesh-state){border-color:var(--accent-border)}
html[data-theme="dark"] :is(.notice.neutral,.setup-guide-callout.neutral){background:var(--theme-raised);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] :is(.chip.green,.check-symbol.good,.trial-step.complete>span,.trial-check.checked,.runs-status.complete,.watch-demo-mesh-state.revised,.watch-demo-run-stages>li.complete>span,.diagnostics-status-ready,.diagnostics-step-passed .diagnostics-step-marker,.contact-status.success){background:var(--theme-success);border-color:#315b4e;color:var(--green)}
html[data-theme="dark"] :is(.watch-demo-mesh-state.revised small,.watch-demo-run-stages>li.complete strong){color:var(--green)}
html[data-theme="dark"] :is(.chip.blue,.runs-status.running,.runs-solver){background:var(--theme-blue);border-color:#36506f;color:var(--theme-blue-ink)}
html[data-theme="dark"] .runs-solver.cfd{background:var(--theme-success);border-color:#315b4e;color:#94d7c5}
html[data-theme="dark"] :is(.runs-error,.runs-outcome.error,.diagnostics-status-failed,.diagnostics-step-failed .diagnostics-step-marker,.diagnostics-error,.contact-status.error){background:var(--theme-error);border-color:#75483e;color:var(--theme-error-ink)}
html[data-theme="dark"] :is(.auth-error,.runs-cancel,.runs-outcome.error>strong,.runs-outcome.error>p){color:var(--theme-error-ink)}
html[data-theme="dark"] .runs-cancel:hover{background:var(--theme-error)}
html[data-theme="dark"] :is(.project-table th,.project-table td,.file-item,.check-row,.runs-table td,.runs-facts,.legal-table th,.legal-table td,.demo-example-result-table th,.demo-example-result-table td,.watch-demo-viewport,.watch-demo-report-grid>div,.demo-example-report-preview,.share-package-notes){border-color:var(--line)}
html[data-theme="dark"] :is(.runs-row.selected,.runs-row.selected>td){background:#2a281e}
html[data-theme="dark"] :is(.watch-demo-example-picker>button.selected,.demo-example-field-picker button.selected,.auth-tabs button.active){background:#334253;border-color:#4a5e73;color:var(--ink)}
html[data-theme="dark"] .watch-demo-run-stages>li:before{background:var(--line)}
html[data-theme="dark"] .runs-timeline>li:before{border-color:var(--theme-raised)}
html[data-theme="dark"] .watch-demo-seek-label input{background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--watch-demo-progress,0%),#3a4857 var(--watch-demo-progress,0%),#3a4857 100%)}
html[data-theme="dark"] .model-viewer-legend{background:#19232eef;border-color:var(--line)}
html[data-theme="dark"] .model-viewer-control-group .link-button{color:var(--accent-ink)}
html[data-theme="dark"] .modal-backdrop{background:#03070cb3}
html[data-theme="dark"] .modal{box-shadow:0 25px 100px #0007}
html[data-theme="dark"] .spinner{border-color:#435263;border-top-color:var(--accent)}
html[data-theme="dark"] ::selection{background:#765716;color:#fff}
@media(max-width:650px){.appearance-settings{padding:22px}.appearance-options{grid-template-columns:minmax(0,1fr)}.appearance-option{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:15px}.appearance-swatch{height:68px}.appearance-swatch:after{top:26px;height:26px}.appearance-current{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.appearance-option{transition:none!important;transform:none!important}}
@media print{
 html,html[data-theme="dark"]{color-scheme:light;--bg:#fff;--panel:#fff;--ink:#111;--muted:#444;--line:#ccc;--border:#ccc;--nav:#fff;--accent-soft:#fff8e5;--accent-ink:#604000;--accent-border:#d9c78f;--green:#176b50;--theme-raised:#fff;--theme-soft:#fff}
 html body{background:#fff!important;color:#111!important}
 html[data-theme] :is(.panel,.report,.hero,.stat,.modal,.report-image-frame,.report-scope-note,.report-evidence-note,.report-metric-table thead th,.report pre,.command,.legal-table th,.runs-detail-row>td,.runs-facts,.runs-outcome,.watch-demo-report,.demo-example-report,.demo-example-readouts>div,.demo-example-report-preview){background:#fff!important;border-color:#ccc!important;box-shadow:none!important}
 html[data-theme] :is(p,small,span,label,dt,dd,li,th,td,h1,h2,h3,h4,h5,h6,summary,pre,code,strong,time){color:#111!important}
 html[data-theme] :is(input,select,textarea){background:#fff!important;color:#111!important;border-color:#ccc!important}
 .appearance-settings{display:none!important}
}
