:root{color-scheme:dark;--ink:#11171c;--deep:#0b1014;--surface:#192127;--line:#303940;--gold:#d6b875;--silver:#e6e9e9;--muted:#a0adb5;--green:#93b8a6;--danger:#eeaaa4;font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;color:var(--silver);background:var(--ink);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--gold);background:var(--gold);color:#171b1d;border-radius:6px;padding:11px 16px;font-size:13px;font-weight:650;transition:background .15s}button:hover{background:#e7ca89}button:disabled{cursor:wait;opacity:.55}.quiet{background:transparent;color:var(--silver);border-color:var(--line);padding:8px 12px;font-weight:500}.quiet:hover{background:#29343b}a{color:var(--gold);text-decoration:none}a:hover{text-decoration:underline}input,textarea,select{width:100%;background:var(--deep);border:1px solid #3c474e;color:var(--silver);padding:12px;border-radius:5px;min-width:0}input::placeholder,textarea::placeholder{color:#7e8c95}textarea{resize:vertical}label{display:block;color:#c2cbd0;font-size:12px;line-height:1.5;margin-bottom:14px}label input,label textarea,label select{margin-top:6px;font-size:14px}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,4.4vw,66px);font-weight:400;letter-spacing:-2px;line-height:1.1;margin-bottom:20px}h2{font-size:19px;font-weight:550;letter-spacing:-.4px;margin-bottom:0}h3{font-size:14px;font-weight:550}p{line-height:1.6}small,.footnote{font-size:11px;line-height:1.7;color:var(--muted)}.subtle{color:var(--muted);font-size:13px}.brand{font-family:Georgia,serif;font-size:30px;color:var(--silver);display:block;letter-spacing:-1px}.brand span{display:block;font-family:"Avenir Next",sans-serif;font-size:10px;letter-spacing:.4px;color:var(--muted);margin-top:8px}.brand:hover{text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:var(--deep);border-right:1px solid var(--line);padding:40px 24px;display:flex;flex-direction:column}.sidebar nav{margin-top:62px;display:grid;gap:12px}.sidebar nav a{display:flex;gap:13px;color:var(--muted);padding:13px 10px;font-size:13px;border-radius:6px}.sidebar nav a.active{color:var(--gold);background:#242725}.sidebar-foot{margin-top:auto;font-size:11px;color:var(--muted)}.sidebar-foot p{margin-top:12px}.status-dot{display:inline-block;background:var(--green);height:6px;width:6px;border-radius:50%;margin-right:7px}.desk{max-width:1680px;margin-left:224px;padding:0 42px}.topbar{height:78px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.intro{padding:44px 0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.intro h1{margin:0}.intro .subtle{margin-bottom:18px}.mode{border-left:1px solid var(--line);padding:8px 0 8px 26px;font-size:12px;color:var(--gold)}.mode p{font-size:12px;color:var(--muted);margin:12px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.section-heading>span{color:var(--muted);font-size:11px}.section-heading p{color:var(--muted);font-size:12px;margin:7px 0 0}.goals-section{margin:14px 0 32px}.goal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid #4a4536;border-radius:9px;background:linear-gradient(120deg,#272923,#1a2226)}.goal{padding:24px;border-right:1px solid #42463e}.goal:last-child{border:0}.goal-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.goal-top h3{color:#c6cdd0;margin:0}.goal-top button{font-size:10px;padding:5px 8px}.goal-amount{font-family:Georgia,serif;color:#ead4a4;font-size:30px;margin:18px 0 9px;letter-spacing:-.5px}.goal p{font-size:11px;color:#b1babf;margin:0}.goal .definition{margin-top:13px;max-width:42ch}.goal progress{width:100%;height:4px;accent-color:var(--gold);margin:13px 0 0}.work-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:24px;margin-bottom:24px}.panel{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:9px;min-width:0}.inline-form{display:flex;gap:8px;margin-bottom:14px}.inline-form input{flex:1;width:0;font-size:12px}.inline-form button{white-space:nowrap}.watch-row{padding:19px 0;border-bottom:1px solid var(--line)}.watch-main{display:flex;justify-content:space-between;gap:12px;align-items:center}.watch-main strong{font-size:14px}.watch-main .price{font-size:18px;font-variant-numeric:tabular-nums}.watch-meta{font-size:10px;color:var(--muted);line-height:1.65;margin-top:7px}.watch-meta a{display:inline-block;margin-right:10px}.watch-meta button{font-size:10px;padding:3px 6px}.badge{display:inline-block;border:1px solid #4a555b;border-radius:20px;padding:6px 10px;white-space:nowrap;font-size:10px!important}.badge.gold{border-color:#776742;color:var(--gold)}.empty{padding:30px 8px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.empty strong{display:block;color:var(--silver);font-weight:500;margin-bottom:6px}.research-item{border-top:1px solid var(--line);padding:18px 0 4px;margin-top:18px}.research-item summary{cursor:pointer;line-height:1.7;font-size:14px}.research-item .question{white-space:pre-wrap;font-size:13px;color:#c1cbd0;margin:14px 0}.research-item .agent-output{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid var(--gold);padding-left:14px;color:#c9d2d6;margin:14px 0}.research-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.research-actions select{width:auto;font-size:12px;padding:8px}.paper-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:36px}.trade-form{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.full{grid-column:1/-1}.portfolio-content{border-left:1px solid var(--line);padding-left:30px}.portfolio-metrics{display:flex;gap:32px;padding:4px 0 25px}.portfolio-metrics strong{font-size:24px;font-weight:500;display:block;margin-top:9px}.portfolio-metrics span{font-size:11px;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-size:10px;color:var(--muted);font-weight:500;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 10px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}td small{display:block;max-width:220px}.history{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.history summary{cursor:pointer;font-size:13px}.history summary span{color:var(--muted);margin-left:6px}footer{padding:28px 0;display:flex;gap:22px;font-family:Georgia,serif;color:#c2c8cb;font-size:17px}footer span{font-family:"Avenir Next",sans-serif;font-size:10px;color:var(--muted);line-height:1.8}#notice{position:sticky;top:12px;z-index:5;padding:14px 18px;background:#313b36;border:1px solid #788d73;border-radius:6px;margin-bottom:16px;font-size:13px}#notice.error{background:#3b2828;border-color:#a3726d}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 50%,#36382e 0%,#141e22 60%,#0b1014 100%);border-right:1px solid var(--line)}.monogram{font-family:Georgia,serif;font-size:260px;color:var(--gold);z-index:1;line-height:1}.orbit{position:absolute;width:480px;height:480px;border:1px solid #77704d;border-radius:50%;transform:rotate(-30deg) scaleX(.68)}.orbit-two{transform:rotate(35deg) scaleX(.68);border-color:#515b59}.login-art p{position:absolute;bottom:50px;font-family:Georgia,serif;font-size:24px;color:#c8cbbb}.login-panel{padding:80px clamp(28px,6vw,100px);align-self:center;max-width:660px}.login-panel .brand{margin-bottom:66px}.login-panel>p{font-size:14px;color:var(--muted);max-width:36ch}.login-panel form{margin-top:35px}.login-panel button{width:100%}.login-panel small{display:block;margin-top:25px}#login-error,#goal-error{font-size:12px;color:var(--danger);margin-top:12px}dialog{background:var(--surface);color:var(--silver);border:1px solid var(--line);border-radius:10px;width:min(480px,calc(100% - 32px));padding:26px}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:1600px){.desk{padding-left:64px;padding-right:64px}}@media(max-width:1150px){.sidebar{width:190px;padding:30px 18px}.desk{margin-left:190px;padding:0 24px}.work-grid{grid-template-columns:1fr}.goal{padding:18px}.goal-amount{font-size:25px}.paper-layout{grid-template-columns:260px 1fr;gap:24px}.portfolio-content{padding-left:20px}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:18px 20px;display:block}.sidebar .brand{font-size:25px}.sidebar .brand span{display:none}.sidebar nav{margin:18px 0 0;display:flex;overflow-x:auto;gap:8px}.sidebar nav a{white-space:nowrap;padding:8px;font-size:11px}.sidebar-foot{position:absolute;top:20px;right:20px;font-size:0}.sidebar-foot p,.sidebar-foot .status-dot{display:none}.sidebar-foot button{font-size:10px}.desk{margin:0;padding:0 18px}.topbar{height:55px;font-size:10px}.intro{padding:30px 0;align-items:flex-end}.intro h1{font-size:39px}.intro .subtle{max-width:25ch;font-size:11px}.mode{padding-left:12px;font-size:10px;min-width:105px}.mode p{font-size:10px}.goal-grid{grid-template-columns:1fr}.goal{border-right:0;border-bottom:1px solid #42463e;padding:18px}.goal-amount{font-size:28px;margin:12px 0 5px}.goal .definition{max-width:none;margin-top:7px}.section-heading{gap:10px}.section-heading h2{font-size:17px}.panel{padding:20px}.paper-layout{grid-template-columns:1fr}.portfolio-content{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.portfolio-metrics{gap:26px}.portfolio-metrics strong{font-size:22px}.login-shell{grid-template-columns:1fr}.login-art{display:none}.login-panel{padding:40px 28px;margin:auto}.login-panel .brand{margin-bottom:50px}footer{display:block}footer span{display:block;margin-top:8px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* ═══════════════════════════════════════════════════════════════════════════
   ANTIGRAVITY TRILLION — MASTER FINTECH CONCEPT (IMAGE 2 LIVELY EDITION)
   - Translucent Glassmorphic Left-Aligned Panels
   - Darker, More Subdued Luxury Wallpaper Background
   - Massive 3D Golden Cyber Globe on the Right
   - Interactive Hamburger Drawer
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --gold: #d6b875;
  --gold-bright: #ffd778;
  --gold-light: #fff0c2;
  --gold-dim: #9c8250;
  --gold-glow: rgba(214, 184, 117, 0.22);
  --bg: #070b10;
  --bg-surface: #0a1017;
  --bg-panel: rgba(11, 17, 25, 0.42);
  --line: rgba(214, 184, 117, 0.14);
  --line-strong: rgba(214, 184, 117, 0.35);
  --muted: #82929e;
  --text: #e2ded4;
  --text-bright: #faf7f0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse at 78% 45%, rgba(214, 184, 117, 0.10) 0%, transparent 60%),
    linear-gradient(rgba(6, 10, 15, 0.62), rgba(6, 10, 15, 0.72)),
    url('/assets/trillion_bg_wallpaper.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ── Workspace Shell ─────────────────────────────────────────────────────── */
#workspace {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

#workspace[hidden] {
  display: none !important;
}

/* ── Left Icon Rail (Matches Concept Image 2) ────────────────────────────── */
.icon-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 72px;
  background: rgba(8, 12, 17, 0.94);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 20px;
  z-index: 60;
  box-sizing: border-box;
}

.rail-top, .rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.rail-item {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 18px;
}

.rail-item.hamburger-btn {
  color: #c9d2d8;
  font-size: 20px;
  margin-bottom: 6px;
}

.rail-item:hover {
  background: rgba(214, 184, 117, 0.09);
  color: var(--text-bright);
  border-color: rgba(214, 184, 117, 0.25);
  transform: scale(1.05);
}

.rail-item.active {
  background: rgba(214, 184, 117, 0.18);
  color: var(--gold-bright);
  border-color: rgba(214, 184, 117, 0.45);
  box-shadow: 0 0 18px rgba(214, 184, 117, 0.25);
}

/* ── Sliding Navigation Drawer (Triggered by Hamburger ☰) ────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 72px;
  bottom: 0;
  width: 320px;
  background: rgba(9, 14, 20, 0.96);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--line-strong);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 58;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 54;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-bright);
}

.drawer-brand span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.drawer-close:hover {
  color: #fff;
}

.drawer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gold-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.2s;
}

.drawer-link:hover {
  background: rgba(214, 184, 117, 0.1);
  color: var(--gold-bright);
}

.drawer-link .d-icon {
  font-size: 18px;
  color: var(--gold);
  width: 24px;
  text-align: center;
}

.drawer-link strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.drawer-link small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drawer-footer .pill-btn {
  width: 100%;
  text-align: center;
}

.drawer-footer .pill-btn.danger {
  border-color: rgba(238, 170, 164, 0.3);
  color: #eeaaa4;
}

/* ── Main Desk Area (Spans Full Screen Width) ────────────────────────────── */
.desk {
  margin-left: 72px;
  width: calc(100vw - 72px);
  max-width: none;
  box-sizing: border-box;
  padding: 36px clamp(36px, 4.5vw, 90px) 100px;
  display: flex;
  flex-direction: column;
}

/* ── Workspace 2-Column Grid Layout (Sticky Globe + Scrollable Left) ────────── */
.workspace-grid-container {
  display: grid;
  grid-template-columns: minmax(600px, 1.05fr) minmax(640px, 1.25fr);
  gap: clamp(24px, 3.5vw, 60px);
  width: 100%;
  position: relative;
  align-items: start;
}

.workspace-scroll-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  z-index: 2;
}

/* ── Top Single-line Title Bar ────────────────────────────────────────────── */
.top-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.title-with-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.concept-title-single {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 2.4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.terminal-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd778;
  background: rgba(214, 184, 117, 0.12);
  border: 1px solid rgba(214, 184, 117, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #50fa7b;
  box-shadow: 0 0 8px #50fa7b;
  animation: pulse-dot-anim 1.6s ease-in-out infinite;
}

/* ── Upper Interactive Row: Nav Card + Ask Trillion Chat Box Side-by-Side ──── */
.deck-row {
  display: grid;
  grid-template-columns: 240px minmax(380px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.deck-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.concept-nav-card {
  background: rgba(10, 16, 24, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(214, 184, 117, 0.22);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
}

.concept-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9cb0be;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
}

.concept-tab:hover {
  background: rgba(214, 184, 117, 0.1);
  color: #fff;
  border-color: rgba(214, 184, 117, 0.25);
}

.concept-tab.active {
  background: linear-gradient(90deg, rgba(214, 184, 117, 0.22) 0%, rgba(214, 184, 117, 0.08) 100%);
  border-color: rgba(214, 184, 117, 0.5);
  color: #ffd778;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(214, 184, 117, 0.15);
}

.trader-spec-box {
  padding: 12px 14px;
  background: rgba(10, 16, 24, 0.45);
  border: 1px solid rgba(214, 184, 117, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-label {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.spec-val {
  font-weight: 600;
  font-family: 'Inter', monospace, sans-serif;
  color: #e2e8f0;
}

.spec-val.gold { color: #ffd778; }
.spec-val.green { color: #50fa7b; }

/* ── Ask Trillion Chat Box Inside Deck Row ────────────────────────────────── */
.trillion-chat-section {
  margin: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chat-window {
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 24, 0.5) !important;
  border: 1px solid rgba(214, 184, 117, 0.24) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px !important;
  background: rgba(15, 22, 32, 0.6) !important;
  border-bottom: 1px solid rgba(214, 184, 117, 0.18) !important;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Model Selector Dropdown */
.model-select-wrapper {
  position: relative;
}

.chat-model-dropdown {
  background: rgba(18, 26, 40, 0.9);
  border: 1px solid rgba(214, 184, 117, 0.35);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.chat-model-dropdown:hover, .chat-model-dropdown:focus {
  border-color: #ffd778;
  box-shadow: 0 0 10px rgba(214, 184, 117, 0.25);
}

.chat-model-dropdown option {
  background: #0d131f;
  color: #f1f5f9;
  padding: 8px;
}

.chat-model-badge {
  font-size: 11px;
  font-weight: 600;
  color: #ffd778;
  background: rgba(214, 184, 117, 0.12);
  border: 1px solid rgba(214, 184, 117, 0.28);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-messages {
  flex: 1;
  max-height: 290px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(214, 184, 117, 0.15);
  font-size: 10.5px;
  color: #94a3b8;
}

.bubble-model-indicator {
  color: #ffd778;
  font-weight: 600;
  font-family: 'Inter', monospace, sans-serif;
  letter-spacing: 0.02em;
}

/* ── Fixed / Sticky Right Column for the 3D Cyber Globe ───────────────────── */
.workspace-globe-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2vw;
  z-index: 1;
  pointer-events: none;
}

.globe-viewport-sticky {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered in right area and shifted slightly down as requested: */
  transform: translateY(22px);
}

.globe-visual-wrap {
  position: relative;
  width: min(100%, clamp(850px, 92vh, 1240px));
  height: min(100%, clamp(850px, 92vh, 1240px));
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease-out;
}

.globe-master-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(214, 184, 117, 0.5));
  pointer-events: none;
  user-select: none;
  animation: globe-pulse 6s ease-in-out infinite;
}

@keyframes globe-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 45px rgba(214, 184, 117, 0.45)); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 70px rgba(240, 205, 110, 0.65)); }
}

.globe-visual-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  mix-blend-mode: screen;
  pointer-events: auto;
  cursor: grab;
}

.globe-visual-wrap canvas:active {
  cursor: grabbing;
}

@media (max-width: 1280px) {
  .workspace-grid-container {
    grid-template-columns: 1fr;
  }
  .workspace-globe-sticky {
    position: relative;
    height: 600px;
  }
  .globe-viewport-sticky {
    transform: none;
  }
}

/* ── Dashboard Body (KEPT TO THE LEFT & HIGH TRANSPARENCY) ──────────────── */
.dashboard-body {
  width: 100%;
  max-width: 1060px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 5;
}

/* ── Transparent Glassmorphic Panels ─────────────────────────────────────── */
.panel, .goals-section .goal, .chat-window {
  background: rgba(10, 16, 24, 0.42) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(214, 184, 117, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.chat-window {
  background: rgba(10, 16, 24, 0.42) !important;
}

.chat-topbar {
  background: rgba(15, 22, 32, 0.4) !important;
  border-bottom: 1px solid rgba(214, 184, 117, 0.12) !important;
}

.chat-input-area {
  background: rgba(10, 16, 24, 0.45) !important;
  border-top: 1px solid rgba(214, 184, 117, 0.12) !important;
}

.chat-input {
  background: rgba(15, 24, 34, 0.55) !important;
  border: 1px solid rgba(214, 184, 117, 0.22) !important;
}

.chat-msg.trillion .chat-bubble {
  background: rgba(15, 24, 34, 0.6) !important;
  border: 1px solid rgba(214, 184, 117, 0.14) !important;
}

.chat-msg.user .chat-bubble {
  background: rgba(22, 38, 56, 0.6) !important;
  border: 1px solid rgba(80, 140, 200, 0.3) !important;
}

.goal {
  background: rgba(10, 16, 24, 0.42) !important;
  border: 1px solid rgba(214, 184, 117, 0.18) !important;
  border-radius: 14px !important;
  padding: 22px !important;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 184, 117, 0.14) !important;
  border: 1px solid rgba(214, 184, 117, 0.4) !important;
  color: var(--gold-bright) !important;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ── Section Pulse when navigated to ─────────────────────────────────────── */
@keyframes section-pulse-anim {
  0% { box-shadow: 0 0 0 0 rgba(214, 184, 117, 0.45); }
  70% { box-shadow: 0 0 35px 2px rgba(214, 184, 117, 0); }
  100% { box-shadow: none; }
}

.section-pulse {
  animation: section-pulse-anim 1.2s ease-out;
}

/* ── Responsive adjustments ─────────────────────────────────────────────── */

/* ── Research Notebook — Media Attach & Analysis Styles ─────────────────── */
.research-media-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.research-media-type-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-media-type {
  background: rgba(10, 18, 30, 0.7);
  border: 1px solid rgba(214, 184, 117, 0.3);
  border-radius: 8px;
  color: #c8b87e;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
.research-media-type:hover, .research-media-type:focus {
  border-color: rgba(214, 184, 117, 0.7);
  background: rgba(15, 25, 40, 0.9);
}

.research-media-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.research-media-url {
  background: rgba(10, 18, 30, 0.6);
  border: 1px solid rgba(214, 184, 117, 0.22);
  border-radius: 8px;
  color: #e2dab0;
  font-size: 12.5px;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.research-media-url:focus {
  border-color: rgba(214, 184, 117, 0.6);
}

.research-media-text {
  background: rgba(10, 18, 30, 0.6);
  border: 1px solid rgba(214, 184, 117, 0.22);
  border-radius: 8px;
  color: #e2dab0;
  font-size: 12px;
  padding: 8px 12px;
  width: 100%;
  outline: none;
  resize: vertical;
  min-height: 70px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.research-media-text:focus {
  border-color: rgba(214, 184, 117, 0.6);
}

.research-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.research-form-hint {
  font-size: 11px;
  color: #7a8899;
  font-style: italic;
}

/* Research item media badges */
.research-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(214, 184, 117, 0.12);
  border: 1px solid rgba(214, 184, 117, 0.25);
  color: #c8b87e;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  margin-right: 6px;
  vertical-align: middle;
}

.research-source-link {
  margin: 4px 0 8px;
  font-size: 12px;
}
.research-source-link a {
  color: #a0c4ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(160, 196, 255, 0.4);
  word-break: break-all;
}
.research-source-link a:hover { color: #c8deff; }

.research-source-text {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #8a9bb0;
  font-style: italic;
}

/* Analysis block */
.analysis-block {
  background: rgba(8, 20, 35, 0.65);
  border: 1px solid rgba(214, 184, 117, 0.28);
  border-left: 3px solid rgba(214, 184, 117, 0.7);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
}
.analysis-block.analyzing {
  border-color: rgba(100, 200, 255, 0.35);
  border-left-color: rgba(100, 200, 255, 0.8);
  color: #88c8ff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.analysis-label {
  font-size: 11px;
  font-weight: 700;
  color: #c8b87e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.analysis-content {
  font-size: 12.5px;
  line-height: 1.65;
  color: #c8d8e8;
}
.analysis-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #e0d0a0;
  margin: 12px 0 4px;
  border-bottom: 1px solid rgba(214, 184, 117, 0.15);
  padding-bottom: 3px;
}
.analysis-content h5 {
  font-size: 12px;
  font-weight: 600;
  color: #b8c8d8;
  margin: 8px 0 3px;
}
.analysis-content li {
  margin-left: 16px;
  margin-bottom: 3px;
  list-style: disc;
}
.analysis-content strong { color: #e0d0a0; }
.analysis-content p { margin: 6px 0; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
  font-size: 16px;
}

.btn-analyze {
  font-size: 11.5px;
  color: #88b8e0;
  border-color: rgba(100, 160, 220, 0.35) !important;
}
.btn-analyze:hover {
  border-color: rgba(100, 160, 220, 0.7) !important;
  color: #aad0f8;
}

@media (max-width: 1080px) {
  .concept-hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .concept-hero-left {
    align-items: center;
    max-width: 100%;
  }
  .concept-nav-card {
    max-width: 100%;
    width: 100%;
  }
  .globe-viewport {
    height: 520px;
  }
  .dashboard-body {
    max-width: 100% !important;
  }
}

@media (max-width: 720px) {
  .icon-rail {
    display: none;
  }
  .nav-drawer {
    left: 0;
    width: 280px;
  }
  .desk {
    margin-left: 0;
    width: 100vw;
    padding: 16px;
  }
  .globe-viewport {
    height: 400px;
  }
}


/* ── Institutional Screener & Webhook Gateway Styles ─────────────────────── */
.screener-panel {
  margin-bottom: 24px;
}
.screener-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.risk-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 20px 0;
}
.risk-metric-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
}
.rm-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.rm-val {
  font-size: 20px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  margin-bottom: 4px;
}
.rm-sub {
  font-size: 11px;
  color: #64748b;
}
.text-gold { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-warning { color: #f97316; }
.text-success { color: #10b981; }

.screener-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.screener-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.screener-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.screener-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.screener-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.sc-symbol {
  font-weight: 700;
  color: #f8fafc;
  font-size: 14px;
}
.sc-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  margin-top: 3px;
}

.webhook-gateway-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 18px;
  margin-top: 10px;
}
.wh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.wh-endpoint-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 11px;
  font-family: monospace;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.wh-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.wh-field-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wh-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.wh-copy-input {
  display: flex;
  gap: 8px;
}
.wh-copy-input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e2e8f0;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 12px;
}
.quiet-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}
.quiet-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.wh-audit-wrap {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
}
.wh-audit-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.wh-audit-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wh-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
}
.wh-log-status-exec {
  color: #10b981;
  font-weight: 600;
}
.wh-log-status-rej {
  color: #ef4444;
  font-weight: 600;
}
.btn-test-wh {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-test-wh:hover {
  background: rgba(245, 158, 11, 0.4);
  color: #fff;
}
