/* Unified BG Demo — site + proposed EPF visual primitives; no dependencies */
.demo-section{background:radial-gradient(ellipse 48% 50% at 70% 30%,#eddff263,transparent 90%),linear-gradient(135deg,#fffaf8,#fdf6f8);padding:85px 0 95px}
.demo-intro{display:grid;grid-template-columns:1.1fr .9fr;gap:45px;align-items:end;margin-bottom:32px}
.demo-intro .h2{margin-bottom:0}.demo-intro .lead{font-size:14px;line-height:1.85;margin:0;color:#536276}
.demo-switch{display:flex;gap:9px;margin-bottom:14px;align-items:stretch}
.demo-tab{flex:1;min-height:52px;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;background:rgba(255,255,255,.56);border:1px solid #eadfe6;border-radius:13px;color:#33445a;font-size:12px;font-weight:700;box-shadow:0 4px 10px #a7a0aa0b;transition:color .18s,box-shadow .18s,transform .18s}
.demo-tab:hover{transform:translateY(-2px);box-shadow:0 10px 22px #a682891e}
.demo-tab.is-active{background:linear-gradient(120deg,#ff923a,#f26619);color:white;border-color:#f1803c;box-shadow:0 8px 18px #ef8b494c}
.demo-tab-meta{font-weight:500;font-size:10px;opacity:.7}
.demo-app-shell{border:1px solid white;background:rgba(255,255,255,.92);border-radius:23px;box-shadow:0 24px 60px #b29ca426,0 0 0 1px #ede2e6aa;overflow:hidden}
.demo-app-top{display:flex;align-items:center;gap:16px;background:#fffaf9;padding:13px 21px;border-bottom:1px solid #efe6e9;font-size:12px}
.demo-app-brand{display:flex;gap:5px;align-items:center;color:#24334b}
.demo-mini-logo{display:inline-block;width:15px;height:15px;border-radius:4px;background:linear-gradient(140deg,#ffcfac,#f9741c)}
.demo-app-state{margin-left:auto;font-size:11px;color:#778190}.demo-pulse{display:inline-block;width:6px;height:6px;border-radius:50%;background:#76b8a1;margin-left:4px}
.demo-safe{border:1px solid #d8ebe1;background:#f1fbf5;color:#568875;padding:3px 8px;border-radius:999px;font-size:10px}
.demo-app-body{display:grid;grid-template-columns:195px minmax(0,1fr);min-height:425px}
.demo-app-side{display:flex;flex-direction:column;background:linear-gradient(180deg,#fff9f9,#fbf4f8);padding:24px 14px;border-right:1px solid #efe5e9;gap:9px}
.demo-app-side>strong{font-size:20px;letter-spacing:-.04em;color:#1c2941;margin:3px 6px 23px}
.demo-side-eyebrow{font-size:9px;letter-spacing:.09em;color:#ad8e96;margin-left:6px}
.demo-side-link{font-size:11px;color:#68758a;padding:11px 10px;border-radius:10px}
.demo-side-link.selected{background:#fff0e9;color:#e05f1a;font-weight:750}
.demo-side-foot{margin:auto 6px 0;color:#9c9ca6;font-size:10px}
.demo-app-main{min-width:0;padding:26px 29px 28px}
.demo-panel[hidden]{display:none}
.demo-panel-header{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:17px}
.demo-panel-header h3{font-size:22px;letter-spacing:-.035em;line-height:1.2;margin:8px 0 5px;color:#243047}
.demo-panel-header p{font-size:12px;color:#778297;line-height:1.6;margin:0}
.demo-status-line{font-size:10px;font-weight:700;letter-spacing:.03em;color:#6b7788}
.demo-data-label{white-space:nowrap;border:1px solid #e7dfe5;color:#897e88;background:#fefafb;padding:4px 9px;border-radius:20px;font-size:10px}
.demo-status{display:inline-block;border-radius:20px;font-size:10px;font-weight:700;line-height:1.2;padding:5px 9px;white-space:nowrap}
.demo-status.pilot{background:#fff0e4;color:#c75a17}
.demo-status.caution{background:#f5edfa;color:#8862a4}
.demo-status.neutral{background:#f1f1f4;color:#737987}
.demo-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.demo-kpi{border:1px solid #ede9e6;background:linear-gradient(135deg,#fffefa,#fff7f5);border-radius:13px;padding:14px 17px}
.demo-kpi.risk{background:#fff5eb;border-color:#f8e5d3}
.demo-kpi small{display:block;color:#738093;font-size:10px;margin-bottom:5px}
.demo-kpi strong{display:block;font-weight:800;font-size:26px;line-height:1.25;letter-spacing:-.055em;color:#1b2d43}
.demo-kpi strong.demo-kpi-sm{font-size:17px;letter-spacing:-.025em;padding-top:7px}
.demo-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#788394;margin:15px 0 12px}
.demo-segment{display:flex;flex-wrap:wrap;background:#f8f6f6;border:1px solid #eee8e9;border-radius:11px;padding:4px;gap:4px}
.demo-segment button{border:0;border-radius:8px;background:transparent;padding:7px 10px;color:#5c6c81;font-size:11px;font-weight:650;white-space:nowrap}
.demo-segment button.is-selected{background:white;color:#db671e;box-shadow:0 2px 9px #a6989d1f}
.demo-table-wrap{width:100%;overflow-x:auto;border-radius:11px;border:1px solid #ebe7e7}
.demo-table{width:100%;border-collapse:collapse;min-width:560px;font-size:11px;line-height:1.55}
.demo-table th{background:#faf6f8;color:#7d8192;text-align:left;font-weight:750;padding:10px 12px;border-bottom:1px solid #eee7eb}
.demo-table td{padding:12px;border-bottom:1px solid #f0edf0;color:#344157;vertical-align:top}
.demo-table tr:last-child td{border-bottom:0}
.demo-table tr:hover td{background:#fffaf6}
.demo-table td small{display:block;color:#87929d;font-size:10px;line-height:1.5;margin-top:4px}
.demo-table td b{white-space:nowrap}
.demo-explain{margin-top:18px;background:#fcf8f4;border-left:3px solid #f6a16a;padding:14px 18px;border-radius:8px}
.demo-explain strong{color:#364459;font-size:12px}
.demo-explain p{font-size:11px;color:#6f7d90;line-height:1.7;margin:6px 0 0}
.demo-scenario-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.demo-scenario-list button{background:white;border:1px solid #eadfe1;border-radius:12px;padding:15px;text-align:left;min-height:92px;color:#34445a;transition:border-color .2s,box-shadow .2s}
.demo-scenario-list button.is-selected{border-color:#ef8e58;box-shadow:0 0 0 2px #ffefe5}
.demo-scenario-list b{display:block;font-size:13px}.demo-scenario-list span{display:block;font-size:10px;color:#768493;margin-top:6px}
.demo-chart-card{background:#fffaf9;border:1px solid #eee6e6;border-radius:13px;padding:20px 23px;margin:20px 0}
.demo-chart-card h4{font-size:12px;color:#4f586a;margin:0 0 20px}
.demo-bar{height:19px;border-radius:999px;overflow:hidden;display:flex;gap:3px;background:#f1edec}.demo-bar span{height:100%}
.demo-legend{display:flex;flex-wrap:wrap;gap:16px;color:#69788b;font-size:10px;margin-top:17px}.demo-legend i{width:10px;height:10px;display:inline-block;border-radius:50%;margin-right:5px}
.demo-bars{display:flex;align-items:flex-end;justify-content:space-around;gap:17px;height:148px;border-bottom:1px solid #e0d7d9;padding:0 20px}
.demo-bars>span{flex:1;max-width:86px;border-radius:6px 6px 0 0;background:linear-gradient(#f9b18b,#f67e3e);position:relative;min-height:15px}
.demo-bars i{position:absolute;bottom:-25px;left:0;right:0;text-align:center;font-size:10px;color:#758396;font-style:normal}
.demo-chart-card:has(.demo-bars){padding-bottom:45px}
.demo-footnote{display:flex;justify-content:space-between;gap:20px;align-items:start;padding:21px 5px 0;color:#81899a;font-size:11px}
.demo-footnote a{white-space:nowrap;font-weight:750;color:#d46b31;text-decoration:none}
@media(max-width:950px){.demo-app-body{grid-template-columns:150px minmax(0,1fr)}.demo-app-main{padding:21px}.demo-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.demo-tab{min-height:44px}}
@media(max-width:680px){.demo-section{padding:65px 0}.demo-intro{display:block}.demo-intro .lead{margin-top:15px}.demo-app-body{display:block}.demo-app-side{display:none}.demo-app-main{padding:18px 13px 23px}.demo-app-top{padding:11px 13px}.demo-app-state{display:none}.demo-panel-header h3{font-size:19px}.demo-panel-header{flex-wrap:wrap}.demo-kpis{gap:5px}.demo-kpi{padding:11px 8px}.demo-kpi small{font-size:9px}.demo-kpi strong{font-size:20px}.demo-scenario-list{grid-template-columns:1fr}.demo-toolbar{flex-wrap:wrap}.demo-segment button{font-size:10px;padding:6px}.demo-footnote{display:block}.demo-footnote a{display:block;margin-top:12px}.demo-tab-meta{display:none}}

/* EPF parity iframe. Site shell decor only; iframe uses exact BSL CSS. */
.demo-source-bar{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding:16px 20px;background:linear-gradient(130deg,#fffaf8,#fff2ec);border:1px solid #f4e2da;border-radius:16px 16px 0 0}
.demo-source-title{font-weight:750;color:#24344a;font-size:13px;margin-right:auto}
.epf-frame-wrap{background:#fff;border:1px solid #e9e0df;border-top:0;border-radius:0 0 17px 17px;box-shadow:0 16px 45px #d3a39a26;overflow:hidden}
.epf-frame-wrap iframe{display:block;width:100%;height:735px;border:0;background:#f6f7f8}
.demo-footnote{font-size:12px;line-height:1.7}
@media(max-width:730px){.epf-frame-wrap iframe{height:840px}.demo-source-title{width:100%}}

.epf-frame-wrap iframe.demo-tall{height:850px}
.demo-tab-meta{opacity:.75;font-size:10px}
@media(max-width:700px){.epf-frame-wrap iframe.demo-tall{height:770px}}
