body { margin: 0; font-family: "DM Sans", Arial, sans-serif; background:linear-gradient(165deg,#070a10 0%,#0b1018 50%,#0f141d 100%); color:#e2e8f0; }
.layout { display:flex; min-height:100vh; }
.sidebar { width:292px; background:linear-gradient(180deg,#0b1220 0%, #0f172a 100%); padding:18px; display:flex; flex-direction:column; gap:8px; border-right:1px solid #25344a; box-shadow:inset -1px 0 0 rgba(255,255,255,.02); }
.sidebar h3 { margin:0 0 8px; font-family:"Fraunces",serif; letter-spacing:.01em; }
.sidebar label { color:#94a3b8; font-size:12px; letter-spacing:.06em; text-transform:uppercase; margin-top:4px; }
.sidebar select,.sidebar button,.sidebar input { padding:10px; border-radius:10px; border:1px solid #32445f; background:#101b2b; color:#e2e8f0; }
.sidebar select:focus,.sidebar input:focus { outline:none; border-color:#6ea8dd; box-shadow:0 0 0 3px rgba(110,168,221,.15); }
.sidebar button { cursor:pointer; font-weight:600; }
#apply { background:linear-gradient(135deg,#1c2f47,#213957); }
#download { background:linear-gradient(135deg,#0f2236,#14304b); }
.live-note { color:#86efac; font-size:12px; margin-top:8px; padding:8px 10px; border:1px solid rgba(46,230,165,.24); border-radius:10px; background:rgba(46,230,165,.08); }
.content { flex:1; padding:18px; }
.hero { position:relative; overflow:hidden; background:
  radial-gradient(ellipse 100% 85% at 100% 0%, rgba(46,230,165,.16) 0%, transparent 55%),
  radial-gradient(ellipse 85% 70% at 0% 100%, rgba(232,197,71,.12) 0%, transparent 50%),
  linear-gradient(145deg,#0a1628 0%, #0d1b2a 42%, #111d2e 100%);
  border:1px solid #32445f; border-radius:16px; padding:24px 22px 20px; margin-bottom:14px; box-shadow:0 18px 36px rgba(0,0,0,.25);}
.hero::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2EE6A5,#E8C547,#6EB5FF);}
.hero h1 { margin:0; font-family:"Fraunces",serif; font-size:34px; letter-spacing:-.02em; }
.hero p { margin:10px 0 0; color:#b7c5d8; max-width:900px; line-height:1.6; }
.hero-kicker { display:inline-block; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:#2EE6A5; margin-bottom:10px; background:rgba(46,230,165,.1); border:1px solid rgba(46,230,165,.22); padding:5px 10px; border-radius:999px; }
.kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.kpi { background:linear-gradient(180deg,#101a2c,#101726); border:1px solid #2f4463; border-radius:12px; padding:14px; box-shadow:0 8px 20px rgba(0,0,0,.15); }
.kpi span { color:#94a3b8; display:block; font-size:12px; }
.kpi strong { font-size:24px; font-family:"Fraunces",serif; }
.kpi.changed { border-color:#2EE6A5; box-shadow:0 0 0 1px rgba(46,230,165,.35), 0 0 18px rgba(46,230,165,.2); transition:all .45s ease; }
.tabbar { display:flex; gap:8px; margin:12px 0 14px; flex-wrap:wrap; }
.tab-btn { border:1px solid #32445f; background:#111b2c; color:#bfcde0; border-radius:12px; padding:9px 13px; cursor:pointer; font-weight:600; }
.tab-btn.active { background:linear-gradient(135deg,#1f2f47,#26405f); color:#fff; border-color:#5f83ab; box-shadow:0 8px 18px rgba(36,64,95,.35); }
.tab-panel { display:none; gap:12px; margin-bottom:12px; }
.tab-panel.active { display:grid; grid-template-columns:1fr 1fr; }
#tab-assistant.active, #tab-overview.active { grid-template-columns:1.5fr 1fr; }
#tab-feed.active, #tab-table.active { grid-template-columns:1fr; }
.panel { background:linear-gradient(180deg,#0f1726,#111827); border:1px solid #32445f; border-radius:13px; padding:14px; box-shadow:0 10px 24px rgba(0,0,0,.18); }
.panel h3 { margin:0 0 10px; font-family:"Fraunces",serif; letter-spacing:.01em; }
.panel canvas { width: 100% !important; height: 320px !important; max-height: 320px; display: block; }
table { width:100%; border-collapse:collapse; font-size:13px; background:#0d1524; border-radius:10px; overflow:hidden; }
th { color:#9db4cf; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
th,td { border-bottom:1px solid #25364d; padding:9px 8px; text-align:left; }
tr.row-new td { background:rgba(46,230,165,.08); animation:rowfade 1.4s ease; }
@keyframes rowfade {
  0% { background:rgba(46,230,165,.22); }
  100% { background:rgba(46,230,165,.02); }
}
.verify-link {
  display:inline-block; padding:4px 8px; border-radius:999px;
  border:1px solid #2a4c6e; color:#9bd2ff; text-decoration:none; font-size:12px;
  background:#0f1b2c;
}
.verify-link:hover { border-color:#2EE6A5; color:#d1fae5; }
.verify-missing { color:#64748b; font-size:12px; }
.chat { height:280px; overflow:auto; border:1px solid #2f4463; border-radius:10px; padding:10px; background:#0e1727; margin-bottom:10px; }
.msg { margin:8px 0; padding:9px 11px; border-radius:10px; max-width:90%; }
.msg.user { background:#1d2b42; margin-left:auto; border:1px solid #375377; }
.msg.bot { background:#10243a; border:1px solid #28486a; }
.msg.bot p { margin: 6px 0; line-height: 1.45; }
.msg.bot h2, .msg.bot h3, .msg.bot h4 { margin: 8px 0 6px; color: #e2e8f0; }
.msg.bot ul, .msg.bot ol { margin: 6px 0 8px 20px; padding: 0; }
.msg.bot li { margin: 4px 0; }
.msg.bot hr { border: 0; border-top: 1px solid #33506b; margin: 8px 0; }
.chat-row { display:flex; gap:8px; }
.chat-row input { flex:1; padding:11px; border-radius:10px; border:1px solid #32445f; background:#0f172a; color:#e2e8f0; }
.chat-row button, .qbtn { padding:8px 10px; border:1px solid #32445f; background:#111d2d; color:#e2e8f0; border-radius:10px; cursor:pointer; }
.quick { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.alert { border-left:3px solid #ff5c5c; padding:8px; background:#1b2332; margin:6px 0; border-radius:6px; }
.insight-box { background:rgba(232,197,71,.08); border:1px solid rgba(232,197,71,.25); border-radius:10px; padding:12px; line-height:1.6; color:#dbeafe; }
.subtle { color:#94a3b8; margin-top:-4px; }
.snapshot { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.snapshot div { background:#0f172a; border:1px solid #2a3c56; border-radius:8px; padding:8px; }
.snapshot span { display:block; color:#94a3b8; font-size:12px; }
.snapshot b { font-size:18px; }
.table-tools { margin-bottom:8px; }
.table-tools input { width:100%; padding:9px; border:1px solid #334155; border-radius:8px; background:#0f172a; color:#e2e8f0; }
#last { color:#9db2c8; font-size:12px; padding:2px 4px; }
@media (max-width: 1100px){ .layout{flex-direction:column;} .sidebar{width:auto;} .kpis,.tab-panel.active,#tab-assistant.active,#tab-overview.active{grid-template-columns:1fr;} }
