/* ============================================================================
   Tensor UI Components Library
   ThoughtLine · SwipeToast · CodeSlots · WarmTooltip · PeekRating · FuseButton
   Unified with Tensor design tokens (#060C1C, #8FE8F8, #1F6FB5, #F4F6FF)
   and light/dark [data-theme] switching.
   ============================================================================ */

/* --------------------------------------------------------- 1. ThoughtLine */
.nui-thoughtline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted, #94a3b8);
  font-size: 13px;
  line-height: 1.45;
}
.nui-thoughtline.is-settling {
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}
.nui-thoughtline-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nui-thoughtline-head:focus-visible {
  outline: 2px solid var(--cyan, #8fe8f8);
  outline-offset: 2px;
  border-radius: 6px;
}
.nui-thoughtline-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: none;
  background: var(--cyan, #8fe8f8);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan, #8fe8f8) 55%, transparent);
  animation: nuiThoughtPulse 1.5s ease-in-out infinite;
}
.nui-thoughtline.is-done .nui-thoughtline-pulse {
  animation: none;
  background: var(--success, #22c55e);
  box-shadow: none;
}
.nui-thoughtline.is-error .nui-thoughtline-pulse {
  animation: none;
  background: var(--warning, #f59e0b);
  box-shadow: none;
}
.nui-thoughtline-label {
  font-weight: 550;
  letter-spacing: -0.01em;
}
.nui-thoughtline.is-working .nui-thoughtline-label {
  background: linear-gradient(
    105deg,
    var(--muted, #94a3b8) 16%,
    var(--ink, #f4f6ff) 45%,
    var(--cyan, #8fe8f8) 55%,
    var(--muted, #94a3b8) 84%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nuiShimmer 1.65s linear infinite;
}
.nui-thoughtline-chev {
  display: inline-flex;
  color: var(--muted-2, #64748b);
  transition: transform 160ms ease;
}
.nui-thoughtline-head[aria-expanded='true'] .nui-thoughtline-chev {
  transform: rotate(180deg);
}
.nui-thoughtline-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0 2px 15px;
  margin-left: 3px;
  border-left: 1px solid var(--line, rgba(148, 163, 184, 0.2));
}
.nui-thoughtline-steps[hidden] { display: none; }
.nui-thoughtstep {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.nui-thoughtstep.is-active { color: var(--ink, #f4f6ff); font-weight: 500; }
.nui-thoughtstep.is-done { color: var(--muted-2, #64748b); }
.nui-thoughtstep.is-stopped { color: var(--warning, #f59e0b); }
.nui-thoughtstep-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

@keyframes nuiThoughtPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan, #8fe8f8) 50%, transparent); }
  60% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes nuiShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ---------------------------------------------------------- 2. SwipeToast */
.nui-toast-region {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 9600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(376px, calc(100vw - 32px));
  pointer-events: none;
}
.nui-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong, rgba(143, 232, 248, 0.22));
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface, #0c1428) 94%, #060c1c);
  color: var(--ink, #f4f6ff);
  box-shadow: 0 16px 36px -12px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: pan-y;
  user-select: none;
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
  animation: nuiToastIn 220ms cubic-bezier(.22, 1, .36, 1) both;
}
:root[data-theme='light'] .nui-toast {
  background: color-mix(in srgb, var(--surface, #ffffff) 96%, #f3f6fb);
  color: var(--ink, #0f172a);
  border-color: var(--line-strong, rgba(15, 23, 42, 0.14));
  box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.2);
}
.nui-toast.is-dragging { transition: none; }
.nui-toast.is-leaving { opacity: 0; transform: translateX(24px) scale(0.97); }
.nui-toast-ico {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--cyan, #8fe8f8) 14%, transparent);
  color: var(--cyan, #8fe8f8);
}
.nui-toast[data-type='success'] .nui-toast-ico {
  background: color-mix(in srgb, var(--success, #22c55e) 15%, transparent);
  color: var(--success, #22c55e);
}
.nui-toast[data-type='error'] .nui-toast-ico {
  background: color-mix(in srgb, var(--danger, #ef4444) 16%, transparent);
  color: var(--danger, #ef4444);
}
.nui-toast[data-type='warning'] .nui-toast-ico {
  background: color-mix(in srgb, var(--warning, #f59e0b) 16%, transparent);
  color: var(--warning, #f59e0b);
}
.nui-toast[data-type='undo'] .nui-toast-ico {
  background: color-mix(in srgb, var(--violet, #8b7cf6) 18%, transparent);
  color: var(--violet-2, #a89bff);
}
.nui-toast-copy { flex: 1; min-width: 0; }
.nui-toast-title {
  display: block;
  font-size: 13.2px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}
.nui-toast-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #94a3b8);
}
.nui-toast-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-left: 4px;
}
.nui-toast-action-btn {
  height: 26px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--cyan, #8fe8f8) 40%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--cyan, #8fe8f8) 12%, transparent);
  color: var(--ink, #f4f6ff);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
:root[data-theme='light'] .nui-toast-action-btn {
  border-color: color-mix(in srgb, var(--blue, #1f6fb5) 45%, transparent);
  background: color-mix(in srgb, var(--blue, #1f6fb5) 10%, transparent);
  color: #1f6fb5;
}
.nui-toast-close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #94a3b8);
  cursor: pointer;
}
.nui-toast-close:hover { background: var(--surface-2, rgba(255,255,255,0.08)); color: var(--ink, #f4f6ff); }

@keyframes nuiToastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .nui-toast-region {
    right: 12px;
    left: 12px;
    width: auto;
    align-items: stretch;
  }
}

/* ----------------------------------------------------------- 3. CodeSlots */
.nui-codeslots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.nui-codeslots-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nui-codeslots-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, var(--a-ink, #f4f6ff));
}
.nui-codeslots-desc {
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--muted, var(--a-muted, #94a3b8));
}
:root[data-theme='light'] .nui-codeslots-title {
  color: var(--ink, var(--a-ink, #0f172a));
}
:root[data-theme='light'] .nui-codeslots-desc,
:root[data-theme='light'] .nui-codeslots-meta {
  color: var(--muted, var(--a-muted, #64748b));
}
.nui-codeslots-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.nui-codeslot {
  position: relative;
  width: 100%;
  height: 50px;
  padding: 0;
  border: 1.5px solid var(--line-strong, rgba(148, 163, 184, 0.28));
  border-radius: 11px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  color: var(--ink, var(--a-ink, #f4f6ff));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}
:root[data-theme='light'] .nui-codeslot {
  background: var(--surface, #ffffff);
  color: var(--ink, var(--a-ink, #0f172a));
}
.nui-codeslot:focus {
  border-color: var(--cyan, #8fe8f8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan, #8fe8f8) 22%, transparent);
  transform: translateY(-1px);
}
.nui-codeslot.has-val {
  border-color: color-mix(in srgb, var(--blue, #1f6fb5) 75%, var(--cyan, #8fe8f8));
  animation: nuiSlotPop 160ms cubic-bezier(.22, 1, .36, 1);
}
.nui-codeslots[data-state='error'] .nui-codeslot {
  border-color: var(--danger, #ef4444);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger, #ef4444) 18%, transparent);
}
.nui-codeslots[data-state='success'] .nui-codeslot {
  border-color: var(--success, #22c55e);
}
.nui-codeslots-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.nui-codeslots-status {
  min-height: 18px;
  font-size: 12.2px;
  font-weight: 500;
}
.nui-codeslots-status.is-error { color: var(--danger, #ef4444); }
.nui-codeslots-status.is-success { color: var(--success, #22c55e); }
.nui-codeslots-resend {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan, #8fe8f8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
:root[data-theme='light'] .nui-codeslots-resend { color: #1f6fb5; }
.nui-codeslots-resend[disabled] { opacity: 0.55; cursor: default; }

@keyframes nuiSlotPop {
  0% { transform: scale(0.93); }
  65% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------- 4. WarmTooltip */
.nui-warm-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(290px, calc(100vw - 16px));
  padding: 6px 10px;
  border: 1px solid var(--line-strong, rgba(143, 232, 248, 0.24));
  border-radius: 8px;
  background: color-mix(in srgb, #081022 96%, var(--surface, #0c1428));
  color: #f4f6ff;
  font-family: var(--font-sans, 'DM Sans', 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 12px 28px -8px rgba(2, 6, 23, 0.65);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96) translateY(2px);
  transition: opacity 130ms ease, transform 130ms cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme='light'] .nui-warm-tooltip {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
}
.nui-warm-tooltip.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.nui-warm-tooltip kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #8fe8f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}
/* Compact shortcut-only badge (expanded sidebar): just the key capsule. */
.nui-warm-tooltip.is-shortcut-only {
  padding: 4px 6px;
  gap: 0;
  border-radius: 7px;
}
.nui-warm-tooltip-sep { color: #8a8fa8; font-size: 11px; }

/* Prompt Editor Formatting Toolbar */
.nui-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px 4px;
  border-bottom: 1px solid var(--line, rgba(148, 163, 184, 0.14));
}
.nui-fmt-btn {
  width: 28px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.nui-fmt-btn:hover,
.nui-fmt-btn:focus-visible {
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
  border-color: var(--line, rgba(148, 163, 184, 0.2));
  color: var(--ink, #f4f6ff);
  outline: none;
}
.nui-fmt-sep {
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--line, rgba(148, 163, 184, 0.2));
}

/* ---------------------------------------------------------- 5. PeekRating */
.nui-peekrating {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 11px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.16));
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface, #0c1428) 70%, transparent);
  transition: opacity 550ms ease, transform 550ms ease;
}
.nui-peekrating.is-leaving {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.nui-peekrating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.nui-peekrating-prompt {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.nui-peekrating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nui-star-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2, #64748b);
  cursor: pointer;
  transition: transform 130ms cubic-bezier(.22, 1, .36, 1), color 130ms ease, background 130ms ease;
}
.nui-star-btn:hover:not([disabled]) {
  background: var(--surface-2, rgba(255, 255, 255, 0.07));
  transform: scale(1.12);
}
.nui-star-btn.is-active,
.nui-star-btn.is-preview {
  color: #f59e0b;
}
.nui-star-btn.is-active svg,
.nui-star-btn.is-preview svg {
  fill: currentColor;
}
.nui-star-btn:disabled {
  cursor: default;
  transform: none;
}
.nui-peekrating-label {
  min-width: 62px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan, #8fe8f8);
}
:root[data-theme='light'] .nui-peekrating-label { color: #1f6fb5; }
.nui-peekrating-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted, #94a3b8);
}
.nui-peekrating-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted, #94a3b8);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.nui-peekrating-link:hover { color: var(--ink, #f4f6ff); }
.nui-peekrating-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nui-peekrating-note-input {
  flex: 1;
  min-width: 170px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.22));
  border-radius: 7px;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  color: var(--ink, #f4f6ff);
  font-size: 12px;
  outline: none;
}
.nui-peekrating-note-input:focus {
  border-color: var(--cyan, #8fe8f8);
}
.nui-peekrating-save {
  height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--cyan, #8fe8f8) 38%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--cyan, #8fe8f8) 14%, transparent);
  color: var(--ink, #f4f6ff);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
:root[data-theme='light'] .nui-peekrating-save {
  color: #1f6fb5;
  border-color: rgba(31, 111, 181, 0.35);
  background: rgba(31, 111, 181, 0.08);
}

/* ---------------------------------------------------------- 6. FuseButton */
.nui-fuse-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-strong, rgba(148, 163, 184, 0.28));
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft, #e2e8f0);
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.nui-fuse-btn:hover:not([disabled]) {
  border-color: color-mix(in srgb, var(--cyan, #8fe8f8) 45%, var(--line-strong, rgba(148,163,184,0.3)));
  background: var(--surface-2, rgba(255, 255, 255, 0.05));
}
.nui-fuse-btn[disabled] { opacity: 0.52; cursor: not-allowed; }
.nui-fuse-btn.is-fusing {
  border-color: color-mix(in srgb, var(--warning, #f59e0b) 60%, transparent);
  color: var(--ink, #f4f6ff);
}
.nui-fuse-btn.is-done {
  border-color: color-mix(in srgb, var(--success, #22c55e) 55%, transparent);
  color: var(--success, #22c55e);
}
.nui-fuse-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: color-mix(in srgb, var(--warning, #f59e0b) 20%, transparent);
  transform-origin: left center;
  transform: scaleX(var(--fuse-progress, 0));
  pointer-events: none;
  z-index: 0;
}
.nui-fuse-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Integration layout helpers */
.nd-data-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nd-data-row-main:hover { background: var(--surface-2, rgba(255, 255, 255, 0.04)); }
.nd-data-row-main:focus-visible { outline: 2px solid var(--violet, #8b7cf6); outline-offset: 2px; }
.nd-fuse-slot,
.nset-fuse-slot,
.tools-fuse-slot {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.nd-thoughtline-host { width: 100%; }
.nd-peekrating-host { width: 100%; }
.nset-feedback-wrap {
  padding: 6px 0 4px;
  border: 0;
  background: transparent;
}
.nset-feedback-wrap .nui-peekrating {
  margin-top: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.auth-otp-box {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line-strong, rgba(143, 232, 248, 0.24));
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface, #0c1428) 80%, transparent);
}
:root[data-theme='light'] .auth-otp-box {
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, #f3f6fb);
}

/* ----------------------------------------------------------- 7. EmptyState */
.nui-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong, rgba(148, 163, 184, 0.24));
  background: color-mix(in srgb, var(--surface, #111827) 64%, transparent);
  gap: 10px;
}
.nui-empty-state.is-compact {
  padding: 24px 18px;
  gap: 8px;
}
.nui-empty-state.is-card {
  border-style: solid;
  border-color: var(--line, rgba(148, 163, 184, 0.18));
  background: var(--surface, #111827);
}
:root[data-theme='light'] .nui-empty-state {
  background: color-mix(in srgb, var(--surface, #ffffff) 86%, #f1f5f9);
}
:root[data-theme='light'] .nui-empty-state.is-card {
  background: var(--surface, #ffffff);
}
.nui-empty-state-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cyan, #8fe8f8) 12%, transparent);
  color: var(--cyan, #8fe8f8);
  border: 1px solid color-mix(in srgb, var(--cyan, #8fe8f8) 24%, transparent);
  margin-bottom: 2px;
}
.nui-empty-state.is-compact .nui-empty-state-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
:root[data-theme='light'] .nui-empty-state-ico {
  background: color-mix(in srgb, var(--blue, #1f6fb5) 10%, transparent);
  color: var(--blue, #1f6fb5);
  border-color: color-mix(in srgb, var(--blue, #1f6fb5) 22%, transparent);
}
.nui-empty-state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink, var(--a-ink, #f4f6ff));
}
.nui-empty-state.is-compact .nui-empty-state-title {
  font-size: 14.5px;
}
:root[data-theme='light'] .nui-empty-state-title {
  color: var(--ink, var(--a-ink, #0f172a));
}
.nui-empty-state-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, var(--a-muted, #94a3b8));
}
:root[data-theme='light'] .nui-empty-state-desc {
  color: var(--muted, var(--a-muted, #64748b));
}
.nui-empty-state-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.nui-empty-hint {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.2));
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
  color: var(--muted, #cbd5e1);
  font-size: 12px;
  font-family: inherit;
}
.nui-empty-hint.is-command {
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.nui-empty-hint.is-command code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: inherit;
}
.nui-empty-hint.is-command:hover {
  border-color: var(--cyan, #8fe8f8);
  color: var(--ink, #f4f6ff);
  background: color-mix(in srgb, var(--cyan, #8fe8f8) 10%, transparent);
}
:root[data-theme='light'] .nui-empty-hint {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.12);
}
:root[data-theme='light'] .nui-empty-hint.is-command:hover {
  border-color: var(--blue, #1f6fb5);
  color: var(--blue, #1f6fb5);
  background: color-mix(in srgb, var(--blue, #1f6fb5) 8%, transparent);
}
.nui-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.nui-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong, rgba(148, 163, 184, 0.24));
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  color: var(--ink, var(--a-ink, #f4f6ff));
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.nui-empty-btn:hover {
  border-color: var(--cyan, #8fe8f8);
  transform: translateY(-1px);
}
.nui-empty-btn.is-primary {
  background: var(--cyan, #8fe8f8);
  border-color: transparent;
  color: #081224;
  font-weight: 600;
}
.nui-empty-btn.is-primary:hover {
  filter: brightness(1.06);
}
:root[data-theme='light'] .nui-empty-btn {
  background: #ffffff;
  color: #0f172a;
}
:root[data-theme='light'] .nui-empty-btn.is-primary {
  background: var(--blue, #1f6fb5);
  color: #ffffff;
}
.nui-empty-btn:focus-visible,
.nui-empty-hint.is-command:focus-visible {
  outline: 2px solid var(--violet, #8b7cf6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nui-thoughtline-pulse,
  .nui-thoughtline.is-working .nui-thoughtline-label,
  .nui-toast,
  .nui-codeslot,
  .nui-warm-tooltip,
  .nui-star-btn,
  .nui-empty-btn,
  .nui-empty-hint.is-command {
    animation: none !important;
    transition: none !important;
  }
  .nui-thoughtline.is-working .nui-thoughtline-label {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--muted, #94a3b8);
    -webkit-text-fill-color: currentColor;
  }
}
