:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#f1f3f5;background:#111214;--bg:#111214;--surface:#1a1c1f;--surface2:#22252a;--border:#3a3d42;--text:#f1f3f5;--muted:#a8adb5;--red:#d62828;--red2:#ef4444;--red-dark:#9f1d1d}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#17191c 0%,#0c0d0f 100%);min-height:100vh;color:var(--text)}a{color:#ff6b6b}header{display:flex;gap:1rem;align-items:center;padding:1rem 1.25rem;background:#090a0b;color:white;border-bottom:1px solid #34363a;box-shadow:0 3px 18px #0008;position:sticky;top:0;z-index:20}header a{color:white}.brand{font-weight:850;text-decoration:none;letter-spacing:.2px}.brand::before{content:"◆";color:var(--red2);margin-right:.5rem}.user{margin-left:auto;color:#c6cad0}main{max-width:1180px;margin:auto;padding:1rem}.panel,.hero{background:linear-gradient(160deg,#202226,#17191c);border:1px solid var(--border);border-radius:14px;padding:1.2rem;box-shadow:0 8px 26px #0007}.narrow{max-width:480px;margin:3rem auto}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1rem}.workspace-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.hero{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;border-left:4px solid var(--red)}.hero h1{margin:.25rem 0}.hero p{margin-bottom:0;color:#c4c8ce}.badge,.flags span{background:#38191b;border:1px solid #70262a;color:#ffb4b4;border-radius:999px;padding:.35rem .65rem;font-size:.78rem;font-weight:750}.crumbs{display:flex;gap:.5rem;align-items:center;margin:.25rem 0 1rem;font-size:.92rem;color:var(--muted)}.crumbs a{text-decoration:none}label{display:block;font-weight:650;margin:.8rem 0;color:#e8e9eb}input,textarea,select{display:block;width:100%;margin-top:.35rem;padding:.75rem;border:1px solid #4a4e55;border-radius:8px;font:inherit;background:#101113;color:#f4f4f5}input:focus,textarea:focus,select:focus{outline:2px solid #d6282877;border-color:var(--red2)}small{color:var(--muted)}.check{display:flex;gap:.55rem;align-items:center}.check input{width:auto;margin:0}button,.button{border:1px solid #f34b4b;border-radius:9px;padding:.8rem 1rem;background:linear-gradient(#e33131,#b91f24);color:white;font-weight:750;cursor:pointer;text-decoration:none;display:inline-block;box-shadow:0 3px 10px #0006}button:hover,.button:hover{background:linear-gradient(#f04444,#cf252a);transform:translateY(-1px)}.secondary{background:#383b40;border-color:#555a62}.card,.item{border:1px solid #3b3e44;border-radius:10px;padding:1rem;margin:.7rem 0;background:#181a1d}.linked{display:flex;justify-content:space-between;gap:1rem;align-items:center;text-decoration:none;color:inherit;transition:.15s}.linked:hover{border-color:var(--red2);box-shadow:0 5px 16px #0009;transform:translateY(-1px);background:#202225}.card small,.item small{display:block;color:var(--muted);margin-top:.2rem}.card p,.item p{margin-bottom:0;color:#d0d3d7}.alert{padding:.8rem 1rem;border-radius:8px;margin-bottom:1rem;border:1px solid}.error{background:#3b1518;color:#ffd1d1;border-color:#8e2f35}.ok{background:#153425;color:#bff3d3;border-color:#2c6b4b}.muted{color:var(--muted)}.flags{display:flex;gap:.35rem;flex-wrap:wrap}details{border-top:1px solid #3a3d42;margin-top:1rem;padding-top:1rem}summary{cursor:pointer;font-weight:750;color:#ff7777}.roadmap{background:#151719}footer{text-align:center;padding:2rem;color:#8e939b}.tier{border:1px solid #3b3f46;border-radius:10px;padding:.8rem;margin:.7rem 0;background:#151719}.tier summary{cursor:pointer}.inline-form{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap}.inline-form select{min-width:220px}.sync-history{margin-top:1rem}.sync-row{display:grid;grid-template-columns:155px 90px 1fr auto;gap:.65rem;align-items:start;border-top:1px solid #34373c;padding:.7rem 0}.status-success{color:#7ee2a8}.status-failed{color:#ff7777}.status-started{color:#ffd166}@media(max-width:760px){.grid,.workspace-grid{grid-template-columns:1fr}header{flex-wrap:wrap}.user{margin-left:0}.panel,.hero{border-radius:10px}.hero{display:block}h1{font-size:1.55rem}.linked{align-items:flex-start}.sync-row{grid-template-columns:1fr}.sync-row>*{display:block}}
.physical-table-card{border:1px solid #3b3e44;border-radius:11px;margin:.75rem 0;background:#151719;overflow:hidden;padding:0}.physical-table-card>summary{display:flex;align-items:center;gap:.75rem;padding:1rem;list-style:none;color:var(--text);background:#1b1d21}.physical-table-card>summary::-webkit-details-marker{display:none}.physical-table-card>summary:hover{background:#22252a}.physical-table-card .fold-icon{width:1.7rem;height:1.7rem;border-radius:50%;display:inline-grid;place-items:center;background:#3c1719;border:1px solid #7a292e;color:#ff8b8b;flex:0 0 auto}.physical-table-card .fold-icon::before{content:'+';font-size:1.25rem;line-height:1}.physical-table-card[open] .fold-icon::before{content:'−'}.physical-table-card summary small{display:block;margin-top:.22rem}.folded-content{padding:1rem;border-top:1px solid #34373c}.folded-content h3{margin:.1rem 0 .75rem}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.section-heading h2{margin-top:0}@media(max-width:760px){.section-heading{display:block}.section-heading form{margin-top:1rem}.physical-table-card>summary{align-items:flex-start}}

.synchronization-panel{padding:0;overflow:hidden;grid-column:1/-1}.synchronization-panel>summary{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem;list-style:none;color:var(--text);background:linear-gradient(160deg,#202226,#17191c)}.synchronization-panel>summary::-webkit-details-marker{display:none}.synchronization-panel>summary h2{margin:0 0 .2rem}.synchronization-panel>summary:hover{background:#23262a}.section-toggle{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:#3c1719;border:1px solid #7a292e;color:#ff8b8b;flex:0 0 auto}.section-toggle::before{content:'+';font-size:1.35rem}.synchronization-panel[open] .section-toggle::before{content:'−'}.synchronization-content{padding:0 1.2rem 1.2rem;border-top:1px solid #34373c}.synchronization-content>h3{margin-top:1.2rem}.tier-card{display:flex;align-items:center;gap:.8rem;padding:.65rem}.tier-card-link{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex:1;min-width:0;padding:.35rem;text-decoration:none;color:inherit}.tier-card-link:hover{color:inherit}.tier-copy-form{margin:0}.compact{padding:.58rem .75rem;white-space:nowrap}@media(max-width:760px){.tier-card{align-items:stretch;flex-direction:column}.tier-card-link{align-items:flex-start}.tier-copy-form button{width:100%}}

.tier-details-maintenance>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;list-style:none}.tier-details-maintenance>summary::-webkit-details-marker{display:none}.tier-details-maintenance>summary h2{margin:0}.tier-details-maintenance>summary small{display:block;margin-top:.35rem}.tier-details-maintenance[open]>summary{margin-bottom:1rem}.tier-details-maintenance input[readonly]{opacity:.78;cursor:not-allowed}
.workspace-card>summary,.synchronization-panel>summary,.tier-details-maintenance>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;list-style:none}.workspace-card>summary::-webkit-details-marker,.synchronization-panel>summary::-webkit-details-marker{display:none}.card-body{padding-top:1rem}.button{display:inline-block;background:#c62828;color:#fff;text-decoration:none;padding:.72rem 1rem;border-radius:.45rem;font-weight:700}.module-toolbar{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.record-card{background:#181818;border:1px solid #3b3b3b;border-radius:.7rem;padding:1rem}.record-card p{margin:.35rem 0}.record-actions{display:flex;gap:.7rem;margin:.8rem 0}.record-actions a{color:#ff6b6b}.tier-card{flex-wrap:wrap}.tier-card .button,.tier-card form{margin-left:.4rem}.danger{background:#8b0000}

.calculation-designer{margin:1rem 0;padding:1rem;border:1px solid #484c53;border-radius:10px;background:#111315}.calc-help{margin:.5rem 0 1rem;padding:.65rem .8rem;border-left:3px solid var(--red2);background:#241719;color:#ffd1d1}.calc-panel{border-top:1px solid #383c42;padding-top:.8rem;margin-top:.8rem}.calc-panel[hidden]{display:none}.calc-panel h4{margin:.2rem 0}.token-toolbar{display:flex;gap:.6rem;align-items:end}.token-toolbar select{flex:1}.operator-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;margin:.7rem 0}.token-button{padding:.45rem .65rem;min-width:2.5rem}.calculation-designer textarea{min-height:100px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}@media(max-width:760px){.token-toolbar{display:block}.token-toolbar button{width:100%;margin-top:.5rem}}
.metadata-status{display:inline-block;padding:.28rem .55rem;border:1px solid #666;border-radius:999px;font-size:.78rem;text-transform:capitalize}.status-built{border-color:#2e8b57}.status-out_of_date{border-color:#d6a300}.status-not_built{border-color:#888}.status-build_failed{border-color:#c62828}.status-grid,.metadata-summary{display:flex;gap:.75rem;flex-wrap:wrap;margin:1rem 0}.status-grid span,.metadata-summary span{background:#181818;border:1px solid #444;border-radius:.5rem;padding:.65rem}.tier-card{flex-wrap:wrap}.tier-card-link{min-width:260px;flex:1}

/* V3.0.0-B Live Preview Engine */
.hero-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.preview-hero{align-items:center}.health-pill{padding:.65rem .9rem;border-radius:999px;font-weight:800}.health-good{background:#143b27;border:1px solid #2f8f5b}.health-warn{background:#493911;border:1px solid #b18a21}.health-bad{background:#4a171b;border:1px solid #b83b43}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;padding:.75rem 1rem}.preview-tabs,.device-switcher{display:flex;gap:.35rem;flex-wrap:wrap}.preview-tabs a,.device-switcher a{padding:.55rem .75rem;border:1px solid #474b52;border-radius:8px;text-decoration:none;color:#d8dbe0;background:#17191c}.preview-tabs a.active,.device-switcher a.active{background:#b91f24;border-color:#ef4444;color:#fff}.preview-stage{overflow:auto;padding:1rem 0 2rem}.device-frame{margin:0 auto;transition:width .2s ease}.device-desktop{width:100%}.device-tablet{width:820px;max-width:100%}.device-phone{width:390px;max-width:100%}.runtime-shell{min-height:620px;background:#f4f5f7;color:#202226;border:10px solid #24262a;border-radius:18px;overflow:hidden;box-shadow:0 18px 60px #000b}.device-phone .runtime-shell{border-radius:28px}.runtime-topbar{background:#101113;color:#fff;padding:1rem 1.2rem;display:flex;justify-content:space-between;align-items:center}.runtime-topbar strong::before{content:'◆';color:#ef4444;margin-right:.55rem}.runtime-topbar span{font-size:.8rem;color:#bbb}.runtime-page{padding:1.25rem}.runtime-page h2{margin:.2rem 0 1rem}.runtime-card-grid,.runtime-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.device-phone .runtime-card-grid,.device-phone .runtime-record-grid{grid-template-columns:1fr}.runtime-module-card,.runtime-record-card{display:flex;flex-direction:column;gap:.45rem;background:#fff;border:1px solid #d7d9dd;border-radius:12px;padding:1rem;text-decoration:none;color:#202226;box-shadow:0 3px 12px #0001}.runtime-module-card:hover{border-color:#d62828;transform:translateY(-2px)}.runtime-module-card small{color:#626871}.runtime-module-card em{color:#a66b00;font-size:.78rem}.runtime-icon{color:#d62828;font-size:1.5rem}.compact-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.runtime-breadcrumb{display:flex;gap:.45rem;margin-bottom:1rem}.runtime-breadcrumb a{color:#b91f24}.runtime-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center}.runtime-heading button{box-shadow:none}.runtime-search{background:#fff;color:#222;border-color:#c7cbd1;margin:1rem 0}.runtime-record-card p{margin:.25rem 0}.runtime-actions{display:flex;gap:.8rem;border-top:1px solid #e4e5e7;padding-top:.7rem;margin-top:auto}.runtime-actions a,.runtime-actions span{color:#b91f24;font-weight:700}.workspace-tabs{display:flex;gap:.35rem;overflow:auto;border-bottom:1px solid #d5d7da;margin-bottom:1rem}.workspace-tabs a{padding:.7rem .9rem;text-decoration:none;color:#555;white-space:nowrap}.workspace-tabs a.active{color:#b91f24;border-bottom:3px solid #b91f24}.preview-record-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.preview-record-detail div{background:#fff;border:1px solid #ddd;border-radius:10px;padding:.9rem}.preview-record-detail small{display:block;color:#73777d}.solution-tree{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.7;background:#111315;padding:1rem;border-radius:10px}.tree-root{font-weight:800;color:#ff7b7b;margin-top:.8rem}.tree-branch{margin-left:1rem}.tree-branch a{color:#e8eaed;text-decoration:none}.tree-child{margin-left:2rem;color:#bcc1c8}.health-panel{position:relative}.health-score{display:flex;align-items:baseline;gap:.7rem;margin-bottom:1rem}.health-score strong{font-size:3rem;color:#ff6b6b}.health-metrics{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}.health-metrics span{background:#181a1d;border:1px solid #41454c;border-radius:999px;padding:.45rem .7rem}.preview-issue{display:grid;grid-template-columns:1fr 2fr auto;gap:1rem;padding:.8rem;border:1px solid #4b4f56;border-radius:9px;margin:.6rem 0;text-decoration:none;color:inherit}.preview-issue.error{border-left:4px solid #ef4444}.preview-issue.warning{border-left:4px solid #d6a300}.preview-issue small{color:#ff7b7b}@media(max-width:760px){.preview-toolbar,.runtime-heading{align-items:stretch;flex-direction:column}.preview-tabs,.device-switcher{width:100%}.preview-tabs a,.device-switcher a{flex:1;text-align:center}.preview-issue{grid-template-columns:1fr}.runtime-shell{min-height:560px}.hero-actions{margin-top:1rem}}


/* V3.0.0-C Interactive Designer */
.designer-mode-badge{display:inline-flex;align-items:center;padding:.55rem .75rem;border:1px solid #7a292e;border-radius:8px;background:#321719;color:#ff9b9b;font-weight:800}.designer-card{position:relative}.designer-card-main{display:flex;flex-direction:column;gap:.45rem;text-decoration:none;color:inherit;flex:1}.designer-card-tools{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-top:1px dashed #d7d9dd;padding-top:.65rem;margin-top:.4rem}.designer-card-tools a{color:#b91f24;text-decoration:none;font-weight:700;font-size:.82rem}.designer-card-tools details{position:relative}.designer-card-tools summary{cursor:pointer;color:#b91f24;font-weight:800;font-size:.82rem;list-style:none}.designer-card-tools summary::-webkit-details-marker{display:none}.designer-quick-form{position:absolute;right:0;top:1.7rem;z-index:20;width:310px;background:#151719;color:#eef0f2;border:1px solid #555b64;border-radius:10px;padding:1rem;box-shadow:0 16px 45px #0009}.designer-quick-form label{font-size:.78rem}.designer-quick-form input,.designer-quick-form textarea,.designer-quick-form select{background:#0e1012;color:#fff;border-color:#4c5159}.designer-quick-form textarea{min-height:70px}.designer-quick-form a{display:block;margin-top:.65rem;color:#ff7b7b}.drag-handle{cursor:grab;color:#7a7f87;font-size:1.1rem;letter-spacing:-.15rem;padding-right:.15rem;user-select:none}.designer-card.dragging{opacity:.45;outline:2px dashed #d62828}.designer-order-form{display:none}.designer-history{display:grid;gap:.5rem}.designer-history>div{display:grid;grid-template-columns:1fr 1fr auto;gap:.75rem;align-items:center;padding:.65rem;border:1px solid #42464d;border-radius:8px;background:#17191c}.designer-history small{color:#9da2aa}@media(max-width:760px){.designer-quick-form{position:fixed;left:1rem;right:1rem;top:5rem;width:auto;max-height:80vh;overflow:auto}.designer-history>div{grid-template-columns:1fr}}

.workspace-designer-tabs{align-items:center}.workspace-designer-tab{display:inline-flex;align-items:center;gap:.2rem;border-radius:7px}.workspace-designer-tab>a:first-child{padding:.7rem .45rem .7rem .9rem}.workspace-edit-link{padding:.7rem .55rem!important;color:#b91f24!important}.workspace-designer-tab.dragging{opacity:.45;background:#ffdede}.workspace-designer-tab .drag-handle{display:none}
/* V3.0.0-D Runtime Explorer */
.explorer-toolbar{position:sticky;top:0;z-index:4}.explorer-metrics{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:14px;margin:18px 0}.explorer-metrics article{background:var(--pf-panel,var(--surface,#1a1c1f));color:var(--pf-text,var(--text,#f1f3f5));border:1px solid var(--pf-border,var(--border,#3a3d42));border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:6px}.explorer-metrics strong{font-size:1.65rem;color:var(--pf-text,var(--text,#f1f3f5))}.explorer-metrics span{font-size:.83rem;color:var(--pf-muted,var(--muted,#a8adb5));opacity:1}.explorer-layout{grid-template-columns:minmax(280px,.8fr) minmax(420px,1.5fr)}.explorer-node,.explorer-subnode{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;margin:8px 0;border:1px solid rgba(127,127,127,.23);border-radius:12px;text-decoration:none;color:inherit;background:rgba(127,127,127,.035)}.explorer-node:hover,.explorer-node.selected,.explorer-subnode:hover{border-color:#4d8dff;background:rgba(77,141,255,.08)}.explorer-node span:first-child{display:flex;flex-direction:column}.explorer-node small,.explorer-subnode span{opacity:.65}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px}.detail-grid div{padding:12px;border:1px solid rgba(127,127,127,.2);border-radius:10px;display:flex;flex-direction:column;gap:4px}.detail-grid small{opacity:.62}.capability-list{display:flex;flex-wrap:wrap;gap:8px}.capability-list span{padding:7px 10px;border-radius:999px;font-size:.82rem}.capability-list .enabled{background:rgba(45,180,110,.14);color:#16854d}.capability-list .disabled{background:rgba(127,127,127,.12);opacity:.55}.dependency-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgba(127,127,127,.16)}.model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:15px}.model-card{padding:16px;border:1px solid rgba(127,127,127,.23);border-radius:14px;background:rgba(127,127,127,.035)}.model-card h3{margin:.35rem 0}.model-card dl{display:grid;grid-template-columns:100px 1fr;gap:7px;font-size:.86rem}.model-card dt{opacity:.6}.model-card dd{margin:0;overflow-wrap:anywhere}.model-card pre{max-height:250px;overflow:auto;font-size:.75rem;padding:10px;border-radius:8px;background:rgba(0,0,0,.18)}.model-type,.dependency-type{display:inline-flex;padding:5px 8px;border-radius:999px;background:rgba(77,141,255,.14);font-size:.75rem;font-weight:700}.dependency-map{display:grid;gap:12px}.dependency-map article{border:1px solid rgba(127,127,127,.23);border-radius:13px;padding:15px}.dependency-path{display:flex;align-items:center;gap:12px;margin:12px 0}.dependency-path a{font-weight:700}.build-history-row{display:grid;grid-template-columns:1fr auto;gap:4px 18px;padding:14px;border-left:4px solid rgba(127,127,127,.4);border-bottom:1px solid rgba(127,127,127,.16)}.build-history-row p,.build-history-row small{grid-column:1/-1;margin:2px 0}.build-history-row.status-success{border-left-color:#23a967}.build-history-row.status-failed{border-left-color:#d64d4d}@media(max-width:1000px){.explorer-metrics{grid-template-columns:repeat(3,1fr)}.explorer-layout{grid-template-columns:1fr}}@media(max-width:620px){.explorer-metrics{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.dependency-path{align-items:flex-start;flex-direction:column}.dependency-path b{transform:rotate(90deg)}}


/* V3.2.0 standardized PacForge product-family theme framework */
:root{--pf-bg:#111315;--pf-panel:#1b1e22;--pf-panel-2:#24282d;--pf-text:#f3f4f6;--pf-muted:#aeb4bd;--pf-border:#424850;--pf-accent:#d62828;--pf-accent-hover:#ef4444;--pf-focus:#7db4ff;--pf-radius:12px;--pf-shadow:0 12px 32px rgba(0,0,0,.24)}
body[data-theme="standard"]{--pf-bg:#111315;--pf-panel:#1b1e22;--pf-panel-2:#24282d;--pf-text:#f3f4f6;--pf-muted:#aeb4bd;--pf-border:#424850;--pf-accent:#d62828;--pf-accent-hover:#ef4444}
body[data-theme="light"]{--pf-bg:#eef1f5;--pf-panel:#fff;--pf-panel-2:#f7f8fa;--pf-text:#20242a;--pf-muted:#626b76;--pf-border:#cbd1d8;--pf-accent:#b91f24;--pf-accent-hover:#d62828}
body[data-theme="high-contrast"]{--pf-bg:#000;--pf-panel:#080808;--pf-panel-2:#111;--pf-text:#fff;--pf-muted:#fff;--pf-border:#fff;--pf-accent:#ff3038;--pf-accent-hover:#fff;--pf-focus:#00e5ff}
body[data-pacforge-product="builder"]{background:var(--pf-bg);color:var(--pf-text)}
body[data-pacforge-product="builder"] .panel,body[data-pacforge-product="builder"] .hero,body[data-pacforge-product="builder"] header{background:var(--pf-panel);color:var(--pf-text);border-color:var(--pf-border)}
body[data-pacforge-product="builder"] input,body[data-pacforge-product="builder"] select,body[data-pacforge-product="builder"] textarea{background:var(--pf-panel-2);color:var(--pf-text);border-color:var(--pf-border)}
body[data-pacforge-product="builder"] button,body[data-pacforge-product="builder"] .button{background:var(--pf-accent);border-color:var(--pf-accent);color:#fff}
body[data-pacforge-product="builder"] button:hover,body[data-pacforge-product="builder"] .button:hover{background:var(--pf-accent-hover)}
.theme-picker{display:inline-flex;margin:0}.theme-picker select{min-width:170px;padding:.5rem .7rem}
*:focus-visible{outline:3px solid var(--pf-focus);outline-offset:2px}


/* PacForge Builder V4.0.0 shared product-family theme catalog */
body.theme-standard{--bg:#16202b;--panel:#fff;--ink:#16202b;--accent:#c62828;--muted:#667085}
body.theme-midnight{--bg:#080d16;--panel:#111827;--ink:#f8fafc;--accent:#ef4444;--muted:#94a3b8}
body.theme-ocean{--bg:#083344;--panel:#ecfeff;--ink:#164e63;--accent:#0284c7;--muted:#64748b}
body.theme-forest{--bg:#14281d;--panel:#f0fdf4;--ink:#14532d;--accent:#15803d;--muted:#64748b}
body.theme-slate{--bg:#1e293b;--panel:#f8fafc;--ink:#1e293b;--accent:#475569;--muted:#64748b}
body.theme-light{--bg:#eef2f6;--panel:#fff;--ink:#172033;--accent:#c62828;--muted:#667085}
body.theme-sand{--bg:#e7dfd0;--panel:#fffaf0;--ink:#493b2a;--accent:#a8461b;--muted:#766957}
body.theme-high-contrast{--bg:#000;--panel:#000;--ink:#fff;--accent:#ff0;--muted:#fff}
.module-dashboard-card{border:1px solid var(--border,#d0d5dd);border-radius:16px;padding:20px;min-height:220px;background:var(--panel,#fff);color:var(--ink,#172033);box-shadow:0 8px 22px rgba(0,0,0,.12)}
.module-visual{height:86px;display:flex;align-items:center;justify-content:center;font-size:48px;border-radius:12px;background:rgba(127,127,127,.09);margin-bottom:16px}.metric-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.metric-form button{align-self:end}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:18px}.metric-grid article{border:1px solid var(--border,#d0d5dd);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px}.danger-zone{border-color:#b42318!important}.danger{background:#b42318!important}


/* V4.0.0 Builder user profile */
.user-profile-link{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .7rem;border:1px solid var(--pf-border);border-radius:999px;color:var(--pf-text);text-decoration:none;background:var(--pf-panel-2)}
.user-profile-link:hover{border-color:var(--pf-accent);color:var(--pf-text)}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.profile-password-panel{grid-column:1/-1}
.profile-audit{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:.55rem 1rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--pf-border)}
.profile-audit small{color:var(--pf-muted)}
.theme-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:.8rem 0 1rem}
.theme-preview{border:1px solid var(--pf-border);border-radius:10px;padding:.65rem;background:var(--pf-panel-2)}
.theme-preview span{display:block;height:42px;border-radius:7px;margin-bottom:.45rem;border:1px solid rgba(127,127,127,.35)}
.theme-preview[data-preview-theme="standard"] span{background:linear-gradient(135deg,#15171a 0 65%,#c90000 65%)}
.theme-preview[data-preview-theme="midnight"] span{background:linear-gradient(135deg,#07111f 0 65%,#d21f3c 65%)}
.theme-preview[data-preview-theme="ocean"] span{background:linear-gradient(135deg,#071a26 0 65%,#1596c7 65%)}
.theme-preview[data-preview-theme="forest"] span{background:linear-gradient(135deg,#0d1b14 0 65%,#2d9c5b 65%)}
.theme-preview[data-preview-theme="slate"] span{background:linear-gradient(135deg,#252a2f 0 65%,#bb1f2d 65%)}
.theme-preview[data-preview-theme="light"] span{background:linear-gradient(135deg,#eef1f5 0 65%,#c90000 65%)}
.theme-preview[data-preview-theme="sand"] span{background:linear-gradient(135deg,#eee7da 0 65%,#b25f25 65%)}
.theme-preview[data-preview-theme="high-contrast"] span{background:linear-gradient(135deg,#000 0 65%,#ff2020 65%)}
@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-password-panel{grid-column:auto}.profile-audit{grid-template-columns:1fr}.user-profile-link{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* PacForge Builder V4.0.0 complete product-family theme mappings. */
body[data-theme="standard"] {
    --pf-bg: #15171a;
    --pf-panel: #202328;
    --pf-panel-2: #292d33;
    --pf-text: #f4f5f7;
    --pf-muted: #adb3bd;
    --pf-border: #454b54;
    --pf-accent: #c90000;
    --pf-accent-hover: #e12727;
    --pf-focus: #7db4ff;
}

body[data-theme="midnight"] {
    --pf-bg: #07111f;
    --pf-panel: #0d1c30;
    --pf-panel-2: #122744;
    --pf-text: #eef6ff;
    --pf-muted: #9fb4cc;
    --pf-border: #28476b;
    --pf-accent: #d21f3c;
    --pf-accent-hover: #e94861;
    --pf-focus: #60a5fa;
}

body[data-theme="ocean"] {
    --pf-bg: #071a26;
    --pf-panel: #0d2838;
    --pf-panel-2: #12384e;
    --pf-text: #eefaff;
    --pf-muted: #a9c7d6;
    --pf-border: #28627d;
    --pf-accent: #1596c7;
    --pf-accent-hover: #36b5e5;
    --pf-focus: #facc15;
}

body[data-theme="forest"] {
    --pf-bg: #0d1b14;
    --pf-panel: #173024;
    --pf-panel-2: #204331;
    --pf-text: #f0fff5;
    --pf-muted: #afd0ba;
    --pf-border: #46755a;
    --pf-accent: #2d9c5b;
    --pf-accent-hover: #48b971;
    --pf-focus: #fde047;
}

body[data-theme="slate"] {
    --pf-bg: #252a2f;
    --pf-panel: #343a40;
    --pf-panel-2: #3f464d;
    --pf-text: #f4f5f6;
    --pf-muted: #c0c5ca;
    --pf-border: #626b75;
    --pf-accent: #bb1f2d;
    --pf-accent-hover: #d33b49;
    --pf-focus: #38bdf8;
}

body[data-theme="light"] {
    --pf-bg: #eef1f5;
    --pf-panel: #ffffff;
    --pf-panel-2: #f4f5f7;
    --pf-text: #1d232b;
    --pf-muted: #626d7a;
    --pf-border: #c8ced7;
    --pf-accent: #c90000;
    --pf-accent-hover: #e12727;
    --pf-focus: #2563eb;
}

body[data-theme="sand"] {
    --pf-bg: #eee7da;
    --pf-panel: #fffaf0;
    --pf-panel-2: #f4ead8;
    --pf-text: #34291f;
    --pf-muted: #756654;
    --pf-border: #b9a58a;
    --pf-accent: #b25f25;
    --pf-accent-hover: #ca7438;
    --pf-focus: #0369a1;
}

body[data-theme="high-contrast"] {
    --pf-bg: #000000;
    --pf-panel: #080808;
    --pf-panel-2: #111111;
    --pf-text: #ffffff;
    --pf-muted: #ffffff;
    --pf-border: #ffffff;
    --pf-accent: #ff3038;
    --pf-accent-hover: #ffffff;
    --pf-focus: #00e5ff;
}


/* V4.4.7.93 Complete Family Theme Definition Alignment.
   Canonical customer-facing theme codes are product-neutral. */
body[data-theme="autumn"] {
  --pf-bg:#2a1711;--pf-panel:#3a2118;--pf-panel-2:#4a2b1d;--pf-text:#fff7ed;--pf-muted:#fdba74;--pf-border:#7c3f22;--pf-accent:#ea580c;--pf-accent-hover:#f97316;--pf-focus:#fbbf24;
}
body[data-theme="spring"] {
  --pf-bg:#f3fbf4;--pf-panel:#ffffff;--pf-panel-2:#f0fdf4;--pf-text:#17351f;--pf-muted:#52705a;--pf-border:#b7d9bd;--pf-accent:#2f8f46;--pf-accent-hover:#24753a;--pf-focus:#db2777;
}
body[data-theme="summer"] {
  --pf-bg:#073b4c;--pf-panel:#0b5267;--pf-panel-2:#0e6378;--pf-text:#f0fdff;--pf-muted:#a5f3fc;--pf-border:#1aa6b7;--pf-accent:#06b6d4;--pf-accent-hover:#22d3ee;--pf-focus:#facc15;
}
body[data-theme="winter"] {
  --pf-bg:#eaf6ff;--pf-panel:#ffffff;--pf-panel-2:#f1f8fd;--pf-text:#16324a;--pf-muted:#55758e;--pf-border:#b8d8ed;--pf-accent:#0284c7;--pf-accent-hover:#0369a1;--pf-focus:#38bdf8;
}
body[data-theme="lavender"] {
  --pf-bg:#f4effa;--pf-panel:#ffffff;--pf-panel-2:#f8f4fc;--pf-text:#3f2854;--pf-muted:#756083;--pf-border:#d6c2e4;--pf-accent:#8b5cf6;--pf-accent-hover:#7c3aed;--pf-focus:#a855f7;
}

body[data-pacforge-product="builder"] {
    background: var(--pf-bg);
    color: var(--pf-text);
}

body[data-pacforge-product="builder"] header,
body[data-pacforge-product="builder"] .panel,
body[data-pacforge-product="builder"] .hero,
body[data-pacforge-product="builder"] .card,
body[data-pacforge-product="builder"] .item,
body[data-pacforge-product="builder"] .tier,
body[data-pacforge-product="builder"] .physical-table-card,
body[data-pacforge-product="builder"] .physical-table-card > summary,
body[data-pacforge-product="builder"] .synchronization-panel > summary,
body[data-pacforge-product="builder"] .module-dashboard-card,
body[data-pacforge-product="builder"] .theme-preview {
    background: var(--pf-panel);
    color: var(--pf-text);
    border-color: var(--pf-border);
}

body[data-pacforge-product="builder"] .linked:hover,
body[data-pacforge-product="builder"] .physical-table-card > summary:hover,
body[data-pacforge-product="builder"] .synchronization-panel > summary:hover,
body[data-pacforge-product="builder"] input,
body[data-pacforge-product="builder"] select,
body[data-pacforge-product="builder"] textarea,
body[data-pacforge-product="builder"] .user-profile-link {
    background: var(--pf-panel-2);
    color: var(--pf-text);
    border-color: var(--pf-border);
}

body[data-pacforge-product="builder"] p,
body[data-pacforge-product="builder"] small,
body[data-pacforge-product="builder"] .muted,
body[data-pacforge-product="builder"] .crumbs,
body[data-pacforge-product="builder"] .card small,
body[data-pacforge-product="builder"] .item small,
body[data-pacforge-product="builder"] .card p,
body[data-pacforge-product="builder"] .item p,
body[data-pacforge-product="builder"] .hero p,
body[data-pacforge-product="builder"] .user {
    color: var(--pf-muted);
}

body[data-pacforge-product="builder"] a,
body[data-pacforge-product="builder"] summary {
    color: var(--pf-accent-hover);
}

body[data-pacforge-product="builder"] header a,
body[data-pacforge-product="builder"] .brand,
body[data-pacforge-product="builder"] .user-profile-link {
    color: var(--pf-text);
}

body[data-pacforge-product="builder"] button,
body[data-pacforge-product="builder"] .button {
    background: var(--pf-accent);
    border-color: var(--pf-accent);
    color: #ffffff;
}

body[data-pacforge-product="builder"] button:hover,
body[data-pacforge-product="builder"] .button:hover {
    background: var(--pf-accent-hover);
    border-color: var(--pf-accent-hover);
}

body[data-theme="light"] button,
body[data-theme="sand"] button,
body[data-theme="slate"] button,
body[data-theme="light"] .button,
body[data-theme="sand"] .button,
body[data-theme="slate"] .button {
    color: var(--pf-text);
}

/* PacForge shared authentication framework */
.authentication-panel {
    width: min(100%, 460px);
    margin: clamp(2rem, 8vh, 5rem) auto;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.pacforge-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pacforge-auth-brand strong {
    font-size: clamp(2.15rem, 8vw, 3.2rem);
    font-weight: 900;
    letter-spacing: .09em;
    line-height: 1;
    color: var(--pf-text);
}

.pacforge-auth-brand span {
    margin-top: .4rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pf-accent-hover);
}

.pacforge-auth-brand small {
    margin-top: .8rem;
    color: var(--pf-muted);
}

.authentication-panel h1 {
    margin: 0 0 1.2rem;
    text-align: center;
}

.authentication-form {
    display: grid;
    gap: 1rem;
}

.password-input-wrap {
    position: relative;
    display: block;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 3.25rem;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid transparent;
    border-radius: .65rem;
    background: transparent !important;
    color: var(--pf-muted) !important;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease;
}

.password-visibility-toggle:hover {
    color: var(--pf-text) !important;
    transform: translateY(-50%) !important;
}

.password-visibility-toggle:focus,
.password-visibility-toggle:focus-visible {
    transform: translateY(-50%) !important;
}

.password-visibility-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--pf-accent) 38%, transparent);
    outline-offset: 2px;
    color: var(--pf-accent) !important;
}

.password-visibility-toggle:active {
    transform: translateY(-50%) !important;
}

.password-visibility-toggle[aria-pressed="true"],
.password-visibility-toggle[aria-pressed="true"]:hover,
.password-visibility-toggle[aria-pressed="true"]:focus,
.password-visibility-toggle[aria-pressed="true"]:active {
    transform: translateY(-50%) !important;
}

.password-visibility-toggle svg {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-visibility-toggle .password-eye-slash {
    display: none;
}

.password-visibility-toggle[aria-pressed="true"] {
    color: var(--pf-red, #d40000) !important;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye {
    display: inline-flex;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye-slash {
    display: none;
}

@media (pointer: coarse) {
    .password-input-wrap input {
        padding-right: 3.75rem;
    }

    .password-visibility-toggle {
        right: .2rem;
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
        min-height: 3rem;
    }

    .password-visibility-toggle svg {
        width: 1.65rem;
        height: 1.65rem;
    }
}

.authentication-submit {
    width: 100%;
    margin-top: .2rem;
    padding: .85rem 1rem;
    font-weight: 700;
}

.authentication-version {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: .82rem;
    color: var(--pf-muted);
}

@media (max-width: 560px) {
    .authentication-panel {
        margin: 1rem auto;
        border-radius: 0;
    }
}

/* V4.1.0-alpha.1 Solution Experience Designer foundation */
.experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: start;
}

.experience-form .form-grid,
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.check-grid {
    margin: 1rem 0;
}

.check-grid label {
    display: flex;
    gap: .65rem;
    align-items: center;
}

.experience-preview-card {
    min-height: 360px;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 900px) {
    .experience-layout,
    .experience-form .form-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }
}


/* V4.1.0-alpha.2 Solution Branding and Identity Designer */
.brand-colour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.colour-input {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .35rem;
}

.colour-input input[type="color"] {
    width: 3.2rem;
    height: 2.5rem;
    padding: .15rem;
}

.colour-input code {
    font-size: .78rem;
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .75rem;
}

.preview-toolbar .compact {
    padding: .35rem .6rem;
    min-height: auto;
}

.experience-device {
    transition: max-width .2s ease;
    margin: 0 auto;
}

.experience-device.mobile {
    max-width: 390px;
}

.experience-preview-shell {
    overflow: hidden;
    min-height: 570px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--brand-background);
    color: var(--brand-text);
}

.experience-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    background: var(--brand-secondary);
    color: #fff;
}

.brand-logo-preview {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--brand-surface);
    color: var(--brand-primary);
    font-weight: 800;
}

.brand-logo-preview[data-treatment="NATURAL"] { background: transparent; }
.brand-logo-preview[data-treatment="CONTAINED"] { border-radius: 4px; padding: 4px; }
.brand-logo-preview[data-treatment="ROUNDED"] { border-radius: 12px; padding: 4px; }
.brand-logo-preview[data-treatment="CIRCLE"] { border-radius: 50%; padding: 4px; }
.brand-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.experience-preview-main {
    min-height: 500px;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: linear-gradient(145deg, var(--brand-background), color-mix(in srgb, var(--brand-primary) 10%, var(--brand-background)));
}

.experience-preview-main .experience-preview-card {
    width: min(100%, 390px);
    min-height: auto;
    background: var(--brand-surface);
    color: var(--brand-text);
    border-top: 5px solid var(--brand-primary);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.experience-preview-card .welcome-kicker {
    color: var(--brand-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.experience-preview-card label {
    width: 100%;
    text-align: left;
}

.experience-preview-card button {
    width: 100%;
    background: var(--brand-primary);
}

.experience-preview-card a {
    color: var(--brand-primary);
}

@media (max-width: 1100px) {
    .brand-colour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .brand-colour-grid {
        grid-template-columns: 1fr;
    }

    .preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* V4.1.0-alpha.3 Runtime Experience */
.runtime-mock{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#eef2f7}.runtime-mock>header{display:flex;justify-content:space-between;padding:1rem;background:#1f2937;color:#fff}.runtime-mock-body{display:grid;grid-template-columns:150px 1fr;min-height:260px}.runtime-mock aside{padding:1rem;line-height:2.2;background:#fff;border-right:1px solid var(--border)}.runtime-mock main{padding:1.25rem}.theme-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin:1rem 0}.runtime-theme-card{padding:1rem;border:1px solid var(--border);border-radius:14px;background:var(--theme-surface);color:var(--theme-text)}.runtime-theme-card small{display:block;margin:.4rem 0}.theme-swatch{height:70px;border-radius:10px;background:var(--theme-background);display:flex;align-items:end;padding:.6rem;gap:.35rem}.theme-swatch span{display:block;width:28px;height:28px;border-radius:7px;background:var(--theme-primary)}.theme-swatch span:nth-child(2){background:var(--theme-surface)}.theme-swatch span:nth-child(3){background:var(--theme-text)}.profile-field-list{display:grid;gap:.65rem;margin:1rem 0}.profile-field-list article{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.8rem 1rem;border:1px solid var(--border);border-radius:12px}.profile-field-list small{display:block}.compact{padding:.35rem .6rem;min-height:auto}@media(max-width:700px){.runtime-mock-body{grid-template-columns:1fr}.runtime-mock aside{display:none}.profile-field-list article{align-items:flex-start;flex-direction:column}}


/* V4.1.0-alpha.4 Registration Framework and Public Access */
.public-access-grid{align-items:start}.public-preview{position:sticky;top:1rem}.public-site-mock{overflow:hidden;border:1px solid #d7dee8;border-radius:16px;background:#f7f9fc;box-shadow:0 12px 32px rgba(15,23,42,.08)}.public-site-mock header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:#fff;border-bottom:1px solid #e5e9f0}.public-site-mock nav{display:flex;gap:.75rem;flex-wrap:wrap;font-size:.8rem}.public-site-mock main{padding:3rem 2rem;text-align:center}.public-site-mock main h3{font-size:1.75rem;margin:.5rem 0}.public-site-mock main p{max-width:34rem;margin:0 auto 1.5rem}.public-site-mock main button{width:auto;margin:.25rem}.public-item-list{display:grid;gap:.75rem;margin:1rem 0}.public-item-list article{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.public-item-list article p{margin:.35rem 0 0}.full-width{grid-column:1/-1}@media(max-width:900px){.public-preview{position:static}.public-site-mock header{align-items:flex-start;flex-direction:column}.public-item-list article{flex-direction:column}}

/* V4.1.0-alpha.7 Solution Health Center */
.health-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.health-section-card{margin:0}.health-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.health-section-heading h2{margin:0}.health-state{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:7px 10px;border-radius:999px;font-weight:700}.health-state-healthy{background:#e7f6ec;color:#176b34}.health-state-warning{background:#fff4d6;color:#7a5200}.health-state-error{background:#fde8e8;color:#9c1c1c}.health-empty{padding:16px;border:1px dashed #9db5a5;border-radius:10px;background:#f6fbf7;color:#176b34}.health-issue-list{display:grid;gap:10px}.health-issue{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:12px;padding:13px;border:1px solid #d7dde3;border-radius:10px;background:#fff}.health-issue p{margin:4px 0 7px}.health-issue-badge{font-size:.72rem;font-weight:800;letter-spacing:.04em;padding:4px 7px;border-radius:999px}.health-issue-error{border-left:4px solid #b42318}.health-issue-warning{border-left:4px solid #b7791f}.health-issue-info{border-left:4px solid #2b6cb0}.health-issue-error .health-issue-badge{background:#fde8e8;color:#9c1c1c}.health-issue-warning .health-issue-badge{background:#fff4d6;color:#7a5200}.health-issue-info .health-issue-badge{background:#e7f0fb;color:#1f5f99}@media(max-width:850px){.health-section-grid{grid-template-columns:1fr}.health-issue{grid-template-columns:1fr}.health-issue form{justify-self:start}}


/* V4.3.0 Widget Framework */
.widget-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.widget-catalog article{display:flex;gap:.85rem;padding:1rem;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.widget-catalog p{margin:.35rem 0 0}.widget-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:var(--primary);color:#fff;font-size:1.25rem}.widget-builder-grid{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(440px,1.1fr);gap:1rem;align-items:start}.widget-dashboard-preview{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--background)}.widget-dashboard-preview>header{display:flex;justify-content:space-between;padding:1rem;background:var(--surface);border-bottom:1px solid var(--border)}.widget-dashboard-preview>main{display:grid;grid-template-columns:repeat(12,1fr);gap:.75rem;padding:1rem;min-height:330px}.widget-preview-card{display:flex;flex-direction:column;gap:.4rem;min-height:105px;padding:1rem;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 8px 24px rgba(15,23,42,.06)}.widget-preview-card small{font-weight:800;letter-spacing:.08em}.widget-preview-card strong{font-size:1.05rem}.widget-empty{grid-column:1/-1;display:grid;place-items:center;align-content:center;text-align:center;min-height:280px;border:2px dashed var(--border);border-radius:14px}.configured-widget-list{display:grid;gap:.75rem}.configured-widget-list article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:12px}.configured-widget-list small{display:block;margin-top:.25rem}@media(max-width:1000px){.widget-builder-grid{grid-template-columns:1fr}}@media(max-width:650px){.widget-dashboard-preview>main{grid-template-columns:1fr}.widget-preview-card{grid-column:1/-1!important}.configured-widget-list article{align-items:flex-start;flex-direction:column}}

/* V4.4.7.4 Application maintenance workflow improvements */
.icon-picker-field{display:grid;gap:.55rem}.icon-current{display:grid;grid-template-columns:52px minmax(160px,1fr) auto;gap:.6rem;align-items:center}.icon-preview{height:46px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:1.35rem}.icon-current input[readonly]{margin:0}.icon-picker-panel{border:1px solid var(--border);border-radius:14px;padding:.8rem;background:var(--surface);box-shadow:0 16px 38px rgba(0,0,0,.18)}.icon-picker-toolbar{display:flex;gap:.6rem;align-items:center;margin-bottom:.75rem}.icon-picker-toolbar input{flex:1;margin:0}.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:.5rem;max-height:330px;overflow:auto;padding:.15rem}.icon-choice{min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;padding:.55rem;background:var(--background);border:1px solid var(--border);color:var(--text);border-radius:10px}.icon-choice:hover,.icon-choice:focus{border-color:var(--primary);background:var(--surface)}.icon-choice i{font-size:1.35rem}.icon-choice span{font-size:.75rem;text-align:center}.icon-choice[hidden]{display:none!important}@media(max-width:650px){.icon-current{grid-template-columns:46px 1fr}.icon-current button{grid-column:1/-1}.icon-grid{grid-template-columns:repeat(3,1fr)}}

/* V4.4.7.7 Business Module Management */
.business-module-row strong i{width:1.45rem;text-align:center;margin-right:.3rem}.business-module-preview{margin-top:1rem}.runtime-module-list{margin-top:1rem}.runtime-module-list h3{margin:1rem 0 .45rem}.runtime-module-item{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.8rem .9rem;margin:.5rem 0;border:1px solid var(--border);border-radius:10px;background:var(--background);color:var(--text);text-decoration:none}.runtime-module-item:hover{border-color:var(--primary)}.runtime-module-item span:first-child{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.runtime-module-item small{width:100%;margin-left:1.8rem}@media(max-width:650px){.runtime-module-item{align-items:flex-start;flex-direction:column}.runtime-module-item small{margin-left:0}}

/* V4.4.7.8 Business Module WYSIWYG Runtime Preview */
.business-module-runtime-preview{grid-column:1/-1}.business-module-preview-stage{padding-bottom:0}.business-module-runtime-preview .runtime-page{min-height:520px}.business-module-runtime-preview .runtime-heading h2{display:flex;align-items:center;gap:.55rem;margin:.25rem 0}.business-module-card-grid{margin-top:1rem}.runtime-card-action{margin-top:auto;padding-top:.65rem;color:#b91f24;font-weight:800}.runtime-card-unavailable{border-style:dashed}.runtime-card-unavailable em{color:#a66b00;font-size:.78rem}.runtime-widget-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;margin:1rem 0}.runtime-widget-card{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid #d7d9dd;border-radius:12px;padding:1rem;color:#202226;box-shadow:0 3px 12px #0001}.runtime-widget-card small{color:#73777d;font-size:.72rem;font-weight:800;letter-spacing:.06em}.runtime-widget-card strong{font-size:1.05rem}.runtime-widget-card span{color:#626871;font-size:.82rem}.runtime-empty-state{min-height:220px;display:grid;place-items:center;align-content:center;gap:.55rem;text-align:center;border:2px dashed #d7d9dd;border-radius:12px;background:#fff;color:#626871;margin-top:1rem}.runtime-empty-state i{font-size:2rem;color:#d62828}.runtime-empty-state strong{color:#202226}@media(max-width:650px){.runtime-widget-grid{grid-template-columns:1fr}.business-module-runtime-preview .runtime-page{padding:.85rem}}

/* V4.4.7.9 Business Module Preview Navigation & Managed Images */
.module-image-field{display:grid;gap:.65rem}.module-image-preview{display:flex;align-items:center;gap:.8rem;padding:.75rem;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.03)}.module-image-preview img{width:96px;height:64px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}.module-image-preview span{overflow-wrap:anywhere}.runtime-business-module-card{position:relative;overflow:hidden}.runtime-business-module-card.has-background-image{background-image:linear-gradient(rgba(10,14,20,.62),rgba(10,14,20,.62)),var(--module-card-bg);background-size:cover;background-position:var(--module-card-bg-position,center top)}.runtime-business-module-card.has-background-image>*{position:relative;z-index:1}.runtime-module-image-icon{width:54px;height:54px;object-fit:cover;border-radius:14px;display:block}.runtime-business-module-card.image-position-bottom{display:flex;flex-direction:column}.runtime-business-module-card.image-position-bottom .runtime-module-image-icon{order:4;margin-top:.65rem}.runtime-business-module-card.image-position-bottom .runtime-card-action{order:3}.runtime-business-module-card.image-position-bottom strong{order:1}.runtime-business-module-card.image-position-bottom small{order:2}

/* V4.4.7.10 Solution Live Preview Runtime Main Navigation */
.solution-home-preview .runtime-heading{margin-bottom:.75rem}.solution-home-card-grid{margin-top:1rem}.solution-home-widget-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.runtime-card-summary{font-size:.75rem;color:#73777d;margin-top:.25rem}.runtime-preview-note{margin-top:1rem;padding:.8rem 1rem;border-radius:10px;background:#f4f5f7;color:#626871;font-size:.82rem}.runtime-preview-note strong{color:#202226}@media(max-width:900px){.solution-home-widget-grid .runtime-widget-card{grid-column:span 12!important}}

/* V4.4.7.11 — preview-only Runtime theme switching. These variables are scoped
   to the WYSIWYG frame and never alter the Builder user's saved theme. */
.runtime-preview-theme-control{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.runtime-preview-theme-control label{margin:0;font-size:.78rem;font-weight:800;color:var(--pf-muted)}.runtime-preview-theme-control select{width:auto;min-width:180px;margin:0;padding:.5rem .7rem}.runtime-preview-theme-control small{font-size:.7rem;color:var(--pf-muted)}
.solution-live-preview-shell{--rt-bg:#111315;--rt-surface:#1b1e22;--rt-surface-2:#24282d;--rt-text:#f3f4f6;--rt-muted:#aeb4bd;--rt-border:#424850;--rt-accent:#d62828;--rt-accent-hover:#ef4444;background:var(--rt-bg);color:var(--rt-text)}
.solution-live-preview-shell[data-runtime-preview-theme="standard"]{--rt-bg:#111315;--rt-surface:#1b1e22;--rt-surface-2:#24282d;--rt-text:#f3f4f6;--rt-muted:#aeb4bd;--rt-border:#424850;--rt-accent:#d62828;--rt-accent-hover:#ef4444}
.solution-live-preview-shell[data-runtime-preview-theme="midnight"]{--rt-bg:#080d16;--rt-surface:#111827;--rt-surface-2:#172033;--rt-text:#f8fafc;--rt-muted:#94a3b8;--rt-border:#334155;--rt-accent:#ef4444;--rt-accent-hover:#f87171}
.solution-live-preview-shell[data-runtime-preview-theme="ocean"]{--rt-bg:#083344;--rt-surface:#0e4d5c;--rt-surface-2:#155e75;--rt-text:#ecfeff;--rt-muted:#a5f3fc;--rt-border:#0891b2;--rt-accent:#38bdf8;--rt-accent-hover:#7dd3fc}
.solution-live-preview-shell[data-runtime-preview-theme="forest"]{--rt-bg:#10251b;--rt-surface:#173527;--rt-surface-2:#214a36;--rt-text:#f0fdf4;--rt-muted:#bbf7d0;--rt-border:#3f7655;--rt-accent:#22c55e;--rt-accent-hover:#4ade80}
.solution-live-preview-shell[data-runtime-preview-theme="slate"]{--rt-bg:#253041;--rt-surface:#334155;--rt-surface-2:#475569;--rt-text:#f8fafc;--rt-muted:#cbd5e1;--rt-border:#64748b;--rt-accent:#e11d48;--rt-accent-hover:#fb7185}
.solution-live-preview-shell[data-runtime-preview-theme="light"]{--rt-bg:#eef1f5;--rt-surface:#fff;--rt-surface-2:#f7f8fa;--rt-text:#20242a;--rt-muted:#626b76;--rt-border:#cbd1d8;--rt-accent:#b91f24;--rt-accent-hover:#d62828}
.solution-live-preview-shell[data-runtime-preview-theme="sand"]{--rt-bg:#eee8dc;--rt-surface:#fffaf0;--rt-surface-2:#f6efe2;--rt-text:#3c342b;--rt-muted:#74695d;--rt-border:#cfc3b2;--rt-accent:#a33a2b;--rt-accent-hover:#c54c38}
.solution-live-preview-shell[data-runtime-preview-theme="high-contrast"]{--rt-bg:#000;--rt-surface:#080808;--rt-surface-2:#111;--rt-text:#fff;--rt-muted:#fff;--rt-border:#fff;--rt-accent:#ff3038;--rt-accent-hover:#00e5ff}
.solution-live-preview-shell[data-runtime-preview-theme="autumn"]{--rt-bg:#2a1711;--rt-surface:#3a2118;--rt-surface-2:#4a2b1d;--rt-text:#fff7ed;--rt-muted:#fdba74;--rt-border:#7c3f22;--rt-accent:#ea580c;--rt-accent-hover:#f97316}
.solution-live-preview-shell[data-runtime-preview-theme="spring"]{--rt-bg:#f3fbf4;--rt-surface:#fff;--rt-surface-2:#f0fdf4;--rt-text:#17351f;--rt-muted:#52705a;--rt-border:#b7d9bd;--rt-accent:#2f8f46;--rt-accent-hover:#24753a}
.solution-live-preview-shell[data-runtime-preview-theme="summer"]{--rt-bg:#073b4c;--rt-surface:#0b5267;--rt-surface-2:#0e6378;--rt-text:#f0fdff;--rt-muted:#a5f3fc;--rt-border:#1aa6b7;--rt-accent:#06b6d4;--rt-accent-hover:#22d3ee}
.solution-live-preview-shell[data-runtime-preview-theme="winter"]{--rt-bg:#eaf6ff;--rt-surface:#fff;--rt-surface-2:#f1f8fd;--rt-text:#16324a;--rt-muted:#55758e;--rt-border:#b8d8ed;--rt-accent:#0284c7;--rt-accent-hover:#0369a1}
.solution-live-preview-shell[data-runtime-preview-theme="lavender"]{--rt-bg:#f4effa;--rt-surface:#fff;--rt-surface-2:#f8f4fc;--rt-text:#3f2854;--rt-muted:#756083;--rt-border:#d6c2e4;--rt-accent:#8b5cf6;--rt-accent-hover:#7c3aed}
.solution-live-preview-shell .runtime-topbar{background:var(--rt-surface-2);color:var(--rt-text);border-bottom:1px solid var(--rt-border)}.solution-live-preview-shell .runtime-topbar strong::before{color:var(--rt-accent)}.solution-live-preview-shell .runtime-topbar span{color:var(--rt-muted)}.solution-live-preview-shell .runtime-page{background:var(--rt-bg);color:var(--rt-text);min-height:560px}.solution-live-preview-shell .runtime-module-card,.solution-live-preview-shell .runtime-record-card,.solution-live-preview-shell .runtime-widget-card,.solution-live-preview-shell .runtime-empty-state,.solution-live-preview-shell .preview-record-detail div{background:var(--rt-surface);color:var(--rt-text);border-color:var(--rt-border)}.solution-live-preview-shell .runtime-module-card small,.solution-live-preview-shell .runtime-widget-card small,.solution-live-preview-shell .runtime-widget-card span,.solution-live-preview-shell .runtime-empty-state,.solution-live-preview-shell .preview-record-detail small,.solution-live-preview-shell .runtime-card-summary{color:var(--rt-muted)}.solution-live-preview-shell .runtime-module-card:hover{border-color:var(--rt-accent)}.solution-live-preview-shell .runtime-icon,.solution-live-preview-shell .runtime-empty-state i{color:var(--rt-accent)}.solution-live-preview-shell .runtime-card-action,.solution-live-preview-shell .runtime-breadcrumb a,.solution-live-preview-shell .runtime-actions a,.solution-live-preview-shell .runtime-actions span{color:var(--rt-accent)}.solution-live-preview-shell .runtime-search{background:var(--rt-surface);color:var(--rt-text);border-color:var(--rt-border)}.solution-live-preview-shell .runtime-preview-note{background:var(--rt-surface-2);color:var(--rt-muted);border:1px solid var(--rt-border)}.solution-live-preview-shell .runtime-preview-note strong,.solution-live-preview-shell .runtime-empty-state strong{color:var(--rt-text)}.solution-live-preview-shell .runtime-actions,.solution-live-preview-shell .workspace-tabs{border-color:var(--rt-border)}.solution-live-preview-shell .workspace-tabs a{color:var(--rt-muted)}.solution-live-preview-shell .workspace-tabs a.active{color:var(--rt-accent);border-color:var(--rt-accent)}
@media(max-width:900px){.runtime-preview-theme-control{width:100%}.runtime-preview-theme-control select{flex:1}}


/* V4.4.7.30 Inline Business Module Assignment */
.tier-module-assignment-form{display:inline-flex;align-items:center;margin:0}.tier-module-assignment-form label{display:flex;align-items:center;gap:.45rem;margin:0}.tier-module-assignment-form label>span{font-size:.75rem;font-weight:800;white-space:nowrap}.tier-module-assignment-form select{width:auto;min-width:170px;max-width:260px;margin:0;padding:.38rem .6rem;min-height:auto}@media(max-width:700px){.tier-module-assignment-form{width:100%}.tier-module-assignment-form label{width:100%;align-items:flex-start;flex-direction:column}.tier-module-assignment-form select{width:100%;max-width:none}}


/* V4.4.7.31 Public Access Validation Preservation & Field Highlighting */
.public-access-field-error {
    background: #ffe3e3 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.18);
}
.public-access-label-error {
    color: #ffb4b4;
}
.public-access-label-error > small {
    color: inherit;
}


/* V4.4.7.32 Application-Driven Registration Model */
.application-registration-summary{grid-column:1/-1;display:grid;gap:.75rem;margin:.75rem 0}.registration-application-card{border:1px solid var(--border,#334155);border-radius:10px;padding:.85rem;display:grid;gap:.35rem;background:rgba(15,23,42,.18)}.registration-application-card div{display:grid;gap:.25rem}.registration-application-card span{font-size:.86rem}.application-registration-field{margin-top:1rem;border:1px solid rgba(148,163,184,.35);border-radius:10px;padding:1rem}.application-registration-field legend{font-weight:700;padding:0 .35rem}

/* V4.4.7.48 Application Card Action card and icon selection alignment */
.card-action-suggestion-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1rem;margin-top:1rem}
.card-action-suggestion-card{min-width:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:1rem;display:grid;gap:1rem}
.card-action-suggestion-card.is-configured{border-style:solid}
.card-action-suggestion-header{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:.8rem;align-items:start}
.card-action-suggestion-header h4{margin:.12rem 0 .25rem;font-size:1.05rem}
.card-action-suggestion-header p{margin:0;color:var(--muted);font-size:.82rem;overflow-wrap:anywhere}
.card-action-card-icon{width:54px;height:54px;border:1px solid var(--border);border-radius:14px;display:grid;place-items:center;background:var(--background);font-size:1.45rem}
.card-action-suggestion-form{display:grid;gap:.8rem}
.card-action-suggestion-form label{min-width:0}
.card-action-configured-summary{display:grid;gap:.6rem}
.card-action-configured-summary strong{display:flex;align-items:center;gap:.5rem}
.configured-card-action-title{display:flex;align-items:center;gap:.7rem;min-width:0}
.configured-card-action-icon{width:42px;height:42px;flex:0 0 42px;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;background:var(--background)}
@media(max-width:650px){.card-action-suggestion-grid{grid-template-columns:1fr}.card-action-suggestion-header{grid-template-columns:50px minmax(0,1fr)}.card-action-suggestion-header .badge{grid-column:1/-1;justify-self:start}}

/* V4.4.7.70 unified profile/theme card selection */
.theme-card-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.theme-select-card{appearance:none;width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.theme-select-card:hover,.theme-select-card:focus-visible{transform:translateY(-2px);border-color:var(--pf-accent);box-shadow:0 8px 20px rgba(0,0,0,.25);outline:none}
.theme-select-card.selected{border-color:var(--pf-accent);box-shadow:0 0 0 2px var(--pf-accent)}
.theme-select-card strong,.theme-select-card small{display:block}.theme-select-card small{margin-top:.25rem;color:var(--pf-muted)}
.theme-card-actions{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;margin-top:.8rem}
@media(max-width:680px){.theme-card-actions{align-items:stretch;flex-direction:column}.theme-card-actions button{width:100%}}


/* V4.4.7.88 — Builder Trust Administration UX Alignment */
body[data-pacforge-product="builder"] header{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
body[data-pacforge-product="builder"] header .header-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .78rem;border:1px solid color-mix(in srgb,var(--pf-border) 78%,var(--pf-accent) 22%);border-radius:999px;background:linear-gradient(145deg,color-mix(in srgb,var(--pf-panel-2) 92%,var(--pf-accent) 8%),var(--pf-panel-2));box-shadow:0 5px 16px rgba(0,0,0,.2);text-decoration:none;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
body[data-pacforge-product="builder"] header .header-pill:hover,body[data-pacforge-product="builder"] header .header-pill:focus-visible{transform:translateY(-1px);border-color:var(--pf-accent);box-shadow:0 8px 20px rgba(0,0,0,.28);outline:none}
body[data-pacforge-product="builder"] header .signout-pill{margin-left:.1rem;background:linear-gradient(135deg,var(--pf-accent-light,#ef4444),var(--pf-accent,#d62828) 55%,var(--pf-accent-dark,#9f1d1d));color:var(--pf-accent-text,#fff);border-color:color-mix(in srgb,var(--pf-accent) 80%,white 20%)}
.builder-trust-hero{position:relative;overflow:hidden}.builder-trust-hero:after{content:"";position:absolute;right:-70px;top:-90px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--pf-accent) 24%,transparent),transparent 68%);pointer-events:none}.trust-ready{display:inline-flex;gap:.4rem;align-items:center}.builder-trust-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-bottom:1rem}.trust-section-heading{display:flex;gap:.8rem;align-items:flex-start;margin-bottom:1rem}.trust-section-heading h2{margin:.05rem 0 .25rem}.trust-section-heading p{margin:0}.compact-heading{margin-top:.2rem}.trust-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:13px;color:var(--pf-accent-text,#fff);background:linear-gradient(135deg,var(--pf-accent-light,#ef4444),var(--pf-accent,#d62828) 55%,var(--pf-accent-dark,#9f1d1d));box-shadow:0 7px 18px color-mix(in srgb,var(--pf-accent) 25%,transparent)}.trust-details{display:grid;grid-template-columns:minmax(140px,.42fr) minmax(0,1fr);margin:0}.trust-details dt,.trust-details dd{margin:0;padding:.7rem 0;border-bottom:1px solid color-mix(in srgb,var(--pf-border) 75%,transparent)}.trust-details dt{font-weight:750;color:var(--pf-muted)}.trust-details dd{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-width:0}.trust-details code{overflow-wrap:anywhere;color:var(--pf-text);font-size:.84rem}.trust-long-value code{word-break:break-all}.icon-copy-button{flex:0 0 auto;padding:.45rem .58rem;min-width:38px;box-shadow:none}.trust-key-panel{margin-top:1.2rem;padding-top:1.1rem;border-top:1px solid var(--pf-border)}.secret-control{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.55rem;align-items:stretch}.secret-control input{margin:0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.secret-control button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;white-space:nowrap}.trust-notice{display:flex;gap:.7rem;align-items:flex-start;margin-top:1rem;padding:.85rem 1rem;border:1px solid color-mix(in srgb,var(--pf-info,#38bdf8) 50%,var(--pf-border));border-radius:12px;background:color-mix(in srgb,var(--pf-info,#38bdf8) 9%,var(--pf-panel-2));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.trust-notice.warning{border-color:color-mix(in srgb,var(--pf-warning,#f59e0b) 55%,var(--pf-border));background:color-mix(in srgb,var(--pf-warning,#f59e0b) 10%,var(--pf-panel-2))}.trust-notice>i{margin-top:.18rem}.trust-notice strong,.trust-notice span{display:block}.trust-notice span{margin-top:.18rem;color:var(--pf-muted)}.status-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.34rem .62rem;border-radius:999px;font-size:.78rem;font-weight:800}.status-ready{background:color-mix(in srgb,var(--pf-success,#22c55e) 18%,var(--pf-panel-2));border:1px solid color-mix(in srgb,var(--pf-success,#22c55e) 55%,var(--pf-border));color:var(--pf-text)}.trust-how-it-works{margin-bottom:1rem}.trust-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;list-style:none;counter-reset:trust-step;padding:0;margin:1rem 0 0}.trust-steps li{counter-increment:trust-step;position:relative;padding:1rem 1rem 1rem 3.25rem;border:1px solid var(--pf-border);border-radius:14px;background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 92%,var(--pf-accent) 8%));box-shadow:0 7px 18px rgba(0,0,0,.12)}.trust-steps li:before{content:counter(trust-step);position:absolute;left:1rem;top:1rem;display:grid;place-items:center;width:1.55rem;height:1.55rem;border-radius:50%;font-weight:850;background:var(--pf-accent);color:var(--pf-accent-text,#fff)}.trust-steps strong,.trust-steps span{display:block}.trust-steps span{margin-top:.3rem;color:var(--pf-muted);font-size:.86rem}.copy-success{border-color:var(--pf-success,#22c55e)!important}
body[data-pacforge-product="builder"] input:disabled,body[data-pacforge-product="builder"] textarea:disabled,body[data-pacforge-product="builder"] select:disabled,body[data-pacforge-product="builder"] input[readonly],body[data-pacforge-product="builder"] textarea[readonly]{background:color-mix(in srgb,var(--pf-panel-2) 92%,var(--pf-text) 8%)!important;color:var(--pf-text)!important;-webkit-text-fill-color:var(--pf-text)!important;border-color:var(--pf-border)!important;opacity:1}
@media(max-width:960px){.builder-trust-grid{grid-template-columns:1fr}.trust-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.secret-control{grid-template-columns:1fr}.trust-details{grid-template-columns:1fr}.trust-details dt{padding-bottom:.15rem;border-bottom:0}.trust-details dd{padding-top:.15rem}.trust-steps{grid-template-columns:1fr}body[data-pacforge-product="builder"] header .header-pill{max-width:none}}

/* V4.4.7.88 family profile visual reinforcement */
body[data-pacforge-product="builder"] .profile-hero{background:radial-gradient(circle at 88% 12%,color-mix(in srgb,var(--pf-accent) 18%,transparent),transparent 34%),linear-gradient(145deg,var(--pf-panel),color-mix(in srgb,var(--pf-panel-2) 94%,var(--pf-accent) 6%));box-shadow:var(--pf-shadow-elevated,0 12px 30px rgba(0,0,0,.24))}
body[data-pacforge-product="builder"] .profile-grid>.panel{background:linear-gradient(155deg,var(--pf-panel),color-mix(in srgb,var(--pf-panel-2) 95%,var(--pf-accent) 5%));box-shadow:var(--pf-shadow-elevated,0 10px 26px rgba(0,0,0,.2));transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
body[data-pacforge-product="builder"] .profile-grid>.panel:hover{border-color:color-mix(in srgb,var(--pf-border) 65%,var(--pf-accent) 35%);box-shadow:0 14px 32px rgba(0,0,0,.25)}
body[data-pacforge-product="builder"] .profile-grid button:not(.password-visibility-toggle),body[data-pacforge-product="builder"] .builder-trust-grid button:not(.secondary),body[data-pacforge-product="builder"] .trust-how-it-works button{background:linear-gradient(135deg,var(--pf-accent-light,#ef4444) 0%,var(--pf-accent,#d62828) 52%,var(--pf-accent-dark,#9f1d1d) 100%);color:var(--pf-accent-text,#fff);box-shadow:0 6px 16px color-mix(in srgb,var(--pf-accent) 24%,transparent)}

/* V4.4.7.89 — Family Profile Experience Alignment */
.family-profile-panel{margin-bottom:1rem;background:linear-gradient(155deg,var(--pf-panel),color-mix(in srgb,var(--pf-panel-2) 95%,var(--pf-accent) 5%));box-shadow:var(--pf-shadow-elevated,0 10px 26px rgba(0,0,0,.2))}.profile-image-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1.2rem;align-items:start}.profile-avatar-large{width:132px;height:132px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 82%,var(--pf-accent) 18%));border:3px solid color-mix(in srgb,var(--pf-border) 65%,var(--pf-accent) 35%);box-shadow:0 10px 26px rgba(0,0,0,.24);font-size:3.2rem;color:var(--pf-muted)}.profile-avatar-large img,.header-profile-avatar{width:100%;height:100%;object-fit:cover}.header-profile-avatar{width:28px;height:28px;border-radius:50%;border:1px solid color-mix(in srgb,var(--pf-border) 60%,var(--pf-accent) 40%)}.profile-image-actions{display:grid;gap:.75rem}.profile-action-row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.profile-camera-preview{width:min(100%,520px);max-height:340px;border:1px solid var(--pf-border);border-radius:14px;background:#000}.profile-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1rem;margin-bottom:.85rem}.family-profile-panel button{border-radius:10px}.family-profile-panel .secondary{background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 86%,var(--pf-accent) 14%));color:var(--pf-text);border-color:var(--pf-border)}
body[data-pacforge-product="builder"] input:disabled,body[data-pacforge-product="builder"] textarea:disabled,body[data-pacforge-product="builder"] select:disabled,body[data-pacforge-product="builder"] input[readonly],body[data-pacforge-product="builder"] textarea[readonly]{background:color-mix(in srgb,var(--pf-panel-2) 92%,var(--pf-text) 8%)!important;color:var(--pf-text)!important;-webkit-text-fill-color:var(--pf-text)!important;opacity:1!important}
@media(max-width:720px){.profile-image-layout,.profile-details-grid{grid-template-columns:1fr}.profile-avatar-large{margin:auto}.profile-action-row{align-items:stretch;flex-direction:column}.profile-action-row button{width:100%}}

/* V4.4.7.91 — Canonical Family Profile UI Alignment (rebuilt) */
body[data-pacforge-product="builder"] main{max-width:1500px}
body[data-pacforge-product="builder"] .canonical-profile-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.45rem 1.6rem;border-radius:20px;background:radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--pf-accent) 24%,transparent),transparent 38%),linear-gradient(145deg,color-mix(in srgb,var(--pf-panel) 96%,var(--pf-accent) 4%),var(--pf-panel-2));border:1px solid color-mix(in srgb,var(--pf-border) 72%,var(--pf-accent) 28%);box-shadow:0 18px 42px rgba(0,0,0,.22)}
.canonical-profile-identity{display:flex;align-items:center;gap:1rem}.canonical-profile-identity h1{margin:.12rem 0 .3rem;font-size:clamp(1.55rem,2.2vw,2.25rem)}.canonical-profile-identity p{margin:0;color:var(--pf-muted)}.canonical-profile-avatar{width:72px;height:72px;flex:0 0 72px;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-size:1.8rem;background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 76%,var(--pf-accent) 24%));border:2px solid color-mix(in srgb,var(--pf-accent) 60%,var(--pf-border));box-shadow:0 10px 24px rgba(0,0,0,.2)}.canonical-profile-avatar img{width:100%;height:100%;object-fit:cover}.canonical-profile-meta{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.canonical-profile-meta span{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .8rem;border-radius:999px;border:1px solid var(--pf-border);background:color-mix(in srgb,var(--pf-panel-2) 88%,var(--pf-accent) 12%);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);font-weight:750;font-size:.82rem}
body[data-pacforge-product="builder"] .family-profile-panel{padding:1.25rem 1.35rem;border-radius:18px;border:1px solid color-mix(in srgb,var(--pf-border) 82%,var(--pf-accent) 18%);background:linear-gradient(155deg,color-mix(in srgb,var(--pf-panel) 98%,var(--pf-accent) 2%),color-mix(in srgb,var(--pf-panel-2) 96%,var(--pf-accent) 4%));box-shadow:0 12px 30px rgba(0,0,0,.16)}
.family-section-heading{display:flex;align-items:center;gap:.75rem;margin-bottom:.35rem}.family-section-heading h2{margin:0}.family-section-heading small{display:block;margin-top:.12rem;color:var(--pf-muted)}.family-section-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--pf-accent-light,#ef4444),var(--pf-accent,#d62828) 55%,var(--pf-accent-dark,#9f1d1d));color:var(--pf-accent-text,#fff);box-shadow:0 7px 16px color-mix(in srgb,var(--pf-accent) 24%,transparent)}
body[data-pacforge-product="builder"] .profile-image-layout{grid-template-columns:170px minmax(0,1fr);gap:1.5rem;padding-top:.55rem}body[data-pacforge-product="builder"] .profile-avatar-large{width:148px;height:148px;border-width:2px}body[data-pacforge-product="builder"] .profile-details-grid{gap:1rem 1.15rem}body[data-pacforge-product="builder"] .family-profile-panel label{font-weight:720}body[data-pacforge-product="builder"] .family-profile-panel input,body[data-pacforge-product="builder"] .family-profile-panel select,body[data-pacforge-product="builder"] .family-profile-panel textarea{min-height:44px;border-radius:11px;box-shadow:inset 0 1px 2px rgba(0,0,0,.12)}
body[data-pacforge-product="builder"] .family-profile-panel button:not(.password-visibility-toggle){min-height:40px;padding:.62rem .95rem;border-radius:999px;font-weight:800;background:linear-gradient(135deg,var(--pf-accent-light,#ef4444) 0%,var(--pf-accent,#d62828) 52%,var(--pf-accent-dark,#9f1d1d) 100%);color:var(--pf-accent-text,#fff);border:1px solid color-mix(in srgb,var(--pf-accent) 76%,white 24%);box-shadow:0 7px 16px color-mix(in srgb,var(--pf-accent) 22%,transparent)}body[data-pacforge-product="builder"] .family-profile-panel button.secondary{background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 88%,var(--pf-accent) 12%));color:var(--pf-text);border-color:var(--pf-border);box-shadow:0 5px 12px rgba(0,0,0,.13)}
body[data-pacforge-product="builder"] .theme-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.8rem;margin-top:1rem}body[data-pacforge-product="builder"] .theme-select-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.7rem;text-align:left;align-items:center;min-height:78px!important;padding:.72rem!important;border-radius:14px!important;background:linear-gradient(145deg,var(--pf-panel-2),color-mix(in srgb,var(--pf-panel) 94%,var(--pf-accent) 6%))!important;color:var(--pf-text)!important;border:1px solid var(--pf-border)!important;box-shadow:0 7px 16px rgba(0,0,0,.13)!important;transform:none!important}body[data-pacforge-product="builder"] .theme-select-card>span{grid-row:1/3;width:46px;height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}body[data-pacforge-product="builder"] .theme-select-card strong{align-self:end;font-size:.9rem}body[data-pacforge-product="builder"] .theme-select-card small{align-self:start;margin:0;font-size:.7rem;color:var(--pf-muted)}body[data-pacforge-product="builder"] .theme-select-card.selected{border-color:var(--pf-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--pf-accent) 28%,transparent),0 10px 22px rgba(0,0,0,.18)!important}body[data-pacforge-product="builder"] .theme-select-card.selected:after{content:"✓";position:absolute;right:.55rem;top:.5rem;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:var(--pf-accent);color:var(--pf-accent-text,#fff);font-size:.72rem;font-weight:900}
.theme-select-card[data-preview-theme="standard"]>span{background:linear-gradient(135deg,#0b1f33 0 50%,#d62828 50%)}.theme-select-card[data-preview-theme="midnight"]>span{background:linear-gradient(135deg,#07111f 0 50%,#e11d48 50%)}.theme-select-card[data-preview-theme="ocean"]>span{background:linear-gradient(135deg,#082f49 0 50%,#06b6d4 50%)}.theme-select-card[data-preview-theme="forest"]>span{background:linear-gradient(135deg,#102a1f 0 50%,#22c55e 50%)}.theme-select-card[data-preview-theme="slate"]>span{background:linear-gradient(135deg,#1e293b 0 50%,#64748b 50%)}.theme-select-card[data-preview-theme="light"]>span{background:linear-gradient(135deg,#f8fafc 0 50%,#dc2626 50%)}.theme-select-card[data-preview-theme="sand"]>span{background:linear-gradient(135deg,#f2e5c4 0 50%,#a16207 50%)}.theme-select-card[data-preview-theme="high-contrast"]>span{background:linear-gradient(135deg,#000 0 50%,#ffea00 50%)}.theme-select-card[data-preview-theme="autumn"]>span{background:linear-gradient(135deg,#4a1f14 0 50%,#ea580c 50%)}.theme-select-card[data-preview-theme="spring"]>span{background:linear-gradient(135deg,#fdf2f8 0 50%,#22c55e 50%)}.theme-select-card[data-preview-theme="summer"]>span{background:linear-gradient(135deg,#0e7490 0 50%,#facc15 50%)}.theme-select-card[data-preview-theme="winter"]>span{background:linear-gradient(135deg,#dbeafe 0 50%,#0284c7 50%)}.theme-select-card[data-preview-theme="lavender"]>span{background:linear-gradient(135deg,#ede9fe 0 50%,#8b5cf6 50%)}
body[data-pacforge-product="builder"] .profile-audit{margin-top:1.1rem;padding-top:1rem;border-top:1px solid var(--pf-border);display:grid;grid-template-columns:auto 1fr auto 1fr;gap:.35rem 1rem;align-items:center}body[data-pacforge-product="builder"] .profile-audit small{color:var(--pf-muted)}
@media(max-width:760px){body[data-pacforge-product="builder"] .canonical-profile-hero{align-items:flex-start;flex-direction:column}.canonical-profile-meta{justify-content:flex-start}.canonical-profile-identity{align-items:flex-start}.canonical-profile-avatar{width:58px;height:58px;flex-basis:58px}.profile-audit{grid-template-columns:1fr!important}.profile-image-layout{grid-template-columns:1fr!important}}

/* V4.4.7.92 Canonical Business Theme Selector Alignment */
body[data-pacforge-product="builder"] .business-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.72rem;margin:1rem 0 1.15rem}
body[data-pacforge-product="builder"] .business-theme-choice{display:flex;align-items:center;gap:.65rem;min-height:54px;padding:.55rem .7rem;border:1px solid var(--pf-border);border-radius:11px;background:var(--pf-panel-2);color:var(--pf-text);cursor:pointer;box-shadow:none;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease}
body[data-pacforge-product="builder"] .business-theme-choice:hover{border-color:color-mix(in srgb,var(--pf-accent) 55%,var(--pf-border));background:color-mix(in srgb,var(--pf-panel-2) 95%,var(--pf-accent) 5%)}
body[data-pacforge-product="builder"] .business-theme-choice:focus-within{border-color:var(--pf-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--pf-accent) 24%,transparent)}
body[data-pacforge-product="builder"] .business-theme-choice input[type="radio"]{width:14px;height:14px;min-width:14px;margin:0;padding:0;accent-color:var(--pf-accent);box-shadow:none}
body[data-pacforge-product="builder"] .business-theme-name{font-size:.88rem;font-weight:500;line-height:1.15}
body[data-pacforge-product="builder"] .business-theme-swatch{display:block;flex:0 0 31px;width:31px;height:31px;border-radius:9px;border:1px solid rgba(127,127,127,.32);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
body[data-pacforge-product="builder"] .business-theme-actions{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="standard"]{background:linear-gradient(135deg,#ff6464,#d20f1f)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="midnight"]{background:linear-gradient(135deg,#a78bfa,#6d28d9)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="ocean"]{background:linear-gradient(135deg,#38bdf8,#0284c7)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="forest"]{background:linear-gradient(135deg,#65b75b,#238636)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="slate"]{background:linear-gradient(135deg,#b6ccd4,#58717b)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="light"]{background:linear-gradient(135deg,#ff9a9a,#ef3038)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="sand"]{background:linear-gradient(135deg,#f7b733,#c77700)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="high-contrast"]{background:linear-gradient(135deg,#fff700 0 50%,#050505 50%)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="autumn"]{background:linear-gradient(135deg,#f28c45,#b7410e)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="spring"]{background:linear-gradient(135deg,#f7b6cf,#55a95a)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="summer"]{background:linear-gradient(135deg,#41c7d8,#0097a7)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="winter"]{background:linear-gradient(135deg,#bce7ff,#4b9bd3)}
body[data-pacforge-product="builder"] .business-theme-swatch[data-preview-theme="lavender"]{background:linear-gradient(135deg,#c58ce2,#7b3f98)}
@media(max-width:680px){body[data-pacforge-product="builder"] .business-theme-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}body[data-pacforge-product="builder"] .business-theme-actions{align-items:stretch;flex-direction:column}body[data-pacforge-product="builder"] .business-theme-actions button{width:100%}}


/* V4.4.7.94 — Canonical Business Theme Architecture Alignment
   Business V2.0.8 is the visual family reference. Builder-specific layouts remain
   intact; this final cascade maps them onto the same canonical design tokens. */
body[data-pacforge-product="builder"]{
    --bg:#0b0f14;--bg2:#121923;--panel:#151b23;--panel2:#1c2430;--surface-elevated:#222d3a;--surface-2:#1c2430;
    --line:#303b49;--line-strong:#455467;--text:#eef3f8;--muted:#9eacbb;
    --accent-light:#ff6b63;--accent:#e53935;--accent-dark:#a91313;--accent-text:#fff;
    --good:#4caf50;--warn:#ffb300;--danger:#ef5350;--info:#29b6f6;--input-bg:#0e141c;
    --nav-bg:rgba(11,15,20,.94);--shadow:0 14px 35px rgba(0,0,0,.22);--shadow-elevated:0 18px 42px rgba(0,0,0,.3);--radius:16px;
    --pf-bg:var(--bg);--pf-panel:var(--panel);--pf-panel-2:var(--panel2);--pf-text:var(--text);--pf-muted:var(--muted);--pf-border:var(--line);--pf-accent:var(--accent);--pf-accent-hover:var(--accent-light);--pf-focus:var(--accent-light);
    --surface:var(--panel);--surface2:var(--panel2);--background:var(--bg);--border:var(--line);--primary:var(--accent);--ink:var(--text);--red:var(--accent);--red2:var(--accent-light);--red-dark:var(--accent-dark);
}
body[data-pacforge-product="builder"][data-theme="midnight"]{--bg:#05070d;--bg2:#11182b;--panel:#0d1220;--panel2:#151d30;--surface-elevated:#1d2840;--line:#283552;--line-strong:#41557c;--accent-light:#c4b5fd;--accent:#8b5cf6;--accent-dark:#5b21b6;--accent-text:#fff;--input-bg:#090e19;--nav-bg:rgba(5,7,13,.94)}
body[data-pacforge-product="builder"][data-theme="ocean"]{--bg:#06141b;--bg2:#0b2b39;--panel:#0c2530;--panel2:#123745;--surface-elevated:#17485a;--line:#255568;--line-strong:#34758c;--accent-light:#67e8f9;--accent:#0288d1;--accent-dark:#01579b;--accent-text:#fff;--input-bg:#081c25;--nav-bg:rgba(6,20,27,.94)}
body[data-pacforge-product="builder"][data-theme="forest"]{--bg:#07130d;--bg2:#12321e;--panel:#10271a;--panel2:#183a26;--surface-elevated:#214d32;--line:#2e5b3e;--line-strong:#477b58;--accent-light:#81c784;--accent:#2e7d32;--accent-dark:#1b5e20;--accent-text:#fff;--input-bg:#0a1c11;--nav-bg:rgba(7,19,13,.94)}
body[data-pacforge-product="builder"][data-theme="slate"]{--bg:#111318;--bg2:#242932;--panel:#20242c;--panel2:#2b303a;--surface-elevated:#363d49;--line:#464d59;--line-strong:#616b79;--accent-light:#b0bec5;--accent:#607d8b;--accent-dark:#37474f;--accent-text:#fff;--input-bg:#171a20;--nav-bg:rgba(17,19,24,.94)}
body[data-pacforge-product="builder"][data-theme="light"]{--bg:#eef2f6;--bg2:#fff;--panel:#fff;--panel2:#f8fafc;--surface-elevated:#fff;--line:#cbd5e1;--line-strong:#94a3b8;--text:#17212b;--muted:#5f6b78;--accent-light:#ef5350;--accent:#c62828;--accent-dark:#8e0000;--accent-text:#fff;--input-bg:#fff;--nav-bg:rgba(255,255,255,.94);--shadow:0 14px 35px rgba(15,23,42,.10);--shadow-elevated:0 18px 42px rgba(15,23,42,.16)}
body[data-pacforge-product="builder"][data-theme="sand"]{--bg:#241f18;--bg2:#3a3022;--panel:#332b20;--panel2:#43382a;--surface-elevated:#534634;--line:#665641;--line-strong:#8a7457;--accent-light:#ffd180;--accent:#c77800;--accent-dark:#8d5200;--accent-text:#1d1407;--input-bg:#2b241b;--nav-bg:rgba(36,31,24,.94)}
body[data-pacforge-product="builder"][data-theme="high-contrast"]{--bg:#000;--bg2:#000;--panel:#000;--panel2:#111;--surface-elevated:#181818;--line:#fff;--line-strong:#fff;--text:#fff;--muted:#fff;--accent-light:#ffff80;--accent:#ff0;--accent-dark:#b8b800;--accent-text:#000;--good:#00ff66;--warn:#ff0;--danger:#ff4d4d;--info:#00e5ff;--input-bg:#000;--nav-bg:#000;--shadow:none;--shadow-elevated:none}
body[data-pacforge-product="builder"][data-theme="autumn"]{--bg:#1d100b;--bg2:#3a1d10;--panel:#2b1810;--panel2:#402417;--surface-elevated:#56301d;--line:#70452d;--line-strong:#99603b;--text:#fff3e7;--muted:#d8b69a;--accent-light:#f6ad55;--accent:#c65d21;--accent-dark:#7f2f16;--accent-text:#fff;--good:#789f45;--warn:#e6a23c;--input-bg:#24140d;--nav-bg:rgba(29,16,11,.94)}
body[data-pacforge-product="builder"][data-theme="spring"]{--bg:#f3f8f1;--bg2:#fff7fb;--panel:#fff;--panel2:#f2faef;--surface-elevated:#fff;--line:#c8ddc2;--line-strong:#9fc597;--text:#26352a;--muted:#65766a;--accent-light:#f7a8c4;--accent:#72b66a;--accent-dark:#3f7f49;--accent-text:#fff;--good:#5ca65b;--warn:#e4b84c;--input-bg:#fff;--nav-bg:rgba(250,253,249,.95);--shadow:0 14px 35px rgba(54,92,60,.10);--shadow-elevated:0 18px 42px rgba(54,92,60,.16)}
body[data-pacforge-product="builder"][data-theme="summer"]{--bg:#062332;--bg2:#0b4960;--panel:#0d3445;--panel2:#12506a;--surface-elevated:#176985;--line:#287891;--line-strong:#3fa0b9;--text:#f1fbff;--muted:#b4dbe5;--accent-light:#70e1f5;--accent:#19b5c5;--accent-dark:#087f8c;--accent-text:#03242b;--good:#61c96f;--warn:#ffd166;--input-bg:#092b3a;--nav-bg:rgba(6,35,50,.94)}
body[data-pacforge-product="builder"][data-theme="winter"]{--bg:#07121f;--bg2:#132a43;--panel:#102238;--panel2:#19324e;--surface-elevated:#214261;--line:#35536f;--line-strong:#537695;--text:#f2f8ff;--muted:#b5c8d9;--accent-light:#d7efff;--accent:#79bde8;--accent-dark:#3978a7;--accent-text:#07121f;--input-bg:#0b1a2a;--nav-bg:rgba(7,18,31,.95)}
body[data-pacforge-product="builder"][data-theme="lavender"]{--bg:#171123;--bg2:#2b1d40;--panel:#241933;--panel2:#35254a;--surface-elevated:#47325f;--line:#5d4772;--line-strong:#806399;--text:#faf5ff;--muted:#cdbedf;--accent-light:#d8b4fe;--accent:#a56cc1;--accent-dark:#6f3d8c;--accent-text:#fff;--good:#7ea66a;--warn:#d8ad61;--input-bg:#1d1529;--nav-bg:rgba(23,17,35,.94)}

/* Rebind legacy Builder tokens after every palette change. */
body[data-pacforge-product="builder"][data-theme]{--pf-bg:var(--bg);--pf-panel:var(--panel);--pf-panel-2:var(--panel2);--pf-text:var(--text);--pf-muted:var(--muted);--pf-border:var(--line);--pf-accent:var(--accent);--pf-accent-hover:var(--accent-light);--pf-focus:var(--accent-light);--surface:var(--panel);--surface2:var(--panel2);--background:var(--bg);--border:var(--line);--primary:var(--accent);--ink:var(--text);--red:var(--accent);--red2:var(--accent-light);--red-dark:var(--accent-dark)}
body[data-pacforge-product="builder"][data-theme]{background:radial-gradient(circle at top left,var(--bg2) 0,var(--bg) 48%);color:var(--text)}
body[data-pacforge-product="builder"][data-theme] header{background:var(--nav-bg);color:var(--text);border-color:var(--line);backdrop-filter:blur(12px);box-shadow:0 6px 24px rgba(0,0,0,.16)}
body[data-pacforge-product="builder"][data-theme] header a,body[data-pacforge-product="builder"][data-theme] a{color:var(--accent-light)}
body[data-pacforge-product="builder"][data-theme] .brand,body[data-pacforge-product="builder"][data-theme] header .user{color:var(--text)}
body[data-pacforge-product="builder"][data-theme] .panel,body[data-pacforge-product="builder"][data-theme] .hero,body[data-pacforge-product="builder"][data-theme] .card,body[data-pacforge-product="builder"][data-theme] .item,body[data-pacforge-product="builder"][data-theme] .record-card,body[data-pacforge-product="builder"][data-theme] .tier,body[data-pacforge-product="builder"][data-theme] .workspace-card{background:linear-gradient(150deg,var(--panel2),var(--panel));color:var(--text);border-color:var(--line);box-shadow:var(--shadow)}
body[data-pacforge-product="builder"][data-theme] .hero{border-left-color:var(--accent)}
body[data-pacforge-product="builder"][data-theme] .hero p,body[data-pacforge-product="builder"][data-theme] .card p,body[data-pacforge-product="builder"][data-theme] .item p,body[data-pacforge-product="builder"][data-theme] small,body[data-pacforge-product="builder"][data-theme] .muted,body[data-pacforge-product="builder"][data-theme] .crumbs{color:var(--muted)}
body[data-pacforge-product="builder"][data-theme] label{color:var(--muted)}
body[data-pacforge-product="builder"][data-theme] input,body[data-pacforge-product="builder"][data-theme] select,body[data-pacforge-product="builder"][data-theme] textarea{background:var(--input-bg);color:var(--text);border-color:var(--line)}
body[data-pacforge-product="builder"][data-theme] input::placeholder,body[data-pacforge-product="builder"][data-theme] textarea::placeholder{color:var(--muted);opacity:.78}
body[data-pacforge-product="builder"][data-theme] input:focus,body[data-pacforge-product="builder"][data-theme] select:focus,body[data-pacforge-product="builder"][data-theme] textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
body[data-pacforge-product="builder"][data-theme] input[readonly],body[data-pacforge-product="builder"][data-theme] textarea[readonly]{background:color-mix(in srgb,var(--input-bg) 88%,var(--panel2) 12%);color:var(--text);opacity:.82}
body[data-pacforge-product="builder"][data-theme] input:disabled,body[data-pacforge-product="builder"][data-theme] select:disabled,body[data-pacforge-product="builder"][data-theme] textarea:disabled{background:color-mix(in srgb,var(--input-bg) 75%,var(--panel2) 25%);color:var(--muted);opacity:.7}
body[data-pacforge-product="builder"][data-theme] button,body[data-pacforge-product="builder"][data-theme] .button{background:linear-gradient(135deg,var(--accent-light) 0%,var(--accent) 48%,var(--accent-dark) 100%);border-color:transparent;color:var(--accent-text);box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 24%,transparent);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
body[data-pacforge-product="builder"][data-theme] button:hover,body[data-pacforge-product="builder"][data-theme] .button:hover{background:linear-gradient(135deg,var(--accent-light) 0%,var(--accent) 48%,var(--accent-dark) 100%);filter:brightness(1.07);transform:translateY(-1px)}
body[data-pacforge-product="builder"][data-theme] button:focus-visible,body[data-pacforge-product="builder"][data-theme] .button:focus-visible,body[data-pacforge-product="builder"][data-theme] a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent-light) 45%,transparent);outline-offset:2px}
body[data-pacforge-product="builder"][data-theme] .secondary{background:linear-gradient(135deg,var(--panel2),var(--panel));border-color:var(--line);color:var(--text)}
body[data-pacforge-product="builder"][data-theme] .badge,body[data-pacforge-product="builder"][data-theme] .flags span{background:color-mix(in srgb,var(--panel2) 88%,var(--accent) 12%);border-color:var(--line);color:var(--text)}
body[data-pacforge-product="builder"][data-theme] .user-profile-link,body[data-pacforge-product="builder"][data-theme] .user-profile-button,body[data-pacforge-product="builder"][data-theme] .sign-out-button{background:linear-gradient(135deg,var(--panel2),var(--panel));border-color:var(--line);color:var(--text);box-shadow:0 5px 14px rgba(0,0,0,.12)}
body[data-pacforge-product="builder"][data-theme] .swal2-popup{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow-elevated)!important}
body[data-pacforge-product="builder"][data-theme] .swal2-input,body[data-pacforge-product="builder"][data-theme] .swal2-textarea,body[data-pacforge-product="builder"][data-theme] .swal2-select{background:var(--input-bg)!important;color:var(--text)!important;border-color:var(--line)!important}
body[data-pacforge-product="builder"][data-theme="high-contrast"] *:focus-visible{outline:3px solid #ff0!important;outline-offset:3px}
