/* Calm, legible workbench. Dark remains the initial theme; light is user-selectable. */
:root{--ef-sans:'Source Sans 3',system-ui,sans-serif;--ef-mono:'Source Sans 3',system-ui,sans-serif}
html[data-efvp-theme=dark]{--ef-bg:#111927;--ef-panel:#192435;--ef-text:#ecedf6;--ef-muted:#aab5c7;--ef-line:#334057;--ef-line-strong:#657593;--ef-cyan:#a4b9ee;--ef-violet:#b9a9e7;--ef-amber:#ebc395}
html[data-efvp-theme=light]{--ef-bg:#f9f7fc;--ef-panel:#fff;--ef-text:#302c43;--ef-muted:#736b84;--ef-line:#e1dbea;--ef-line-strong:#b5a1d0;--ef-cyan:#7154b6;--ef-violet:#8268b3;--ef-amber:#a6773e;color-scheme:light;background:#f9f7fc}
html[data-efvp-theme] body{font-family:var(--ef-sans)!important;background:var(--ef-bg)!important;color:var(--ef-text)!important;letter-spacing:0!important}html[data-efvp-theme] body:before,html[data-efvp-theme] body:after{display:none!important}
html[data-efvp-theme] .efvp-commandbar,html[data-efvp-theme] .efvp-steps,html[data-efvp-theme] .efvp-inspector,html[data-efvp-theme] .efvp-lenses{background:var(--ef-panel);backdrop-filter:none}
html[data-efvp-theme] .efvp-map-panel{background:var(--ef-bg)}html[data-efvp-theme] .efvp-kicker{font-size:10px;letter-spacing:.1em;font-weight:600}.efvp-panel-head{padding:22px 22px 16px}.efvp-panel-head h1{font-size:23px;letter-spacing:-.025em}.efvp-panel-head p{font-size:13px;max-width:520px;line-height:1.5}.efvp-inspector-head{padding:23px 25px 8px}.efvp-inspector-head h2{font-size:23px;letter-spacing:-.03em}.efvp-inspector-intro{padding:0 25px 16px;font-size:14px;line-height:1.5}.efvp-inspector-content{padding:4px 25px 25px}.efvp-field>span{font-size:13px!important;color:var(--ef-text)!important}.efvp-field small{font-size:12px}.efvp-field input,.efvp-field select,.efvp-field textarea{font-size:14px;min-height:42px;border-radius:10px;padding:10px 12px}.efvp-field textarea{min-height:86px;line-height:1.5}.efvp-form{gap:18px}.efvp-step{border-radius:12px;min-height:47px;margin:4px 8px;padding:9px}.efvp-step-copy strong{font-size:14px}.efvp-step-copy small{font-size:10px;letter-spacing:.025em}.efvp-step-number{font-size:12px}.efvp-step[aria-current=step]{background:color-mix(in srgb,var(--ef-cyan) 12%,var(--ef-panel));border-color:color-mix(in srgb,var(--ef-cyan) 35%,var(--ef-line))}.efvp-commandbar button,.efvp-commandbar select,.efvp-inspector button,.efvp-lenses button,.efvp-map-actions button{border-radius:10px;font-size:12px}.efvp-inspector-footer{gap:10px;padding:15px 25px}.efvp-inspector-footer button{min-height:41px;padding:8px 16px;font-size:13px}.efvp-steps-head{padding:20px 17px 12px}.efvp-steps-head span{font-size:11px}.efvp-save-state{font-size:11px}.efvp-view-switch button{padding:8px 11px}.efvp-project-context select{max-width:300px;font-size:13px}.efvp-theme-toggle{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;white-space:nowrap;flex:none;font-family:inherit;color:var(--ef-text);border:1px solid var(--ef-line);background:var(--ef-panel);border-radius:100px;font-size:12px}.efvp-theme-track{width:26px;height:16px;border-radius:20px;background:var(--ef-line);display:block;padding:3px}.efvp-theme-track i{width:10px;height:10px;display:block;border-radius:50%;background:var(--ef-text);transition:transform .2s ease}.efvp-theme-toggle[aria-checked=true] .efvp-theme-track i{transform:translateX(10px);background:#fff}.efvp-theme-toggle[aria-checked=true] .efvp-theme-track{background:#9575c6}.efvp-register-link{color:var(--ef-cyan);font-size:12px;padding:8px 11px;border:1px solid var(--ef-line);border-radius:9px;text-decoration:none}.efvp-impact-context{font-size:14px}.efvp-impact-heading{padding:20px;border:1px solid var(--ef-line);border-radius:15px;background:color-mix(in srgb,var(--ef-violet) 8%,var(--ef-panel));margin-bottom:18px}.efvp-impact-heading>span{font-size:11px;letter-spacing:.04em;color:var(--ef-cyan)}.efvp-impact-heading h3{margin:9px 0;font-size:22px;font-weight:600}.efvp-impact-heading p{margin:0;color:var(--ef-muted);font-size:13px;line-height:1.55}.efvp-impact-picker{margin-bottom:22px;border:1px solid var(--ef-line);border-radius:12px;padding:14px}.efvp-impact-picker>summary{font-weight:600;cursor:pointer}.efvp-impact-picker summary strong{float:right;color:var(--ef-cyan)}.efvp-impact-options{display:grid;grid-template-columns:1fr;gap:8px;max-height:320px;overflow:auto;margin-top:13px;scrollbar-width:thin}.efvp-impact-options label{display:flex;align-items:center;gap:11px;padding:11px;border-radius:9px;border:1px solid var(--ef-line);cursor:pointer;font-size:13px;line-height:1.35}.efvp-impact-options label:has(:checked){border-color:var(--ef-line-strong);background:color-mix(in srgb,var(--ef-violet) 10%,var(--ef-panel))}.efvp-impact-options small{display:block;color:var(--ef-muted);font-size:11px;margin-top:4px}.efvp-impact-options input{accent-color:var(--ef-cyan)}.efvp-impact-field{display:grid;gap:7px;font-size:13px;font-weight:600;margin:15px 0;color:var(--ef-text)}.efvp-impact-field input,.efvp-impact-field select,.efvp-impact-field textarea{width:100%;padding:11px 12px;border:1px solid var(--ef-line);border-radius:10px;color:var(--ef-text);background:var(--ef-bg);font-size:14px;line-height:1.5;font-family:inherit;resize:vertical;font-weight:400}.efvp-impact-field small{color:var(--ef-muted);font-size:12px;font-weight:400;line-height:1.5}.efvp-impact-requirements{border-top:1px solid var(--ef-line);padding-top:22px;margin-top:25px}.efvp-impact-requirements>h3{font-size:18px;font-weight:600}.efvp-impact-framework{border:1px solid var(--ef-line);border-radius:13px;padding:15px;margin-top:14px}.efvp-impact-framework>summary{cursor:pointer;font-size:14px;font-weight:600}.efvp-impact-framework>summary small{display:block;font-size:11px;color:var(--ef-muted);font-weight:400;margin-top:4px}.efvp-impact-requirement{border-top:1px solid var(--ef-line);margin-top:17px;padding-top:17px}.efvp-impact-reference{font-size:11px;color:var(--ef-cyan);font-weight:600}.efvp-impact-requirement p{font-size:14px;line-height:1.6}.efvp-impact-requirement a,.efvp-impact-framework>a{color:var(--ef-cyan);font-size:12px}.efvp-impact-requirement details{color:var(--ef-muted);margin:10px 0;font-size:12px}.efvp-impact-catalog{font-size:11px;color:var(--ef-muted);line-height:1.5}.efvp-modern-project-group{grid-column:1/-1;border:1px solid var(--ef-line);border-radius:13px;padding:16px;margin-top:5px}.efvp-modern-project-group>summary{font-size:14px;font-weight:600;cursor:pointer}.efvp-modern-project-group .efvp-form{margin-top:20px}.efvp-import-registers{margin:15px 0;padding:15px;border:1px solid var(--ef-line);border-radius:12px}.efvp-import-registers p{font-size:13px;color:var(--ef-muted);line-height:1.5}.efvp-import-registers select{width:100%;padding:9px;border:1px solid var(--ef-line);border-radius:9px;background:var(--ef-panel);color:var(--ef-text);margin-bottom:10px}.efvp-start-hero{padding:48px 10px 35px;gap:50px}.efvp-start-hero h1{font-size:clamp(34px,4.4vw,61px);line-height:1.08;font-weight:600;letter-spacing:-.04em}.efvp-start-hero p{font-size:17px}.efvp-start-graphic strong{font-size:30px;letter-spacing:-.04em}.efvp-start-graphic .ring{border-color:var(--ef-line-strong);box-shadow:none}.efvp-start-graphic .ring-c{border-color:var(--ef-violet)}.efvp-mode-card{border-radius:18px;padding:24px;gap:8px}.efvp-mode-card span{font-size:10px}.efvp-mode-card strong{font-size:24px;font-weight:600}.efvp-mode-card small{font-size:14px}.efvp-project-card{border-radius:15px;padding:20px}.efvp-project-card p{font-size:13px}.efvp-project-card footer{font-size:11px}.efvp-start-brand .efvp-theme-toggle{margin-left:auto;margin-right:12px}.efvp-language-control{right:16px;top:auto;bottom:16px;z-index:12001}.efvp-language-control #prp-lang-switcher{background:var(--ef-panel)!important;color:var(--ef-text)!important;border-color:var(--ef-line)!important}
html[data-efvp-theme=light] .efvp-commandbar button,html[data-efvp-theme=light] .efvp-commandbar select,html[data-efvp-theme=light] .efvp-map-actions button,html[data-efvp-theme=light] .efvp-lenses button,html[data-efvp-theme=light] .efvp-inspector button,html[data-efvp-theme=light] .efvp-start button,html[data-efvp-theme=light] .efvp-dialog button{background:#fff;color:#514466;border-color:var(--ef-line)}
html[data-efvp-theme=light] .efvp-field input,html[data-efvp-theme=light] .efvp-field select,html[data-efvp-theme=light] .efvp-field textarea,html[data-efvp-theme=light] .efvp-entity-toolbar select{background:#fcfafe;color:#302c43;border-color:var(--ef-line)}
html[data-efvp-theme=light] :is(.efvp-map .zone,.efvp-map .core-card){fill:#fff;stroke:#ded5e9}html[data-efvp-theme=light] .efvp-map text{fill:#645576!important}html[data-efvp-theme=light] .efvp-map .zone-title{fill:#6e5695!important}html[data-efvp-theme=light] .efvp-map .node rect{fill:#f2edf7;stroke:#cfc0e1}html[data-efvp-theme=light] .efvp-map .core-card-title{fill:#342847!important}html[data-efvp-theme=light] .efvp-map .map-node rect{fill:#f8f4fc;stroke:#cfbde3}html[data-efvp-theme=light] .efvp-map .map-link{stroke:#b9a9d2}html[data-efvp-theme=light] .efvp-map .core-orbit{stroke:#d2c1e4}html[data-efvp-theme=light] :is(.efvp-summary-card,.efvp-finding,.efvp-proof-card,.efvp-export-card,.efvp-project-card,.efvp-dialog){background:#fff;border-color:var(--ef-line);color:var(--ef-text)}html[data-efvp-theme=light] .efvp-start{background:#faf8fc}html[data-efvp-theme=light] .efvp-mode-card.primary{background:#eee6f7;border-color:#d5c3e8;color:#5d438c}html[data-efvp-theme=light] :is(.efvp-inspector-footer .primary,.efvp-view-switch [aria-pressed=true],.efvp-group-tabs [aria-pressed=true]){background:#7154b6!important;color:#fff!important;border-color:#7154b6!important}html[data-efvp-theme=light] .efvp-lenses button[aria-pressed=true]{background:#eee6f7;color:#61438e;border-color:#cbb5e2}html[data-efvp-theme=light] .efvp-toast{background:#fff;color:var(--ef-text);box-shadow:0 12px 35px #37274820}html[data-efvp-theme=light] .efvp-map-empty{background:#ffffffdd;color:#655378;border:1px solid var(--ef-line)}html[data-efvp-theme=light] .efvp-boot{background:var(--ef-bg)}html[data-efvp-theme=light] .efvp-section-alerts{background:#fcf3e7;color:#8a683c}html[data-efvp-theme=light] .efvp-map-legend-title,html[data-efvp-theme=light] .efvp-map-legend li,html[data-efvp-theme=light] .efvp-lenses>span{color:#74667f}html[data-efvp-theme=light] .efvp-dialog::backdrop{background:#211b3144}
@media(max-width:1180px){.efvp-commandbar{gap:8px}.efvp-progress-head,.efvp-account{display:none}.efvp-inspector-content{padding-inline:20px}.efvp-inspector-head,.efvp-inspector-intro{padding-inline:20px}.efvp-step{margin:3px 5px}.efvp-project-context select{max-width:220px}}@media(max-width:820px){.efvp-commandbar{padding:11px 12px}.efvp-project-context{flex-basis:100%;order:3}.efvp-project-context select{max-width:none;width:100%}.efvp-brand{min-width:auto}.efvp-brand img{width:27px;height:27px}.efvp-theme-toggle{margin-left:auto}.efvp-view-switch{margin-left:0}.efvp-register-link{order:2}.efvp-steps{top:117px}.efvp-step{min-height:40px;flex:0 0 42px;margin:2px}.efvp-map-panel{min-height:320px}.efvp-map-stage{min-height:240px;overflow:hidden}.efvp-map{width:100%;max-width:100%;height:auto}.efvp-inspector{min-height:600px}.efvp-language-control{bottom:10px;right:10px}.efvp-inspector-head h2{font-size:23px}.efvp-panel-head{padding:18px}.efvp-start-shell{width:calc(100% - 32px)}.efvp-start-hero{padding:38px 0}.efvp-inspector-footer{padding:14px 20px}.efvp-inspector-footer button{flex:1;padding:8px}.efvp-form{grid-template-columns:1fr}.efvp-field.wide{grid-column:auto}.efvp-map-actions button{font-size:11px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{.efvp-theme-toggle,.efvp-register-link{display:none!important}}
/* The selected palette applies to every workbench surface. */
html[data-efvp-theme]{--ef-cyan-soft:var(--ef-cyan)}
html[data-efvp-theme] .efvp-inspector-footer,html[data-efvp-theme] .efvp-map-legend,html[data-efvp-theme] .efvp-consistency-mini{background:var(--ef-panel);color:var(--ef-text)}
html[data-efvp-theme] .efvp-step-number{color:var(--ef-cyan);background:color-mix(in srgb,var(--ef-cyan) 9%,var(--ef-panel))}
html[data-efvp-theme=light] .efvp-map .export-bg{fill:#f3eff8}html[data-efvp-theme=light] .efvp-map .relation{stroke:#c2b2d8}html[data-efvp-theme=light] .efvp-map .map-node.is-risk rect{fill:#fce8e6;stroke:#d58c86}html[data-efvp-theme=light] .efvp-map .map-node.is-measure rect{fill:#e4f1ee;stroke:#75aaa2}html[data-efvp-theme=light] .efvp-map .map-node.is-residual rect{fill:#fff2d7;stroke:#cda459}html[data-efvp-theme=light] .efvp-readonly-metric{background:#f6f2fa}html[data-efvp-theme=light] .efvp-risk-level.low{background:#e1f1ed;color:#28695c}html[data-efvp-theme=light] .efvp-risk-level.moderate{background:#fff0d5;color:#8c631e}html[data-efvp-theme=light] :is(.efvp-risk-level.high,.efvp-risk-level.critical){background:#fbe5e9;color:#9b3d55}
html[data-efvp-theme=light] .efvp-brand img{background:#fff}html[data-efvp-theme=light] .efvp-delete-project{color:#aa566b!important;background:#fff1f4!important}
html[data-efvp-theme] .efvp-language-control{position:static;min-width:0;flex:none;z-index:auto;margin-left:0}
html[data-efvp-theme] .efvp-language-control #prp-lang-switcher{position:static;box-shadow:none;border-radius:9px;padding:3px!important;gap:2px}
html[data-efvp-theme] .efvp-language-control #prp-lang-switcher button{font-size:11px!important;min-width:28px!important;padding:6px!important}
html[data-efvp-theme] .efvp-language-control #prp-lang-switcher button[aria-pressed=true]{background:var(--ef-cyan)!important;color:var(--ef-panel)!important}
@media(max-width:820px){html[data-efvp-theme] .efvp-commandbar{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:12px}.efvp-commandbar .efvp-brand{grid-column:1}.efvp-commandbar .efvp-view-switch{grid-column:2;justify-self:start}.efvp-commandbar .efvp-theme-toggle{grid-column:3}.efvp-commandbar .efvp-project-context{grid-column:1/-1;grid-row:2;min-width:0;max-width:none;width:100%;order:0}.efvp-commandbar .efvp-register-link{grid-column:1/3;grid-row:3;justify-self:start}.efvp-commandbar .efvp-language-control{grid-column:3;grid-row:3}.efvp-steps{position:static;top:auto}.efvp-workbench{min-width:0;max-width:100%}.efvp-workbench>*{max-width:100%;min-width:0}.efvp-map{min-height:0}.efvp-map-stage{min-height:220px}.efvp-map-empty{padding:18px;width:80%;box-shadow:0 12px 30px #15102015}.efvp-panel-head h1{max-width:64vw;font-size:19px}.efvp-panel-head p{font-size:12px}.efvp-lenses{display:flex;gap:6px;padding:10px;overflow-x:auto}.efvp-lenses>span{display:none}.efvp-lenses button{flex:0 0 auto;min-height:40px;font-size:11px;padding:8px 10px;white-space:normal;max-width:95px}.efvp-impact-field input,.efvp-impact-field select,.efvp-impact-field textarea,.efvp-field input,.efvp-field select,.efvp-field textarea{font-size:16px}.efvp-start-brand{flex-wrap:wrap}.efvp-start-brand .efvp-language-control{margin-left:auto}.efvp-inspector-content{overflow:visible}.efvp-inspector-footer{position:sticky;bottom:0;z-index:5}.efvp-map-panel{min-height:0}.efvp-map-panel .efvp-panel-head{padding:18px 20px}.efvp-inspector-intro{font-size:15px}.efvp-app{width:100%}}
.efvp-mobile-map-toggle{display:none}.efvp-brand small{max-width:195px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.efvp-risk-level.unknown{background:color-mix(in srgb,var(--ef-muted) 12%,var(--ef-panel));color:var(--ef-muted)}
@media(max-width:820px){.efvp-steps{order:0}.efvp-mobile-map-toggle{display:block;order:1;align-self:stretch;margin:12px 20px;padding:11px 16px;text-align:left;font:inherit;font-size:13px;font-weight:600;background:var(--ef-panel);border:1px solid var(--ef-line);border-radius:10px;color:var(--ef-cyan)}body:not(.efvp-mobile-map-open):not(.efvp-mode-map) .efvp-map-panel{display:none}.efvp-map-panel{order:2!important}.efvp-inspector{order:3!important}.efvp-mode-map .efvp-mobile-map-toggle{display:none}}
html[data-efvp-theme] .efvp-field-heading label{font-size:13px;color:var(--ef-text)}html[data-efvp-theme] .efvp-language-control #prp-lang-switcher button{background:transparent!important;color:var(--ef-muted)!important;box-shadow:none!important}html[data-efvp-theme] .efvp-language-control #prp-lang-switcher button[aria-pressed=true]{background:var(--ef-cyan)!important;color:var(--ef-panel)!important}.efvp-import-registers a{display:inline-block}

/* Display controls share normal layout space; the language switch never floats
   over the theme button. Both move together between the chooser and workbench. */
.efvp-display-controls{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
html[data-efvp-theme] .efvp-display-controls .efvp-theme-toggle{width:auto;min-width:85px;margin:0;padding:6px 9px;font-size:12px;min-height:38px;flex-shrink:0}
html[data-efvp-theme] .efvp-display-controls .efvp-language-control{margin:0;flex-shrink:0;inset:auto}
html[data-efvp-theme] .efvp-display-controls #prp-lang-switcher{position:static;inset:auto;display:flex;flex-shrink:0;backdrop-filter:none}
html[data-efvp-theme] .efvp-display-controls #prp-lang-switcher button{width:auto;min-height:30px;line-height:1;letter-spacing:.03em}
.efvp-start-brand{gap:14px;justify-content:flex-start;position:sticky;top:0;z-index:3;padding-block:12px;margin-top:-12px;background:var(--ef-bg);border-bottom:1px solid var(--ef-line)}
.efvp-start-brand .efvp-display-controls{margin-left:auto}
#efvp-close-start{flex:none;order:2}
.efvp-commandbar{flex-wrap:wrap}
.efvp-commandbar .efvp-display-controls{order:2}
.efvp-commandbar .efvp-register-link{order:1;white-space:nowrap}
@media(min-width:821px){.efvp-app{grid-template-rows:auto minmax(0,1fr)}.efvp-commandbar{min-height:70px}}
@media(max-width:820px){
 html[data-efvp-theme] .efvp-commandbar{grid-template-columns:minmax(0,1fr) auto}
 .efvp-commandbar .efvp-brand{grid-column:1;grid-row:1}
 .efvp-commandbar .efvp-brand span{display:grid}
 .efvp-commandbar .efvp-brand small{display:none}
 .efvp-commandbar .efvp-brand strong{font-size:13px}
 .efvp-commandbar .efvp-display-controls{grid-column:2;grid-row:1;order:0;gap:6px}
 .efvp-commandbar .efvp-project-context{grid-column:1/-1;grid-row:2}
 .efvp-commandbar .efvp-view-switch{grid-column:1/-1;grid-row:3;margin:0}
 .efvp-commandbar .efvp-register-link{grid-column:1/-1;grid-row:3;justify-self:end;order:0}
 .efvp-commandbar .efvp-language-control,.efvp-commandbar .efvp-theme-toggle{grid-column:auto;grid-row:auto}
 .efvp-start-brand{gap:10px}
 .efvp-start-brand>a{font-size:14px;gap:6px}
 .efvp-start-brand img{width:32px;height:32px;padding:4px}
 .efvp-start-brand .efvp-display-controls{gap:6px}
 #efvp-close-start{margin-left:auto}
}
@media print{.efvp-display-controls{display:none!important}}
