/* Demo-specific styles. Shell tokens come from exec-shell.css. */
.mc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; }
@media (max-width: 640px) { .mc-tabs { grid-template-columns: repeat(2, 1fr); } }
.tab-button { padding: 10px 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; }
.tab-button.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tab-content { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .tab-content { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h2 { margin: 0 0 12px; font-size: 1rem; }
.panel h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.input-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.input-group label { font-size: .74rem; color: var(--muted); }
.input-group input, .input-group select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 8px; font: inherit; font-size: .88rem; font-variant-numeric: tabular-nums; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; margin-top: 10px; }
.button-group { display: flex; gap: 8px; margin-top: 14px; }
.btn { padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .6; cursor: progress; }
.progress { margin-top: 12px; }
.progress-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 240ms ease; }
.progress-text { margin-top: 6px; font-size: .78rem; color: var(--muted); }
.results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: minmax(0, 1fr); } }
.chart-wrapper { position: relative; height: 260px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.stat { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat .value { font-size: .96rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; word-break: break-word; }
.stat--accent .value { color: var(--accent); }
.stat--ok .value { color: var(--ok); }
.stat--danger .value { color: var(--danger); }
.pi-canvas { width: 100%; max-width: 480px; aspect-ratio: 1; display: block; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.notice { background: var(--panel-2); border: 1px solid var(--warn); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .84rem; color: var(--text); margin-bottom: 12px; }
.method { font-size: .8rem; color: var(--muted); margin: 0; }
.method code { font-family: var(--shell-mono); color: var(--text); }
.sampler-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
/* fintech-risk-analytics additions */
.is-gain { color: var(--ok); } .is-loss { color: var(--danger); }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.chart-wrapper--tall { height: 340px; }
.toggle { display: flex; gap: 6px; margin-bottom: 12px; }
.toggle .btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.import input[type=file] { color: var(--muted); font-size: .84rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.method code { overflow-wrap: anywhere; }
