:root[data-theme=dark]{color-scheme:dark;--ink:#f1f1f5;--muted:#b6b6c2;--line:#393943;--paper:#111115;--green:#ef3349;--red:#ef3349}
[data-theme=dark] body{background:#111115;color:var(--ink)}
[data-theme=dark] :is(h1,h2,h3,h4,.metric,.gh-metric strong){color:#f1f1f5}
[data-theme=dark] :is(.pf-card,.service-card,.gh-card,.gh-watch,.gh-detail,.gh-connection,.brief-panel,.tier-card,.hardware-card,.managed-project,.hosting-card,.pv-preview-panel,.pv-editor,.pv-setup,.pv-empty,.stage,.card,.customer-question,.customer-service,.login-card,.document-workbench,.metrics,.gh-metric,#pf-metrics .card){background:#1c1c23;border-color:var(--line);box-shadow:none}
[data-theme=dark] :is(.workspace>header,.document-dialog-actions){background:#1c1c23e8;border-color:var(--line)}
[data-theme=dark] :is(.small,.muted,.intro p,.customer-hero p,.customer-section>p,.customer-service p,.customer-step p,.login-card p,.customer-strip,.breadcrumb,.gh-card p,.pf-form label,.pf-panel dt,.tier-card p,.tier-card li,.hardware-card p,.method,.example-row,.stage p,.panel-title p,.pf-event time,.pf-event .small,.pv-feature .pv-reason,.form-status,.project-notice,.customer-nav>div>a:not(.button)){color:var(--muted)}
[data-theme=dark] :is(.secondary,.managed-project .button:not(.primary),.project-tag,.pf-delete,.save,.pv-tabs button,.customer-examples button){background:#25252e;color:#ededf3;border-color:var(--line)}
[data-theme=dark] .secondary:hover{background:#32323d}
[data-theme=dark] :is(input:not([type=color]),textarea,select,.pf-form input,.pf-form textarea,.pf-form select,.gh-filters input,.gh-filters select,.project-setup input,.form-row input,.form-row select,.document-workbench input,.document-workbench textarea,.document-workbench select,.customer-question textarea,.customer-enquiry input,.customer-enquiry textarea,.login-card input,.search){background:#141419;color:#f1f1f5;border-color:#454550}
[data-theme=dark] :is(.pf-chip,.gh-badge,.pv-badge,.project-state,.function-tag,.engine-pill,.example,.budget-badge,.tier-summary,.pv-feature .pv-adapter,.pf-panel,.gh-empty,.project-files,.price-notice,.guide-panel,.history-item,.pv-devices button,.dot){background:#2a2a34;color:#ceced8;border-color:var(--line)}
[data-theme=dark] :is(.gh-badge.failure,.pf-chip.failure,.pf-error,.gh-error,.pv-warning,.clarifications,.budget-badge.over){background:#3a2029;color:#ffabb7;border-color:#6c3542}
[data-theme=dark] :is(.tier-card.recommended,.tier-summary.recommended,.customer-service.recommended){background:#2a1c24;border-color:#ef3349}
[data-theme=dark] :is(.gh-badge.success,.pf-error.resolved,.done .dot){background:#30303a;color:#ededf3}
[data-theme=dark] :is(.icon,.step-number,.customer-service .service-symbol){background:#3a2029;color:#ff7183}
[data-theme=dark] :is(.gh-card-links a,.more,.tier-card a,.hardware-card a,.hosting-card a,.history-open){color:#ff9baa}
[data-theme=dark] .pv-stage{background:radial-gradient(#454550 1px,transparent 1px) 0 0/16px 16px,#15151c}
[data-theme=dark] :is(.pv-tabs [aria-selected=true],.customer-match-note){color:#ff8798}
[data-theme=dark] :is(.pv-tabs [aria-selected=true],.project-stages .complete){border-color:#ef3349}
[data-theme=dark] :is(.customer-strip,.customer-footer,.services li,.gh-file-table td,.gh-file-table th){border-color:var(--line)}
[data-theme=dark] .orbit-chip{background:#25252e;color:#dddde5;border-color:#454550}
[data-theme=dark] .system-orbit{border-color:#555561}
[data-theme=dark] :is(.system-motion-control,.install-help,#document-dialog){background:#1c1c23;color:#eeeef4;border-color:var(--line)}
[data-theme=dark] .pv-colours input{background:#25252e}
.app-shell-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.app-shell-controls .button{font-size:11px;padding:9px 12px}.customer-nav{flex-wrap:wrap}.customer-nav>div{flex-wrap:wrap}.owner-session-actions{flex-wrap:wrap}.install-help{width:min(440px,90vw);border:1px solid var(--line);border-radius:18px;padding:28px;background:#fff;color:#17171c}.install-help::backdrop{background:#0008}.install-help h2{font-size:23px}.install-help p{font-size:14px;line-height:1.8}
@media(max-width:650px){.customer-nav{gap:14px}.customer-nav>div{gap:10px}.app-shell-controls .button{padding:8px 10px}.workspace>header{height:auto;min-height:80px;flex-wrap:wrap;gap:10px;padding-top:12px;padding-bottom:12px}}
