/* ============================================================
   NoMoreQuiet × Rtanj — gold / black brand identity
   Replace public/logo.png to rebrand; no other file changes needed.
   ============================================================ */

:root {
  --nmq-gold: #C9A84C;
  --nmq-gold-bright: #E8D48B;
  --nmq-gold-dim: #8A7030;
  --nmq-black: #0a0a0a;
  --nmq-surface: #141414;
  --nmq-text: #f0ebe0;
  --nmq-muted: #9a9080;
}

/* Logo image — primary brand signal */
.nmq-logo-img {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-area .nmq-logo-img {
  height: 56px;
}

/* Brand name + title (gold serif display) */
.nmq-brand-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--nmq-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.nmq-brand-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--nmq-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 3px 0 0;
}

/* Rtanj location badge — gold on black */
.nmq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(201, 168, 76, 0.1);
  color: var(--nmq-gold);
  border: 1px solid rgba(201, 168, 76, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

.nmq-badge::before {
  content: '▲';
  font-size: 0.55em;
  opacity: 0.75;
}

.nmq-langs-badge {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.08);
  color: #7ee8f0;
  border-color: rgba(0, 240, 255, 0.35);
}

.nmq-langs-badge::before {
  content: '◉';
  font-size: 0.55em;
  opacity: 0.85;
}

/* Engine / provider status pill */
.nmq-engine-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--nmq-gold-bright);
  opacity: 0.9;
  white-space: nowrap;
}

.nmq-engine-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: nmq-pulse 2s ease-in-out infinite;
}

@keyframes nmq-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Footer */
.nmq-footer {
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.72rem;
  color: var(--nmq-muted);
  margin-top: 32px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.03));
}

.nmq-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nmq-footer-brand {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nmq-gold);
}

.nmq-footer-slogan {
  color: var(--nmq-muted);
}

.nmq-footer-about,
.nmq-footer-terms {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nmq-gold-dim);
  text-decoration: none;
}

.nmq-footer-about:hover,
.nmq-footer-terms:hover {
  color: var(--nmq-gold);
}

/* Architect manifesto — personal voice, subtle gold/black (#C9A84C) */
.nmq-manifesto {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nmq-gold-dim);
  letter-spacing: 0.015em;
  margin: 0;
}

.nmq-manifesto::before {
  content: '«';
  color: rgba(201, 168, 76, 0.4);
  font-style: normal;
  margin-right: 0.1em;
}

.nmq-manifesto::after {
  content: '»';
  color: rgba(201, 168, 76, 0.4);
  font-style: normal;
  margin-left: 0.05em;
}

.nmq-manifesto--hero {
  text-align: center;
  max-width: 34rem;
  margin: 6px auto 0;
  padding: 0 20px;
  font-size: 0.7rem;
  color: rgba(232, 212, 139, 0.78);
  opacity: 0.85;
}

.nmq-manifesto--login {
  text-align: center;
  max-width: 22rem;
  margin: 10px auto 16px;
  padding: 0 4px;
  font-size: 0.78rem;
  color: rgba(232, 212, 139, 0.82);
  line-height: 1.45;
}

.nmq-manifesto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem 1.1rem;
  margin: 0.35rem 0 1rem;
}

.nmq-manifesto--dashboard {
  font-size: 1.05rem;
  flex: 1 1 18rem;
  max-width: 40rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  color: rgba(232, 212, 139, 0.92);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.07), transparent 72%);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-left: 3px solid var(--nmq-gold);
  border-radius: 0 8px 8px 0;
}

/* Quick launch — always near manifesto so you don't hunt the module grid */
.nmq-ws-launch-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  flex: 0 0 auto;
  align-self: center;
}

.nmq-ws-launch {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  min-width: 13.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0.08));
  color: var(--nmq-gold-bright, #e8c86a);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nmq-ws-launch--agent {
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(201, 168, 76, 0.08));
  color: #e2e8f0;
}

.nmq-ws-launch--agent .nmq-ws-launch-title {
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-ws-launch:hover {
  transform: translateY(-2px);
  border-color: var(--nmq-gold-bright, #e8c86a);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.22);
}

.nmq-ws-launch:active {
  transform: translateY(0);
}

.nmq-ws-launch-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nmq-ws-launch-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #f5e6c8;
}

.nmq-ws-launch-sub {
  font-size: 0.88rem;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .nmq-ws-launch {
    width: 100%;
    min-width: 0;
  }
}

.nmq-ws-header-btn {
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem !important;
  border-color: rgba(201, 168, 76, 0.65) !important;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.35), rgba(201, 168, 76, 0.12)) !important;
  color: #f5e6c8 !important;
}

body.nmq-workspace-open .nmq-ws-header-btn {
  display: none !important;
}

.nmq-manifesto--dashboard::before,
.nmq-manifesto--dashboard::after {
  display: none;
}

.nmq-manifesto--dashboard .nmq-manifesto-quote,
.nmq-manifesto--dashboard .nmq-manifesto-text {
  display: block;
  font-style: italic;
}

.nmq-manifesto--dashboard .nmq-manifesto-quote::before,
.nmq-manifesto--dashboard .nmq-manifesto-text::before {
  content: '«';
  color: rgba(201, 168, 76, 0.45);
  font-style: normal;
  margin-right: 0.1em;
}

.nmq-manifesto--dashboard .nmq-manifesto-quote::after,
.nmq-manifesto--dashboard .nmq-manifesto-text::after {
  content: '»';
  color: rgba(201, 168, 76, 0.45);
  font-style: normal;
  margin-left: 0.05em;
}

.nmq-manifesto--dashboard .nmq-manifesto-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nmq-gold);
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.nmq-manifesto--dashboard .nmq-manifesto-en {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--nmq-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* Investor default: never show Serbian manifesto under English UI */
html[lang='en'] .nmq-manifesto--dashboard .nmq-manifesto-en,
.nmq-manifesto--dashboard .nmq-manifesto-en[hidden] {
  display: none !important;
}

html[lang='sr'] .nmq-manifesto--dashboard .nmq-manifesto-quote[hidden] {
  display: none !important;
}

.nmq-manifesto--footer {
  max-width: 26rem;
  margin-top: 5px;
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--nmq-gold-dim);
  opacity: 0.72;
}

.nmq-manifesto--about {
  font-size: 1.2rem;
  max-width: 36rem;
  margin: 1.5rem 0 0;
  padding: 1rem 0 1rem 1.1rem;
  color: rgba(232, 212, 139, 0.95);
  border-left: 2px solid rgba(201, 168, 76, 0.4);
  line-height: 1.55;
}

.nmq-manifesto--about::before,
.nmq-manifesto--about::after {
  display: none;
}

.nmq-about-pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nmq-about-pillars li {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--nmq-text);
  line-height: 1.4;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 168, 76, 0.28);
}

.nmq-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.nmq-footer-coords {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--nmq-gold-dim);
  letter-spacing: 0.02em;
}

.nmq-footer-version {
  opacity: 0.45;
  font-size: 0.65rem;
}

/* Login card brand block */
.nmq-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.nmq-login-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Mobile header brand */
.nmq-mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nmq-mobile-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Header logo area: brand-first layout */
.app-header .logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header .logo-area .logo-icon {
  display: none; /* PNG logo replaces emoji icon */
}

/* DeepSeek partner badge — gold on dark, near logo */
.nmq-deepseek-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nmq-gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.nmq-deepseek-badge::before {
  content: '⚡';
  font-size: 0.55em;
}

/* DSpark preferred badge (inline on AI responses) */
.nmq-dspark-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--nmq-gold-bright);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.18);
}

/* DeepSeek-powered footer line */
.nmq-footer-deepseek {
  display: block;
  margin-top: 0.35rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nmq-gold-dim);
}

.nmq-footer-contact {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary, #9a9080);
  text-decoration: none;
}

.nmq-footer-contact:hover {
  color: var(--nmq-gold, #C9A84C);
  text-decoration: underline;
}

/* DeepSeek Performance widget */
.deepseek-perf-widget {
  background: var(--nmq-surface);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.deepseek-perf-widget h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nmq-gold);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.deepseek-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.deepseek-perf-stat {
  text-align: center;
  padding: 8px;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 6px;
}

.deepseek-perf-stat .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nmq-gold-bright);
}

.deepseek-perf-stat .stat-label {
  font-size: 0.65rem;
  color: var(--nmq-muted);
  margin-top: 2px;
}

.deepseek-perf-stat .stat-sublabel {
  font-size: 0.6rem;
  color: rgba(201, 168, 76, 0.75);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* 1M Context toggle */
.nmq-context-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--nmq-gold);
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.nmq-context-toggle:hover {
  background: rgba(201, 168, 76, 0.12);
}

.nmq-context-toggle.active {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.4);
}

/* ============================================================
   NMQ × 2026 — "Zašto NoMoreQuiet" positioning section
   ============================================================ */

.nmq-zasto-section {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
}

.nmq-zasto-eyebrow {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nmq-gold);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.nmq-zasto-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--nmq-gold);
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.nmq-zasto-sub {
  font-size: 0.82rem;
  color: var(--nmq-muted);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.nmq-zasto-intro {
  font-size: 0.97rem;
  color: var(--nmq-text);
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 0 2rem;
}

.nmq-zasto-intro strong {
  color: var(--nmq-gold-bright);
  font-weight: 600;
}

/* Individual trend points */
.nmq-zasto-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.nmq-zasto-point {
  padding: 1rem 1.15rem;
  border-left: 2px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.03);
  border-radius: 0 6px 6px 0;
}

.nmq-zasto-point-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.nmq-zasto-point-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--nmq-gold-dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nmq-zasto-point-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nmq-text);
  letter-spacing: 0.01em;
}

.nmq-zasto-point-body {
  font-size: 0.88rem;
  color: var(--nmq-muted);
  line-height: 1.55;
  margin: 0 0 0.55rem;
}

.nmq-zasto-point-status {
  font-size: 0.8rem;
  color: var(--nmq-text);
  line-height: 1.45;
}

.nmq-zasto-point-status strong {
  font-weight: 600;
}

/* Status inline badges */
.nmq-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.nmq-status--ready {
  color: #7fc99a;
  background: rgba(127, 201, 154, 0.1);
  border: 1px solid rgba(127, 201, 154, 0.28);
}

.nmq-status--ready::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.nmq-status--wip {
  color: var(--nmq-gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

.nmq-status--wip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: nmq-pulse 2.5s ease-in-out infinite;
}

/* Trend comparison table */
.nmq-trend-table-wrap {
  margin: 0 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nmq-trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.nmq-trend-table thead th {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nmq-gold-dim);
  padding: 0.45rem 0.85rem 0.45rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  text-align: left;
}

.nmq-trend-table thead th:last-child {
  text-align: right;
  padding-right: 0;
}

.nmq-trend-table tbody td {
  padding: 0.6rem 0.85rem 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--nmq-text);
  vertical-align: middle;
}

.nmq-trend-table tbody td:last-child {
  text-align: right;
  padding-right: 0;
}

.nmq-trend-table tbody tr:last-child td {
  border-bottom: none;
}

.nmq-trend-table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.04);
}

/* Closing statement */
.nmq-zasto-closing {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-left: 3px solid var(--nmq-gold);
  border-radius: 0 8px 8px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(232, 212, 139, 0.92);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.nmq-zasto-closing-en {
  font-size: 0.78rem;
  color: var(--nmq-muted);
  font-style: italic;
  line-height: 1.45;
  margin: 0;
  opacity: 0.8;
}

/* Teaser card on dashboard */
.nmq-positioning-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid var(--nmq-gold);
  border-radius: 0 8px 8px 0;
  background: rgba(201, 168, 76, 0.04);
  margin: 1.25rem 0;
}

.nmq-positioning-teaser-text {
  flex: 1;
  min-width: 0;
}

.nmq-positioning-teaser-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nmq-gold);
  margin-bottom: 0.3rem;
  opacity: 0.85;
}

.nmq-positioning-teaser-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--nmq-text);
  line-height: 1.4;
  margin: 0;
}

.nmq-positioning-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nmq-gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nmq-positioning-teaser-link:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.5);
}

/* Demo mode banner */
.nmq-demo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--nmq-gold-bright);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.35);
}

body.nmq-demo-mode #manageKeysBtn,
body.nmq-demo-mode #adminCatalogLink,
body.nmq-demo-mode #storeLink {
  display: none !important;
}

/* ── Language select dropdown — NMQ gold ─────────────── */
.nmq-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nmq-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(10, 10, 10, 0.85);
  color: var(--nmq-gold);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 8px;
  padding: 5px 28px 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
  min-width: 110px;
  max-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23C9A84C' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
}

.nmq-lang-select:hover {
  border-color: var(--nmq-gold);
  background-color: rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
}

.nmq-lang-select:focus {
  border-color: var(--nmq-gold-bright);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}

.nmq-lang-select option,
.nmq-lang-select optgroup {
  background-color: #141414;
  color: #f0ebe0;
}

[data-theme="light"] .nmq-lang-select {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--nmq-gold-dim);
  border-color: rgba(138, 112, 48, 0.5);
}

[data-theme="light"] .nmq-lang-select option,
[data-theme="light"] .nmq-lang-select optgroup {
  background-color: #fff;
  color: #1a1a2e;
}

/* ── Back to showroom ─────────────────────────────────── */
.nmq-back-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
  color: var(--nmq-text);
  background-color: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.nmq-back-btn:hover {
  border-color: var(--nmq-gold);
  color: var(--nmq-gold-bright);
  background-color: rgba(201, 168, 76, 0.08);
}

.nmq-back-btn .icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Fullscreen toggle — NMQ gold ─────────────────────── */
.nmq-fullscreen-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  outline: none;
  color: var(--nmq-gold);
  background-color: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.45);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.nmq-fullscreen-btn .icon {
  font-size: 0.95rem;
  line-height: 1;
}

.nmq-fullscreen-btn:hover {
  border-color: var(--nmq-gold);
  background-color: rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
}

.nmq-fullscreen-btn:focus-visible {
  border-color: var(--nmq-gold-bright);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}

.nmq-fullscreen-btn.is-active {
  color: var(--nmq-gold-bright);
  border-color: var(--nmq-gold-bright);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.06));
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.25);
}

[data-theme="light"] .nmq-fullscreen-btn {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--nmq-gold-dim);
  border-color: rgba(138, 112, 48, 0.5);
}

[data-theme="light"] .nmq-fullscreen-btn:hover {
  background-color: rgba(201, 168, 76, 0.1);
}

[data-theme="light"] .nmq-fullscreen-btn.is-active {
  color: var(--nmq-gold-dim);
  border-color: var(--nmq-gold);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
}

/* ── Fullscreen exit bar, badge, demo prompt ──────────── */
.nmq-fs-exit-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  pointer-events: none;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nmq-fs-exit-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nmq-fs-exit-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.88) 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.nmq-fs-exit-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 235, 224, 0.72);
}

.nmq-fs-exit-btn {
  appearance: none;
  border: 1px solid var(--nmq-gold);
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
  color: var(--nmq-gold-bright);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.nmq-fs-exit-btn:hover {
  border-color: var(--nmq-gold-bright);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.35);
}

.nmq-fs-badge {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nmq-gold-bright);
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nmq-fs-badge.is-active {
  opacity: 1;
  transform: translateY(0);
}

.nmq-fs-badge-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.nmq-fs-demo-prompt {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* display:flex above must NOT keep a "dismissed" overlay covering the app */
.nmq-fs-demo-prompt[hidden],
.nmq-fs-demo-prompt.is-dismissed {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nmq-fs-demo-prompt-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 36px;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.14), rgba(10, 10, 10, 0.92));
  color: var(--nmq-gold-bright);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nmq-fs-demo-prompt-btn:hover {
  transform: translateY(-2px);
  border-color: var(--nmq-gold-bright);
  box-shadow: 0 0 48px rgba(201, 168, 76, 0.32);
}

.nmq-fs-demo-prompt-icon {
  font-size: 2rem;
  line-height: 1;
}

.nmq-fs-demo-prompt-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nmq-fs-demo-prompt-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(240, 235, 224, 0.72);
  letter-spacing: 0.03em;
}

[data-theme="light"] .nmq-fs-exit-bar-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

[data-theme="light"] .nmq-fs-exit-hint {
  color: rgba(26, 26, 46, 0.72);
}

[data-theme="light"] .nmq-fs-badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--nmq-gold-dim);
}

[data-theme="light"] .nmq-fs-demo-prompt-btn {
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.18), rgba(255, 255, 255, 0.96));
  color: var(--nmq-gold-dim);
}

/* ── Clock + calendar dock (bottom-right, non-intrusive) ── */
.nmq-clock-cal {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  pointer-events: none;
}

.nmq-clock-cal > * {
  pointer-events: auto;
}

.nmq-clock-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.88));
  color: var(--nmq-text);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nmq-clock-toggle:hover,
.nmq-clock-cal.is-open .nmq-clock-toggle {
  border-color: rgba(201, 168, 76, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(201, 168, 76, 0.12);
}

.nmq-clock-time {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nmq-gold-bright);
  line-height: 1.15;
}

.nmq-clock-date {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--nmq-muted);
  text-transform: uppercase;
}

.nmq-cal-panel {
  width: min(272px, calc(100vw - 2rem));
  padding: 0.75rem 0.8rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, 0.32);
  background: linear-gradient(165deg, rgba(22, 22, 22, 0.97), rgba(12, 12, 12, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: nmqCalIn 0.22s ease both;
}

@keyframes nmqCalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nmq-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.nmq-cal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--nmq-gold);
  letter-spacing: 0.03em;
}

.nmq-cal-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.08);
  color: var(--nmq-gold-bright);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nmq-cal-nav-btn:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: rgba(201, 168, 76, 0.55);
}

.nmq-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  text-align: center;
}

.nmq-cal-dow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nmq-muted);
  padding: 0.25rem 0;
  text-transform: uppercase;
}

.nmq-cal-day {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--nmq-text);
  padding: 0.35rem 0;
  border-radius: 7px;
  min-height: 1.7rem;
}

.nmq-cal-day.is-empty {
  visibility: hidden;
}

.nmq-cal-day.is-today {
  background: rgba(201, 168, 76, 0.22);
  color: var(--nmq-gold-bright);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.45);
}

.nmq-cal-today {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: transparent;
  color: var(--nmq-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.nmq-cal-today:hover {
  background: rgba(201, 168, 76, 0.12);
}

[data-theme='light'] .nmq-clock-toggle,
[data-theme='light'] .nmq-cal-panel {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.96), rgba(248, 244, 234, 0.94));
  box-shadow: 0 10px 28px rgba(40, 30, 10, 0.12);
}

[data-theme='light'] .nmq-clock-time {
  color: var(--nmq-gold-dim);
}

[data-theme='light'] .nmq-cal-day {
  color: #2a2418;
}

@media (max-width: 640px) {
  .nmq-clock-cal {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .nmq-clock-time {
    font-size: 1rem;
  }

  .nmq-clock-date {
    font-size: 0.6rem;
  }
}

/* ── Work Studio workspace (split screen) ─────────────────────────────── */
body.nmq-workspace-open .page-intro,
body.nmq-workspace-open .nmq-manifesto-row,
body.nmq-workspace-open .nmq-manifesto--dashboard,
body.nmq-workspace-open .modules-grid,
body.nmq-workspace-open .ai-status-bar,
body.nmq-workspace-open .ai-intelligence-panel,
body.nmq-workspace-open #dsPerfPanel,
body.nmq-workspace-open .greeting-bar {
  display: none !important;
}

html.nmq-workspace-lock,
html.nmq-workspace-lock body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.nmq-workspace {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: calc(100vh - 7.5rem);
  padding: 0.85rem 1rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: linear-gradient(165deg, rgba(18, 22, 30, 0.92), rgba(12, 14, 20, 0.96));
}

.nmq-workspace[hidden] {
  display: none !important;
}

.nmq-ws-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}

.nmq-ws-chrome-left,
.nmq-ws-chrome-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.75rem;
}

.nmq-ws-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nmq-ws-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.nmq-ws-field select {
  min-width: 8.5rem;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
}

.nmq-ws-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
  transition: grid-template-columns 0.2s ease;
}

/* Agent Studio — Cursor-like collapsible right panel */
#agentStudioSplit.nmq-as-side-collapsed {
  grid-template-columns: 1fr 2.75rem;
  gap: 0.45rem;
}

#agentStudioSplit.nmq-as-side-collapsed #agentStudioSidePane {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(8, 12, 18, 0.72);
}

#agentStudioSplit.nmq-as-side-collapsed .nmq-as-side-main {
  display: none !important;
}

#agentStudioSplit.nmq-as-side-collapsed .nmq-as-side-rail {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.2rem;
  height: 100%;
}

.nmq-as-side-rail {
  display: none;
}

.nmq-as-side-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.nmq-as-side-rail-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(12, 16, 22, 0.85);
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.nmq-as-side-rail-btn:hover,
.nmq-as-side-rail-btn.is-active {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8d48b);
  background: rgba(201, 168, 76, 0.12);
}

.nmq-as-side-collapse-btn {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-color: rgba(201, 168, 76, 0.45) !important;
  color: var(--nmq-gold-bright, #e8d48b) !important;
}

.nmq-as-side-fab {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  z-index: 30;
  appearance: none;
  border: 1px solid rgba(201, 168, 76, 0.65);
  background: linear-gradient(180deg, rgba(28, 24, 14, 0.98), rgba(12, 14, 18, 0.96));
  color: var(--nmq-gold-bright, #e8d48b);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.65rem 0.45rem;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.25);
}

.nmq-as-side-fab:hover {
  background: rgba(201, 168, 76, 0.18);
}

#agentStudioSidePane {
  position: relative;
}

#agentStudioSplit.nmq-as-side-collapsed {
  grid-template-columns: 1fr 3.1rem;
  gap: 0.35rem;
}

#agentStudioSplit.nmq-as-side-collapsed .nmq-as-side-fab {
  display: none; /* rail already expands */
}

@media (max-width: 960px) {
  #agentStudioSplit.nmq-as-side-collapsed {
    grid-template-columns: 1fr;
  }

  #agentStudioSplit.nmq-as-side-collapsed #agentStudioSidePane {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3.1rem;
    z-index: 60;
    border-radius: 0;
    border-left: 1px solid rgba(201, 168, 76, 0.35);
  }

  #agentStudioSplit.nmq-as-side-collapsed .nmq-as-side-fab {
    display: none;
  }
}

#agentStudioSideToggleHdr.is-active,
#agentStudioDockPanel.is-active {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8d48b);
}

.nmq-ws-pane {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 12, 18, 0.45);
  overflow: hidden;
}

.nmq-ws-compose {
  padding: 0.85rem;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.nmq-ws-compose-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.nmq-ws-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nmq-ws-prompt {
  flex: 1;
  min-height: 220px;
  resize: vertical;
  font-size: 0.95rem !important;
  line-height: 1.45;
}

.nmq-ws-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nmq-ws-actions .provision-result {
  margin: 0;
  flex: 1;
  min-width: 140px;
  font-size: 0.8rem;
}

.nmq-ws-recent {
  margin-top: 0.35rem;
  max-height: 140px;
  overflow: auto;
}

.nmq-ws-recent ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nmq-ws-recent button,
.nmq-ws-recent a.nmq-ws-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nmq-ws-recent button:hover,
.nmq-ws-recent a.nmq-ws-art:hover {
  border-color: rgba(201, 168, 76, 0.45);
}

.nmq-ws-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(0, 0, 0, 0.25);
}

.nmq-ws-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-ws-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nmq-ws-preview-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;
  background: #0b0f14;
}

.nmq-ws-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.nmq-ws-preview-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.72);
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08), transparent 55%);
  pointer-events: none;
}

.nmq-ws-preview-empty strong {
  font-size: 1.05rem;
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-ws-preview-empty span {
  font-size: 0.85rem;
  max-width: 22rem;
  line-height: 1.4;
}

.nmq-ws-preview-frame-wrap.has-preview .nmq-ws-preview-empty {
  display: none;
}

/* Agent Studio live feed */
.nmq-as-feed-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem 0.85rem;
  background: #0b0f14;
  overflow: hidden;
}

.nmq-as-stream {
  flex: 1;
  max-height: none;
  min-height: 200px;
  overflow-y: auto;
}

.nmq-as-empty {
  margin-top: auto;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px dashed rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.06);
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
  line-height: 1.45;
}

.nmq-as-empty strong {
  display: block;
  color: var(--nmq-gold-bright, #e8c86a);
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nmq-as-empty ul {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
}

.nmq-as-empty.hidden,
.nmq-as-feed-wrap.has-feed .nmq-as-empty {
  display: none;
}

.nmq-as-plan {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

/* Cursor-like composer */
.nmq-as-command {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(8, 12, 18, 0.55);
}

.nmq-as-agents {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.nmq-as-agents-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nmq-gold-bright, #e8c86a);
  margin-right: 0.25rem;
}

.nmq-as-agent-pill {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.nmq-as-agent-pill:hover {
  border-color: rgba(201, 168, 76, 0.5);
}

.nmq-as-agent-pill.is-active {
  border-color: rgba(201, 168, 76, 0.75);
  background: rgba(201, 168, 76, 0.16);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-agent-pill.is-busy {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
  animation: nmq-mic-pulse 1.1s ease infinite;
}

.nmq-as-agent-live {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.8;
}

.nmq-as-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nmq-as-dock-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.nmq-as-dock-btn:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-dock-run {
  border-color: rgba(201, 168, 76, 0.65);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0.08));
  font-weight: 700;
}

.nmq-as-dock-stop,
.nmq-as-stop-btn {
  border-color: rgba(220, 80, 80, 0.7) !important;
  background: linear-gradient(145deg, rgba(180, 40, 40, 0.45), rgba(120, 20, 20, 0.2)) !important;
  color: #fecaca !important;
  font-weight: 700;
}

.nmq-as-dock-stop:hover,
.nmq-as-stop-btn:hover {
  border-color: rgba(255, 100, 100, 0.9) !important;
  color: #fff !important;
}

body.nmq-as-running #agentStudioSendBtn,
body.nmq-as-running #agentStudioDockSend {
  display: none;
}

body.nmq-as-running #agentStudioStopBtn,
body.nmq-as-running #agentStudioDockStop {
  display: inline-flex !important;
}

.nmq-as-composer-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nmq-as-chat {
  flex: 1 1 auto;
  min-height: 280px;
  max-height: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.35rem 0.15rem 0.55rem;
  margin-bottom: 0.35rem;
}

.nmq-as-chat-msg {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.nmq-as-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.nmq-as-copy-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(12, 16, 22, 0.75);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nmq-as-copy-btn:hover,
.nmq-as-copy-btn.is-copied {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8d48b);
}

.nmq-as-chat-body {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.nmq-as-chat-msg.user .nmq-as-chat-body {
  white-space: pre-wrap;
}

.nmq-as-chat-body .nmq-as-md-p {
  margin: 0.35rem 0;
}

.nmq-as-chat-body .nmq-as-md-h {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-chat-body .nmq-as-md-ul {
  margin: 0.25rem 0 0.35rem 1.1rem;
  padding: 0;
}

.nmq-as-chat-body .nmq-as-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.nmq-as-chat-body .nmq-as-md-pre {
  margin: 0.4rem 0;
  padding: 0.55rem 0.65rem;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.75rem;
}

.nmq-as-start {
  margin: 0.35rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.06);
}

.nmq-as-start-steps {
  margin: 0.5rem 0 0.75rem 1.1rem;
  padding: 0;
  line-height: 1.7;
  font-size: 0.85rem;
}

.nmq-as-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nmq-as-starter {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.nmq-as-starter:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-advanced {
  width: 100%;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.nmq-as-diff-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--nmq-gold-bright, #e8c86a);
  font-size: 0.75rem;
  cursor: pointer;
}

.nmq-as-need-folder {
  outline: 2px solid rgba(201, 168, 76, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

.nmq-as-team-actions {
  display: none;
}

.nmq-as-files-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 360px;
}

.nmq-as-files-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nmq-as-files-toolbar-actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.nmq-as-files-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.55rem;
  min-height: 340px;
}

.nmq-as-file-tree {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
}

.nmq-as-file-tree button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.28rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.nmq-as-file-tree button:hover,
.nmq-as-file-tree button.is-active {
  background: rgba(201, 168, 76, 0.14);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-file-editor {
  width: 100%;
  height: 100%;
  min-height: 340px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #e8e4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.65rem;
}

.nmq-as-checkpoints {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.nmq-as-cp-item {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.35rem 0;
  font-size: 0.78rem;
}

.nmq-as-tool-chip.is-pending {
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde68a;
}

.nmq-as-tool-chip.is-write {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

body.nmq-as-no-folder #agentStudioWorkDir {
  border-color: rgba(201, 168, 76, 0.45);
}

.nmq-as-accept-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.nmq-as-accept-hint {
  font-size: 0.68rem;
  opacity: 0.7;
  width: 100%;
}

.nmq-as-accept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nmq-as-accept-btn {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.nmq-as-accept-btn:hover {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.12);
}

.nmq-as-accept-btn.is-primary {
  border-color: rgba(201, 168, 76, 0.65);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.32), rgba(201, 168, 76, 0.1));
  color: #f5ecd0;
}

.nmq-as-accept-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.nmq-as-accept-btn.is-ghost {
  opacity: 0.85;
}

.nmq-as-system-chip {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.12);
  color: var(--nmq-gold, #c9a84c);
}

.nmq-as-chat-msg.assistant.is-streaming {
  border-color: rgba(201, 168, 76, 0.45);
}

.nmq-as-expand-btn {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(240, 235, 224, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.nmq-as-expand-btn:hover {
  border-color: rgba(201, 168, 76, 0.45);
  color: var(--nmq-gold, #c9a84c);
}

.nmq-as-stream-more {
  opacity: 0.55;
  font-size: 0.75rem !important;
  font-style: italic;
}

.nmq-as-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.15rem 0.2rem 0.35rem;
}

.nmq-as-tool-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.08);
  color: var(--nmq-gold-bright, #e8c86a);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmq-as-tool-chip.is-err {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.nmq-as-diff-hint {
  margin: 0 0 0.55rem;
  opacity: 0.85;
}

.nmq-as-stream-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--nmq-gold-bright, #e8c86a);
  animation: nmq-as-blink 0.9s step-end infinite;
}

@keyframes nmq-as-blink {
  50% { opacity: 0; }
}

.nmq-as-chat-role {
  display: block;
  font-size: 0.68rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nmq-as-chat-msg .nmq-as-chat-role {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}

.nmq-as-tabs {
  display: flex;
  gap: 0.25rem;
}

.nmq-as-tab {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: inherit;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.nmq-as-tab.is-active {
  border-color: rgba(201, 168, 76, 0.65);
  background: rgba(201, 168, 76, 0.14);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-diff-wrap,
.nmq-as-git-wrap,
.nmq-as-term-wrap {
  flex: 1;
  min-height: 360px;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  background: #0b0f14;
}

.nmq-as-git-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.nmq-as-git-toolbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nmq-as-git-commit-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.nmq-as-git-commit-row input {
  flex: 1;
  min-width: 0;
}

.nmq-as-git-commit-row select {
  min-width: 140px;
  max-width: 220px;
}

.nmq-as-git-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 0.55rem;
  min-height: 280px;
}

@media (max-width: 900px) {
  .nmq-as-git-layout {
    grid-template-columns: 1fr;
  }
}

.nmq-as-git-files {
  max-height: 380px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nmq-as-git-file {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.nmq-as-git-file:hover,
.nmq-as-git-file.is-active {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.1);
}

.nmq-as-git-file code {
  opacity: 0.65;
  font-size: 0.68rem;
  min-width: 1.6rem;
}

.nmq-as-git-diff-pane {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.nmq-as-git-diff-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.nmq-as-git-diff-bar span {
  flex: 1;
  font-weight: 600;
  word-break: break-all;
}

.nmq-as-git-diff {
  margin: 0;
  padding: 0.55rem;
  flex: 1;
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  font-size: 0.7rem;
  white-space: pre-wrap;
  color: #cbd5e1;
}

.nmq-as-git-log {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.4rem 0.5rem;
  max-height: 120px;
  overflow: auto;
  font-size: 0.72rem;
}

.nmq-as-git-log div {
  opacity: 0.8;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nmq-as-term-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.nmq-as-term-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.nmq-as-term-chip:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-diff-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nmq-as-diff-toolbar-actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}

.nmq-as-diff-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.55rem;
  min-height: 320px;
}

@media (max-width: 900px) {
  .nmq-as-diff-layout {
    grid-template-columns: 1fr;
  }
}

.nmq-as-diff-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.15rem;
}

.nmq-as-diff-item {
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  font-size: 0.78rem;
  text-align: left;
  color: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nmq-as-diff-check {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.nmq-as-diff-item-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  min-width: 0;
}

.nmq-as-term-cwd {
  flex: 0 1 auto;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  opacity: 0.85;
}

.nmq-as-diff-item:hover,
.nmq-as-diff-item.is-active {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.1);
}

.nmq-as-diff-item-path {
  display: block;
  font-weight: 600;
  word-break: break-all;
}

.nmq-as-diff-item-meta {
  opacity: 0.6;
  font-size: 0.7rem;
}

.nmq-as-diff-editor-pane {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.nmq-as-diff-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nmq-as-diff-file {
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
  min-width: 120px;
  word-break: break-all;
}

.nmq-as-diff-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nmq-as-diff-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 240px;
}

@media (max-width: 700px) {
  .nmq-as-diff-split {
    grid-template-columns: 1fr;
  }
}

.nmq-as-diff-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.nmq-as-diff-col:last-child {
  border-right: 0;
}

.nmq-as-diff-col-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
  padding: 0.3rem 0.5rem;
}

.nmq-as-diff-pre {
  margin: 0;
  padding: 0.55rem;
  flex: 1;
  max-height: none;
  min-height: 200px;
  overflow: auto;
  font-size: 0.72rem;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.35);
}

.nmq-as-diff-pre.del { color: #fca5a5; }
.nmq-as-diff-pre.add { color: #86efac; }

.nmq-as-diff-after {
  flex: 1;
  min-height: 200px;
  width: 100%;
  border: 0;
  resize: vertical;
  padding: 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #86efac;
  background: rgba(0, 0, 0, 0.35);
  outline: none;
}

.nmq-as-term-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.nmq-as-term-bar input { flex: 1; }

.nmq-as-term-out {
  margin: 0;
  padding: 0.65rem;
  min-height: 240px;
  border-radius: 8px;
  background: #05080c;
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.78rem;
  white-space: pre-wrap;
  color: #bbf7d0;
}

/* ── Agent Studio: fixed viewport (Cursor-like) — only chat/panes scroll ─ */
body.nmq-workspace-open {
  overflow: hidden;
  height: 100%;
  max-height: 100%;
}

body.nmq-workspace-open .app-container {
  max-width: none;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.nmq-workspace-open #agent-team-panel {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: 100%;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.nmq-workspace-open #agent-team-panel .c-hdr,
body.nmq-workspace-open #agent-team-panel .c-adv {
  flex: 0 0 auto;
}

body.nmq-workspace-open #agent-team-panel .c-split {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: auto;
}

body.nmq-workspace-open #agent-team-panel .c-left,
body.nmq-workspace-open #agent-team-panel .c-right {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.nmq-workspace-open #agent-team-panel .c-right {
  display: flex;
  flex-direction: column;
}

body.nmq-workspace-open #agent-team-panel .c-left {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.nmq-workspace-open #agent-team-panel .c-start,
body.nmq-workspace-open #agent-team-panel .c-plan,
body.nmq-workspace-open #agent-team-panel .c-mode-tabs,
body.nmq-workspace-open #agent-team-panel .c-inline-review,
body.nmq-workspace-open #agent-team-panel #agentTeamResults {
  flex: 0 0 auto;
}

body.nmq-workspace-open #agent-team-panel .c-chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.nmq-workspace-open #agent-team-panel .c-comp {
  flex: 0 0 auto;
}

body.nmq-workspace-open #agent-team-panel .c-input {
  min-height: 4.5rem;
  max-height: 8rem;
  height: auto;
  flex: 0 0 auto;
  resize: vertical;
}

/* Right panel: content areas scroll */
body.nmq-workspace-open #agent-team-panel .c-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

/* True studio overlay — fill window without browser Fullscreen API */
/* FULLSCREEN: hide everything outside #agent-team-panel (keep toasts) */
body.nmq-workspace-open.nmq-agent-studio-fs .app-container > :not(#agent-team-panel):not(#toast-stack) {
  display: none !important;
  pointer-events: none !important;
}
body.nmq-workspace-open.nmq-agent-studio-fs > .bg-animation,
body.nmq-workspace-open.nmq-agent-studio-fs > .particle-canvas,
body.nmq-workspace-open.nmq-agent-studio-fs > .orb,
body.nmq-workspace-open.nmq-agent-studio-fs .bg-animation,
body.nmq-workspace-open.nmq-agent-studio-fs .particle-canvas {
  display: none !important;
  visibility: hidden !important;
}
body.nmq-workspace-open.nmq-agent-studio-fs #toast-stack {
  display: block !important;
  pointer-events: auto !important;
  z-index: 300000 !important;
  position: fixed !important;
  top: 12px;
  right: 12px;
}

body.nmq-workspace-open.nmq-agent-studio-fs,
html.nmq-workspace-lock body.nmq-agent-studio-fs {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
}

/* Status pill was the only visible thing on the black studio shell */
body.nmq-workspace-open #status,
body.nmq-workspace-open.nmq-agent-studio-fs #status {
  display: none !important;
}

body.nmq-workspace-open #agent-team-panel:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #e8edf5 !important;
  min-height: 70vh;
}

body.nmq-workspace-open.nmq-agent-studio-fs .app-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.5rem 0.75rem !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  z-index: 200010 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #0b0f14 !important;
  color: #e8edf5 !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0.45rem 0.65rem 0.55rem !important;
  box-sizing: border-box;
  background: #0c0e12 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel {
  color: #e8edf5 !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs #agentStudioSplit {
  flex: 1 1 auto;
  min-height: 0;
  /* Keep side-by-side even on mid widths — stacking was crushing the UI */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  overflow: hidden !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs #agentStudioSplit.nmq-as-side-collapsed {
  grid-template-columns: minmax(0, 1fr) 3.1rem !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-left,
body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-right {
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
}

body.nmq-workspace-open.nmq-agent-studio-fs .c-hdr {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
}

body.nmq-workspace-open.nmq-agent-studio-fs .c-hdr-right {
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

/* Optional browser fullscreen — same pin */
html:fullscreen,
html:-webkit-full-screen {
  background: #0c0c0c;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html:fullscreen body,
html:-webkit-full-screen body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 960px) {
  body.nmq-workspace-open #agent-team-panel .c-split {
    grid-template-columns: 1fr;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.nmq-workspace-open #agent-team-panel .c-left,
  body.nmq-workspace-open #agent-team-panel .c-right {
    min-height: 42vh;
    max-height: 48vh;
  }

  /* Agent Studio must stay usable — never crush panes to 48vh */
  body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-left,
  body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-right {
    min-height: 0 !important;
    max-height: none !important;
  }
}
@media (max-width: 720px) {
  body.nmq-workspace-open.nmq-agent-studio-fs #agent-team-panel .c-split {
    grid-template-columns: 1fr !important;
  }

  body.nmq-workspace-open.nmq-agent-studio-fs #agentStudioSplit.nmq-as-side-collapsed {
    grid-template-columns: 1fr 3.1rem !important;
  }
}

.nmq-as-workdir-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nmq-as-workdir-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem !important;
}

.nmq-as-composer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.45rem 0.55rem 0.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nmq-as-mentions {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: calc(100% - 0.15rem);
  z-index: 40;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(12, 14, 20, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 0.25rem;
}

.nmq-as-mention-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

.nmq-as-mention-item:hover,
.nmq-as-mention-item.is-active {
  background: rgba(201, 168, 76, 0.16);
}

.nmq-as-mention-item .nmq-as-mention-type {
  opacity: 0.55;
  font-size: 0.72rem;
  min-width: 2.2rem;
}

.nmq-as-composer.is-drop {
  border-color: rgba(201, 168, 76, 0.65);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.18);
}

.nmq-as-composer .nmq-as-goal {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 160px;
  resize: vertical;
}

.nmq-as-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.nmq-as-composer-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nmq-as-icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.nmq-as-text-btn {
  appearance: none;
  height: 2rem;
  min-width: 3.4rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.1);
  color: var(--nmq-gold-bright, #e8d48b);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.nmq-as-text-btn:hover {
  border-color: rgba(201, 168, 76, 0.75);
  background: rgba(201, 168, 76, 0.2);
}

.nmq-as-icon-btn:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: var(--nmq-gold-bright, #e8c86a);
}

.nmq-as-icon-btn.is-live {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  animation: nmq-mic-pulse 1.2s ease infinite;
}

@keyframes nmq-mic-pulse {
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
}

.nmq-as-mic-status {
  font-size: 0.72rem;
  color: #fca5a5;
}

.nmq-as-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem 0 0.35rem;
}

.nmq-as-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.35rem 0.2rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
}

.nmq-as-chip-thumb {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: cover;
  border-radius: 4px;
}

.nmq-as-chip-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmq-as-chip-x {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.nmq-as-chip-x:hover {
  opacity: 1;
  color: #f87171;
}

@media (max-width: 960px) {
  .nmq-ws-split {
    grid-template-columns: 1fr;
  }

  .nmq-ws-pane {
    min-height: 320px;
  }

  .nmq-ws-compose-top {
    grid-template-columns: 1fr;
  }

  .nmq-ws-preview-frame-wrap,
  .nmq-as-feed-wrap {
    min-height: 280px;
  }

  .nmq-ws-launch-group {
    width: 100%;
  }

  .nmq-ws-launch {
    flex: 1 1 12rem;
  }
}

/* ── Agent Studio — Cursor 2026 redesign ────────────────────────────── */

/* ── Header (minimal, like Cursor) ──────────────────────────────────── */
.c-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface, #15171a);
  border-bottom: 1px solid var(--border, rgba(148,163,184,0.12));
  flex-shrink: 0;
  min-height: 38px;
}
.c-hdr-left { display:flex; align-items:center; gap:0.4rem; }
.c-hdr-center { flex:1; display:flex; align-items:center; gap:0.5rem; justify-content:center; }
.c-hdr-right { display:flex; align-items:center; gap:0.3rem; }
.c-hdr-title { font-weight:600; font-size:0.85rem; color:var(--fg,#e2e8f0); }
.c-hdr-btn {
  background:none; border:1px solid transparent; color:var(--fg-muted,#94a3b8);
  font-size:0.8rem; padding:0.15rem 0.45rem; border-radius:5px; cursor:pointer;
  line-height:1.4; transition:all 0.15s;
}
.c-hdr-btn:hover { background:rgba(148,163,184,0.1); border-color:rgba(148,163,184,0.2); color:var(--fg,#e2e8f0); }
.c-hdr-active { background:rgba(59,130,246,0.12); color:#60a5fa; border-color:rgba(59,130,246,0.3); }
.c-hdr-sep { width:1px; height:18px; background:rgba(148,163,184,0.18); margin:0 0.15rem; }
.c-model-sel {
  background:rgba(148,163,184,0.08); border:1px solid rgba(148,163,184,0.15);
  color:var(--fg,#e2e8f0); font-size:0.75rem; padding:0.12rem 0.4rem; border-radius:4px;
  cursor:pointer;
}
.c-model-pick { min-width:90px; }
.c-autokeep { display:flex; align-items:center; gap:0.25rem; color:var(--fg-muted,#94a3b8); font-size:0.72rem; cursor:pointer; }
.c-autokeep input { accent-color:#22c55e; }

/* ── Advanced dropdown ──────────────────────────────────────────────── */
.c-adv {
  background:var(--bg-surface,#15171a); border-bottom:1px solid var(--border,rgba(148,163,184,0.15));
  padding:0.4rem 0.75rem; display:flex; flex-direction:column; gap:0.35rem; flex-shrink:0;
}
.c-adv-row { display:flex; align-items:center; gap:0.35rem; flex-wrap:wrap; }
.c-adv-label { font-size:0.7rem; color:var(--fg-muted,#94a3b8); min-width:44px; }
.c-adv-pills { display:flex; gap:0.2rem; }
.c-pill {
  background:none; border:1px solid rgba(148,163,184,0.15); color:var(--fg-muted,#94a3b8);
  font-size:0.7rem; padding:0.12rem 0.45rem; border-radius:4px; cursor:pointer;
  transition:all 0.15s;
}
.c-pill:hover { border-color:rgba(148,163,184,0.3); color:var(--fg,#e2e8f0); }
.c-pill.is-active { background:rgba(59,130,246,0.12); border-color:rgba(59,130,246,0.35); color:#60a5fa; }
.c-adv-btn { font-size:0.7rem; padding:0.1rem 0.4rem; }
.c-adv-toggle { font-size:0.7rem; color:var(--fg-muted,#94a3b8); display:flex; align-items:center; gap:0.2rem; cursor:pointer; }
.c-adv-toggle input { accent-color:#6366f1; }
.c-adv-sel { background:rgba(148,163,184,0.06); border:1px solid rgba(148,163,184,0.15); color:var(--fg,#e2e8f0); font-size:0.72rem; padding:0.12rem 0.3rem; border-radius:4px; }
.c-adv-inp { background:rgba(148,163,184,0.06); border:1px solid rgba(148,163,184,0.15); color:var(--fg,#e2e8f0); font-size:0.72rem; padding:0.12rem 0.35rem; border-radius:4px; }

/* ── Main split ─────────────────────────────────────────────────────── */
.c-split {
  display: grid; grid-template-columns: 1fr 320px; gap:0;
  flex:1; min-height:0; overflow:hidden;
  position:relative;
}
.c-split.nmq-as-side-collapsed { grid-template-columns:1fr 0px; }
.c-split.nmq-as-side-collapsed .c-right { overflow:hidden; width:0; border-left:none; padding:0; }
.c-left { display:flex; flex-direction:column; min-height:0; overflow:hidden; position:relative; }
.c-chat { flex:1; overflow-y:auto; padding:0.75rem 1rem; display:flex; flex-direction:column; gap:0.6rem; min-height:0; }

/* ── Mode tabs (💬 Chat | ⚡ Agent | 🔍 Ask) ─────────────────────────── */
.c-mode-tabs {
  display: flex; align-items: center; gap: 0;
  padding: 0 1rem; flex-shrink: 0;
  background: var(--bg-surface,#15171a);
  border-top: 1px solid rgba(148,163,184,0.08);
}
.c-mode-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--fg-muted,#64748b); font-size: 0.78rem; padding: 0.4rem 0.75rem;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.c-mode-tab:hover { color: var(--fg,#e2e8f0); background: rgba(148,163,184,0.04); }
.c-mode-tab.is-active { color: #60a5fa; border-bottom-color: #60a5fa; }

/* ── Start gate ─────────────────────────────────────────────────────── */
.c-start { padding:0.75rem 1rem; border-top:1px solid rgba(148,163,184,0.1); }
.c-start-content strong { display:block; font-size:0.85rem; margin-bottom:0.25rem; }
.c-start-content p { font-size:0.75rem; color:var(--fg-muted,#94a3b8); margin:0 0 0.5rem; }
.c-starters { display:flex; gap:0.35rem; flex-wrap:wrap; }
.c-starter {
  background:rgba(148,163,184,0.06); border:1px solid rgba(148,163,184,0.12);
  color:var(--fg-muted,#94a3b8); font-size:0.7rem; padding:0.25rem 0.55rem; border-radius:6px;
  cursor:pointer; transition:all 0.15s; text-align:left;
}
.c-starter:hover { background:rgba(148,163,184,0.1); border-color:rgba(148,163,184,0.25); color:var(--fg,#e2e8f0); }
.c-inline-review { padding:0 1rem 0.5rem; display:flex; flex-direction:column; gap:0.3rem; }

/* ── Composer / Input area ─────────────────────────────────────────────── */
.c-comp { padding:0.35rem 1rem 0.15rem; flex-shrink:0; }
.c-chips { display:flex; gap:0.25rem; flex-wrap:wrap; margin-bottom:0.3rem; }
.c-queue { display:flex; gap:0.25rem; margin-bottom:0.3rem; }
.c-mentions { position:absolute; bottom:100%; left:1rem; right:1rem; z-index:20; }
.c-input {
  width:100%; resize:none; background:rgba(148,163,184,0.04); border:1px solid rgba(148,163,184,0.12);
  color:var(--fg,#e2e8f0); font-size:0.82rem; padding:0.5rem 0.7rem; border-radius:8px;
  outline:none; transition:border-color 0.15s; box-sizing:border-box;
}
.c-input:focus { border-color:rgba(59,130,246,0.4); }

/* ── Context bar (pills below input) ─────────────────────────────────── */
.c-context { display:flex; align-items:center; justify-content:space-between; margin-top:0.3rem; }
.c-context-left { display:flex; align-items:center; gap:0.15rem; }
.c-context-right { display:flex; align-items:center; gap:0.3rem; }
.c-ctx-hint { font-size:0.68rem; color:var(--fg-muted,#64748b); }
.c-ctx-btn {
  background:none; border:1px solid transparent; color:var(--fg-muted,#94a3b8);
  font-size:0.72rem; padding:0.12rem 0.4rem; border-radius:4px; cursor:pointer;
  transition:all 0.15s;
}
.c-ctx-btn:hover { background:rgba(148,163,184,0.08); color:var(--fg,#e2e8f0); }

/* Cursor-like right-click context menu */
.c-ctx-menu {
  position: fixed;
  z-index: 400000;
  min-width: 200px;
  padding: 4px;
  margin: 0;
  background: #1c2128;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.c-ctx-menu[hidden] { display: none !important; }
.c-ctx-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font: 500 0.8rem/1.2 ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
}
.c-ctx-menu button:hover,
.c-ctx-menu button:focus-visible {
  background: rgba(59, 130, 246, 0.28);
  outline: none;
}
.c-ctx-menu button span {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
}
.c-ctx-sep {
  height: 1px;
  margin: 3px 6px;
  background: rgba(148, 163, 184, 0.15);
}
.c-input-hint { font-size:0.65rem; color:var(--fg-muted,#64748b); }
.c-mic-st { font-size:0.7rem; color:#f87171; }
.c-send-btn {
  background:rgba(59,130,246,0.15); border:1px solid rgba(59,130,246,0.3);
  color:#60a5fa; font-size:0.75rem; padding:0.2rem 0.7rem; border-radius:5px;
  cursor:pointer; transition:all 0.15s;
}
.c-send-btn:hover { background:rgba(59,130,246,0.25); }
.c-stop-btn {
  background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); color:#f87171;
  font-size:0.75rem; padding:0.2rem 0.7rem; border-radius:5px; cursor:pointer;
}

/* ── Bottom dock / status bar ────────────────────────────────────────── */
.c-dock {
  display:flex; align-items:center; justify-content:space-between;
  padding:0.25rem 0.75rem; border-top:1px solid rgba(148,163,184,0.08);
  flex-shrink:0; overflow-x:auto; gap:0.15rem;
  background: var(--bg-surface,#15171a);
}
.c-dock-left { display:flex; align-items:center; gap:0.15rem; }
.c-dock-right { display:flex; align-items:center; gap:0.3rem; margin-left:auto; }
.c-dock-btn {
  background:none; border:1px solid transparent; color:var(--fg-muted,#94a3b8);
  font-size:0.7rem; padding:0.15rem 0.4rem; border-radius:4px; cursor:pointer;
  white-space:nowrap; transition:all 0.15s;
}
.c-dock-btn:hover { background:rgba(148,163,184,0.06); color:var(--fg,#e2e8f0); }
.c-dock-btn.is-primary { color:#60a5fa; }
.c-dock-sep { width:1px; height:16px; background:rgba(148,163,184,0.12); margin:0 0.15rem; }
.c-dock-bdg {
  font-size:0.62rem; background:rgba(239,68,68,0.15); color:#f87171;
  padding:0.05rem 0.35rem; border-radius:8px; margin-left:0.1rem;
}
.c-dock-bdg-diff { background:rgba(34,197,94,0.15); color:#4ade80; }
.c-status-role { font-size:0.7rem; color:var(--fg-muted,#94a3b8); }
.c-status-wd { font-size:0.68rem; color:var(--fg-muted,#64748b); max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:default; }
.c-choose-folder { font-size:0.8rem; padding:0.1rem 0.3rem; }

/* ── Side panel ─────────────────────────────────────────────────────── */
.c-right {
  border-left:1px solid rgba(148,163,184,0.1);
  display:flex; flex-direction:column; min-height:0; overflow:hidden;
}
.c-tabbar {
  display:flex; align-items:center; gap:0.1rem;
  padding:0.25rem 0.4rem; border-bottom:1px solid rgba(148,163,184,0.08);
  flex-shrink:0; overflow-x:auto;
}
.c-tab {
  background:none; border:none; border-bottom:2px solid transparent;
  color:var(--fg-muted,#64748b); font-size:0.7rem; padding:0.2rem 0.45rem;
  cursor:pointer; white-space:nowrap; transition:all 0.15s;
}
.c-tab:hover { color:var(--fg,#e2e8f0); }
.c-tab.is-active { color:#60a5fa; border-bottom-color:#60a5fa; }
.c-tab-close { margin-left:auto; background:none; border:none; color:var(--fg-muted,#94a3b8); font-size:1rem; cursor:pointer; padding:0.1rem 0.25rem; }
.c-tab-close:hover { color:var(--fg,#e2e8f0); }

/* ── Panel containers ───────────────────────────────────────────────── */
.c-panels { flex:1; min-height:0; overflow:hidden; }
.c-panel { padding:0.5rem 0.65rem; overflow-y:auto; height:100%; box-sizing:border-box; }
.c-panel-toolbar { display:flex; align-items:center; gap:0.3rem; margin-bottom:0.4rem; flex-wrap:wrap; }
.c-panel-title { font-weight:600; font-size:0.78rem; color:var(--fg,#e2e8f0); }
.c-panel-sub { font-size:0.7rem; color:var(--fg-muted,#94a3b8); }
.c-panel-count { font-size:0.68rem; color:var(--fg-muted,#64748b); margin-right:auto; }
.c-panel-btn {
  background:none; border:1px solid rgba(148,163,184,0.1); color:var(--fg-muted,#94a3b8);
  font-size:0.68rem; padding:0.12rem 0.4rem; border-radius:4px; cursor:pointer;
  white-space:nowrap; transition:all 0.15s;
}
.c-panel-btn:hover { background:rgba(148,163,184,0.06); color:var(--fg,#e2e8f0); border-color:rgba(148,163,184,0.2); }
.c-panel-btn-primary { color:#60a5fa; border-color:rgba(59,130,246,0.25); }
.c-panel-btn.is-on { background:rgba(34,197,94,0.08); color:#4ade80; border-color:rgba(34,197,94,0.2); }
.c-panel-status { font-size:0.72rem; color:var(--fg-muted,#94a3b8); margin:0 0 0.5rem; }
.c-muted { font-size:0.7rem; color:var(--fg-muted,#64748b); }

/* ── Files panel ─────────────────────────────────────────────────────── */
.c-files-layout { display:grid; grid-template-rows:1fr 1fr; gap:0.35rem; height:calc(100% - 2.5rem); min-height:0; }
.c-tree { overflow-y:auto; font-size:0.76rem; }
.c-editor { position:relative; min-height:0; display:flex; flex-direction:column; }
.c-editor-textarea { width:100%; flex:1; resize:none; background:rgba(148,163,184,0.03); border:1px solid rgba(148,163,184,0.08); color:var(--fg,#e2e8f0); font-size:0.76rem; padding:0.45rem; border-radius:4px; outline:none; }
.c-monaco { flex:1; min-height:0; }
.c-recent { display:flex; gap:0.2rem; flex-wrap:wrap; margin-bottom:0.3rem; }
.c-editor-tabs { display:flex; gap:0.12rem; margin-bottom:0.2rem; }
.c-cmdk-bar { display:flex; align-items:center; gap:0.3rem; padding:0.25rem 0.45rem; background:rgba(148,163,184,0.06); border:1px solid rgba(148,163,184,0.1); border-radius:6px; margin-bottom:0.3rem; }
.c-cmdk-bar input { flex:1; background:none; border:none; color:var(--fg,#e2e8f0); font-size:0.76rem; outline:none; }
.c-ghost-hint { font-size:0.65rem; color:var(--fg-muted,#64748b); padding:0.12rem 0.35rem; }

/* ── Diff panel ──────────────────────────────────────────────────────── */
.c-diff-layout { display:grid; grid-template-rows:auto 1fr; gap:0.3rem; height:calc(100% - 2rem); min-height:0; }
.c-diff-list { overflow-y:auto; max-height:200px; font-size:0.74rem; }
.c-diff-editor { display:flex; flex-direction:column; min-height:0; }
.c-diff-editor-bar { display:flex; align-items:center; gap:0.25rem; margin-bottom:0.2rem; font-size:0.72rem; font-weight:500; }
.c-diff-editor-actions { margin-left:auto; display:flex; gap:0.15rem; }
.c-diff-split { display:grid; grid-template-columns:1fr 1fr; gap:0.3rem; flex:1; min-height:0; }
.c-diff-col { display:flex; flex-direction:column; min-height:0; }
.c-diff-col-label { font-size:0.65rem; color:var(--fg-muted,#64748b); margin-bottom:0.12rem; }
.c-diff-col pre, .c-diff-col textarea { flex:1; background:rgba(148,163,184,0.03); border:1px solid rgba(148,163,184,0.08); border-radius:4px; font-size:0.73rem; padding:0.35rem; overflow:auto; color:var(--fg,#e2e8f0); outline:none; }

/* ── Git panel ───────────────────────────────────────────────────────── */
.c-git-row { display:flex; gap:0.2rem; margin-bottom:0.35rem; flex-wrap:wrap; }
.c-git-row input, .c-git-row select { background:rgba(148,163,184,0.04); border:1px solid rgba(148,163,184,0.1); color:var(--fg,#e2e8f0); font-size:0.7rem; padding:0.12rem 0.3rem; border-radius:4px; }
.c-git-layout { display:grid; grid-template-rows:1fr 1fr; gap:0.3rem; height:calc(100% - 4rem); min-height:0; }
.c-git-files { overflow-y:auto; font-size:0.74rem; }
.c-git-diff-pane { display:flex; flex-direction:column; min-height:0; }
.c-git-diff-bar { display:flex; align-items:center; gap:0.25rem; font-size:0.7rem; color:var(--fg-muted,#94a3b8); }
.c-git-diff { flex:1; background:rgba(148,163,184,0.02); border:1px solid rgba(148,163,184,0.06); border-radius:4px; font-size:0.7rem; padding:0.35rem; overflow:auto; }

/* ── Terminal panel ──────────────────────────────────────────────────── */
.c-term-chips { display:flex; gap:0.15rem; flex-wrap:wrap; margin-bottom:0.3rem; }
.c-chip { background:rgba(148,163,184,0.05); border:1px solid rgba(148,163,184,0.08); color:var(--fg-muted,#94a3b8); font-size:0.65rem; padding:0.08rem 0.35rem; border-radius:4px; cursor:pointer; }
.c-chip:hover { background:rgba(148,163,184,0.08); }
.c-panel pre { white-space:pre-wrap; word-break:break-word; }

/* ── Hidden panels (MCP, Disk, Agents - kept for JS compat) ─────────── */
.c-mcp-sub { display:block; font-size:0.7rem; color:var(--fg-muted,#94a3b8); margin-top:0.45rem; margin-bottom:0.15rem; }
.c-disk-row { display:flex; gap:0.2rem; margin-bottom:0.3rem; }
.c-disk-row input { flex:1; background:rgba(148,163,184,0.04); border:1px solid rgba(148,163,184,0.1); color:var(--fg,#e2e8f0); font-size:0.7rem; padding:0.15rem 0.35rem; border-radius:4px; }
.c-disk-actions { display:flex; gap:0.2rem; flex-wrap:wrap; margin-bottom:0.3rem; }
.c-bg-create { display:flex; flex-direction:column; gap:0.25rem; margin-bottom:0.45rem; }
.c-bg-create input, .c-bg-create select, .c-bg-create textarea { background:rgba(148,163,184,0.04); border:1px solid rgba(148,163,184,0.1); color:var(--fg,#e2e8f0); font-size:0.7rem; padding:0.15rem 0.35rem; border-radius:4px; }

/* ── Misc ────────────────────────────────────────────────────────────── */
.c-law-chip { font-size:0.7rem; padding:0.2rem 0.45rem; background:rgba(250,204,21,0.08); border:1px solid rgba(250,204,21,0.15); border-radius:5px; margin:0.2rem 1rem; }
.c-plan { padding:0.45rem 1rem; border-top:1px solid rgba(148,163,184,0.08); }
.c-plan ul { list-style:none; padding:0; margin:0.3rem 0; }
.c-plan li { font-size:0.76rem; padding:0.12rem 0; }
.c-stream { font-size:0.73rem; display:flex; flex-direction:column; gap:0.25rem; }
.c-empty { font-size:0.73rem; color:var(--fg-muted,#64748b); }
.c-chat::-webkit-scrollbar, .c-panel::-webkit-scrollbar, .c-tree::-webkit-scrollbar { width:5px; }
.c-chat::-webkit-scrollbar-thumb, .c-panel::-webkit-scrollbar-thumb, .c-tree::-webkit-scrollbar-thumb { background:rgba(148,163,184,0.15); border-radius:3px; }
@media (max-width:860px) {
  .c-split { grid-template-columns:1fr; }
  .c-right { display:none; }
  .c-split.nmq-as-side-collapsed .c-right { display:none; }
}
