/* EON Command Center — executive light theme, no external fonts or CDNs.
   White paper, ink-dark text: reads on a projector and prints clean. */
:root {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f5f7fc; --panel: #ffffff; --panel-2: #eef1f8; --line: #e2e7f0;
  --text: #131a2e; --muted: #5b6785; --faint: #8c97b2; --primary: #4f46e5; --primary-2: #6d5cff; --cyan: #0e7490; --green: #0f9265; --amber: #b45309; --red: #dc2626; --violet: #6d28d9;
  --radius: 16px; --shadow: 0 6px 24px rgba(19,26,46,.07); --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", sans-serif; --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: radial-gradient(1100px 520px at 8% -12%, rgba(79,70,229,.09), transparent 62%), radial-gradient(900px 460px at 100% 0%, rgba(14,116,144,.06), transparent 60%), var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; padding: 8px !important; } .side .brand { display: none; } .side nav { flex-direction: row !important; } .side .foot { display: none; } }
.side { display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.brand .logo { width: 36px; height: 36px; border-radius: 12px; background: conic-gradient(from 210deg, var(--primary), #22a3c4, var(--violet), var(--primary)); box-shadow: 0 6px 18px rgba(79,70,229,.35); display: grid; place-items: center; font-weight: 800; color: #fff; }
.brand b { font-size: 18px; letter-spacing: .5px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .3px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.side nav a:hover { background: var(--panel); color: var(--text); }
.side nav a.active { background: linear-gradient(90deg, rgba(79,70,229,.12), rgba(14,116,144,.06)); color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(79,70,229,.18); }
.side nav a .ic { width: 20px; text-align: center; opacity: .9; }
.side .foot { margin-top: auto; font-size: 12px; color: var(--faint); padding: 8px; }
.main { padding: 18px 22px 80px; max-width: 1400px; width: 100%; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.top h1 { font-size: 20px; margin: 0; font-weight: 700; }
.top .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.pill.live { color: var(--green); border-color: rgba(47,209,139,.35); } .pill.server { color: var(--cyan); } .pill.demo { color: var(--amber); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
select.company { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 12px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--panel-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), #3b6fe0); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(79,70,229,.28); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.btn.ok { border-color: rgba(47,209,139,.4); color: var(--green); } .btn.no { border-color: rgba(255,95,109,.4); color: var(--red); }
.btn.mic { width: 44px; height: 44px; border-radius: 50%; padding: 0; justify-content: center; font-size: 18px; }
.btn.mic.on { background: radial-gradient(circle, rgba(220,38,38,.95), rgba(220,38,38,.65)); border-color: transparent; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { box-shadow: 0 0 0 12px rgba(220,38,38,0); } }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card:hover { border-color: #d7deea; }
.card h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h3 .spacer { flex: 1; }
.tile { position: relative; overflow: hidden; }
.tile .val { font-size: 26px; font-weight: 700; margin: 2px 0; }
.tile .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.tile .sub { color: var(--faint); font-size: 12px; }
.tile.alert::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); }
.tile.good::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--green); }
.hero { background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(14,116,144,.05)); border-color: rgba(79,70,229,.22); }
.hero p { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.hero .greet { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { padding: 12px 14px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.item .sev { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.sev.s5 { background: var(--red); box-shadow: 0 0 10px var(--red); } .sev.s4 { background: #ea7317; } .sev.s3 { background: var(--amber); } .sev.s2 { background: var(--cyan); } .sev.s1 { background: var(--green); }
.item .t { font-weight: 600; }
.item .why { color: var(--muted); font-size: 13px; margin-top: 3px; }
.item .rec { color: var(--text); font-size: 13px; margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--primary); }
.item .meta { color: var(--faint); font-size: 12px; text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: #46536f; margin-right: 6px; text-transform: capitalize; }
.tag.finance { color: var(--cyan); } .tag.people { color: var(--violet); } .tag.crm { color: var(--green); } .tag.ops { color: var(--amber); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
td.r, th.r { text-align: right; }
tr:hover td { background: #f6f8fc; }
.bar { height: 8px; border-radius: 999px; background: #e8ecf4; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22a3c4); border-radius: 999px; }
.bar.red i { background: linear-gradient(90deg, #ea7317, var(--red)); } .bar.green i { background: var(--green); }
.chart { width: 100%; height: 150px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs .btn.on { background: rgba(79,70,229,.12); border-color: rgba(79,70,229,.35); color: var(--primary); font-weight: 600; }
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 380px; max-height: 60vh; overflow: auto; padding: 4px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; line-height: 1.55; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--primary), #3b6fe0); color: #fff; border-bottom-right-radius: 4px; }
.msg.eon { align-self: flex-start; background: #f8fafd; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.eon .detail { color: var(--muted); font-size: 13px; margin-top: 8px; white-space: pre-wrap; }
.msg.eon .trace { color: var(--faint); font-size: 11px; margin-top: 8px; font-family: var(--mono); }
.msg.eon .actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.msg.think { color: var(--muted); font-style: italic; }
.askbar { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.askbar input { flex: 1; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none; }
.askbar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.heard { min-height: 20px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--text); background: var(--panel-2); }
.toast { position: fixed; right: 18px; bottom: 18px; background: #131a2e; border: 1px solid #131a2e; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; max-width: 360px; font-size: 14px; }
.hint { color: var(--faint); font-size: 12px; }
.mono { font-family: var(--mono); }
.draft { white-space: pre-wrap; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
.empty { color: var(--faint); padding: 18px; text-align: center; }
.trace-live { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trace-live div { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.trace-live b { color: var(--primary); }
