/**
 * NMQ Attribution Kit — tech credit (nominative use of DeepSeek).
 * Shared visual language for NMQ + NMQ Architect.
 * Not a partnership badge — hairline credits only.
 */

:root {
  --nmq-attr-fg: #8f8f8f;
  --nmq-attr-fg-strong: #d0d0d0;
  --nmq-attr-line: #2e2e2e;
  --nmq-attr-active: #e8e8e8;
  --nmq-attr-accent: #a8b4c8;
  --nmq-attr-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

/* A — Tech credit line */
.nmq-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 18px;
  border-bottom: 1px solid var(--nmq-attr-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 90%);
  font-family: var(--nmq-attr-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--nmq-attr-fg);
  flex-shrink: 0;
  min-height: 32px;
}
.nmq-credit-brand {
  color: var(--nmq-attr-fg-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.nmq-credit-uses {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nmq-attr-accent);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: right;
  max-width: 70%;
}
.nmq-credit-uses:hover {
  color: var(--nmq-attr-active);
}
.nmq-credit-uses .arrow {
  opacity: 0.65;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.nmq-credit-uses:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* B — Stack rail */
.nmq-stack-rail {
  display: inline-flex;
  align-items: stretch;
  margin-left: 10px;
  border: 1px solid var(--nmq-attr-line);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--nmq-attr-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
  height: 20px;
}
.nmq-stack-rail span {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--nmq-attr-fg);
  border-right: 1px solid var(--nmq-attr-line);
  white-space: nowrap;
}
.nmq-stack-rail span:last-child { border-right: none; }
.nmq-stack-rail span.on {
  color: var(--nmq-attr-active);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 -1px 0 rgba(168,180,200,0.35);
}

/* C — Reply signature */
.nmq-reply-sig {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(46,46,46,0.95);
  font-family: var(--nmq-attr-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #7a7a7a;
}
.nmq-reply-sig a {
  color: var(--nmq-attr-accent);
  text-decoration: none;
}
.nmq-reply-sig a:hover { color: #c8d0dc; }

/* Footer credit */
.nmq-attr-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 18px 11px;
  border-top: 1px solid var(--nmq-attr-line);
  font-family: var(--nmq-attr-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: #737373;
  flex-shrink: 0;
  background: rgba(0,0,0,0.2);
}
.nmq-attr-footer a {
  color: var(--nmq-attr-accent);
  text-decoration: none;
}
.nmq-attr-footer a:hover { color: #c8d0dc; }
.nmq-attr-footer .tm {
  opacity: 0.8;
  font-size: 9.5px;
  color: #5e5e5e;
}

/* Architect: hide legacy pill when new kit is present */
body.nmq-attr-v2 .nmq-deepseek-badge {
  display: none !important;
}
body.nmq-attr-v2 .nmq-footer-deepseek {
  display: none !important;
}

/* Discreet mark under / beside product logo */
.nmq-logo-mark {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--nmq-attr-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a7a7a;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.nmq-logo-mark:hover {
  color: var(--nmq-attr-accent);
  border-bottom-color: rgba(168,180,200,0.35);
}
.sidebar-logo .nmq-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo-area .nmq-logo-mark {
  margin-top: 4px;
}

/* Architect header credit — sit beside logo without fighting actions */
.app-header .nmq-credit {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
  margin: 0 8px;
  padding: 4px 12px;
  border: 1px solid var(--nmq-attr-line);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.app-header .nmq-credit-uses {
  max-width: 100%;
  font-size: 10px;
}

/* Memory chip in streaming / status */
.nmq-mem-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 2px;
  padding: 2px 8px;
  border: 1px solid #2a3a2a;
  border-radius: 3px;
  font-family: var(--nmq-attr-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #9cbc9c;
  background: rgba(80,120,80,0.08);
}
