.theme-selector{border:0;padding:0;margin:18px 0;text-align:left}.theme-selector legend{font-weight:600;margin-bottom:8px}.theme-options{display:flex;gap:7px}.theme-options button{flex:1;padding:9px 5px;font-size:.9rem}.theme-options button[aria-pressed=true]{background:#e7eee8;border-color:#b99754;color:#153f36;font-weight:700}
html[data-theme=dark]{color-scheme:dark;--ink:#e0eae4;--muted:#aabdb2;--line:#3c5148;--bg:#101d19}
html[data-theme=dark] body{background:#101d19;color:var(--ink)}
html[data-theme=dark] :is(header,.flow-actions,.panel,.stat,.member-item,.load-row,.cb-span,.cb-span-header,.cb-span-title,.project-card-actions,.project-card-foot,.project-empty,dialog,#member-startup){background:#1c2d27;color:#e0eae4;border-color:#3c5148}
html[data-theme=dark] :is(input,select,textarea){background:#263832;color:#eff6f1;border-color:#4a6056}
html[data-theme=dark] :is(button,.roof-material-control){background:#293d34;color:#e0eae4;border-color:#4a6056}
html[data-theme=dark] button.primary{background:#326d5b;color:#fff;border-color:#5c9781}
html[data-theme=dark] :is(.flow-header,.project-card-main){background:#16251f}
html[data-theme=dark] :is(.selection-check,.beam-self-weight,.export-total){background:#20382d;color:#e0eae4;border-color:#51866c}
html[data-theme=dark] .selection-check.fail{background:#43272a;border-color:#c66a6a}
html[data-theme=dark] :is(.flow-step.active,.theme-options button[aria-pressed=true]){background:#3a5548;color:#fff;border-color:#d0af6b}
html[data-theme=dark] :is(.beam-diagram-scroll,.rc-section-panel,.pdf-page,.pdf-document,.report-page){color-scheme:light;background:#fff;color:#223c36}
@media print{html[data-theme=dark]{color-scheme:light;--ink:#223c36;--muted:#7a8983;--line:#e1e7e2;--bg:#fff}}
html[data-theme=dark] :is(.calculation-screen .input-panel legend,.field>span,.project-card-total,.crumb strong){color:#d6e8dc}
html[data-theme=dark] :is(#sidebar,.installed-app #sidebar){background:#172820;border-color:#3c5148}
html[data-theme=dark] :is(.flow-steps button,.muted,.project-count,.project-type,.project-open-cue){color:#b2c5ba}
html[data-theme=dark] .calculation-screen .flow-header{background:#101d19}
#structure-member-dialog .settings-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
#structure-member-dialog .settings-heading h2{margin:0}
#structure-member-dialog .settings-subtitle{margin:2px 0;color:#71857a;font-size:.85rem}
#structure-member-dialog button.settings-close{width:40px;height:40px;padding:0;margin:0;flex:0 0 auto;font-size:26px;line-height:1;background:transparent;color:inherit;border:1px solid var(--line)}
#structure-member-dialog .settings-section{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:14px;min-width:0}
#structure-member-dialog .settings-section h3,#structure-member-dialog .theme-selector legend{font-size:1rem;font-weight:700;margin:0 0 6px}
#structure-member-dialog .settings-section p{margin:4px 0;overflow-wrap:anywhere}
#structure-member-dialog .theme-options button{display:block;width:auto;flex:1;min-width:0;margin:4px 0;padding:10px 5px;background:transparent;color:var(--ink);border:1px solid var(--line)}
#structure-member-dialog .theme-options button[aria-pressed=true]{background:#e7eee8;color:#153f36;border-color:#b99754;font-weight:700}
html[data-theme=dark] #structure-member-dialog .theme-options button[aria-pressed=true]{background:#3a5548;color:#fff;border-color:#d0af6b}
#structure-member-dialog .settings-data:not(:has(button:not([hidden]))):not(:has([data-cloud-status]:not(:empty))){display:none}
#structure-member-dialog .settings-brand{width:128px;height:auto;display:block;margin:0 0 12px}
#structure-member-dialog .settings-profile{display:flex;align-items:center;gap:12px;margin:10px 0}
#structure-member-dialog .settings-profile img,#structure-member-dialog .settings-profile>span{width:52px;height:52px;flex:0 0 52px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:#e8f0eb}
#structure-member-dialog .settings-profile>span{display:grid;place-items:center;font-size:25px;color:#315c49}
#structure-member-dialog .settings-motion{display:flex;align-items:center;justify-content:space-between;gap:12px}
#structure-member-dialog .settings-motion input{width:22px;height:22px;accent-color:#b99754}
#structure-member-dialog button.settings-logout{color:#b83434;background:transparent;border:1px solid #d9a6a6}
@media (max-width:700px){#structure-member-dialog.settings-open{position:fixed;inset:auto 0 0;width:100%;max-width:none;max-height:90dvh;margin:0;border-radius:20px 20px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));animation:settings-in .24s ease-out}}
@media (min-width:701px){#structure-member-dialog.settings-open{position:fixed;inset:12px 12px 12px auto;margin:0;max-height:calc(100dvh - 24px);animation:settings-right .24s ease-out}}
@keyframes settings-in{from{transform:translateY(18px);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes settings-right{from{transform:translateX(18px);opacity:.6}to{transform:translateX(0);opacity:1}}
html[data-animations=off] *,html[data-animations=off] *::before,html[data-animations=off] *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){#structure-member-dialog.settings-open{animation:none}}

#structure-member-dialog .settings-profile>span svg{width:30px;height:30px}
#structure-member-dialog:not(.settings-open) .settings-about,#structure-member-dialog:not(.settings-open) .settings-motion-section,#structure-member-dialog:not(.settings-open) .settings-data{display:none}
#structure-member-dialog:not(.settings-open) .settings-brand{width:min(210px,75%);margin:0 auto 18px}
#structure-member-dialog:not(.settings-open) .settings-heading>div{text-align:center;width:100%}
/* Dark appearance for the interactive app. Document and drawing surfaces stay legible. */
@media screen{
 html[data-theme=dark] body:has(.project-library),html[data-theme=dark] body:has(.project-library) .main{--bg:#101d19;background:#101d19!important;color:#e0eae4}
 html[data-theme=dark] body :is(.main,main,#content,.project-library,.calculation-screen){background-color:#101d19;color:#e0eae4}
 html[data-theme=dark] body :is(header,.main>header,.flow-actions,.panel,.member-item,.load-row,.project-card-actions,.project-card-foot,.project-empty,.cb-span,.cb-span-header,.cb-span-title){background:#1b2b25!important;color:#e0eae4;border-color:#40554b}
 html[data-theme=dark] body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#263a31!important;color:#f1f7f2!important;border-color:#52695d!important;caret-color:#f1f7f2}
 html[data-theme=dark] body :is(input,textarea)::placeholder{color:#b0c2b7!important;opacity:1}
 html[data-theme=dark] body :is(.field>span,.member-name-field>span,.member-level-field>span,legend,.project-library-heading p){color:#cad9cf!important}
 html[data-theme=dark] body :is(.sheet-choice,.premium-steel-trigger,.roof-material-control){background:#263a31!important;border-color:#52695d!important;color:#edf6ef!important}
 html[data-theme=dark] body :is(.sheet-choice strong,.sheet-choice small,.premium-steel-trigger small){color:#edf6ef!important}
 html[data-theme=dark] body :is(.sheet-choice.chosen,.sheet-choice:hover){background:#365346!important;border-color:#cbb073!important}
 html[data-theme=dark] body.calculation-screen .flow-steps button{background:transparent!important;color:#b8c9be!important}
 html[data-theme=dark] body.calculation-screen .flow-steps button.active,html[data-theme=dark] body.calculation-screen .flow-steps button.active small{color:#f2f7f3!important}
 html[data-theme=dark] body.calculation-screen .flow-steps button span{background:#3b5146!important;color:#edf6ef!important}
 html[data-theme=dark] body.calculation-screen .flow-steps button.active span{background:#5a9077!important;color:#fff!important}
 html[data-theme=dark] body :is(.selection-check,.beam-self-weight,.export-total){background:#20382d!important;color:#e0eae4;border-color:#51866c}
 html[data-theme=dark] body .selection-check.fail{background:#492b2c!important;border-color:#da8585!important;color:#ffe3e2}
 html[data-theme=dark] body :is(.selection-check.fail button,.settings-logout){color:#ffb3aa!important}
 html[data-theme=dark] body :is(.rafter-load-control,.project-card-main,.project-state,.tag){background:#263a31!important;color:#e8f3eb!important;border-color:#52695d!important}
 html[data-theme=dark] body :is(.rafter-load-control input){background:transparent!important}
 html[data-theme=dark] body #sidebar .work-tabs button{background:#20372d!important;color:#e4eee7!important;border-color:#405a4d!important}
 html[data-theme=dark] body #sidebar .work-tabs button.active{background:#334c3e!important;color:#fff!important;border-color:#d0af6b!important}
 html[data-theme=dark] body :is(dialog,.spt-billing-plans){background:#1b2b25;color:#edf5ef;border-color:#52695d}
 html[data-theme=dark] body :is(.beam-diagram-scroll,.rc-section-panel,.pdf-page,.pdf-document,.report-page){background:#fff!important;color:#223c36!important;color-scheme:light}
}

@media screen{
 html[data-theme=dark] body #sidebar .work-tabs [data-work-view] .nav-label,html[data-theme=dark] body #sidebar .work-tabs [data-work-view] .nav-label::after{color:#e4eee7!important}
 html[data-theme=dark] body #sidebar .work-tabs button[data-work-view].active::before{background:#344f42!important;box-shadow:inset 0 0 0 1px #b99754}
 html[data-theme=dark] body .flow-steps button.active small{color:#f0f7f1!important}
 html[data-theme=dark] body :is(.standards-status,.standards-message,.settings-subtitle){color:#b7cabe!important}
}
@media print{
 html[data-theme=dark] body{background:#fff!important;color:#223c36!important}
 html[data-theme=dark] body :is(.panel,.selection-check,.beam-self-weight,.export-total,.rc-section-panel,.beam-diagram-scroll,.pdf-page,.pdf-document,.report-page){background:#fff!important;color:#223c36!important;border-color:#d2dcd5!important}
 html[data-theme=dark] body :is(input,select,textarea){background:#fff!important;color:#223c36!important;border-color:#d2dcd5!important}
}
/* Use a transparent wordmark in both appearances. */
@media screen{
 html[data-theme=dark] img[src*="branding/spt-wordmark-transparent.png"],html[data-theme=dark] body:has(.project-library) .main>header::before,html[data-theme=dark] body:has(.profile-library) .main>header::before{filter:invert(1)}
 html[data-theme=dark] body :is(.profile-card,.profile-empty,.company-card,.company-image-preview,.billing-header,.billing-card,.billing-ai,.billing-credits,.billing-ai-status,.column-end-options,.premium-steel-dialog,.pdf-preview-toolbar,.pdf-preview-status,.pdf-view-tools){background:#1b2b25!important;color:#e8f2eb!important;border-color:#4c6357!important}
 html[data-theme=dark] body :is(.profile-card strong,.profile-card p,.profile-section h2,.company-page h1,.company-card-title,.billing-card h2,.billing-card h3,.billing-card p,.billing-ai h2,.billing-ai p,.billing-header h2,.pdf-preview-status){color:#e8f2eb!important}
 html[data-theme=dark] body :is(.profile-select,.profile-select strong,.profile-select span,.profile-select small){color:#e3eee6!important}
 html[data-theme=dark] body :is(.billing-notice,.billing-free-label){background:#33443a!important;color:#f1e6cb!important;border-color:#a48c5b!important}
 html[data-theme=dark] body :is(.premium-steel-dialog button,.column-end-options button){color:#e8f2eb!important}
 html[data-theme=dark] body .settings-subtitle{color:#b7cabe!important}
}
@media screen{
 html[data-theme=dark] .spt-billing-plans{--bill-green:#c8e5d2;--bill-ink:#e5f0e8;--bill-gold:#d4b679}
 html[data-theme=dark] .spt-billing-plans :is(.billing-header span,.billing-tag,.billing-tab-name,.billing-tab-period,.billing-price span,.billing-feature-heading,.billing-features li,.billing-ai-head p,.billing-footnote,.billing-notice strong,.billing-notice div>span){color:#d2e1d6!important}
 html[data-theme=dark] .spt-billing-plans .billing-tab{background:#263a31!important;border-color:#52695d!important;color:#e5f0e8!important}
 html[data-theme=dark] .spt-billing-plans .billing-tab.selected{background:#3a5548!important;border-color:#d0af6b!important}
 html[data-theme=dark] .spt-billing-plans :is(.billing-tab strong,.billing-credits strong,.billing-price strong){color:#e3f4e7!important}
 html[data-theme=dark] .spt-billing-plans .billing-card.recommended{background:#1b2b25!important}
 html[data-theme=dark] .spt-billing-plans .billing-features .unavailable{color:#aebeb3!important}
}
@media screen{
 html[data-theme=dark] body :is(.premium-live-loads>section,.section-panel,.section-panel-head,.summary-member,.summary-reports .detailed-print-report.paper){background:#1b2b25!important;color:#e5f0e8!important;border-color:#4c6357!important}
 html[data-theme=dark] body :is(.premium-live-loads h3,.section-panel h2,.section-panel dt,.section-panel dd,.summary-running-head,.summary-reports h1,.summary-reports h2,.summary-reports h3,.summary-reports h4,.summary-reports td,.summary-reports th,.summary-reports dd,.summary-reports math){color:#e5f0e8!important}
 html[data-theme=dark] body :is(.summary-reports .print-project-meta dt,.summary-reports .muted,.premium-live-loads .muted){color:#bed0c3!important}
 html[data-theme=dark] body .summary-reports thead th{background:#32493e!important;border-color:#50685b!important}
 html[data-theme=dark] body .summary-reports :is(td,th){border-color:#435a4d!important}
 html[data-theme=dark] body :is(.selection-check.pass b,.selection-check.pass .check-action,.summary-reports .pass){color:#9be0b5!important}
 html[data-theme=dark] body :is(.selection-check.fail b,.selection-check.fail .check-action,.summary-reports .bad){color:#ffaaa5!important}
 html[data-theme=dark] body :is(.premium-live-loads svg,.section-panel .section-svg,.summary-reports svg){filter:invert(.88) hue-rotate(180deg)}
}
@media screen and (max-width:760px){
 html[data-theme=dark] body #sidebar .work-tabs button[data-work-view],html[data-theme=dark] body #sidebar .work-tabs button[data-work-view].active{background:transparent!important}
 html[data-theme=dark] body #sidebar .work-tabs button[data-work-view].active::before{box-sizing:border-box;left:50%;top:50%;height:calc(100% - 4px);min-height:0;max-width:calc(100% - 4px);min-width:60px;padding:0 8px;border:1px solid #c6a45e;border-radius:8px;background:#344f42!important;box-shadow:none;transform:translate(-50%,-50%)}
}
@media screen {
 #structure-member-dialog:not(.settings-open) .theme-selector{display:none!important}
 html[data-theme=dark] body :is(.beam-diagram-scroll,.rc-section-panel){background:#1b2b25!important;color:#e5f0e8!important;border-color:#4c6357!important;color-scheme:dark}
 html[data-theme=dark] body :is(.beam-diagram-scroll svg,.rc-section-panel svg){filter:invert(.88) hue-rotate(180deg)}
 html[data-theme=dark] body .section-panel .section-specs{background:#1b2b25!important;color:#e5f0e8!important;border-color:#4c6357!important}
 html[data-theme=dark] body .section-panel .section-specs>div{border-color:#435a4d!important}
 html[data-theme=dark] body .section-panel .section-specs :is(dt,dd){color:#e5f0e8!important}
 html[data-theme=dark] body .section-panel .section-specs :is(dd small,p){color:#bed0c3!important}
 html[data-theme=dark] body .section-panel .section-svg{filter:none;background:#1b2b25}
 html[data-theme=dark] body .section-panel .section-svg>rect{fill:#1b2b25}
 html[data-theme=dark] body .section-panel .section-svg .section-material{fill:#a6bcbc;stroke:#d6e5df}
 html[data-theme=dark] body .section-panel .section-svg .section-material circle[fill="white"]{fill:#1b2b25}
 html[data-theme=dark] body .section-panel .section-svg .dimension path{stroke:#a8c1b6}
 html[data-theme=dark] body .section-panel .section-svg :is(.dimension text,.section-caption,.section-report-code,.section-report-name){fill:#e5f0e8!important}
 html[data-theme=dark] body .section-panel .section-svg .centerline{stroke:#779d9d}
}

@media screen {
 :is(.load-swipe,.member-swipe,.cb-span-swipe){background:transparent!important}
 :is([data-flow-back],[data-project-list],[data-profile-back]){-webkit-tap-highlight-color:transparent}
}

/* Align the visible wordmark with its underline; hide the motion control. */
#member-startup .startup-brand img{transform:translateX(5.88%)}
#structure-member-dialog .settings-motion-section{display:none}

/* The standards report is an on-screen editor, not the printable PDF page. */
@media screen {
 .standards-page .studio-report .original-details{display:none}
 html[data-theme=dark] body .standards-page .studio-report.paper{background:#1b2b25!important;color:#e5f0e8!important;border-color:#4c6357!important}
 html[data-theme=dark] body .standards-page .studio-report :is(h1,h2,h3,h4,strong,.brand-text,.calculation-label,.calculation-values,.calc-token,.original-equation,math){color:#e5f0e8!important}
 html[data-theme=dark] body .standards-page .studio-report :is(.muted,.report-meta,.report-note,.doc-head span){color:#bed0c3!important}
 html[data-theme=dark] body .standards-page .studio-report :is(.calculation-rows,.calculation-row,.report-meta,.doc-head,.original-details){border-color:#4c6357!important}
 html[data-theme=dark] body .standards-page .studio-report .calculation-row:nth-child(even){background:#23382f!important}
 html[data-theme=dark] body .standards-page .studio-report .original-table-scroll .paper{background:#1b2b25!important;color:#e5f0e8!important}
}

/* Retain light PDF artwork; adapt only the on-screen reference drawings. */
@media screen {
 html[data-theme=dark] body .detail-input-panel{background:#1b2b25!important;color:#e5f0e8!important;border-color:#4c6357!important}
 html[data-theme=dark] body .detail-input-panel :is(summary,label,span){color:#e5f0e8!important}
 html[data-theme=dark] body .detail-input-panel p{color:#bed0c3!important}
 html[data-theme=dark] body .detail-input-panel :is(input,select){background:#263a31!important;color:#edf5ef!important;border-color:#52695d!important}
 html[data-theme=dark] body .column-end-options{isolation:isolate}
 html[data-theme=dark] body .column-end-options img{filter:invert(1);mix-blend-mode:screen}
 html[data-theme=dark] body .rc-section-panel :is(svg[data-original-structural-reference],svg[data-stair-original-reference]){filter:none!important;background:#1b2b25;isolation:isolate}
 html[data-theme=dark] body .rc-section-panel :is(svg[data-original-structural-reference],svg[data-stair-original-reference]) > g > image,
 html[data-theme=dark] body .rc-section-panel svg[data-original-structural-reference] use{filter:url(#spt-dark-reference-art);mix-blend-mode:normal}
 html[data-theme=dark] body .rc-section-panel :is(svg[data-original-structural-reference],svg[data-stair-original-reference]) g rect[fill="#fff"]{fill:#1b2b25!important}
 html[data-theme=dark] body .rc-section-panel :is(svg[data-original-structural-reference],svg[data-stair-original-reference]) text{fill:#e5f0e8!important}
}
