html { min-height:100%; }
body { min-height:100vh; display:flex; flex-direction:column; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background:#f0f4f8; color:#0f172a; margin:0; padding:0; }
.demo-nav { min-height:56px; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:#0f172a; color:#e2e8f0; box-sizing:border-box; }
.demo-nav a { color:inherit; text-decoration:none; }
.demo-brand { display:inline-flex; align-items:center; gap:10px; font-weight:700; white-space:nowrap; }
.brand-mark { width:28px; height:28px; display:inline-grid; place-items:center; border-radius:4px; background:#0ea5a3; color:white; font-size:15px; }
.demo-links { display:flex; flex-wrap:wrap; gap:4px; }
.demo-links a { padding:8px 10px; border-radius:4px; color:#cbd5e1; font-size:.85em; }
.demo-links a:hover, .demo-links a.active { color:#fff; background:#1e293b; }
.container { width:100%; flex:1; max-width:1200px; margin:20px auto; background:white; padding:0; border-radius:8px; box-shadow:0 4px 16px rgba(15,23,42,0.08); overflow:hidden; }
.tool-header { padding:24px; background:#f8fafc; border-left:4px solid #0ea5a3; border-bottom:1px solid #e2e8f0; }
.eyebrow { margin:0 0 8px; color:#0d9c97; font-size:.82em; font-weight:700; text-transform:uppercase; letter-spacing:0; }
#app { padding:24px; }
h1 { color:#1e293b; margin:0 0 4px 0; }
.subtitle { color:#64748b; margin:0 0 20px 0; font-size:0.95em; }
.section { margin-bottom:24px; padding:16px; background:#f8fafc; border-radius:6px; border-left:4px solid #0ea5a3; }
.section h2 { margin:0 0 12px 0; font-size:1.1em; color:#1e293b; }
.scenarios { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:12px; margin-bottom:12px; }
.scenario-input { display:grid; grid-template-columns:minmax(130px, 1fr) minmax(120px, .7fr) auto; gap:8px; align-items:end; }
.scenario-input label { display:grid; gap:4px; font-size:.78em; color:#64748b; font-weight:600; }
input[type="number"], select { width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #cbd5e1; border-radius:4px; font-size:0.95rem; background:white; color:#0f172a; }
button { padding:8px 16px; background:#0ea5a3; color:white; border:none; border-radius:4px; cursor:pointer; font-weight:500; }
button:hover { background:#0d9c97; }
button.secondary { background:#64748b; }
button.secondary:hover { background:#475569; }
button.remove { background:#ef4444; padding:8px 12px; }
button.remove:hover { background:#dc2626; }
.compute-button { width:100%; padding:12px; font-size:1em; }
.summary-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin:12px 0; }
.summary-grid.compact { grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); }
.summary-card { background:white; padding:12px; border-radius:4px; border:1px solid #e2e8f0; }
.summary-card label { display:block; font-size:0.8em; color:#64748b; font-weight:500; }
.summary-card .value { font-size:1.4em; font-weight:bold; color:#0ea5a3; margin-top:4px; }
.summary-card .secondary { font-size:1em; color:#1e293b; margin-top:4px; }
.summary-card.emphasis { border-color:#0ea5a3; box-shadow:0 0 0 1px rgba(14,165,163,.16); }
.summary-card .muted-value { color:#475569; }
.table { width:100%; border-collapse:collapse; font-size:0.9em; margin:12px 0; }
.table th { background:#1e293b; color:white; padding:10px; text-align:left; font-weight:600; }
.table td { padding:8px 10px; border-bottom:1px solid #e2e8f0; }
.table tr:nth-child(even) { background:#f8fafc; }
.table tr:hover { background:#eff6ff; }
.table .num { text-align:right; }
.comparison { margin-top:20px; padding:16px; background:#f1f5f9; border-radius:6px; }
.comparison h3 { margin:0 0 12px 0; color:#1e293b; }
.rate-badge { display:inline-block; padding:4px 8px; background:#dbeafe; color:#0c4a6e; border-radius:3px; font-size:0.85em; font-weight:500; margin:0 4px; }
.small { font-size:0.85em; color:#64748b; }
.access-panel { max-width:720px; margin:0 auto 24px; }
.access-copy { color:#475569; line-height:1.55; margin:0 0 16px; }
.access-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.access-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 15px; border-radius:4px; background:#0ea5a3; color:white; font-weight:600; text-decoration:none; }
.access-button:hover { background:#0d9c97; }
.access-button.secondary { background:#64748b; }
.access-button.secondary:hover { background:#475569; }
.error { color:#dc2626; }
.success { color:#16a34a; }
.site-footer { margin-top:auto; padding:24px; background:#0f172a; color:#cbd5e1; }
.site-footer .footer-links { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:10px; }
.site-footer a { color:#e2e8f0; text-decoration:none; }
.site-footer p { margin:0; color:#64748b; font-size:.9em; }
@media (max-width:720px) {
  .demo-nav { padding:8px 16px; align-items:flex-start; flex-direction:column; }
  .container { margin:0; border-radius:0; }
  .tool-header, #app { padding:16px; }
  .scenario-input { grid-template-columns:1fr; }
  button.remove { width:100%; }
  .access-button { width:100%; }
}
