/* GovPulse.io "holographic command center" theme for the app pages (user-dashboard, bids, agent).
   Loaded after each page's own <style>, so it restyles without touching page logic.
   Deep navy space, a glowing perspective grid floor, glass panels with cyan edges, orange highlights. */

:root {
  --holo-bg: #040a18;
  --holo-bg-2: #071330;
  --holo-panel: rgba(10, 24, 52, 0.62);
  --holo-panel-strong: rgba(12, 30, 64, 0.82);
  --holo-edge: rgba(84, 196, 255, 0.28);
  --holo-edge-hot: rgba(84, 214, 255, 0.65);
  --holo-cyan: #46d3ff;
  --holo-blue: #3b82f6;
  --holo-violet: #8b7bff;
  --holo-orange: #ff8a3d;
  --holo-amber: #ffc14d;
  --holo-green: #3ee6a8;
  --holo-red: #ff5d73;
  --holo-ink: #e3eeff;
  --holo-ink-2: #a9bddb;
  --holo-muted: #7189ad;
  --holo-glow: 0 0 0 1px var(--holo-edge), 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(54, 170, 255, 0.10);
  --holo-glow-hot: 0 0 0 1px var(--holo-edge-hot), 0 14px 48px rgba(0, 0, 0, 0.5), 0 0 34px rgba(70, 211, 255, 0.28);
  --holo-radius: 14px;
  --holo-font: 'Inter', 'Public Sans', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

/* ---------- the scene ---------- */
html { background: var(--holo-bg); }
body.holo {
  background:
    radial-gradient(ellipse 60% 45% at 18% 8%, rgba(59, 130, 246, 0.20), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 18%, rgba(139, 123, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 95%, rgba(255, 138, 61, 0.10), transparent 70%),
    linear-gradient(180deg, var(--holo-bg-2), var(--holo-bg) 60%) !important;
  background-attachment: fixed !important;
  color: var(--holo-ink) !important;
  font-family: var(--holo-font) !important;
  min-height: 100vh;
  position: relative;
}
/* perspective grid floor */
body.holo::before {
  content: '';
  position: fixed; left: -50%; right: -50%; bottom: -10vh; height: 70vh;
  background-image:
    linear-gradient(rgba(70, 211, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 211, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  animation: holo-floor 18s linear infinite;
  pointer-events: none; z-index: 0;
}
/* faint scan lines */
body.holo::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  pointer-events: none; z-index: 0;
}
@keyframes holo-floor { to { background-position: 0 64px, 0 0; } }
@media (prefers-reduced-motion: reduce) { body.holo::before { animation: none; } }
body.holo > * { position: relative; z-index: 1; }

body.holo ::selection { background: rgba(70, 211, 255, 0.35); }
body.holo a { color: var(--holo-cyan); }
body.holo ::-webkit-scrollbar { width: 10px; height: 10px; }
body.holo ::-webkit-scrollbar-thumb { background: rgba(84, 196, 255, 0.25); border-radius: 10px; }
body.holo ::-webkit-scrollbar-track { background: transparent; }

/* shared glass panel */
.holo-glass {
  background: var(--holo-panel) !important;
  border: 0 !important;
  border-radius: var(--holo-radius) !important;
  box-shadow: var(--holo-glow) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ======================================================================
   USER DASHBOARD (user-dashboard.html)
   ====================================================================== */
body.holo-dashboard .dashboard-container { background: transparent !important; }
body.holo-dashboard .sidebar {
  background: linear-gradient(180deg, rgba(6, 16, 38, 0.92), rgba(4, 10, 24, 0.92)) !important;
  border-right: 1px solid var(--holo-edge) !important;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35), inset -1px 0 0 rgba(70, 211, 255, 0.08);
  backdrop-filter: blur(12px);
}
body.holo-dashboard .sidebar-logo { border-bottom: 1px solid rgba(84, 196, 255, 0.14) !important; }
body.holo-dashboard .sidebar-logo h1 {
  background: linear-gradient(90deg, var(--holo-cyan), var(--holo-blue) 55%, var(--holo-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  letter-spacing: -0.02em; text-shadow: none;
}
body.holo-dashboard .sidebar-nav a { color: var(--holo-ink-2) !important; border-left: 3px solid transparent; transition: all .2s; }
body.holo-dashboard .sidebar-nav a:hover { background: rgba(70, 211, 255, 0.07) !important; color: var(--holo-ink) !important; }
body.holo-dashboard .sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(70, 211, 255, 0.16), transparent) !important;
  color: #fff !important; border-left-color: var(--holo-cyan) !important;
  box-shadow: inset 0 0 18px rgba(70, 211, 255, 0.08);
}
body.holo-dashboard .main-content { background: transparent !important; }
body.holo-dashboard .header h2 { color: #fff !important; font-weight: 700; letter-spacing: -0.02em; }
body.holo-dashboard .header h2::after {
  content: 'MISSION CONTROL'; display: block; margin-top: 6px;
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.28em; color: var(--holo-cyan); opacity: .8;
}
body.holo-dashboard .user-menu { color: var(--holo-ink-2) !important; }
body.holo-dashboard .user-avatar {
  background: radial-gradient(circle at 30% 30%, var(--holo-cyan), var(--holo-blue)) !important;
  box-shadow: 0 0 0 2px rgba(70, 211, 255, 0.35), 0 0 18px rgba(70, 211, 255, 0.45);
}

body.holo-dashboard .subscription-banner {
  background:
    linear-gradient(110deg, rgba(59, 130, 246, 0.55), rgba(139, 123, 255, 0.40) 55%, rgba(255, 138, 61, 0.35)) !important;
  border-radius: var(--holo-radius) !important;
  box-shadow: var(--holo-glow-hot) !important;
  position: relative; overflow: hidden;
}
body.holo-dashboard .subscription-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%);
  transform: translateX(-100%); animation: holo-sheen 6s ease-in-out infinite; pointer-events: none;
}
@keyframes holo-sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
body.holo-dashboard .btn-white {
  background: rgba(4, 10, 24, 0.55) !important; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important; backdrop-filter: blur(6px);
}

body.holo-dashboard .stat-card {
  background: var(--holo-panel) !important; border: 0 !important; border-radius: var(--holo-radius) !important;
  box-shadow: var(--holo-glow) !important; backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
}
body.holo-dashboard .stat-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--holo-cyan), transparent);
  opacity: .8;
}
body.holo-dashboard .stat-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--holo-orange), transparent); }
body.holo-dashboard .stat-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, var(--holo-violet), transparent); }
body.holo-dashboard .stat-card:nth-child(4)::before { background: linear-gradient(90deg, transparent, var(--holo-green), transparent); }
body.holo-dashboard .stat-card h3 {
  color: var(--holo-muted) !important; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px !important; font-weight: 600 !important;
}
body.holo-dashboard .stat-value {
  background: linear-gradient(180deg, #ffffff, #9fdcff);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(70, 211, 255, 0.35));
  font-variant-numeric: tabular-nums;
}
body.holo-dashboard .stat-change { color: var(--holo-ink-2) !important; }
body.holo-dashboard .stat-change.positive { color: var(--holo-green) !important; }
body.holo-dashboard .stat-change.negative { color: var(--holo-red) !important; }

body.holo-dashboard .section {
  background: var(--holo-panel) !important; border: 0 !important; border-radius: var(--holo-radius) !important;
  box-shadow: var(--holo-glow) !important; backdrop-filter: blur(14px);
}
body.holo-dashboard .section-title { color: #fff !important; border-bottom-color: var(--holo-cyan) !important; }
body.holo-dashboard .btn-primary {
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue)) !important; color: #031024 !important; font-weight: 700 !important;
  border: 0 !important; box-shadow: 0 0 20px rgba(70, 211, 255, 0.35) !important;
}
body.holo-dashboard .btn-primary:hover { box-shadow: 0 0 30px rgba(70, 211, 255, 0.55) !important; }
body.holo-dashboard .btn-outline {
  background: transparent !important; color: var(--holo-cyan) !important; border: 1px solid var(--holo-edge-hot) !important;
}
body.holo-dashboard .briefing-card {
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 138, 61, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 123, 255, 0.30)) !important;
  border-radius: 12px !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 30px rgba(139, 123, 255, 0.18) !important;
}
body.holo-dashboard .briefing-card h3 { color: #fff !important; }
body.holo-dashboard .briefing-item { border-bottom-color: rgba(255, 255, 255, 0.12) !important; color: #e8efff !important; }
body.holo-dashboard .briefing-item strong { color: var(--holo-amber) !important; }

body.holo-dashboard .search-input {
  background: rgba(3, 10, 26, 0.7) !important; color: var(--holo-ink) !important; border: 1px solid var(--holo-edge) !important;
}
body.holo-dashboard .search-input::placeholder { color: var(--holo-muted); }
body.holo-dashboard .search-input:focus { border-color: var(--holo-cyan) !important; box-shadow: 0 0 0 3px rgba(70, 211, 255, 0.18) !important; outline: none; }
body.holo-dashboard .pill { background: rgba(70, 211, 255, 0.05) !important; color: var(--holo-ink-2) !important; border: 1px solid var(--holo-edge) !important; }
body.holo-dashboard .pill.active, body.holo-dashboard .pill:hover {
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue)) !important; color: #031024 !important; border-color: transparent !important;
}
body.holo-dashboard .opportunity-card {
  background: rgba(6, 18, 42, 0.72) !important; border: 1px solid rgba(84, 196, 255, 0.16) !important; border-radius: 12px !important;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
body.holo-dashboard .opportunity-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--holo-cyan), var(--holo-blue)); box-shadow: 0 0 14px var(--holo-cyan);
}
body.holo-dashboard .opportunity-card:hover { border-color: var(--holo-edge-hot) !important; box-shadow: 0 0 26px rgba(70, 211, 255, 0.18) !important; transform: translateY(-2px); }
body.holo-dashboard .opp-title { color: #fff !important; }
body.holo-dashboard .opp-meta { color: var(--holo-ink-2) !important; }
body.holo-dashboard .opp-description { color: var(--holo-muted) !important; }
body.holo-dashboard .opp-score { border: 1px solid currentColor; background: transparent !important; font-variant-numeric: tabular-nums; }
body.holo-dashboard .score-high { color: var(--holo-green) !important; box-shadow: 0 0 14px rgba(62, 230, 168, 0.3); }
body.holo-dashboard .score-medium { color: var(--holo-amber) !important; box-shadow: 0 0 14px rgba(255, 193, 77, 0.25); }
body.holo-dashboard .score-low { color: var(--holo-orange) !important; }
body.holo-dashboard .tag { background: rgba(70, 211, 255, 0.08) !important; color: var(--holo-ink-2) !important; border: 1px solid rgba(84, 196, 255, 0.18); }
body.holo-dashboard .tag.federal { background: rgba(59, 130, 246, 0.18) !important; color: #b9d4ff !important; }
body.holo-dashboard .tag.state { background: rgba(255, 138, 61, 0.14) !important; color: #ffc7a0 !important; }
body.holo-dashboard .saved-search { background: rgba(6, 18, 42, 0.6) !important; border-color: rgba(84, 196, 255, 0.16) !important; }
body.holo-dashboard .saved-search-info h4 { color: #fff !important; }
body.holo-dashboard .saved-search-info p { color: var(--holo-muted) !important; }
body.holo-dashboard .loading { color: var(--holo-muted) !important; }

/* ---------- Intelligence overview (holo-charts.js) ---------- */
.holo-overview {
  display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: 18px; margin: 0 0 24px;
}
@media (max-width: 1100px) { .holo-overview { grid-template-columns: 1fr; } }
.holo-tile {
  background: var(--holo-panel); border-radius: var(--holo-radius); box-shadow: var(--holo-glow);
  backdrop-filter: blur(14px); padding: 18px 20px 14px; position: relative; overflow: hidden; min-height: 248px;
}
.holo-tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(70, 211, 255, 0.10), transparent 70%);
}
.holo-tile h4 {
  margin: 0 0 12px; font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--holo-cyan);
  display: flex; justify-content: space-between; align-items: center;
}
.holo-tile h4 span { color: var(--holo-muted); letter-spacing: .08em; }
.holo-tile svg { display: block; width: 100%; height: auto; overflow: visible; }
.holo-tile .holo-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--holo-ink-2); }
.holo-tile .holo-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.holo-bar-label { fill: var(--holo-ink-2); font: 500 12px var(--holo-font); }
.holo-bar-value { fill: #fff; font: 700 12px var(--holo-font); }
.holo-axis { stroke: rgba(84, 196, 255, 0.14); }
.holo-gauge-value { fill: #fff; font: 800 34px var(--holo-font); }
.holo-gauge-sub { fill: var(--holo-muted); font: 600 10px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .18em; }
.holo-tl-label { fill: var(--holo-muted); font: 500 10px var(--holo-font); }
.holo-grow { transform-box: fill-box; transform-origin: left center; animation: holo-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes holo-grow { from { transform: scaleX(0); } }
.holo-rise { transform-box: fill-box; transform-origin: center bottom; animation: holo-rise 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes holo-rise { from { transform: scaleY(0); } }
.holo-spin { transform-box: fill-box; transform-origin: center; animation: holo-spin 14s linear infinite; }
.holo-spin.rev { animation-duration: 22s; animation-direction: reverse; }
@keyframes holo-spin { to { transform: rotate(360deg); } }
.holo-pulse { transform-box: fill-box; transform-origin: center; animation: holo-pulse 2.8s ease-out infinite; }
@keyframes holo-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .holo-spin, .holo-pulse, .holo-grow, .holo-rise { animation: none; } }

/* ======================================================================
   BID GENERATION (bids.html)
   ====================================================================== */
body.holo-bids > nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 32px; position: sticky; top: 0; z-index: 10;
  background: rgba(4, 10, 24, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--holo-edge);
}
body.holo-bids > nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; }
body.holo-bids > nav .brand img { width: 32px; height: 32px; }
body.holo-bids > nav .nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
body.holo-bids > nav .nav-links a { color: var(--holo-ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
body.holo-bids > nav .nav-links a:hover { color: #fff; background: rgba(70, 211, 255, 0.08); }
body.holo-bids > nav .nav-links a.active { color: #031024; background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue)); font-weight: 700; }
body.holo-bids .page-header h1 { color: #fff !important; text-shadow: 0 0 24px rgba(70, 211, 255, 0.35); }
body.holo-bids .page-header p { color: var(--holo-ink-2) !important; }
body.holo-bids .quick-opportunities, body.holo-bids .bid-form, body.holo-bids .bid-results {
  background: var(--holo-panel) !important; border: 0 !important; border-radius: var(--holo-radius) !important; box-shadow: var(--holo-glow) !important;
  backdrop-filter: blur(14px); color: var(--holo-ink) !important;
}
body.holo-bids .quick-opportunities h2, body.holo-bids .form-section h3 { color: #fff !important; }
body.holo-bids .opportunity-card {
  background: rgba(6, 18, 42, 0.72) !important; border: 1px solid rgba(84, 196, 255, 0.16) !important; border-radius: 10px !important; position: relative;
}
body.holo-bids .opportunity-card:hover { border-color: var(--holo-edge-hot) !important; box-shadow: 0 0 24px rgba(70, 211, 255, 0.18) !important; }
body.holo-bids .opportunity-title { color: #fff !important; }
body.holo-bids .opportunity-agency { color: var(--holo-ink-2) !important; }
body.holo-bids .opportunity-deadline { color: var(--holo-orange) !important; }
body.holo-bids .form-group label { color: var(--holo-ink-2) !important; }
body.holo-bids input, body.holo-bids textarea, body.holo-bids select {
  background: rgba(3, 10, 26, 0.75) !important; color: var(--holo-ink) !important; border: 1px solid var(--holo-edge) !important; border-radius: 8px !important;
}
body.holo-bids input:focus, body.holo-bids textarea:focus { border-color: var(--holo-cyan) !important; box-shadow: 0 0 0 3px rgba(70, 211, 255, 0.18) !important; outline: none; }
body.holo-bids .btn-generate {
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue) 60%, var(--holo-violet)) !important; color: #031024 !important; font-weight: 800 !important;
  box-shadow: 0 0 26px rgba(70, 211, 255, 0.4) !important; border: 0 !important;
}
body.holo-bids .success-message {
  background: rgba(62, 230, 168, 0.12) !important; color: var(--holo-green) !important; border: 1px solid rgba(62, 230, 168, 0.4) !important; border-left-width: 4px !important;
}
body.holo-bids .bid-meta { background: rgba(6, 18, 42, 0.72) !important; border: 1px solid rgba(84, 196, 255, 0.14); }
body.holo-bids .bid-meta-label { color: var(--holo-muted) !important; }
body.holo-bids .bid-meta-value { color: #fff !important; }
body.holo-bids .bid-section {
  background: rgba(6, 18, 42, 0.72) !important; border: 1px solid rgba(84, 196, 255, 0.14) !important; border-left: 3px solid var(--holo-cyan) !important;
  box-shadow: -6px 0 18px -10px var(--holo-cyan);
}
body.holo-bids .bid-section h3 { color: #fff !important; }
body.holo-bids .bid-content { color: var(--holo-ink-2) !important; }
body.holo-bids footer, body.holo-bids footer * { color: var(--holo-muted) !important; background: transparent !important; }

/* ======================================================================
   AI AGENT (agent.html)
   ====================================================================== */
body.holo-agent .agent-header {
  background: rgba(4, 10, 24, 0.8) !important; backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--holo-edge) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}
body.holo-agent .agent-header h1 { color: #fff !important; }
body.holo-agent .agent-header h1 span:last-child {
  background: linear-gradient(90deg, #fff, #9fdcff 60%, var(--holo-orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.holo-agent .agent-header-nav a { color: var(--holo-ink-2) !important; }
body.holo-agent .agent-header-nav a:hover { color: #fff !important; background: rgba(70, 211, 255, 0.08) !important; }
body.holo-agent .agent-header .status { color: var(--holo-ink-2) !important; }
body.holo-agent .agent-header .status-indicator { background: var(--holo-green) !important; box-shadow: 0 0 12px var(--holo-green); }
body.holo-agent .agent-container, body.holo-agent .agent-messages { background: transparent !important; }
body.holo-agent .quick-action {
  background: var(--holo-panel) !important; border: 0 !important; box-shadow: var(--holo-glow) !important; color: var(--holo-ink) !important; backdrop-filter: blur(12px);
}
body.holo-agent .quick-action:hover { box-shadow: var(--holo-glow-hot) !important; }
body.holo-agent .quick-action h3 { color: #fff !important; }
body.holo-agent .quick-action p { color: var(--holo-muted) !important; }
body.holo-agent .agent-message .avatar {
  background: radial-gradient(circle at 30% 30%, var(--holo-cyan), var(--holo-blue)) !important;
  box-shadow: 0 0 0 2px rgba(70, 211, 255, 0.3), 0 0 18px rgba(70, 211, 255, 0.45) !important;
}
body.holo-agent .agent-message.user .avatar {
  background: radial-gradient(circle at 30% 30%, var(--holo-amber), var(--holo-orange)) !important;
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.3), 0 0 18px rgba(255, 138, 61, 0.4) !important;
}
body.holo-agent .agent-message .bubble {
  background: var(--holo-panel-strong) !important; color: var(--holo-ink) !important; border: 0 !important;
  box-shadow: var(--holo-glow) !important; backdrop-filter: blur(14px);
}
body.holo-agent .agent-message.user .bubble {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(139, 123, 255, 0.8)) !important; color: #fff !important;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35) !important;
}
body.holo-agent .agent-message .bubble strong, body.holo-agent .agent-message .bubble b { color: #fff !important; }
body.holo-agent .agent-message .bubble table { border-collapse: collapse; }
body.holo-agent .agent-message .bubble th { background: rgba(70, 211, 255, 0.10) !important; color: var(--holo-cyan) !important; border-bottom: 1px solid var(--holo-edge-hot) !important; }
body.holo-agent .agent-message .bubble td { border-bottom: 1px solid rgba(84, 196, 255, 0.12) !important; color: var(--holo-ink) !important; }
body.holo-agent .agent-message .bubble table thead tr, body.holo-agent .agent-message .bubble table tbody tr { background: transparent !important; }
body.holo-agent .agent-message .bubble table tbody tr:hover { background: rgba(70, 211, 255, 0.06) !important; }
body.holo-agent .agent-typing .bubble { background: var(--holo-panel-strong) !important; }
body.holo-agent .agent-typing .dot { background: var(--holo-cyan) !important; box-shadow: 0 0 8px var(--holo-cyan); }
body.holo-agent .agent-input-area {
  background: rgba(4, 10, 24, 0.82) !important; border-top: 1px solid var(--holo-edge) !important; backdrop-filter: blur(14px);
}
body.holo-agent .agent-input {
  background: rgba(3, 10, 26, 0.85) !important; color: var(--holo-ink) !important; border: 1px solid var(--holo-edge-hot) !important;
  box-shadow: 0 0 22px rgba(70, 211, 255, 0.12) !important;
}
body.holo-agent .agent-input::placeholder { color: var(--holo-muted) !important; }
body.holo-agent .agent-send-btn {
  background: linear-gradient(135deg, var(--holo-cyan), var(--holo-blue)) !important; color: #031024 !important; font-weight: 800 !important;
  box-shadow: 0 0 22px rgba(70, 211, 255, 0.4) !important;
}
body.holo-agent .file-attach-btn { color: var(--holo-ink-2) !important; }
body.holo-agent .document-content { color: var(--holo-ink) !important; }
body.holo-agent .loading-state, body.holo-agent .error-state {
  background: var(--holo-panel-strong) !important; color: var(--holo-ink) !important; border: 0 !important;
  border-radius: var(--holo-radius) !important; box-shadow: var(--holo-glow) !important; backdrop-filter: blur(14px);
}
body.holo-agent .error-state { box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.45), 0 0 30px rgba(255, 138, 61, 0.15) !important; }
body.holo-agent .error-state h3, body.holo-agent .error-state strong { color: var(--holo-orange) !important; }
body.holo-agent .error-state p, body.holo-agent .loading-state p { color: var(--holo-ink-2) !important; }

/* ---------- agent reply visuals (holo-viz.js) ---------- */
.gp-viz { margin: 2px 0 14px; }
.gpv { display: grid; gap: 14px; }
.gpv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.gpv-kpi {
  background: rgba(3, 10, 26, 0.6); border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px rgba(84, 196, 255, 0.22), inset 0 0 22px rgba(70, 211, 255, 0.06);
  animation: gpv-rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.gpv-kpi-v { font: 800 26px/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px currentColor; }
.gpv-kpi-l { margin-top: 4px; font: 600 10px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #7189ad; }
.gpv-stage {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 300px;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(70, 211, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(4, 10, 24, 0.2), rgba(4, 10, 24, 0.75));
  box-shadow: 0 0 0 1px rgba(84, 196, 255, 0.25), inset 0 0 60px rgba(70, 211, 255, 0.08);
}
.gpv-stage canvas { display: block; width: 100% !important; }
.gpv-stage-label { position: absolute; left: 14px; top: 12px; z-index: 2; font: 600 10px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: #46d3ff; }
.gpv-legend { position: absolute; right: 14px; top: 10px; z-index: 2; display: flex; gap: 12px; font-size: 12px; color: #a9bddb; }
.gpv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.gpv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gpv-card {
  display: block; text-decoration: none !important; color: inherit !important; padding: 12px 14px; border-radius: 12px;
  background: rgba(6, 18, 42, 0.75); box-shadow: 0 0 0 1px rgba(84, 196, 255, 0.16); border-left: 3px solid var(--lvl);
  animation: gpv-slide .55s cubic-bezier(.2,.8,.2,1) both; transition: transform .2s, box-shadow .2s;
}
.gpv-card:hover { transform: translateY(-2px) perspective(600px) rotateX(4deg); box-shadow: 0 0 0 1px var(--lvl), 0 0 26px color-mix(in srgb, var(--lvl) 35%, transparent); }
.gpv-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.gpv-badge { font: 700 10px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--lvl); }
.gpv-due { font-size: 11px; color: #a9bddb; } .gpv-due.hot { color: #ffc14d; text-shadow: 0 0 10px rgba(255, 193, 77, .5); }
.gpv-card-title { font-weight: 700; font-size: 13px; color: #fff; line-height: 1.35; }
.gpv-card-org { margin-top: 4px; font-size: 12px; color: #7189ad; }
.gpv-bars3d { display: flex; align-items: flex-end; gap: 14px; height: 240px; padding: 18px 12px 8px; perspective: 700px; border-radius: 14px;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(255, 138, 61, 0.14), transparent 70%); box-shadow: 0 0 0 1px rgba(84, 196, 255, 0.2); }
.gpv-bar3d { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; animation: gpv-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.gpv-col { position: relative; width: 60%; height: var(--h); transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(-24deg); transform-origin: bottom; animation: gpv-grow 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: inherit; }
.gpv-col i { position: absolute; inset: 0; }
.gpv-col .f { background: linear-gradient(180deg, #46d3ff, #3b82f6); box-shadow: 0 0 22px rgba(70, 211, 255, .45); }
.gpv-col .s { left: 100%; width: 14px; background: linear-gradient(180deg, #2b8fd0, #1f4fa8); transform-origin: left; transform: rotateY(90deg); }
.gpv-col .t { bottom: 100%; top: auto; height: 14px; background: #9fe7ff; transform-origin: bottom; transform: rotateX(90deg); }
.gpv-bar-v { margin-top: 8px; font: 800 12px Inter, sans-serif; color: #fff; }
.gpv-bar-l { margin-top: 2px; font-size: 11px; color: #7189ad; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes gpv-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes gpv-slide { from { opacity: 0; transform: translateX(-14px); } }
@keyframes gpv-grow { from { height: 0; } }
@media (prefers-reduced-motion: reduce) { .gpv-kpi, .gpv-card, .gpv-bar3d, .gpv-col { animation: none; } }
/* bids: Word export */
.bid-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 16px; }
.bid-actions-note { font-size: 13px; color: #718096; }
.btn-docx { border: 0; border-radius: 10px; padding: 11px 18px; font: 700 14px Inter, system-ui, sans-serif; cursor: pointer; color: #fff; background: #2b6cb0; }
body.holo-bids .btn-docx { color: #031024; background: linear-gradient(135deg, #46d3ff, #3b82f6); box-shadow: 0 0 22px rgba(70, 211, 255, .4); }
body.holo-bids .bid-actions-note { color: var(--holo-muted); }
.btn-docx:disabled { opacity: .75; cursor: progress; }
