/* ============================================================================
   /shared/command-nav.css  -  The command-bar nav (the nav IS the Analyst entrance).
   Dark, compact, full-width. Pairs with /shared/command-nav.js.
   ============================================================================ */
.cmd-nav {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, #0b1430, #0c1838);
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #eaf0fb; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.cmd-nav-row { display: flex; align-items: center; gap: 14px; max-width: 1340px; margin: 0 auto; padding: 9px 18px; }

.cmd-brand { flex: 0 0 auto; display: flex; flex-direction: column; line-height: 1.04; text-decoration: none; }
.cmd-brand-name { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.cmd-brand-sub { font-size: 10px; font-weight: 600; color: #8fa6cf; letter-spacing: .01em; }

.cmd-capsule {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 5px 5px 5px 12px; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.cmd-capsule:hover, .cmd-capsule.is-focus { border-color: rgba(127,176,255,.6); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.cmd-clip, .cmd-mic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07); color: #cdd9f0; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.cmd-clip:hover, .cmd-mic:hover { background: rgba(255,255,255,.14); color: #fff; }
.cmd-mic.is-listening { background: #dc2626; border-color: #dc2626; color: #fff; }
.cmd-input {
  flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: #eaf0fb;
  font: inherit; font-size: 15px; padding: 9px 2px; cursor: text; text-overflow: ellipsis;
  resize: none; line-height: 1.45; max-height: 200px; overflow-y: auto;
}
.cmd-input::placeholder { color: #9fb3d8; opacity: 1; }
/* When the user is typing (or the dashboard is open), grow the textarea so they have a
   more convenient writing area. Same field, just bigger — no new input appears. */
.cmd-nav.is-dash-open .cmd-input { min-height: 84px; padding: 10px 4px; }
.cmd-input:focus { min-height: 64px; }
.cmd-analyze {
  flex: 0 0 auto; min-height: 40px; padding: 0 18px; border: 0; border-radius: 11px;
  background: #f59e0b; color: #0b1430; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.cmd-analyze:hover { background: #fbbf24; }

.cmd-flags { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.cmd-flag {
  width: 34px; height: 34px; border: 0; background: transparent; font-size: 17px; line-height: 1;
  border-radius: 8px; cursor: pointer; opacity: .5; padding: 0; transition: opacity .15s, background .15s;
}
.cmd-flag:hover { opacity: .85; background: rgba(255,255,255,.06); }
.cmd-flag.is-active { opacity: 1; background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(127,176,255,.5); }

.cmd-menu {
  flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #eaf0fb; border-radius: 10px; font-size: 20px; line-height: 1;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cmd-menu:hover { background: rgba(255,255,255,.12); }

.cmd-micro { max-width: 1340px; margin: 0 auto; padding: 0 18px 9px; font-size: 11.5px; color: #8fa6cf; line-height: 1.4; }

/* ---- Quick Q&A mini-dashboard (unfolds when user clicks Describe) ---- */
.cmd-dash {
  max-width: 1340px; margin: 0 auto; padding: 4px 18px 14px;
  animation: cmdDashIn .22s ease-out;
}
@keyframes cmdDashIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cmd-dash[hidden] { display: none; }
.cmd-voice-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; margin-bottom: 10px;
  background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.45); border-radius: 999px;
  color: #fecaca; font-size: 12px; line-height: 1.3;
}
.cmd-voice-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  animation: cmdVoicePulse 1.1s infinite;
}
.cmd-voice-status[hidden] { display: none; }
.cmd-voice-status.is-error { background: rgba(220,38,38,.20); color: #fecaca; }
.cmd-voice-status.is-info { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.45); color: #fcd34d; }
.cmd-voice-status.is-info::before { background: #f59e0b; }
@keyframes cmdVoicePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cmd-dash-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.cmd-dash-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px; padding: 12px 14px; color: #cbd6ee; font-size: 12.5px; line-height: 1.45;
}
.cmd-dash-eyebrow {
  font-size: 10.5px; font-weight: 700; color: #f59e0b; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.cmd-dash-title { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.cmd-dash-steps { margin: 0; padding-left: 18px; color: #cbd6ee; }
.cmd-dash-steps li { margin: 3px 0; }
.cmd-dash-examples, .cmd-dash-prices {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.cmd-dash-examples li { color: #cbd6ee; font-style: italic; }
/* Clickable example rows: look like the italic list text, behave like a chip. */
.cmd-dash-example {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-style: italic; color: #cbd6ee;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 5px 8px; margin: 0; transition: background .15s, border-color .15s, color .15s;
}
.cmd-dash-example:hover, .cmd-dash-example:focus-visible {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16);
  color: #fff; outline: none;
}
.cmd-dash-prices li { color: #cbd6ee; display: flex; justify-content: space-between; gap: 10px; }
.cmd-dash-prices li b { color: #fff; font-weight: 700; }
.cmd-dash-hint { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.10); font-size: 11.5px; color: #9fb3d8; }
.cmd-dash-hint a { color: #fbbf24; text-decoration: none; }
.cmd-dash-hint a:hover { text-decoration: underline; }
.cmd-dash-foot {
  margin-top: 10px; font-size: 10.5px; color: #8fa6cf; line-height: 1.4; opacity: .85;
  border-top: 1px dashed rgba(255,255,255,.10); padding-top: 8px;
}
@media (max-width: 900px) {
  .cmd-dash-grid { grid-template-columns: 1fr; }
}

.cmd-drawer { display: none; border-top: 1px solid rgba(255,255,255,.10); background: #0b1430; }
.cmd-drawer.is-open { display: block; }
.cmd-drawer-inner { max-width: 1340px; margin: 0 auto; padding: 8px 14px 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cmd-drawer-inner a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #dbe6fa;
  text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.cmd-drawer-inner a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* The sticky command bar is now the single AI entry point; retire the old hero command box. */
.hero-cmd { display: none !important; }

@media (max-width: 1024px) {
  .cmd-nav-row { flex-wrap: wrap; gap: 9px 10px; padding: 8px 13px; }
  .cmd-brand { order: 1; }
  .cmd-flags { order: 2; margin-left: auto; }
  .cmd-menu { order: 3; }
  .cmd-capsule { order: 4; flex-basis: 100%; }
  .cmd-micro { padding: 0 14px 8px; }
}
@media (max-width: 600px) {
  .cmd-brand-name { font-size: 15px; }
  .cmd-brand-sub { font-size: 9px; }
  .cmd-analyze { padding: 0 12px; }
  .cmd-clip, .cmd-mic { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .cmd-capsule { transition: none; } }
