/* Layout-only module. All selectors are scoped; legacy DOM remains mounted. */
html[data-ex-layout-enabled="true"] #fortressCockpit > :not(#exLayoutWorkspace){display:none!important}
#exLayoutWorkspace{--exl-bg:var(--ui-surface,#111c2b);--exl-fg:var(--ui-text,#e8f0fa);--exl-muted:var(--ui-muted,#a7b7cb);--exl-line:var(--ui-border,#293b50);--exl-accent:var(--ui-action,#75b9ff);color:var(--exl-fg);width:100%;min-width:0;box-sizing:border-box;max-width:1680px;margin:auto;font:15px/1.6 system-ui,-apple-system,"Noto Sans JP",sans-serif}
#exLayoutWorkspace *{box-sizing:border-box;min-width:0}
#exLayoutWorkspace [hidden]{display:none!important}
#exLayoutWorkspace :is(h2,h3,p){margin:0 0 10px}
#exLayoutWorkspace h2{font-size:clamp(22px,2vw,32px);letter-spacing:-.04em}
#exLayoutWorkspace h3{font-size:18px}
#exLayoutWorkspace .exl-eyebrow{font:600 11px/1.5 system-ui;letter-spacing:.16em;color:var(--exl-accent);margin-bottom:8px}
#exLayoutWorkspace .exl-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 24px}
#exLayoutWorkspace .exl-header p:not(.exl-eyebrow),#exLayoutWorkspace .exl-muted{color:var(--exl-muted);font-size:13px}
#exLayoutWorkspace .exl-switch{display:flex;gap:6px;padding:5px;border:1px solid var(--exl-line);border-radius:16px;background:var(--exl-bg)}
#exLayoutWorkspace button,#exLayoutWorkspace select{font:inherit;color:var(--exl-fg);background:var(--exl-bg);border:1px solid var(--exl-line);border-radius:8px;padding:10px 14px;min-height:44px;cursor:pointer}
#exLayoutWorkspace button:hover{border-color:var(--exl-accent)}
#exLayoutWorkspace :focus-visible{outline:3px solid var(--exl-accent);outline-offset:3px}
#exLayoutWorkspace .exl-switch button{border-color:transparent;text-align:left;font-weight:650;white-space:nowrap}
#exLayoutWorkspace .exl-switch button span{display:block;font-size:11px;font-weight:400;color:var(--exl-muted)}
#exLayoutWorkspace .exl-switch button[aria-pressed="true"]{background:var(--ui-active,#203653);border-color:var(--exl-accent)}
#exLayoutWorkspace .exl-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;font-size:12px;color:var(--exl-muted)}
#exLayoutWorkspace a{color:var(--exl-accent);text-decoration:underline;text-underline-offset:4px}
#exLayoutWorkspace .exl-grid{display:grid;gap:18px;align-items:start}
#exLayoutWorkspace .exl-panel{background:var(--exl-bg);border:1px solid var(--exl-line);border-radius:16px;padding:22px;overflow:hidden}
#exLayoutWorkspace .exl-actions{grid-area:actions;border-top:3px solid var(--exl-accent)}
#exLayoutWorkspace .exl-summary{grid-area:summary}
#exLayoutWorkspace .exl-chart-panel{grid-area:chart}
#exLayoutWorkspace .exl-watch{grid-area:watch}
#exLayoutWorkspace .exl-details{grid-area:details}
#exLayoutWorkspace .exl-candidates{grid-area:candidates}
#exLayoutWorkspace .exl-holdings{grid-area:holdings}
#exLayoutWorkspace .exl-chart-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
#exLayoutWorkspace .exl-chart-head select{max-width:300px;width:100%}
#exLayoutWorkspace .exl-chart{position:relative;width:100%;height:340px;margin:16px 0;overflow:hidden}
#exLayoutWorkspace canvas{display:block;width:100%;height:100%;touch-action:pan-y}
#exLayoutWorkspace .exl-readout,#exLayoutWorkspace #exlChartStatus{font-size:12px;color:var(--exl-muted);overflow-wrap:anywhere;min-height:20px}
#exLayoutWorkspace .exl-kpis,#exLayoutWorkspace .exl-candidate-grid,#exLayoutWorkspace .exl-holding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#exLayoutWorkspace .exl-kpi strong{display:block;font-size:clamp(21px,2.4vw,34px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#exLayoutWorkspace .exl-kpi small{display:block;color:var(--exl-muted)}
#exLayoutWorkspace .exl-tile{padding:16px;border:1px solid var(--exl-line);border-radius:12px}
#exLayoutWorkspace .exl-tile h4{margin:0 0 10px;font-size:16px}
#exLayoutWorkspace .exl-tile p{font-size:13px;color:var(--exl-muted)}
#exLayoutWorkspace .exl-tag{display:inline-block;border:1px solid var(--exl-line);padding:2px 8px;border-radius:5px;font-size:11px;margin:0 0 10px;color:var(--exl-muted)}
#exLayoutWorkspace .exl-warning{color:var(--ui-warn,#f5cb80)}
#exLayoutWorkspace .exl-watch-row{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;margin:6px 0}
#exLayoutWorkspace .exl-watch-row[aria-pressed="true"]{border-color:var(--exl-accent)}
#exLayoutWorkspace .exl-spark{height:64px;margin-top:12px}
#exLayoutWorkspace .exl-scroll{overflow:auto;max-height:320px}
#exLayoutWorkspace table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
#exLayoutWorkspace th,#exLayoutWorkspace td{text-align:right;white-space:nowrap;padding:8px;border-bottom:1px solid var(--exl-line)}
#exLayoutWorkspace .exl-chart-data{font-size:12px;margin-top:10px}
#exLayoutWorkspace summary{cursor:pointer;min-height:28px}
html[data-layout="cockpit"] #exLayoutWorkspace .exl-grid{grid-template-columns:1fr;grid-template-areas:"actions" "chart" "candidates"}
html[data-layout="cockpit"] #exLayoutWorkspace :is(.exl-summary,.exl-watch,.exl-details,.exl-holdings){display:none}
html[data-layout="analyst"] #exLayoutWorkspace .exl-grid{grid-template-columns:minmax(0,7fr) minmax(260px,3fr);grid-template-areas:"chart watch" "chart details" "candidates candidates";gap:12px}
html[data-layout="analyst"] #exLayoutWorkspace :is(.exl-actions,.exl-summary,.exl-holdings){display:none}
html[data-layout="analyst"] #exLayoutWorkspace .exl-chart{height:600px}
html[data-layout="analyst"] #exLayoutWorkspace .exl-panel{padding:16px;border-radius:8px;font-size:13px}
html[data-layout="analyst"] #exLayoutWorkspace .exl-candidate-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html[data-layout="executive"] #exLayoutWorkspace .exl-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"summary summary" "holdings chart" "candidates candidates";gap:28px}
html[data-layout="executive"] #exLayoutWorkspace :is(.exl-actions,.exl-watch,.exl-details,.exl-chart-data){display:none}
html[data-layout="executive"] #exLayoutWorkspace .exl-panel{padding:30px;border-radius:22px}
html[data-layout="executive"] #exLayoutWorkspace .exl-chart{height:190px}
html[data-layout="executive"] #exLayoutWorkspace .exl-holding-grid{grid-template-columns:1fr}
html[data-ex-layout-enabled="false"] #exLayoutWorkspace .exl-grid{display:none}
@media(max-width:1050px){#exLayoutWorkspace .exl-header{align-items:flex-start;flex-direction:column}html[data-layout="executive"] #exLayoutWorkspace .exl-grid{grid-template-columns:1fr;grid-template-areas:"summary" "chart" "holdings" "candidates"}html[data-layout="analyst"] #exLayoutWorkspace .exl-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#exLayoutWorkspace .exl-switch{width:100%;gap:2px}#exLayoutWorkspace .exl-switch button{padding:10px 7px;flex:1;font-size:13px}#exLayoutWorkspace .exl-switch button span{font-size:10px}#exLayoutWorkspace .exl-meta,#exLayoutWorkspace .exl-chart-head{align-items:flex-start;flex-direction:column}#exLayoutWorkspace .exl-chart-head label,#exLayoutWorkspace .exl-chart-head select{width:100%;max-width:none}#exLayoutWorkspace .exl-kpis,#exLayoutWorkspace .exl-candidate-grid,#exLayoutWorkspace .exl-holding-grid{grid-template-columns:1fr!important}html[data-layout="analyst"] #exLayoutWorkspace .exl-grid{grid-template-columns:1fr;grid-template-areas:"chart" "watch" "details" "candidates"}html[data-layout="analyst"] #exLayoutWorkspace .exl-chart{height:440px}#exLayoutWorkspace .exl-panel{padding:16px!important}#exLayoutWorkspace .exl-kpi{border-bottom:1px solid var(--exl-line);padding-bottom:12px}}
@media(prefers-reduced-motion:no-preference){#exLayoutWorkspace .exl-panel{animation:exl-appear .16s ease-out}@keyframes exl-appear{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}}
