/* Dopetzcom Admin — Jarvis Squad HUD styling.
 * Scoped under .jsq-* so it CANNOT touch your existing admin CSS.
 */
.jsq-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f1f5f9;
}
.jsq-root.is-open { display: block; }
.jsq-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,24,48,.85), rgba(2,6,14,.96));
  backdrop-filter: blur(6px);
}
.jsq-panel {
  position: absolute;
  inset: 4vh 4vw;
  background:
    linear-gradient(180deg, rgba(8,22,42,.98), rgba(4,10,22,.98)),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(56,189,248,.04) 23px);
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(14,165,233,.15), 0 0 60px rgba(14,165,233,.22), 0 24px 80px rgba(0,0,0,.55);
  overflow: auto;
  padding: 22px 22px 30px;
}
.jsq-close {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(8,20,36,.9); color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.35);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.jsq-close:hover { background: rgba(14,165,233,.25); }

.jsq-header {
  display: flex; align-items: center; gap: 22px;
  padding: 6px 4px 22px;
  border-bottom: 1px solid rgba(56,189,248,.15);
  margin-bottom: 22px;
}
.jsq-header-copy { flex: 1; min-width: 0; }
.jsq-kicker {
  color: #38bdf8; letter-spacing: .28em; font-size: 10px;
  font-weight: 800; text-transform: uppercase; margin-bottom: 6px;
}
.jsq-header h2 {
  margin: 0 0 4px; font-size: 32px; font-weight: 800;
  letter-spacing: .04em; color: #e0f7ff;
  text-shadow: 0 0 14px rgba(56,189,248,.45);
  font-family: "Barlow Condensed", "Inter", sans-serif;
  text-transform: uppercase;
}
.jsq-header p { margin: 0 0 12px; color: #94a3b8; font-size: 13px; }
.jsq-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.jsq-metrics {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: #7aa7c2; margin-left: 6px;
}
.jsq-metrics b { color: #e0f7ff; font-weight: 700; }
.jsq-live { color: #6ee7b7; }
.jsq-mock { color: #fcd34d; }

/* Orb */
.jsq-orb {
  position: relative; width: 84px; height: 84px; flex: none;
}
.jsq-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(56,189,248,.35);
  animation: jsq-spin 12s linear infinite;
}
.jsq-orb-ring-2 {
  inset: 10px; border-color: rgba(125,211,252,.5);
  animation-duration: 7s; animation-direction: reverse;
}
.jsq-orb-core {
  position: absolute; inset: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dd3fc, #0ea5e9 45%, #082f49 80%);
  box-shadow: 0 0 18px rgba(14,165,233,.85), 0 0 40px rgba(56,189,248,.35);
  animation: jsq-pulse 2.4s ease-in-out infinite;
}
.jsq-orb[data-state="think"] .jsq-orb-core { animation-duration: .8s; }
.jsq-orb[data-state="speak"] .jsq-orb-core {
  background: radial-gradient(circle at 35% 30%, #e0f2fe, #38bdf8 40%, #0369a1 78%);
  animation-duration: .5s;
}
.jsq-orb[data-state="listen"] .jsq-orb-core {
  background: radial-gradient(circle at 35% 30%, #fef3c7, #facc15 45%, #92400e 85%);
  animation-duration: .35s;
  box-shadow: 0 0 22px rgba(250,204,21,.9), 0 0 48px rgba(250,204,21,.5);
}
.jsq-orb[data-state="listen"] .jsq-orb-ring { border-color: rgba(250,204,21,.55); }
@keyframes jsq-spin { to { transform: rotate(360deg); } }
@keyframes jsq-pulse {
  0%,100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Grid */
.jsq-mi {
  font-size: 16px;
  line-height: 1;
  width: 16px;
  height: 16px;
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.jsq-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56,189,248,.12);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,.22);
  flex: none;
}
.jsq-ico .jsq-mi { font-size: 18px; width: 18px; height: 18px; }
.jsq-btn .jsq-mi { font-size: 14px; width: 14px; height: 14px; }
.jsq-section-head { display: flex; align-items: center; gap: 6px; }
.jsq-section-head .jsq-mi { color: #38bdf8; }
.jsq-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jsq-tabs .jsq-mi { font-size: 16px; width: 16px; height: 16px; }
.jsq-sku-arrow .jsq-mi { font-size: 14px; color: #a5b4fc; }

.jsq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.jsq-card {
  background: linear-gradient(180deg, rgba(19,28,46,.9), rgba(13,18,32,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.jsq-card:hover {
  border-color: rgba(6,182,212,.35);
  box-shadow: 0 10px 40px -12px rgba(6,182,212,.25);
}
.jsq-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.jsq-card-titles { min-width: 0; flex: 1; }
.jsq-card-dept {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #64748b; font-family: "Barlow Condensed", sans-serif; font-weight: 600;
}
.jsq-card-name {
  font-size: 17px; font-weight: 700; color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .02em; line-height: 1.1; margin-top: 2px;
}
.jsq-card-role { font-size: 12px; color: #cbd5e1; line-height: 1.5; }
.jsq-card-log {
  min-height: 62px; padding: 8px 10px;
  border-left: 2px solid rgba(6,182,212,.35);
  background: rgba(4,16,32,.35); border-radius: 0 6px 6px 0;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: #d1d5db;
}
.jsq-log-empty { color: #64748b; font-style: italic; }
.jsq-log-active { color: #67e8f9; }
.jsq-log-err { color: #fca5a5; }
.jsq-log-title {
  font-size: 9px; color: #64748b; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 4px;
}
.jsq-log-line { line-height: 1.5; }
.jsq-shimmer {
  height: 3px; margin-top: 6px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,.45), transparent);
  background-size: 200% 100%;
  animation: jsq-shimmer 1.4s linear infinite;
}
@keyframes jsq-shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.jsq-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jsq-card-meta { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #94a3b8; }
.jsq-card-meta b { color: #fff; }

/* Buttons */
.jsq-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(6,182,212,.4); background: rgba(6,182,212,.1);
  color: #f1f5f9; cursor: pointer; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.jsq-btn:hover { background: rgba(6,182,212,.22); border-color: rgba(6,182,212,.7); }
.jsq-btn-primary {
  background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.5); color: #d1fae5;
}
.jsq-btn-primary:hover { background: rgba(16,185,129,.28); border-color: rgba(16,185,129,.85); }

/* Badges */
.jsq-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.jsq-dot { width: 6px; height: 6px; border-radius: 50%; }
.jsq-dot-emerald { background: #34d399; box-shadow: 0 0 8px #34d399; }
.jsq-dot-cyan { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.jsq-badge-emerald { color: #6ee7b7; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); }
.jsq-badge-cyan    { color: #67e8f9; background: rgba(6,182,212,.12);  border: 1px solid rgba(6,182,212,.35); }
.jsq-badge-violet  { color: #c4b5fd; background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35); }
.jsq-badge-amber   { color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); }
.jsq-badge-rose    { color: #fda4af; background: rgba(244,63,94,.12);  border: 1px solid rgba(244,63,94,.35); }
.jsq-badge-blue    { color: #93c5fd; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35); }
.jsq-badge-lime    { color: #bef264; background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.35); }

/* Lower panels */
.jsq-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .jsq-lower { grid-template-columns: 1fr; }
}
.jsq-feed-wrap, .jsq-chat-wrap {
  background: linear-gradient(180deg, rgba(19,28,46,.9), rgba(13,18,32,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; min-height: 300px;
}
.jsq-section-head {
  display: flex; align-items: center; gap: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #cbd5e1; margin-bottom: 10px;
}
.jsq-feed { flex: 1; overflow-y: auto; max-height: 360px; }
.jsq-feed-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.jsq-feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.jsq-feed-time { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #64748b; }
.jsq-feed-input { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #94a3b8; margin: 2px 0; }
.jsq-feed-reply { font-size: 12px; color: #e2e8f0; line-height: 1.5; padding-left: 8px; border-left: 2px solid rgba(56,189,248,.35); }

.jsq-chat { flex: 1; overflow-y: auto; max-height: 300px; padding-right: 6px; }
.jsq-chat-user, .jsq-chat-jarvis, .jsq-chat-err {
  padding: 8px 12px; border-radius: 10px; margin-bottom: 8px;
  font-size: 13px; line-height: 1.5; max-width: 88%;
}
.jsq-chat-user { background: rgba(6,182,212,.18); border: 1px solid rgba(6,182,212,.4); color: #e0f7ff; margin-left: auto; }
.jsq-chat-jarvis { background: rgba(30,41,59,.8); border: 1px solid rgba(255,255,255,.06); color: #f1f5f9; }
.jsq-chat-err { background: rgba(244,63,94,.15); border: 1px solid rgba(244,63,94,.4); color: #fecaca; }
.jsq-chat-input { display: flex; gap: 8px; margin-top: 10px; }
.jsq-chat-input input {
  flex: 1; padding: 9px 12px; border-radius: 8px;
  background: rgba(4,16,32,.9); border: 1px solid rgba(56,189,248,.35);
  color: #e0f7ff; font-family: "JetBrains Mono", monospace; font-size: 13px;
  outline: none;
}
.jsq-chat-input input:focus { border-color: rgba(56,189,248,.7); }

/* ---------------- Mic (voice command) ---------------- */
.jsq-lang-picker {
  display: inline-flex; gap: 2px;
  background: rgba(4,16,32,.6);
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
  padding: 2px;
  flex: none;
}
.jsq-lang-opt {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px 8px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .1em;
  color: #64748b; font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}
.jsq-lang-opt:hover { color: #cbd5e1; }
.jsq-lang-opt.is-on {
  background: rgba(6,182,212,.28);
  color: #e0f7ff;
  box-shadow: inset 0 0 0 1px rgba(6,182,212,.6);
}

.jsq-lang-pill {
  display: inline-block;
  padding: 1px 6px; margin-right: 6px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: .1em; font-weight: 700;
  vertical-align: middle;
}
.jsq-lang-pill.jsq-lang-en { background: rgba(59,130,246,.2); color: #bfdbfe; border: 1px solid rgba(59,130,246,.4); }
.jsq-lang-pill.jsq-lang-sw { background: rgba(34,197,94,.2); color: #bef264; border: 1px solid rgba(34,197,94,.4); }

/* ---------------- Wake Word toggle ---------------- */
.jsq-wake-btn {
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(4,16,32,.6) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #64748b !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  flex: none;
}
.jsq-wake-btn:hover { color: #cbd5e1 !important; border-color: rgba(255,255,255,.25) !important; }
.jsq-wake-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #475569;
  box-shadow: none;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.jsq-wake-btn.is-on {
  background: rgba(16,185,129,.15) !important;
  border-color: rgba(16,185,129,.55) !important;
  color: #d1fae5 !important;
}
.jsq-wake-btn.is-on .jsq-wake-dot {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: jsq-wake-breathe 2s ease-in-out infinite;
}
.jsq-wake-btn.is-hot {
  background: rgba(250,204,21,.35) !important;
  border-color: rgba(250,204,21,.95) !important;
  color: #422006 !important;
  animation: jsq-mic-pulse 0.9s ease-in-out infinite;
}
.jsq-wake-btn.is-hot .jsq-wake-dot {
  background: #facc15;
  box-shadow: 0 0 12px #facc15;
  animation: none;
}
@keyframes jsq-wake-breathe {
  0%,100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.jsq-mic-btn {
  padding: 9px 12px !important;
  background: rgba(139,92,246,.15) !important;
  border-color: rgba(139,92,246,.5) !important;
  color: #ddd6fe !important;
  font-size: 15px !important;
  position: relative;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.jsq-mic-btn:hover { background: rgba(139,92,246,.28) !important; }
.jsq-mic-btn.is-listening {
  background: rgba(250,204,21,.35) !important;
  border-color: rgba(250,204,21,.95) !important;
  color: #422006 !important;
  animation: jsq-mic-pulse 0.9s ease-in-out infinite;
}
@keyframes jsq-mic-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(250,204,21,.55); }
  50% { box-shadow: 0 0 0 10px rgba(250,204,21,0); }
}

/* ---------------- Ship Queue: contact + notify + confirmation ---------------- */
.jsq-order-contact {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #93c5fd;
}
.jsq-order-notify {
  margin: 6px 0 10px;
}
.jsq-order-notify label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #cbd5e1; cursor: pointer;
}
.jsq-order-notify input[type=checkbox] {
  accent-color: #10b981; width: 14px; height: 14px;
}
.jsq-order-notif {
  padding: 10px 12px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 8px;
  font-size: 12px;
  color: #d1fae5;
  line-height: 1.5;
  margin-top: 10px;
}
.jsq-order-notif b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: #6ee7b7;
  margin-bottom: 4px;
}

/* Animations */
.slide-up { animation: jsq-slide 0.4s ease-out both; }
@keyframes jsq-slide {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ---------------- Floating Launcher ---------------- */
.jsq-launcher {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 999998;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8,22,42,.95), rgba(4,10,22,.95));
  border: 1px solid rgba(56,189,248,.5);
  box-shadow: 0 0 0 1px rgba(14,165,233,.15), 0 10px 30px rgba(2,6,14,.55), 0 0 40px rgba(6,182,212,.25);
  color: #e0f7ff;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800; letter-spacing: .18em; font-size: 13px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.jsq-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.9);
  box-shadow: 0 0 0 1px rgba(14,165,233,.25), 0 14px 40px rgba(2,6,14,.6), 0 0 60px rgba(6,182,212,.4);
}
.jsq-launcher-orb {
  position: relative; width: 26px; height: 26px; flex: none;
}
.jsq-launcher-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(56,189,248,.55);
  animation: jsq-spin 8s linear infinite;
}
.jsq-launcher-core {
  position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dd3fc, #0ea5e9 55%, #082f49 90%);
  box-shadow: 0 0 10px rgba(14,165,233,.85);
  animation: jsq-pulse 2.4s ease-in-out infinite;
}
.jsq-launcher-label { line-height: 1; }
@media (max-width: 600px) {
  .jsq-launcher { right: 12px; bottom: 12px; padding: 8px 14px 8px 10px; font-size: 12px; }
}

/* ---------------- Vision photo button ---------------- */
.jsq-card-actions { display: inline-flex; gap: 6px; align-items: center; }
.jsq-btn-photo {
  background: rgba(139,92,246,.15);
  border-color: rgba(139,92,246,.5);
  color: #ddd6fe;
  cursor: pointer;
}
.jsq-btn-photo:hover { background: rgba(139,92,246,.28); border-color: rgba(139,92,246,.85); }
.jsq-conf {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: #c4b5fd;
  padding: 2px 0 4px;
}
.jsq-conf b { color: #fff; font-size: 12px; }

/* ---------------- Tabs ---------------- */
.jsq-tabs {
  display: flex; gap: 6px; margin: 20px 0 -4px;
  border-bottom: 1px solid rgba(56,189,248,.15);
  padding-bottom: 0;
}
.jsq-tabs button {
  background: transparent; border: 0;
  padding: 10px 14px;
  color: #64748b;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; letter-spacing: .14em; font-size: 12px;
  text-transform: uppercase; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.jsq-tabs button:hover { color: #cbd5e1; }
.jsq-tabs button.is-active {
  color: #e0f7ff; border-bottom-color: #38bdf8;
}
.jsq-tab-count { color: #38bdf8; font-weight: 800; }

/* ---------------- Confirm Queue ---------------- */
.jsq-queue-wrap {
  background: linear-gradient(180deg, rgba(19,28,46,.9), rgba(13,18,32,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 16px;
  grid-column: 1 / -1;
  min-height: 200px;
}
.jsq-queue { max-height: 460px; overflow-y: auto; padding-right: 6px; }
.jsq-queue-item {
  padding: 12px;
  border-radius: 10px;
  background: rgba(4,16,32,.5);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
  transition: opacity 300ms ease, transform 300ms ease;
}
.jsq-queue-item.is-sending { opacity: .55; }
.jsq-queue-item.is-sent { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.45); }
.jsq-queue-item.is-rejected { opacity: .35; text-decoration: line-through; }
.jsq-queue-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.jsq-queue-to {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: #93c5fd;
}
.jsq-queue-subject { font-size: 12px; color: #cbd5e1; margin-bottom: 4px; }
.jsq-queue-subject b { color: #94a3b8; font-weight: 600; }
.jsq-queue-body {
  font-size: 13px; color: #e2e8f0; line-height: 1.5;
  padding: 8px 10px; background: rgba(0,0,0,.25); border-radius: 6px;
  white-space: pre-wrap; margin-bottom: 10px;
}
.jsq-queue-actions { display: flex; gap: 8px; }
.jsq-queue-sent {
  padding: 12px; text-align: center;
  font-family: "JetBrains Mono", monospace;
  color: #6ee7b7; font-weight: 700; letter-spacing: .12em;
}

/* ---------------- Vision SKU matches ---------------- */
.jsq-sku-matches {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(139,92,246,.25);
  display: flex; flex-direction: column; gap: 4px;
}
.jsq-sku {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 6px 8px; border-radius: 6px;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.25);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.jsq-sku:hover { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.6); }
.jsq-sku-name { font-size: 12px; color: #e0e7ff; flex: 1; }
.jsq-sku-code { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #c4b5fd; }
.jsq-sku-arrow { font-size: 14px; color: #a5b4fc; }
.jsq-btn-ship {
  background: rgba(59,130,246,.15);
  border-color: rgba(59,130,246,.5);
  color: #bfdbfe;
}
.jsq-btn-ship:hover { background: rgba(59,130,246,.28); border-color: rgba(59,130,246,.85); }

/* ---------------- Ship Queue ---------------- */
.jsq-orders-wrap {
  background: linear-gradient(180deg, rgba(19,28,46,.9), rgba(13,18,32,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 16px;
  grid-column: 1 / -1;
  min-height: 200px;
}
.jsq-orders { max-height: 460px; overflow-y: auto; padding-right: 6px; }
.jsq-order-item {
  padding: 12px; border-radius: 10px;
  background: rgba(4,16,32,.5);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
  transition: opacity 300ms ease;
}
.jsq-order-item.is-sending { opacity: .55; }
.jsq-order-item.is-sent { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.5); }
.jsq-order-item.is-skipped { opacity: .35; }
.jsq-order-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.jsq-order-flow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: #cbd5e1;
  letter-spacing: .04em; text-transform: uppercase;
}
.jsq-order-flow b { color: #fff; }
.jsq-order-next { color: #6ee7b7 !important; }
.jsq-order-track { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jsq-order-track label {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: #94a3b8; text-transform: uppercase; letter-spacing: .1em;
}
.jsq-order-track input {
  flex: 1; padding: 6px 10px; border-radius: 6px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(56,189,248,.35);
  color: #e0f7ff; font-family: "JetBrains Mono", monospace; font-size: 12px;
  outline: none;
}
.jsq-order-track input:focus { border-color: rgba(56,189,248,.7); }
.jsq-order-note {
  font-size: 12px; color: #cbd5e1; font-style: italic;
  padding: 6px 10px; border-left: 2px solid rgba(59,130,246,.35);
  margin-bottom: 10px;
}
.jsq-order-actions { display: flex; gap: 8px; }

/* ---------------- Settings tab ---------------- */
.jsq-settings-wrap {
  background: linear-gradient(180deg, rgba(19,28,46,.9), rgba(13,18,32,.9));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 16px;
  grid-column: 1 / -1;
}
.jsq-settings-intro {
  color: #cbd5e1; font-size: 12px; line-height: 1.6;
  padding: 10px 12px; margin-bottom: 12px;
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.25);
  border-radius: 8px;
}
.jsq-settings-intro b { color: #fff; }
.jsq-setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 12px;
  min-height: 56px;
  background: rgba(4,16,32,.28);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(56,189,248,.12);
}
.jsq-settings-end { height: 96px; flex: none; }
.jsq-setting-label b { color: #e0f7ff; font-size: 14px; }
.jsq-setting-label small { display: block; color: #94a3b8; font-size: 11px; margin-top: 2px; }
.jsq-toggle {
  position: relative; display: inline-block; width: 46px; height: 24px; flex: none; cursor: pointer;
}
.jsq-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.jsq-toggle-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #1e293b; border: 1px solid rgba(56,189,248,.35);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.jsq-toggle-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #7dd3fc; transition: transform 200ms ease, background-color 200ms ease;
}
.jsq-toggle input:checked + .jsq-toggle-track {
  background: rgba(16,185,129,.4);
  border-color: rgba(16,185,129,.9);
}
.jsq-toggle input:checked + .jsq-toggle-track::after {
  transform: translateX(20px); background: #d1fae5;
}
.jsq-test-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: rgba(0,0,0,.25); border-radius: 8px;
}
.jsq-test-form select, .jsq-test-form input, .jsq-test-form textarea {
  padding: 8px 10px; border-radius: 6px;
  background: rgba(4,16,32,.9); border: 1px solid rgba(56,189,248,.35);
  color: #e0f7ff; font-family: "JetBrains Mono", monospace; font-size: 12px;
  outline: none;
}
.jsq-test-form textarea { min-height: 60px; resize: vertical; }
.jsq-test-result {
  min-height: 20px; font-family: "JetBrains Mono", monospace; font-size: 11px;
}

/* ---------------- Custom Wake Word form ---------------- */
.jsq-wake-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; background: rgba(0,0,0,.25); border-radius: 8px;
}
.jsq-wake-form textarea {
  padding: 10px 12px; border-radius: 6px;
  background: rgba(4,16,32,.9);
  border: 1px solid rgba(56,189,248,.35);
  color: #e0f7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; min-height: 54px; resize: vertical;
  outline: none;
}
.jsq-wake-form textarea:focus { border-color: rgba(56,189,248,.7); }
.jsq-wake-form-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.jsq-wake-hint {
  font-size: 11px; color: #64748b; font-style: italic;
}

/* ---------------- Voice Analytics tiles ---------------- */
.jsq-va-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.jsq-va-tile {
  padding: 12px 14px;
  background: rgba(4,16,32,.6);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 10px;
}
.jsq-va-tile-hero {
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(6,182,212,.12));
  border-color: rgba(16,185,129,.4);
}
.jsq-va-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: #64748b;
  margin-bottom: 4px;
}
.jsq-va-tile-hero .jsq-va-label { color: #6ee7b7; }
.jsq-va-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px; font-weight: 700; color: #e0f7ff;
  line-height: 1.05;
}
.jsq-va-tile-hero .jsq-va-num { color: #d1fae5; }
.jsq-va-detail {
  font-size: 12px; color: #cbd5e1; line-height: 1.7;
}
.jsq-va-detail b { color: #94a3b8; margin-right: 4px; font-weight: 600; }
.jsq-va-list {
  margin: 6px 0 0; padding-left: 20px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
}
.jsq-va-list li b { color: #38bdf8; }

/* Embed inside existing JARVIS · MULTI-AGENT · ONLINE modal */
.jsq-embed {
  margin: 0;
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.jsq-embed-root {
  color: #f1f5f9;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding-bottom: 24px;
}
.jsq-header-embed {
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(56,189,248,.15);
  flex: none;
}
.jsq-header-embed .jsq-header-copy p { display: none; }
#aiModal .jsq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  min-height: 0;
  max-height: none;
  flex: none;
}
#aiModal .jsq-card {
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 8px 9px;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#aiModal .jsq-card-name { font-size: 13px; }
#aiModal .jsq-card-dept { font-size: 8px; letter-spacing: .14em; }
#aiModal .jsq-badge { padding: 2px 6px; font-size: 8px; }
#aiModal .jsq-card-role {
  font-size: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#aiModal .jsq-card-log {
  flex: 0 1 auto;
  min-height: 32px;
  max-height: 44px;
  overflow: hidden;
  padding: 4px 6px;
  font-size: 10px;
}
#aiModal .jsq-card-foot {
  flex-wrap: wrap;
  gap: 6px;
}
#aiModal .jsq-card-meta { font-size: 9px; }
#aiModal .jsq-btn {
  padding: 4px 8px;
  font-size: 10px;
  min-height: 32px;
}
#aiModal .jsq-header-embed {
  padding: 0 0 8px;
  margin-bottom: 8px;
}
#aiModal .jsq-header-embed .jsq-kicker { margin-bottom: 4px; }
#aiModal .jsq-lower {
  margin-top: 8px;
  min-width: 0;
  min-height: 220px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
#aiModal .jsq-feed-wrap,
#aiModal .jsq-queue-wrap,
#aiModal .jsq-orders-wrap,
#aiModal .jsq-settings-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
#aiModal .jsq-embed-root.jsq-focus-lower .jsq-grid {
  display: none;
}
#aiModal .jsq-embed-root.is-settings .jsq-lower,
#aiModal .jsq-embed-root.is-settings .jsq-settings-wrap {
  min-height: 420px;
}
#aiModal .jsq-settings {
  overflow: visible;
  max-height: none;
  flex: none;
  min-height: 0;
  padding-bottom: 48px;
}
#aiModal .jsq-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  flex: none;
  -webkit-overflow-scrolling: touch;
}
#aiModal .jsq-tabs button { flex: none; white-space: nowrap; }
#aiModal .jsq-feed,
#aiModal .jsq-queue,
#aiModal .jsq-orders {
  overflow: auto;
  max-height: none;
  flex: 1;
  min-height: 120px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 48px;
}
#aiModal .jsq-settings {
  overflow: visible;
  max-height: none;
  flex: none;
  min-height: 0;
  padding-bottom: 0;
}
@media (min-width: 1100px) {
  #aiModal .jsq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1099px) and (orientation: landscape) {
  #aiModal .jsq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 1099px) and (orientation: portrait) {
  #aiModal .jsq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#aiModal .dz-ai-input {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
#aiModal .dz-ai-input #dzAiAskInput { flex: 1 1 auto; min-width: 0; }
