:root {
  --bg-base: #ffffff;
  --bg-elevated: #f9f9f9;
  --bg-layout: #f2f4f2;
  --bg-shell: #e6e6e6;
  --fill-active: #d8d8d8;
  --selection-bg: #d8d8d8;
  --text: #141414;
  --text-secondary: #636261;
  --text-tertiary: #838280;
  --text-quaternary: #8e8c8b;
  --border: #bcbbba;
  --border-secondary: #ddd;
  --border-tertiary: #e6e6e6;
  --border-quaternary: #efefef;
  --fill-secondary: #e3e3e3;
  --fill-tertiary: #f2f4f2;
  --primary: #80c776;
  --send: #255a41;
  --send-hover: #517b67;
  --text-on-primary: #fdfdfd;
  --success: #73b78e;
  --error: #ec5b56;
  --info: #3b81e9;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --text-placeholder: #adaba8;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --code-bg: #e8e8e8;
  --code-color: #161616;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-menu: 0 8px 28px rgba(0, 0, 0, .12);
  --shadow-panel: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-menu-strong:
    0 1px 2px rgba(0, 0, 0, .05),
    0 4px 12px rgba(0, 0, 0, .07),
    0 12px 32px rgba(0, 0, 0, .12);
  --content-w-chat: 776px;
  --content-w-page: 980px;
  --font-scale: 1;
  --fill-accent: color-mix(in srgb, var(--primary) 14%, transparent);
  --font-sans:
    "Instrument Sans",
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  --font-mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
[data-theme=dark] {
  --bg-base: #1a1a19;
  --bg-elevated: #141414;
  --bg-layout: #242423;
  --text: #ececea;
  --text-secondary: #a5a4a1;
  --text-tertiary: #82807d;
  --text-quaternary: #71706d;
  --border: #4a4947;
  --border-secondary: #3a3a38;
  --border-tertiary: #2e2e2c;
  --border-quaternary: #262625;
  --fill-secondary: #333331;
  --fill-tertiary: #242423;
  --primary: #80c776;
  --send: #4c8a6a;
  --send-hover: #5fa382;
  --text-on-primary: #fdfdfd;
  --success: #85c69e;
  --error: #ef7370;
  --info: #5c9af0;
  --code-bg: #2a2a28;
  --code-color: #a5a4a1;
  --text-placeholder: #666563;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, .3);
  --shadow-menu: 0 8px 28px rgba(0, 0, 0, .5);
  --shadow-panel: 0 1px 2px rgba(0, 0, 0, .32), 0 4px 16px rgba(0, 0, 0, .42);
  --shadow-menu-strong:
    0 1px 2px rgba(0, 0, 0, .45),
    0 4px 12px rgba(0, 0, 0, .35),
    0 12px 32px rgba(0, 0, 0, .55);
  --bg-shell: #202020;
  --fill-active: #3d3d3b;
  --selection-bg: #3d3d3b;
}
html[data-accent=forest] {
  --primary: #80c776;
  --send: #255a41;
  --send-hover: #517b67;
  --text-on-primary: #fdfdfd;
  --success: #73b78e;
}
html[data-theme=dark][data-accent=forest] {
  --primary: #80c776;
  --send: #4c8a6a;
  --send-hover: #5fa382;
  --text-on-primary: #fdfdfd;
  --success: #85c69e;
}
html[data-accent=mint] {
  --primary: #5fbfa6;
  --send: #2d6e5d;
  --send-hover: #4e8d7b;
  --text-on-primary: #f7fdfb;
  --success: #66b8a4;
}
html[data-theme=light][data-accent=mint] {
  --bg-shell: #d9e7e2;
  --bg-layout: #e5efeb;
  --bg-base: #fbfefd;
  --bg-elevated: #eef5f2;
  --border-tertiary: #d6e2dd;
  --border-quaternary: #e2ece8;
  --fill-tertiary: #e8f1ed;
  --fill-secondary: #d4e4de;
  --fill-active: #c9ded6;
  --selection-bg: #cfe4dc;
}
html[data-theme=dark][data-accent=mint] {
  --primary: #7fd4bd;
  --send: #57a68f;
  --send-hover: #6fbca6;
  --text-on-primary: #10201b;
  --success: #7ecab6;
}
html[data-accent=bee] {
  --primary: #e0b83a;
  --send: #8a7a1a;
  --send-hover: #a6932f;
  --text-on-primary: #fdfaf0;
  --success: #b3a04a;
}
html[data-theme=light][data-accent=bee] {
  --bg-shell: #e9e2c9;
  --bg-layout: #f4efdc;
  --bg-base: #fffdf4;
  --bg-elevated: #f7f2e1;
  --border-tertiary: #e4dcc0;
  --border-quaternary: #ebe4cd;
  --fill-tertiary: #f0ead3;
  --fill-secondary: #ebe1c6;
  --fill-active: #e3d7b2;
  --selection-bg: #e8dcba;
}
html[data-theme=dark][data-accent=bee] {
  --primary: #e8c95e;
  --send: #c9a84c;
  --send-hover: #d6b865;
  --text-on-primary: #241f0a;
  --success: #d4bd6d;
}
html[data-accent=parchment] {
  --primary: #a9825a;
  --send: #7a5c3e;
  --send-hover: #94745a;
  --text-on-primary: #fdf9f2;
  --success: #a3835f;
  --bg-base: #faf6ee;
  --bg-elevated: #f5efe3;
  --bg-layout: #f0e9dc;
  --bg-shell: #e4ddd0;
  --fill-active: #ddd0ba;
  --selection-bg: #e3dbc9;
  --border: #c2b49b;
  --border-secondary: #ddd2bb;
  --border-tertiary: #e7ddc9;
  --border-quaternary: #efe7d6;
  --fill-secondary: #e7dfcc;
  --fill-tertiary: #f1ead9;
  --code-bg: #efe7d5;
  --text-placeholder: #b3a892;
}
html[data-theme=dark][data-accent=parchment] {
  --primary: #b89a76;
  --send: #a08260;
  --send-hover: #b5977a;
  --text-on-primary: #221c13;
  --success: #bfa484;
  --bg-base: #201d18;
  --bg-elevated: #1a1712;
  --bg-layout: #262219;
  --bg-shell: #232118;
  --fill-active: #3b352a;
  --selection-bg: #3d382c;
  --border: #4d4436;
  --border-secondary: #3b352a;
  --border-tertiary: #302a21;
  --border-quaternary: #262119;
  --fill-secondary: #3a3327;
  --fill-tertiary: #2a2419;
  --code-bg: #2b261d;
  --text-placeholder: #6b6151;
}
html[data-font=serif] {
  --font-sans:
    Georgia,
    "Times New Roman",
    "Songti SC",
    "STSong",
    "SimSun",
    "Noto Serif CJK SC",
    serif;
}
html[data-content-width=wide] {
  --content-w-chat: 1000px;
  --content-w-page: 1240px;
}
html[data-font-size=small] {
  --font-scale: .9;
}
html[data-font-size=large] {
  --font-scale: 1.1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
::selection {
  background: var(--selection-bg);
  color: inherit;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-layout);
  color: var(--text);
  font-size: calc(13px * var(--font-scale));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}
.hidden {
  display: none !important;
}
@keyframes nq-activity-detail-enter {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nq-artifact-enter {
  0% {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes nq-answer-dot {
  0%, 70%, to {
    opacity: .25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes nq-menu-enter {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes nq-menu-enter-up {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes nq-hover-card-enter {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-100% + 3px)) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}
@keyframes nq-dialog-mask-enter {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nq-dialog-enter {
  0% {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes nq-session-enter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nq-progressive-enter {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nq-session-spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes nq-stage-arrow-running {
  0%, to {
    opacity: .58;
    transform: translateX(-1px);
  }
  50% {
    opacity: 1;
    transform: translateX(1px);
  }
}
@keyframes nq-stage-arrow-running-open {
  0%, to {
    opacity: .58;
    transform: translateX(-1px);
  }
  50% {
    opacity: 1;
    transform: translateX(1px);
  }
}
@keyframes nq-pulse {
  0%, to {
    opacity: .35;
    transform: scale(.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.nq-progressive-enter {
  animation: nq-progressive-enter .18s var(--ease) both;
}
.nq-session-enter {
  animation: nq-session-enter .22s var(--ease) both;
}
.nq-activity-detail-enter {
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-menu-enter {
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-dropdown.nq-menu-enter-up {
  animation-name: nq-menu-enter-up;
  transform-origin: 50% 100%;
}
.nq-hover-card-enter {
  animation: nq-hover-card-enter .12s var(--ease) both;
}
.nq-artifact-enter {
  animation: nq-artifact-enter .18s var(--ease) both;
}
.nq-spin {
  animation: nq-session-spin .9s linear infinite;
}
.nq-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s var(--ease);
}
.nq-disclosure.is-open {
  transform: rotate(90deg);
}
.nq-disclosure.is-running svg {
  animation: nq-stage-arrow-running .82s cubic-bezier(.4, 0, .2, 1) infinite;
}
.nq-answer-loading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nq-answer-loading i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: nq-answer-dot 1.1s ease-in-out infinite;
}
.nq-answer-loading i:nth-child(2) {
  animation-delay: .12s;
}
.nq-answer-loading i:nth-child(3) {
  animation-delay: .24s;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.icon-xs {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.nq-icon-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.nq-icon-btn:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.nq-dropdown {
  position: fixed;
  z-index: 120;
  min-width: 210px;
  max-width: 340px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  padding: 6px;
  animation: nq-menu-enter .14s var(--ease) both;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.nq-dropdown:hover {
  scrollbar-color: var(--border) transparent;
}
.nq-dropdown::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.nq-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.nq-dropdown::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
}
.nq-dropdown:hover::-webkit-scrollbar-thumb {
  background: var(--border);
}
.nq-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.nq-menu-item:hover {
  background: var(--bg-layout);
}
.nq-menu-item .nq-menu-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-menu-check {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nq-menu-item.active {
  color: var(--send);
  font-weight: 600;
}
.nq-menu-item .nq-menu-badge {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-quaternary);
  border: 1px solid var(--border-tertiary);
  border-radius: 4px;
  padding: 1px 5px;
}
.nq-menu-sep {
  height: 1px;
  background: var(--border-quaternary);
  margin: 5px 4px;
}
.nq-menu-item-chevron {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-wsfile-group {
  display: flex;
  flex-direction: column;
}
.nq-wsfile-dir {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.nq-wsfile-dir:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-wsfile-dir svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-wsfile-chevron {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-quaternary);
  transition: transform .12s var(--ease);
}
.nq-wsfile-chevron.is-open {
  transform: rotate(90deg);
}
.nq-wsfile-files {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
}
.nq-wsfile-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-wsfile-file:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-wsfile-file svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-wsfile-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-wsfile-add {
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--text-tertiary);
}
.nq-wsfile-file:hover .nq-wsfile-add {
  display: inline-flex;
}
.nq-wsfile-add:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-scroll {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.nq-scroll:hover {
  scrollbar-color: var(--border) transparent;
}
.nq-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.nq-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.nq-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 2px;
}
.nq-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--border);
}
.nq-tooltip {
  --nq-tt-bg: #141414;
  --nq-tt-bd: #141414;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 130;
  max-width: 320px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  background: var(--nq-tt-bg);
  border: 1px solid var(--nq-tt-bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  white-space: pre-line;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  opacity: 0;
}
[data-theme=dark] .nq-tooltip {
  --nq-tt-bg: #262625;
  --nq-tt-bd: #3f3f3d;
  color: var(--text);
}
.nq-tooltip.is-shown {
  visibility: visible;
  opacity: 1;
  animation: nq-tooltip-enter .12s var(--ease) both;
}
@keyframes nq-tooltip-enter {
  0% {
    opacity: 0;
    transform: translateY(-3px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.nq-tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--nq-tt-bg);
  transform: rotate(45deg);
}
.nq-tooltip[data-side=top] .nq-tooltip-arrow {
  border-right: 1px solid var(--nq-tt-bd);
  border-bottom: 1px solid var(--nq-tt-bd);
}
.nq-tooltip[data-side=bottom] .nq-tooltip-arrow {
  border-left: 1px solid var(--nq-tt-bd);
  border-top: 1px solid var(--nq-tt-bd);
}
.nq-tooltip[data-side=left] .nq-tooltip-arrow {
  border-top: 1px solid var(--nq-tt-bd);
  border-right: 1px solid var(--nq-tt-bd);
}
.nq-tooltip[data-side=right] .nq-tooltip-arrow {
  border-left: 1px solid var(--nq-tt-bd);
  border-bottom: 1px solid var(--nq-tt-bd);
}
.nq-tooltip--dark {
  background: #1f2328;
  border-color: #1f2328;
  color: #f0f3f6;
  padding: 7px 10px;
  white-space: normal;
}
.nq-tooltip--dark .nq-tooltip-text {
  display: none;
}
.nq-tooltip:not(.nq-tooltip--dark) .nq-tooltip-title,
.nq-tooltip:not(.nq-tooltip--dark) .nq-tooltip-row {
  display: none;
}
.nq-tooltip-title {
  font-weight: 600;
}
.nq-tooltip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 2px;
}
.nq-tooltip-label {
  color: #a4adba;
  font-size: 11px;
}
.nq-tooltip-value {
  font-weight: 600;
}
.nq-tooltip--dark .nq-tooltip-arrow {
  background: #1f2328;
}
.nq-tooltip--dark[data-side=top] .nq-tooltip-arrow {
  border-right-color: #1f2328;
  border-bottom-color: #1f2328;
}
.nq-tooltip--dark[data-side=bottom] .nq-tooltip-arrow {
  border-left-color: #1f2328;
  border-top-color: #1f2328;
}
.nq-tooltip--dark[data-side=left] .nq-tooltip-arrow {
  border-top-color: #1f2328;
  border-right-color: #1f2328;
}
.nq-tooltip--dark[data-side=right] .nq-tooltip-arrow {
  border-left-color: #1f2328;
  border-bottom-color: #1f2328;
}
@media (prefers-reduced-motion: reduce) {
  .nq-tooltip.is-shown {
    animation: none;
  }
}
.nq-toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.nq-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  animation: nq-menu-enter .14s var(--ease) both;
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}
.nq-toast.is-leaving {
  opacity: 0;
  transform: translateY(4px);
}
.nq-toast > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nq-toast-text {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-toast-success > svg {
  color: var(--success);
}
.nq-toast-error > svg {
  color: var(--error);
}
.nq-toast-info > svg {
  color: var(--text-tertiary);
}
.nq-selection-bar {
  position: fixed;
  z-index: 135;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-selection-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nq-selection-btn:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-selection-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-selection-btn > svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-selection-btn:hover > svg {
  color: var(--text-secondary);
}
.nq-skeleton {
  background: var(--fill-tertiary);
  border-radius: var(--radius);
  animation: nq-skeleton-pulse 1.2s ease-in-out infinite;
}
@keyframes nq-skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .45;
  }
}
.nq-doc-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 4px;
}
.nq-doc-skeleton .nq-skeleton {
  height: 12px;
}
.nq-sdoc-skel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}
.nq-sdoc-skel-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
}
.nq-sdoc-skel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-sdoc-skel-title {
  width: 60%;
  height: 10px;
}
.nq-sdoc-skel-meta {
  width: 40%;
  height: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .nq-skeleton {
    animation: none;
    opacity: .6;
  }
}
.auth-page {
  min-height: 100dvh;
  background: var(--bg-base);
  color: #25272c;
}
@media (min-width: 1024px) {
  .auth-page {
    display: grid;
    grid-template-columns: 43% 57%;
  }
}
.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 24px;
}
@media (min-width: 1024px) {
  .auth-form-section {
    padding: 40px;
  }
}
.auth-card {
  width: 100%;
  max-width: 304px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .auth-card {
    transform: translateY(-8px);
  }
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.auth-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-logo-mark svg {
  width: 28px;
  height: 28px;
}
.auth-logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.auth-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1;
}
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  border: none;
  background: var(--bg-base);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  box-shadow: inset 0 0 0 1px var(--border-secondary);
  position: relative;
}
.auth-btn:hover {
  background: var(--bg-layout);
}
.auth-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.auth-btn-primary {
  background: #22252b;
  color: #fff;
  box-shadow: none;
}
[data-theme=dark] .auth-btn-primary {
  background: #e4e4e0;
  color: #141414;
}
.auth-btn-primary:hover {
  background: #33363d;
}
[data-theme=dark] .auth-btn-primary:hover {
  background: #fff;
}
.auth-apple-icon {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text);
}
.auth-apple-icon svg {
  width: 18px;
  height: 18px;
}
.auth-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--border-secondary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  background: var(--bg-base);
  color: var(--text);
}
.auth-input:focus {
  border-color: var(--text);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-quaternary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-quaternary);
}
.auth-status {
  min-height: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-secondary);
}
.auth-status.error {
  color: var(--error);
}
.auth-google-host {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 40px;
  align-items: center;
  overflow: hidden;
}
.auth-terms {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text-quaternary);
}
.auth-terms a {
  color: var(--text-tertiary);
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-terms a:hover {
  text-decoration: underline;
}
.auth-hero {
  position: relative;
  display: none;
  min-height: 100dvh;
  overflow: hidden;
  background: #173047;
}
@media (min-width: 1024px) {
  .auth-hero {
    display: block;
  }
}
.auth-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  bottom: 0;
  height: 50%;
  top: auto;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .65),
      rgba(0, 0, 0, .15),
      transparent);
}
.auth-hero-text {
  position: absolute;
  bottom: 40px;
  right: 48px;
  margin: 0;
  max-width: min(78%, 760px);
  text-align: right;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
@media (min-width: 1280px) {
  .auth-hero-text {
    bottom: 48px;
    right: 56px;
    font-size: 64px;
  }
}
.auth-hero-mobile {
  position: relative;
  margin-top: 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 280px;
  background: #173047;
}
@media (min-width: 1024px) {
  .auth-hero-mobile {
    display: none;
  }
}
.auth-hero-mobile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.auth-hero-mobile .auth-hero-overlay {
  height: 72%;
}
.auth-hero-mobile .auth-hero-text {
  bottom: 20px;
  right: 20px;
  font-size: 30px;
  max-width: 240px;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-base);
  z-index: 200;
}
.loading-mark {
  width: 48px;
  height: 48px;
}
.loading-mark img {
  width: 100%;
  height: 100%;
}
.loading-label {
  font-size: 13px;
  color: var(--text-tertiary);
}
.error-banner {
  padding: 10px 16px;
  background: color-mix(in srgb, var(--error) 8%, var(--bg-base));
  border-bottom: 1px solid color-mix(in srgb, var(--error) 30%, transparent);
  color: var(--error);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.error-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  opacity: .6;
}
.error-banner-close:hover {
  opacity: 1;
}
.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  transition: grid-template-columns .2s var(--ease);
  height: 100dvh;
  background: var(--bg-shell);
  overflow: hidden;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}
.nq-sidebar {
  background: transparent;
  border-right: 1px solid var(--border-quaternary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.nq-sidebar > * {
  min-width: 284px;
}
.app-shell.sidebar-collapsed .nq-sidebar {
  visibility: hidden;
  transition: visibility 0s .2s;
}
.nq-window-bar {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
}
html.is-desktop .nq-window-bar {
  -webkit-app-region: drag;
}
html.is-desktop .nq-window-bar button {
  -webkit-app-region: no-drag;
}
.nq-window-bar .nq-sidebar-toggle {
  margin-left: auto;
}
.nq-window-traffic-pad {
  display: none;
}
html.is-desktop .nq-window-traffic-pad {
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 14px;
  pointer-events: none;
}
.nq-sidebar-mode-wrap {
  flex-shrink: 0;
  padding: 2px 12px 8px;
}
.nq-mode-tabs {
  height: 30px;
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.nq-mode-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    color .15s,
    background .15s,
    border-color .15s;
  white-space: nowrap;
}
.nq-mode-tab:hover {
  color: var(--text-secondary);
  background: var(--fill-tertiary);
}
.nq-mode-tab.active {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: var(--primary);
  color: var(--primary);
}
.nq-mode-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-panel-switcher {
  height: 28px;
  margin: 2px 12px 0;
  border-radius: 12px;
  background: var(--fill-tertiary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px;
}
.nq-panel-seg {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    color .15s,
    background .15s,
    box-shadow .15s;
}
.nq-panel-seg:hover {
  color: var(--text-secondary);
}
.nq-panel-seg.active {
  background: var(--bg-base);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.nq-panel-seg:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
  outline: none;
}
[data-theme=dark] .nq-panel-switcher {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4);
}
[data-theme=dark] .nq-panel-seg.active {
  background: var(--fill-secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.nq-primary-nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px 10px;
}
.nq-nav-btn {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-nav-btn:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-nav-btn.is-active {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-nav-btn .nq-nav-kbd {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--text-quaternary);
  border: 1px solid var(--border-quaternary);
  border-radius: 4px;
  padding: 1px 5px;
  opacity: 0;
  transition: opacity .12s;
}
.nq-nav-btn:hover .nq-nav-kbd,
.nq-nav-btn:focus-visible .nq-nav-kbd {
  opacity: 1;
}
.nq-sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}
.nq-sidebar-section {
  padding: 6px 12px 0;
}
#sidebar-folders {
  flex-shrink: 0;
}
#sidebar-recent {
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
#sidebar-recent .nq-sidebar-h3,
#sidebar-recent .nq-recent-more {
  flex-shrink: 0;
}
.nq-sidebar-h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 4px 8px;
  white-space: nowrap;
  overflow: hidden;
}
[data-theme=dark] .nq-sidebar-h3 {
  color: #85837f;
}
.nq-sidebar-h3 .nq-h3-add:last-child {
  margin-left: auto;
}
.nq-sidebar-h3 .nq-h3-add:hover {
  color: var(--text);
  background: var(--fill-tertiary);
}
.nq-sidebar-h3 .nq-h3-add {
  border-radius: 5px;
}
.nq-sidebar-h3 .nq-h3-filter {
  margin-left: auto;
}
.nq-sidebar-h3 .nq-h3-add,
.nq-sidebar-h3 .nq-h3-filter {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .12s var(--ease),
    visibility .12s var(--ease),
    background .12s,
    color .12s;
}
.nq-sidebar-h3:hover .nq-h3-add,
.nq-sidebar-h3:hover .nq-h3-filter,
.nq-sidebar-h3.nq-menu-open .nq-h3-add,
.nq-sidebar-h3.nq-menu-open .nq-h3-filter {
  opacity: 1;
  visibility: visible;
}
.nq-project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px 0 6px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-project-item:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-project-item.active {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-project-item .nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-project-item .nq-item-actions {
  display: none;
  align-items: center;
  gap: 2px;
}
.nq-project-item:hover .nq-item-actions,
.nq-project-item.nq-menu-open .nq-item-actions {
  display: flex;
}
.nq-project-item .nq-item-actions .nq-icon-btn {
  width: 20px;
  height: 20px;
}
.nq-project-item .nq-item-actions .nq-icon-btn svg {
  width: 11px;
  height: 11px;
}
.nq-ws-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--text-on-primary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
.nq-ws-badge.is-icon {
  background: none;
  border-radius: 0;
  color: var(--text-secondary);
}
.nq-ws-badge.is-icon svg {
  width: 14px;
  height: 14px;
}
.nq-project-item.active .nq-ws-badge.is-icon {
  color: var(--send);
}
.nq-sidebar-h3.nq-sidebar-h3-sub {
  padding: 6px 4px 2px;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--text-quaternary);
}
.nq-ws-child {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 8px 0 33px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-ws-child:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-ws-child.active {
  color: var(--text);
  background: var(--fill-active);
}
.nq-ws-child .nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-size: 13px;
}
.nq-ws-child svg {
  flex-shrink: 0;
}
.nq-ws-child .nq-item-emoji {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}
.nq-ws-child.nq-session-running::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--error);
  animation: nq-pulse 1.2s ease-in-out infinite;
}
.nq-ws-child.nq-ws-empty {
  cursor: default;
  color: var(--text-quaternary);
  font-size: 11px;
}
.nq-ws-child.nq-ws-empty:hover {
  background: transparent;
  color: var(--text-quaternary);
}
.nq-ws-child.nq-ws-more {
  color: var(--text-quaternary);
  font-size: 11px;
}
.nq-ws-child.nq-ws-more:hover {
  color: var(--text-secondary);
}
.nq-history-item .nq-pin-ind {
  flex-shrink: 0;
  display: flex;
  color: var(--text-quaternary);
}
.nq-history-item .nq-pin-ind svg {
  width: 10px;
  height: 10px;
}
.nq-history-item:hover .nq-pin-ind {
  color: var(--text-secondary);
}
.nq-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px 0 4px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-history-item:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-history-item.active {
  color: var(--text);
  background: var(--fill-active);
}
[data-theme=dark] .nq-history-item.active {
  background: var(--fill-active);
}
.nq-history-item .nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #625c55;
}
.nq-history-item:hover .nq-item-title,
.nq-history-item.active .nq-item-title {
  color: var(--text);
}
[data-theme=dark] .nq-history-item .nq-item-title {
  color: #a09a94;
}
.nq-history-item .nq-item-actions {
  display: none;
  align-items: center;
  gap: 2px;
}
.nq-history-item:hover .nq-item-actions,
.nq-history-item.nq-menu-open .nq-item-actions {
  display: flex;
}
.nq-history-item .nq-item-actions .nq-icon-btn {
  width: 20px;
  height: 20px;
}
.nq-history-item .nq-item-actions .nq-icon-btn svg {
  width: 11px;
  height: 11px;
}
.nq-history-item.nq-session-running::after {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--error);
  animation: nq-pulse 1.2s ease-in-out infinite;
}
.nq-sidebar-empty {
  font-size: 12px;
  color: var(--text-quaternary);
  padding: 2px 8px 6px;
}
.nq-recent-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.nq-recent-more {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 26px;
  margin-top: 2px;
  padding: 0 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 11px;
  font-family: inherit;
  color: var(--text-tertiary);
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-recent-more:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-recent-more .nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-recent-more svg {
  flex-shrink: 0;
}
.nq-sidebar-footer {
  position: relative;
  flex-shrink: 0;
  border-top: none;
  padding: 6px 12px 8px;
}
.nq-sidebar-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background:
    linear-gradient(
      to right,
      transparent,
      var(--border-secondary) 16%,
      var(--border-secondary) 84%,
      transparent);
}
.nq-sidebar-footer::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background:
    linear-gradient(
      to right,
      transparent,
      color-mix(in srgb, var(--bg-base) 65%, transparent) 24%,
      color-mix(in srgb, var(--bg-base) 65%, transparent) 76%,
      transparent);
}
.nq-footer-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px;
}
.nq-account-row {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.nq-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
}
.nq-account-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-sidebar-reveal {
  position: fixed;
  left: 12px;
  top: 7px;
  z-index: 60;
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.app-shell.sidebar-collapsed .nq-sidebar-reveal {
  display: inline-flex;
}
.nq-sidebar-reveal:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-sidebar-reveal:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
  outline: none;
}
.nq-sidebar-reveal svg {
  flex-shrink: 0;
}
@media (max-width: 899px) {
  .app-shell.sidebar-collapsed .nq-sidebar-reveal {
    display: none;
  }
}
.nq-main {
  margin: 0;
  background: var(--bg-base);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.nq-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.nq-main-topbar {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: transparent;
  min-width: 0;
  transition: padding-left .2s var(--ease);
}
.nq-main-topbar .nq-icon-btn {
  width: 22px;
  height: 22px;
}
.nq-main-topbar .nq-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
html.is-desktop .nq-main-topbar {
  -webkit-app-region: drag;
}
html.is-desktop .nq-main-topbar button {
  -webkit-app-region: no-drag;
}
.nq-nav-group {
  position: fixed;
  left: 82px;
  top: 7px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
}
html.is-desktop .nq-nav-group button {
  -webkit-app-region: no-drag;
}
@media (max-width: 899px) {
  .nq-nav-group {
    display: none;
  }
}
html.is-desktop .nq-window-bar .nq-sidebar-toggle {
  display: none;
}
html.is-desktop .app-shell.sidebar-settings .nq-sidebar-settings {
  padding-top: 46px;
}
.nq-main-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
  user-select: none;
  cursor: pointer;
}
.nq-main-title-icon:empty {
  display: none;
}
.nq-main-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.is-desktop .app-shell.sidebar-collapsed .nq-main-topbar {
  padding-left: 190px;
}
.app-shell.sidebar-collapsed .nq-main-topbar {
  padding-left: 48px;
}
.nq-tb-avatar {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
  transition: background .12s var(--ease);
}
.nq-tb-avatar:hover {
  background: var(--fill-secondary);
}
.nq-tb-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
@media (max-width: 1099px) {
  html.is-desktop .nq-main-topbar .nq-side-chat-toggle,
  html.is-desktop .nq-main-topbar .nq-feedback-btn {
    display: none;
  }
}
@media (max-width: 899px) {
  .nq-main-topbar {
    display: none;
  }
}
.nq-mobile-menu {
  position: absolute;
  left: 12px;
  top: 7px;
  z-index: 20;
  display: none;
}
.nq-generic-header {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-generic-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-generic-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}
.nq-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  color: var(--text-tertiary);
}
.nq-placeholder .nq-placeholder-icon {
  opacity: .5;
}
.nq-placeholder p {
  font-size: 13px;
}
.nq-static-body {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.nq-static-body h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.nq-static-body h2:first-child {
  margin-top: 0;
}
.nq-static-body p {
  margin: 8px 0;
}
.nq-session-conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.nq-conversation-inner {
  max-width: var(--content-w-chat);
  margin: 0 auto;
  padding: 28px 12px calc(var(--composer-h, 129px) + 71px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nq-chat-main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--composer-h, 129px) + 18px);
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--bg-base) 30px);
}
.nq-hero-state {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 0 36px;
  text-align: center;
}
.nq-hero-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.nq-hero-sub {
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #ababab;
}
.nq-hero-workspace {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 1px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: color .12s var(--ease);
}
.nq-hero-workspace-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-secondary);
}
.nq-hero-workspace svg {
  flex-shrink: 0;
}
.nq-hero-workspace:hover {
  color: var(--text);
}
.nq-hero-workspace:hover .nq-hero-workspace-name {
  text-decoration-color: currentColor;
}
.nq-hero-workspace:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-hero-art-block {
  display: flex;
  justify-content: center;
}
.nq-art-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  padding: 13px 18px 13px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.nq-art-visual {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  color: var(--text-tertiary);
}
.nq-art-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nq-art-body {
  flex: 1;
  min-width: 0;
}
.nq-art-number {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-art-caption {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--text-tertiary);
}
.nq-art-stamp {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
}
.nq-art-stamp::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.nq-art-stamp-text {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-quaternary);
}
.nq-hero-heat-block {
  width: 100%;
  max-width: 752px;
}
.nq-hero-heat-card {
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 16px 13px;
  text-align: left;
}
.nq-hero-heat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.nq-hero-heat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nq-hero-heat-daily {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-hero-heat-scroll {
  overflow-x: auto;
}
.nq-hero-heat-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  grid-auto-columns: 11px;
  gap: 2px;
}
.nq-hero-heat-months {
  display: grid;
  grid-template-columns: repeat(53, 11px);
  gap: 2px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
.nq-hero-heat-month {
  height: 12px;
  line-height: 12px;
  white-space: nowrap;
}
.nq-hero-heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--fill-tertiary);
}
.nq-hero-heat-cell.level-1 {
  background: color-mix(in srgb, var(--primary) 30%, var(--fill-tertiary));
}
.nq-hero-heat-cell.level-2 {
  background: color-mix(in srgb, var(--primary) 60%, var(--fill-tertiary));
}
.nq-hero-heat-cell.level-3 {
  background: var(--primary);
}
.nq-hero-heat-cell.future {
  background: transparent;
}
@media (max-width: 899px) {
  .nq-hero-state {
    min-height: 44vh;
    gap: 14px;
  }
  .nq-hero-title {
    font-size: 22px;
  }
  .nq-art-card {
    gap: 12px;
    padding: 11px 14px 11px 11px;
  }
  .nq-art-visual {
    width: 84px;
    height: 63px;
  }
  .nq-art-number {
    font-size: 21px;
  }
  .nq-art-stamp {
    width: 36px;
    height: 36px;
    top: -9px;
    right: -9px;
  }
}
.nq-user-message {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.nq-user-bubble {
  background: var(--bg-layout);
  color: var(--text);
  padding: 10px 13px;
  border-radius: var(--radius-lg);
  font-size: calc(13px * var(--font-scale));
  line-height: 1.65;
  max-width: 752px;
  white-space: pre-wrap;
  word-break: break-word;
}
.nq-user-foot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.nq-user-message:hover .nq-user-foot,
.nq-message-wrap:focus-within .nq-user-foot {
  opacity: 1;
  visibility: visible;
}
.nq-user-foot-time {
  font-size: 11px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nq-user-foot .nq-icon-btn {
  width: 20px;
  height: 20px;
}
.nq-user-foot .nq-icon-btn svg {
  width: 11px;
  height: 11px;
}
.nq-assistant-message {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nq-assistant-bubble {
  font-size: calc(13px * var(--font-scale));
  line-height: 1.65;
  max-width: 752px;
  color: #161616;
  word-break: break-word;
}
[data-theme=dark] .nq-assistant-bubble {
  color: var(--text);
}
.nq-assistant-bubble p {
  margin: 0 0 8px;
}
.nq-assistant-bubble p:last-child {
  margin-bottom: 0;
}
.nq-assistant-bubble h1,
.nq-assistant-bubble h2,
.nq-assistant-bubble h3,
.nq-assistant-bubble h4 {
  margin: 12px 0 5px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.nq-assistant-bubble h1 {
  font-size: 17px;
  font-weight: 600;
}
.nq-assistant-bubble h2 {
  font-size: 15.5px;
  font-weight: 600;
}
.nq-assistant-bubble h3 {
  font-size: 14px;
}
.nq-assistant-bubble ul,
.nq-assistant-bubble ol {
  margin: 4px 0 8px;
  padding-left: 22px;
}
.nq-assistant-bubble li {
  margin: 2px 0;
}
.nq-assistant-bubble a {
  color: var(--send);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--send) 55%, transparent);
}
.nq-assistant-bubble a:hover {
  text-decoration-style: solid;
  text-decoration-color: var(--send);
}
.nq-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  margin-right: 3px;
  vertical-align: -2px;
}
.nq-link-icon svg {
  width: 12px;
  height: 12px;
}
.nq-link-favicon {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: block;
}
.nq-assistant-bubble blockquote {
  border-left: 3px solid var(--border-tertiary);
  margin: 6px 0;
  padding: 2px 10px;
  color: var(--text-secondary);
}
.nq-assistant-bubble img {
  max-width: 100%;
  border-radius: var(--radius);
}
.nq-img-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  margin: 4px 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 12px;
  line-height: 20px;
  color: var(--text-tertiary);
  vertical-align: middle;
}
.nq-img-fallback-name {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary, inherit);
}
.nq-img-fallback-hint {
  flex: none;
  opacity: 0.8;
}
.nq-assistant-bubble hr {
  border: none;
  border-top: 1px solid var(--border-quaternary);
  margin: 12px 0;
}
.nq-assistant-bubble table {
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.nq-assistant-bubble th,
.nq-assistant-bubble td {
  border: 1px solid var(--border-tertiary);
  padding: 6px 10px;
  text-align: left;
}
.nq-assistant-bubble thead {
  border-bottom: 1px solid var(--border-secondary);
}
.nq-assistant-bubble th {
  background: var(--bg-layout);
  font-weight: 500;
}
.nq-assistant-bubble tbody tr:hover {
  background: var(--bg-elevated);
}
.nq-assistant-bubble input[type=checkbox] {
  accent-color: var(--send);
  margin-right: 6px;
  vertical-align: -1px;
}
.nq-assistant-bubble li:has(> input[type=checkbox]) {
  list-style: none;
  margin-left: -20px;
}
.nq-assistant-bubble code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .94em;
}
.md-code {
  margin: 8px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-layout);
}
.md-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 2px;
  font-size: 12px;
  color: var(--text);
}
.md-code-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-secondary);
}
.md-code-file svg {
  flex-shrink: 0;
}
.md-code-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}
.md-code-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.md-code-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .12s, background .12s;
}
.md-code-icon-btn:hover {
  color: var(--text);
  background: var(--fill-secondary);
}
.md-code-icon-btn.on {
  color: var(--send);
}
.md-code pre {
  margin: 0;
  padding: 10px 12px;
  overflow-x: auto;
  background: transparent;
}
.md-code pre code {
  background: transparent;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}
.md-code.is-wrap pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}
.nq-flow {
  background: var(--bg-layout);
}
.nq-flow pre {
  padding: 16px 20px;
}
.nq-flow pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
}
.nq-preview-pane.is-doc .nq-preview-body {
  background: var(--bg-layout);
  padding: 0;
}
.nq-preview-body .nq-doc-page,
.nq-doc-page.is-card {
  display: block;
  min-height: 0;
  width: min(calc(100% - 64px), 880px);
  margin: 34px auto 96px;
  padding: 10px 30px 0;
  border: 1px solid var(--border-quaternary);
  border-radius: 8px;
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}
.nq-preview-pane.is-doc:not(.is-full) .nq-doc-page {
  width: min(calc(100% - 24px), 720px);
  margin: 16px auto 48px;
}
.nq-doc-page-title {
  padding: 18px 4px 0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--text);
  overflow-wrap: anywhere;
}
.nq-doc-prose {
  padding: 18px 6px 96px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text);
  max-width: none;
}
.nq-doc-prose p {
  margin: 0 0 10px;
}
.nq-doc-prose p:last-child {
  margin-bottom: 0;
}
.nq-doc-prose h1,
.nq-doc-prose h2 {
  margin: 34px 0 13px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.nq-doc-prose h3 {
  margin: 18px 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.nq-doc-prose > h1:first-child {
  display: none;
}
.nq-doc-edit > .nq-doc-page {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
}
.nq-preview-pane.is-doc:not(.is-full) .nq-doc-edit {
  padding: 16px;
}
.nq-preview-pane.is-doc.is-full .nq-doc-edit {
  padding: 20px 24px;
}
.nq-preview-pane.is-doc:not(.is-full) .nq-doc-edit > .nq-doc-page {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.nq-preview-pane.is-doc:not(.is-full) .nq-preview-body:has(> .nq-doc-edit) {
  background: var(--bg-base);
}
.nq-preview-pane.is-doc:not(.is-full) .nq-doc-edit > .nq-doc-page > .nq-doc-page-title {
  display: none;
}
.nq-preview-pane.is-full .nq-doc-edit-textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 6px 96px;
}
.nq-preview-pane.is-full .nq-doc-edit-bar {
  padding: 0 6px 14px;
}
.nq-doc-split-scroll .nq-doc-page-title {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}
.nq-message-wrap {
  position: relative;
}
.nq-message-actions {
  position: absolute;
  top: -24px;
  right: 0;
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  padding: 2px;
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.nq-message-wrap:hover .nq-message-actions {
  display: flex;
}
.nq-message-actions .nq-icon-btn {
  width: 22px;
  height: 22px;
}
.nq-message-actions .nq-icon-btn svg {
  width: 12px;
  height: 12px;
}
.nq-msg-usage {
  font-size: 11px;
  color: var(--text-quaternary);
  margin-top: 4px;
}
.nq-notice-hint {
  color: var(--text-tertiary);
  font-size: 12px;
  font-style: italic;
}
.nq-answer-loading {
  color: var(--text-tertiary);
  font-size: 13px;
}
.nq-answer-loading-spinner {
  display: inline-flex;
  align-items: center;
  color: var(--text-quaternary);
}
.nq-answer-loading-text {
  white-space: nowrap;
}
.nq-answer-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nq-answer-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: nq-answer-dot 1.1s ease-in-out infinite;
}
.nq-answer-dots i:nth-child(2) {
  animation-delay: .12s;
}
.nq-answer-dots i:nth-child(3) {
  animation-delay: .24s;
}
.nq-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  max-width: 752px;
  min-width: 0;
}
.nq-message-actions-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -7px;
  flex-wrap: wrap;
}
.nq-message-actions-inline .nq-icon-btn {
  width: 24px;
  height: 24px;
}
.nq-message-actions-inline .nq-icon-btn svg {
  width: 13px;
  height: 13px;
}
.nq-message-actions-inline .nq-icon-btn.active {
  color: var(--send);
}
.nq-message-actions .nq-icon-btn.active {
  color: var(--send);
}
.nq-msg-meta .nq-msg-usage {
  margin-top: 0;
  white-space: nowrap;
}
.nq-msg-timestamp {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-quaternary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .18s ease;
}
.nq-message-wrap:hover .nq-msg-timestamp,
.nq-message-wrap:focus-within .nq-msg-timestamp {
  opacity: 1;
}
.nq-attempt-pane.is-hidden {
  display: none;
}
.nq-attempt-pager {
  display: inline-flex;
  align-items: center;
  margin-left: -7px;
  margin-right: 7px;
  flex-shrink: 0;
}
.nq-attempt-pager.hidden {
  display: none;
}
.nq-attempt-btn {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-quaternary);
  border-radius: 4px;
  cursor: pointer;
}
.nq-attempt-btn svg {
  width: 12px;
  height: 12px;
}
.nq-attempt-btn:hover:not(:disabled) {
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-attempt-btn:disabled {
  opacity: .3;
  cursor: default;
}
.nq-attempt-count {
  font-size: 11px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
  padding: 0 3px;
  white-space: nowrap;
}
.nq-flip-x {
  transform: rotate(180deg);
}
.nq-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  max-width: 752px;
  min-width: 0;
}
.nq-suggest-chip {
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-suggest-chip:hover {
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-suggest-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-suggest-chip-llm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nq-suggest-chip-llm .icon-xs {
  opacity: .65;
}
.nq-activity-group {
  max-width: 752px;
  min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-activity-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
  transition: color .12s;
}
.nq-activity-summary:hover {
  color: var(--text-secondary);
}
.nq-activity-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s var(--ease);
}
.nq-activity-group.is-open .nq-activity-arrow {
  transform: rotate(90deg);
}
.nq-activity-group.is-running .nq-activity-arrow svg {
  animation: nq-stage-arrow-running .82s cubic-bezier(.4, 0, .2, 1) infinite;
}
.nq-activity-label {
  font-variant-numeric: tabular-nums;
}
.nq-activity-count {
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
.nq-activity-content {
  position: relative;
  margin: 4px 0 0 6px;
  padding-left: 14px;
  border-left: 1px solid var(--border-tertiary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-activity-group:not(.is-open) .nq-activity-content {
  display: none;
}
.nq-task-step {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 4px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-quaternary);
  position: relative;
  top: 1px;
}
.nq-step-icon.ok {
  color: var(--success);
}
.nq-step-icon.error {
  color: var(--error);
}
.nq-step-icon.running {
  color: var(--text-tertiary);
}
.nq-step-icon.muted {
  color: var(--text-quaternary);
}
.nq-task-step.interrupted {
  color: var(--text-quaternary);
  cursor: default;
}
.nq-task-step.interrupted .nq-step-desc {
  color: var(--text-quaternary);
}
.nq-step-icon.interrupted {
  color: var(--text-quaternary);
}
.nq-step-desc {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nq-step-verb {
  font-weight: 600;
}
.nq-step-file {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fill-secondary);
  color: var(--text-secondary);
}
.nq-step-duration {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nq-step-detail {
  display: none;
}
.nq-step-detail.open {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-step-detail-body {
  margin: 2px 0 6px 21px;
  padding: 6px 10px;
  border-left: 1px solid var(--border-quaternary);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-height: 260px;
  overflow-y: auto;
  word-break: break-word;
}
.nq-step-detail-result {
  margin-top: 6px;
}
.nq-step-raw {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-secondary);
}
.nq-todo-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-todo-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-todo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-plan-dock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 168px;
  width: min(584px, calc(100% - 44px));
  z-index: 5;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@keyframes nq-plan-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.nq-plan-dock.nq-progressive-enter {
  animation: nq-plan-enter .22s var(--ease) both;
}
.nq-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.nq-plan-summary:hover {
  background: var(--fill-tertiary);
}
.nq-plan-summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.nq-plan-summary-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.nq-plan-summary-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text-secondary);
}
.nq-plan-status-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.nq-plan-status-icon.running {
  color: var(--primary);
}
.nq-plan-status-icon.ok {
  color: var(--success);
}
.nq-plan-status-icon.muted {
  color: var(--text-quaternary);
}
.nq-plan-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-plan-count {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-plan-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-quaternary);
  transition: transform .15s var(--ease);
}
.nq-plan-dock.is-open .nq-plan-chevron {
  transform: rotate(180deg);
}
.nq-plan-progress-track {
  display: none;
  height: 1px;
  background: var(--border-quaternary);
}
.nq-plan-dock.is-running .nq-plan-progress-track {
  display: block;
}
.nq-plan-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: color-mix(in srgb, var(--primary) 68%, transparent);
  position: relative;
  overflow: hidden;
  transition: width .3s var(--ease);
}
.nq-plan-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .9),
      transparent);
  transform: translateX(-110%);
  animation: nq-plan-shimmer 1.6s ease-in-out infinite;
}
@keyframes nq-plan-shimmer {
  60%, 100% {
    transform: translateX(350%);
  }
}
.nq-plan-items {
  display: none;
  border-top: 1px solid var(--border-quaternary);
  padding: 8px 14px 10px;
  max-height: 240px;
  overflow-y: auto;
}
.nq-plan-dock.is-open .nq-plan-items {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-plan-items .nq-todo-item {
  color: var(--text-secondary);
}
.nq-plan-items .nq-todo-item .nq-step-icon.ok {
  color: var(--success);
}
.nq-thinking-step {
  min-width: 0;
}
.nq-thinking-step-head .nq-step-icon.muted {
  color: var(--success);
}
.nq-thinking-step-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 2px 4px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-thinking-step-label {
  white-space: nowrap;
}
.nq-thinking-step-body {
  display: none;
  margin: 2px 0 6px 21px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-tertiary);
  max-height: 260px;
  overflow-y: auto;
  word-break: break-word;
}
.nq-thinking-step.open .nq-thinking-step-body {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-thinking-step-body p,
.nq-step-detail-body p {
  margin: 0 0 4px;
}
.nq-thinking-step-body p:last-child,
.nq-step-detail-body p:last-child {
  margin-bottom: 0;
}
.nq-thinking-step-body ul,
.nq-thinking-step-body ol,
.nq-step-detail-body ul,
.nq-step-detail-body ol {
  margin: 2px 0 4px;
  padding-left: 18px;
}
.nq-thinking-step-body code,
.nq-step-detail-body code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .94em;
}
.nq-thinking-step-body pre,
.nq-step-detail-body pre {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 8px 10px;
  overflow-x: auto;
  margin: 4px 0;
}
.nq-thinking-step-body pre code,
.nq-step-detail-body pre code {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-regen-hint {
  padding: 2px 4px;
}
.nq-output-file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 752px;
  padding: 10px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-output-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--send);
  flex-shrink: 0;
}
.nq-output-file-info {
  flex: 1;
  min-width: 0;
}
.nq-output-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-output-file-path {
  font-size: 11px;
  color: var(--text-quaternary);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-output-file-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nq-file-changes-card {
  max-width: 752px;
  margin-top: 6px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  overflow: hidden;
}
.nq-file-changes-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-layout);
  border-bottom: 1px solid var(--border-quaternary);
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-file-changes-icon {
  display: inline-flex;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.nq-file-changes-title {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.nq-diff-stats {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.nq-diff-add {
  color: var(--success);
}
.nq-diff-del {
  color: var(--error);
}
.nq-file-changes-list {
  padding: 4px 0;
}
.nq-file-changes-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 12px;
  font-size: 12px;
}
.nq-file-changes-row:hover {
  background: var(--bg-elevated);
}
.nq-file-changes-path {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-file-changes-row .nq-diff-stats {
  margin-left: 0;
}
.nq-file-changes-more {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 12px;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-file-changes-more:hover {
  background: var(--bg-elevated);
  color: var(--text);
}
.nq-error-block {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 752px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
  background: color-mix(in srgb, var(--error) 6%, var(--bg-base));
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--error);
}
.nq-error-block-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.nq-error-block-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.nq-error-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--error) 45%, transparent);
  background: transparent;
  color: var(--error);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s;
}
.nq-error-retry:hover {
  background: color-mix(in srgb, var(--error) 10%, transparent);
}
.nq-scroll-bottom-btn {
  position: absolute;
  right: 20px;
  bottom: calc(var(--composer-h, 129px) + 47px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 7;
}
.nq-scroll-bottom-btn.show {
  display: inline-flex;
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-scroll-bottom-btn:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-tool-block {
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 752px;
  font-size: 12px;
  background: var(--bg-base);
}
.nq-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-layout);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
}
.nq-tool-head .nq-tool-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-quaternary);
  flex-shrink: 0;
}
.nq-tool-block.running .nq-tool-dot {
  background: #f59e0b;
  animation: nq-session-spin 1.2s linear infinite;
}
.nq-tool-block.ok .nq-tool-dot {
  background: var(--success);
}
.nq-tool-block.error .nq-tool-dot {
  background: var(--error);
}
.nq-tool-head .nq-tool-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-tool-head .nq-tool-chev {
  transition: transform .15s var(--ease);
}
.nq-tool-block.open .nq-tool-chev {
  transform: rotate(90deg);
}
.nq-tool-body {
  padding: 8px 12px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-quaternary);
  white-space: pre-wrap;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  color: var(--text-secondary);
}
.nq-tool-block.open .nq-tool-body {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-thinking-block {
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  font-size: 12px;
  max-width: 752px;
}
.nq-thinking-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-tertiary);
  user-select: none;
}
.nq-thinking-head .nq-thinking-spinner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: nq-session-spin 1.2s linear infinite;
  flex-shrink: 0;
}
.nq-thinking-body {
  padding: 8px 12px;
  border-top: 1px solid var(--border-quaternary);
  color: var(--text-tertiary);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
}
.nq-thinking-block:not(.open) .nq-thinking-body {
  display: none;
}
.nq-thinking-block.open .nq-thinking-body {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-context-bar-wrap {
  max-width: 752px;
}
.nq-context-bar-info {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.nq-context-bar {
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  height: 10px;
  overflow: hidden;
  background: var(--bg-layout);
}
.nq-context-bar-fill {
  height: 100%;
  background: var(--success);
  transition: width .3s;
}
.nq-context-bar-fill.warn {
  background: #f59e0b;
}
.nq-context-bar-fill.danger {
  background: var(--error);
}
.nq-session-composer-wrap {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(768px, calc(100% - 24px));
  z-index: 6;
}
.nq-session-composer {
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  padding: 4px;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.nq-session-composer:focus-within {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-secondary) 14%, transparent);
}
.nq-composer-textarea {
  width: 100%;
  min-height: 77px;
  max-height: 220px;
  padding: 12px 16px 4px 12px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: calc(13px * var(--font-scale));
  line-height: 1.55;
  color: var(--text);
  display: block;
}
.nq-composer-textarea::placeholder {
  color: var(--text-tertiary);
}
.nq-composer-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-top: 1px dashed var(--border-tertiary);
}
.nq-composer-spacer {
  flex: 1;
}
.nq-session-composer .nq-tool-btn.nq-tool-add {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid #dddddd;
  background: transparent;
  color: var(--text-secondary);
}
[data-theme=dark] .nq-session-composer .nq-tool-btn.nq-tool-add {
  border-color: #3a3a38;
}
.nq-session-composer .nq-tool-btn.nq-tool-add:hover {
  background: var(--fill-tertiary);
  color: var(--text);
  border-color: var(--border);
}
.nq-session-composer .nq-tool-btn,
.nq-session-composer .nq-tool-chip {
  border-radius: 5px;
}
.nq-tool-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.nq-tool-btn:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-tool-chip {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  min-width: 0;
  flex-shrink: 1;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nq-tool-chip:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-tool-chip svg {
  flex-shrink: 0;
}
.nq-tool-chip .icon-xs {
  width: 10px;
  height: 10px;
}
.nq-tool-chip .nq-chip-label {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-send-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius);
  background: #1a1a19;
  color: var(--text-on-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s var(--ease), opacity .12s var(--ease);
}
.nq-send-btn:hover {
  background: #3d3d3b;
}
[data-theme=dark] .nq-send-btn {
  background: #e8e8e6;
  color: #141414;
}
[data-theme=dark] .nq-send-btn:hover {
  background: #c9c9c7;
}
[data-theme=dark] .nq-send-btn.stop {
  color: var(--text-on-primary);
}
.nq-send-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.nq-send-btn.stop {
  background: var(--error);
}
.nq-send-btn.stop:hover {
  background: var(--error);
  opacity: .88;
}
.nq-send-btn .nq-stop-square {
  width: 9px;
  height: 9px;
  background: currentColor;
  border-radius: 1.5px;
}
@media (max-width: 640px) {
  .nq-tool-btn.nq-tool-voice {
    display: none;
  }
}
.nq-session-context-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
}
.nq-strip-runtime {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-weight: 600;
}
.nq-strip-runtime svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-strip-runtime-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-session-context-strip .nq-strip-sep {
  color: var(--border);
}
.nq-session-context-strip .nq-strip-item {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-strip-project {
  border: none;
  background: none;
  padding: 1px 5px;
  margin-left: -5px;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: var(--radius);
  transition: background .12s, color .12s;
}
.nq-strip-project:hover {
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-strip-project:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
  outline: none;
}
.nq-strip-project-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-strip-project svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-strip-meter-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.nq-strip-meter-wrap:hover .nq-strip-pct {
  color: var(--text-secondary);
}
.nq-strip-meter-wrap:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
  outline: none;
}
.nq-strip-pct {
  font-size: 11px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
.nq-credit-meter {
  width: 50px;
  height: 5px;
  border-radius: 2.5px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-base) 0 2px,
      var(--border-tertiary) 2px 4px);
}
.nq-credit-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2.5px;
  transition: width .3s;
}
.nq-strip-branch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nq-strip-branch svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-strip-branch-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-strip-branch-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
}
.nq-dropdown.nq-model-menu {
  width: 300px;
}
.nq-provider-icon {
  flex-shrink: 0;
  display: inline-block;
}
.nq-menu-item.nq-model-item .nq-provider-icon {
  margin-top: 1px;
}
.nq-provider-icon.is-kimi {
  background: #1E2733;
  border-radius: 50%;
}
.nq-menu-item.nq-model-item {
  align-items: flex-start;
  padding: 8px 10px;
}
.nq-model-info {
  flex: 1;
  min-width: 0;
}
.nq-model-name {
  font-size: 13px;
  line-height: 18px;
}
.nq-model-desc {
  font-size: 11px;
  line-height: 15px;
  margin-top: 1px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-model-badges {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-top: 2px;
}
.nq-model-badge {
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  color: var(--send);
  background: var(--fill-tertiary);
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  padding: 0 6px;
}
.nq-model-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--fill-tertiary);
  border-radius: var(--radius);
  padding: 6px 8px;
  margin: 2px 2px 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nq-model-banner.is-active {
  color: var(--send);
  font-weight: 600;
}
.nq-menu-item.nq-model-item.is-locked {
  opacity: .55;
  cursor: not-allowed;
}
.nq-menu-item.nq-model-item.is-locked:hover {
  background: transparent;
}
.nq-menu-item.nq-model-item.is-locked .nq-model-badges .icon-sm {
  color: var(--text-tertiary);
}
.nq-model-badge.nq-model-badge-tier {
  color: var(--text-tertiary);
  border-color: var(--border-quaternary);
}
.nq-dropdown.nq-workspace-menu {
  width: 264px;
}
.nq-workspace-search {
  margin: 2px 2px 6px;
}
.nq-workspace-list {
  max-height: 220px;
  overflow-y: auto;
}
.nq-workspace-item {
  padding: 7px 10px;
}
.nq-workspace-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-workspace-item .nq-menu-item-desc {
  margin-left: auto;
  padding-left: 8px;
}
.nq-workspace-item.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.nq-workspace-item.is-disabled:hover {
  background: none;
}
.nq-workspace-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-dropdown.nq-workspace-menu {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-menu-strong);
}
.nq-dropdown.nq-workspace-menu .nq-menu-sep {
  margin: 6px 2px;
}
.nq-workspace-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin: 2px 2px 6px;
  padding: 0 8px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  transition:
    border-color .12s var(--ease),
    box-shadow .12s var(--ease),
    background .12s var(--ease);
}
.nq-workspace-search-wrap > svg {
  color: var(--text-quaternary);
  flex-shrink: 0;
  transition: color .12s var(--ease);
}
.nq-workspace-search-wrap:focus-within {
  border-color: var(--border-secondary);
  background: var(--bg-base);
  box-shadow: 0 0 0 2px var(--fill-accent);
}
.nq-workspace-search-wrap:focus-within > svg {
  color: var(--send);
}
.nq-workspace-menu .nq-workspace-search {
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  border: none;
  background: none;
  box-shadow: none;
  flex: 1;
  min-width: 0;
}
.nq-workspace-list {
  padding-top: 2px;
}
.nq-workspace-list.is-scrollable {
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0,
      #000 8px,
      #000 calc(100% - 8px),
      transparent 100%);
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0,
      #000 8px,
      #000 calc(100% - 8px),
      transparent 100%);
}
.nq-workspace-item {
  transition: background .12s var(--ease), transform .12s var(--ease);
}
.nq-workspace-item:not(.is-disabled):hover {
  transform: translateX(1px);
}
.nq-workspace-item.active {
  background: var(--fill-accent);
}
.nq-workspace-fixed {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-workspace-item.nq-ws-none > svg {
  color: var(--text-tertiary);
}
.nq-workspace-item.nq-ws-none:not(.active):not(.is-disabled) .nq-workspace-name {
  color: var(--text-secondary);
}
.nq-workspace-item.nq-ws-none:not(.is-disabled):hover > svg {
  color: var(--text-secondary);
}
.nq-workspace-item.nq-ws-new > svg {
  color: var(--send);
}
.nq-workspace-item.nq-ws-ssh > svg {
  color: var(--text-quaternary);
}
.nq-dropdown.nq-approval-menu {
  width: 300px;
}
.nq-menu-item.nq-approval-item {
  align-items: flex-start;
  padding: 8px 10px;
}
.nq-approval-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
}
.nq-approval-icon.is-safe {
  color: var(--send);
}
.nq-approval-icon.is-neutral {
  color: var(--text-secondary);
}
.nq-approval-icon.is-danger {
  color: var(--error);
}
.nq-menu-item-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
}
.nq-approval-info {
  flex: 1;
  min-width: 0;
}
.nq-approval-check {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}
.nq-menu-item.nq-approval-item.nq-menu-danger .nq-menu-item-desc {
  color: var(--error);
}
.nq-menu-item.nq-approval-item.nq-menu-danger.active {
  color: var(--error);
}
.nq-menu-item.nq-approval-item .nq-menu-item-desc {
  white-space: normal;
  line-height: 16px;
  margin-top: 1px;
}
.nq-usage-pop {
  width: 252px;
  padding: 2px;
}
.nq-usage-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
}
.nq-usage-pop-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-usage-pop-label {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 0 6px;
}
.nq-usage-pop-nums {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 3px 6px 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-usage-pop .nq-credit-meter {
  display: block;
  width: auto;
  height: 6px;
  margin: 0 6px;
  border-radius: 3px;
}
.nq-usage-pop-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 6px 10px;
}
.nq-usage-pop-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--send);
  font-variant-numeric: tabular-nums;
}
.nq-usage-pop-remain {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-usage-pop-detail {
  width: 100%;
  justify-content: center;
  margin-bottom: 2px;
}
button.nq-account-main {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0 6px;
  transition: background .12s;
}
button.nq-account-main:hover {
  background: var(--fill-tertiary);
}
button.nq-account-main:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
  outline: none;
}
.nq-account-chevron {
  color: var(--text-quaternary);
  flex-shrink: 0;
  display: inline-flex;
}
.nq-account-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nq-account-actions .nq-icon-btn {
  width: 24px;
  height: 24px;
}
.nq-account-actions .nq-icon-btn svg {
  width: 13px;
  height: 13px;
}
.nq-menu-value {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-menu-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-menu-item.is-disabled {
  opacity: .55;
  cursor: default;
}
.nq-menu-item.is-disabled:hover {
  background: transparent;
}
.nq-menu-item.nq-menu-danger {
  color: var(--error);
}
.nq-menu-item.nq-menu-danger:hover {
  background: var(--bg-layout);
}
.nq-about-card {
  max-width: 320px;
  text-align: center;
}
.nq-about-logo {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.nq-about-logo svg {
  width: 44px;
  height: 44px;
  display: block;
}
.nq-about-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.nq-about-version {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.nq-about-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.nq-about-card .nq-dialog-actions {
  justify-content: center;
  margin-top: 14px;
}
.nq-about-update-status {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.nq-about-update-status:empty {
  display: none;
}
.nq-about-update-progress {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--border-tertiary);
  margin-top: 6px;
}
.nq-about-card .nq-dialog-btn {
  padding: 0 14px;
}
.nq-dropdown.nq-search-pop {
  width: 300px;
  max-width: calc(100vw - 16px);
}
.nq-search-pop-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 6px;
  color: var(--text-tertiary);
}
.nq-search-pop-input-row .nq-input {
  flex: 1;
  min-width: 0;
}
.nq-search-pop-list {
  max-height: 232px;
  overflow-y: auto;
}
.nq-search-pop-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nq-search-pop-item:hover {
  background: var(--bg-layout);
}
.nq-search-pop-item > svg {
  margin-top: 2px;
}
.nq-search-pop-item-body {
  flex: 1;
  min-width: 0;
}
.nq-search-pop-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-search-pop-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-search-pop-item .nq-mcp-switch {
  margin-top: 3px;
}
.nq-search-pop-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: nq-dialog-mask-enter .18s ease both;
}
[data-theme=dark] .nq-dialog-mask {
  background: rgba(0, 0, 0, .3);
}
.nq-dialog-card {
  background: var(--bg-base);
  border-radius: 12px;
  border: 1px solid var(--border-quaternary);
  padding: 20px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
  animation: nq-dialog-enter .18s var(--ease) both;
}
.nq-dialog-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.nq-dialog-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.nq-dialog-cmd {
  background: var(--code-bg);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.nq-dialog-question {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
}
.nq-dialog-question p {
  margin: 0 0 6px;
}
.nq-dialog-question p:last-child {
  margin-bottom: 0;
}
.nq-dialog-question code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .94em;
}
.nq-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.nq-dialog-btn {
  min-height: 34px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.nq-dialog-btn:hover {
  background: var(--bg-layout);
}
.nq-dialog-btn-primary {
  background: var(--send);
  border-color: var(--send);
  color: var(--text-on-primary);
}
.nq-dialog-btn-primary:hover {
  background: var(--send-hover);
  border-color: var(--send-hover);
}
.nq-dialog-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.nq-dialog-btn:disabled:hover {
  background: var(--bg-base);
}
.nq-dialog-btn-primary:disabled,
.nq-dialog-btn-primary:disabled:hover {
  background: var(--send);
  border-color: var(--send);
  opacity: .45;
  cursor: not-allowed;
}
.nq-fullaccess-card {
  max-width: 400px;
}
.nq-perm-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  margin-bottom: 8px;
}
.nq-perm-card > svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-secondary);
}
.nq-perm-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 18px;
}
.nq-perm-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 16px;
  margin-top: 1px;
}
.nq-perm-warning {
  font-size: 11px;
  line-height: 17px;
  color: var(--error);
  background: var(--fill-tertiary);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin: 2px 0 14px;
}
.nq-ask-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.nq-ask-option {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
}
.nq-ask-option:hover {
  background: var(--bg-layout);
}
.nq-ask-input {
  margin-bottom: 16px;
}
.nq-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 110;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  animation: nq-dialog-mask-enter .18s ease both;
}
[data-theme=dark] .nq-search-overlay {
  background: rgba(0, 0, 0, .3);
}
.nq-search-card {
  width: min(560px, calc(100vw - 32px));
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
  animation: nq-dialog-enter .18s var(--ease) both;
}
.nq-search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
}
.nq-search-input::placeholder {
  color: var(--text-quaternary);
}
.nq-search-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}
.nq-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-search-item:hover,
.nq-search-item.active {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-search-item .nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-search-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-quaternary);
}
.nq-search-group {
  padding: 8px 10px 4px;
  font-size: 11px;
  color: var(--text-quaternary);
  border-top: 1px solid var(--border-quaternary);
  margin-top: 4px;
}
.nq-search-item.nq-search-item-content {
  align-items: flex-start;
}
.nq-search-item.nq-search-item-content > svg {
  margin-top: 2px;
}
.nq-search-item .nq-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-item-snippet {
  font-size: 12px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-snippet-mark {
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0;
}
.nq-search-pending {
  padding: 6px 10px 8px;
  font-size: 12px;
  color: var(--text-quaternary);
}
.search-hit-flash {
  animation: search-hit-flash 1.6s ease;
  border-radius: var(--radius);
}
@keyframes search-hit-flash {
  0%, 55% {
    background: var(--bg-layout);
    box-shadow: 0 0 0 1px var(--border-quaternary) inset;
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}
.nq-file-mention-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 340px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  z-index: 60;
  padding: 4px;
  animation: nq-menu-enter .14s var(--ease) both;
  animation-name: nq-menu-enter-up;
  transform-origin: 50% 100%;
}
.nq-file-mention-item {
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-file-mention-item:hover,
.nq-file-mention-item.active {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-file-mention-group-header {
  padding: 6px 10px 4px;
  font-size: 11px;
  color: var(--text-quaternary);
  border-top: 1px solid var(--border-tertiary);
  margin-top: 4px;
}
.nq-file-mention-btn {
  display: block;
  width: 100%;
  padding: 6px 10px;
  margin: 2px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
}
.nq-file-mention-btn:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-file-mention-toast {
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 5px;
  background: var(--bg-layout);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-file-mention-muted {
  color: var(--text-quaternary);
  cursor: default;
}
.nq-file-mention-muted:hover {
  background: transparent;
  color: var(--text-quaternary);
}
.nq-localdir-box {
  margin: 0 0 14px;
}
.nq-localdir-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 20px 16px;
  border: 1.5px dashed var(--border-secondary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  transition:
    border-color .12s,
    color .12s,
    background .12s;
}
.nq-localdir-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: transparent;
}
.nq-localdir-btn svg {
  width: 15px;
  height: 15px;
}
.nq-localdir-optional {
  color: var(--text-quaternary);
}
.nq-localdir-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-layout);
  font-size: 12.5px;
  max-width: 100%;
}
.nq-localdir-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--text);
}
.nq-localdir-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-localdir-remove:hover {
  color: var(--text);
  background: var(--bg-base);
}
.nq-localdir-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-ws-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}
.nq-ws-icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color .12s,
    color .12s,
    background .12s;
}
.nq-ws-icon-opt svg {
  width: 15px;
  height: 15px;
}
.nq-ws-icon-opt:hover {
  border-color: var(--border-secondary);
  color: var(--text);
}
.nq-ws-icon-opt.active {
  border-color: var(--send);
  box-shadow: inset 0 0 0 1px var(--send);
  color: var(--text);
  background: var(--bg-layout);
}
.nq-ws-color-opt {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s;
}
.nq-ws-color-opt:hover {
  transform: scale(1.15);
}
.nq-ws-color-opt.active {
  box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3.5px var(--send);
}
.nq-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nq-dialog-head .nq-dialog-title {
  margin-bottom: 0;
}
.nq-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-dialog-close:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-wsedit-src-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nq-wsedit-src-head .nq-dialog-hint {
  margin-bottom: 0;
}
.nq-wsedit-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color .12s,
    color .12s,
    background .12s;
}
.nq-wsedit-add-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.nq-wsedit-add-btn svg {
  flex-shrink: 0;
}
.nq-wsedit-src-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.nq-wsedit-src-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-layout);
  font-size: 12.5px;
}
.nq-wsedit-src-row > svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-wsedit-src-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--text);
}
.nq-wsedit-src-name.empty {
  font-family: var(--font-sans);
  color: var(--text-quaternary);
}
.nq-wsedit-src-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--info);
  border: 1px solid color-mix(in srgb, var(--info) 35%, transparent);
  border-radius: 4px;
  padding: 1px 5px;
}
.nq-wsedit-src-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-wsedit-src-remove:hover {
  color: var(--text);
  background: var(--bg-base);
}
.nq-wsedit-archive {
  margin-right: auto;
  color: var(--error);
  border-color: color-mix(in srgb, var(--error) 30%, transparent);
  background: color-mix(in srgb, var(--error) 7%, var(--bg-base));
}
.nq-wsedit-archive:hover {
  background: color-mix(in srgb, var(--error) 14%, var(--bg-base));
}
.nq-wsedit-archive svg {
  flex-shrink: 0;
}
.nq-sidebar-mask {
  display: none;
}
@media (max-width: 899px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell.sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .nq-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .2s var(--ease);
    box-shadow: none;
  }
  .app-shell.sidebar-open .nq-sidebar {
    transform: none;
    box-shadow: var(--shadow-menu);
  }
  .nq-sidebar {
    background: var(--bg-elevated);
  }
  .app-shell.sidebar-collapsed .nq-sidebar {
    visibility: visible;
  }
  .nq-sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 49;
  }
  .app-shell.sidebar-open .nq-sidebar-mask {
    display: block;
    animation: nq-dialog-mask-enter .18s ease both;
  }
  .nq-sidebar > * {
    min-width: 0;
  }
  .nq-main {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
  }
  .nq-mobile-menu {
    display: inline-flex;
  }
  .app-shell {
    height: min(100dvh, var(--vvh, 100dvh));
  }
  html.kb-open body {
    overflow: hidden;
  }
  html.kb-open .app-shell {
    position: fixed;
    top: var(--vvo, 0px);
    left: 0;
    right: 0;
    height: var(--vvh, 100dvh);
  }
  .nq-session-composer-wrap {
    width: calc(100% - 16px);
  }
  .nq-session-composer-wrap {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  html.kb-open .nq-session-composer-wrap {
    bottom: 8px;
  }
  .nq-sidebar-footer {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .nq-conversation-inner {
    padding: 20px 12px calc(var(--composer-h, 129px) + 81px);
  }
  .nq-user-bubble,
  .nq-assistant-bubble,
  .nq-tool-block,
  .nq-thinking-block,
  .nq-activity-group,
  .nq-file-changes-card,
  .nq-output-file-card,
  .nq-error-block,
  .nq-msg-meta {
    max-width: 100%;
  }
  .nq-scroll-bottom-btn {
    right: 12px;
    bottom: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .nq-menu-enter-up,
  .nq-menu-enter,
  .nq-progressive-enter {
    animation-duration: .01ms !important;
  }
}
.nq-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--content-w-page);
  margin: 0 auto;
  min-height: 100%;
}
.nq-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nq-page-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--fill-tertiary);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  padding: 2px;
}
.nq-page-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: calc(var(--radius) - 2px);
  font-size: 12.5px;
  color: var(--text-secondary);
  transition: all .12s var(--ease);
}
.nq-page-tab:hover {
  color: var(--text);
}
.nq-page-tab.active {
  background: var(--bg-base);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.nq-page-tabs-sm .nq-page-tab {
  padding: 3px 10px;
  font-size: 12px;
}
.nq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s var(--ease);
  white-space: nowrap;
}
.nq-btn:hover {
  background: var(--bg-layout);
  border-color: var(--border);
}
.nq-btn-primary {
  background: var(--send);
  border-color: var(--send);
  color: var(--text-on-primary);
}
.nq-btn-primary:hover {
  background: var(--send-hover);
  border-color: var(--send-hover);
}
.nq-btn-danger {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}
.nq-btn-danger:hover {
  opacity: .88;
  background: var(--error);
  border-color: var(--error);
}
.nq-input {
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color .12s var(--ease);
}
.nq-input:focus {
  outline: none;
  border-color: var(--border);
}
.nq-input::placeholder {
  color: var(--text-quaternary);
}
.nq-dialog-input {
  margin-bottom: 16px;
}
.nq-textarea {
  width: 100%;
  min-height: 320px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.7;
  font-family: var(--font-mono);
  resize: vertical;
  transition: border-color .12s var(--ease);
}
.nq-textarea:focus {
  outline: none;
  border-color: var(--border);
}
.nq-textarea::placeholder {
  color: var(--text-quaternary);
}
.nq-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(128, 199, 118, .16);
  color: var(--send);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.nq-badge-general {
  background: rgba(59, 129, 233, .14);
  color: var(--info);
}
.nq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 56px 20px;
  text-align: center;
}
.nq-empty-icon {
  width: 36px;
  height: 36px;
  opacity: .35;
  margin-bottom: 6px;
}
.nq-empty-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-empty-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.nq-cards-grid > .nq-empty {
  grid-column: 1 / -1;
  justify-self: center;
}
.nq-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
  transition: border-color .12s var(--ease);
}
.nq-card-clickable {
  cursor: pointer;
}
.nq-card-clickable:hover {
  border-color: var(--border-secondary);
}
.nq-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-card-body {
  flex: 1;
  min-width: 0;
}
.nq-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-card-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.nq-card-more {
  flex-shrink: 0;
}
.nq-breadcrumb-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  min-width: 0;
}
.nq-breadcrumb-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-breadcrumb-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nq-breadcrumb-sep {
  color: var(--border);
}
.nq-breadcrumb-current {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-project-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
}
.nq-project-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  cursor: pointer;
  transition: border-color .12s var(--ease);
}
.nq-list-row:hover {
  border-color: var(--border-secondary);
}
.nq-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nq-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-list-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-two-pane {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.nq-two-pane-left {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.nq-two-pane-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.nq-skills-create {
  justify-content: center;
}
.nq-skills-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-skills-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-secondary);
  transition: background .12s var(--ease);
}
.nq-skills-item:hover {
  background: var(--bg-layout);
}
.nq-skills-item.active {
  background: var(--fill-tertiary);
}
.nq-skills-item.active .nq-skills-item-name {
  color: var(--text);
}
.nq-skills-item > svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.nq-skills-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-skills-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-skills-item-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-skill-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.nq-skill-editor-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-skill-name-input {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.nq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-field-grow {
  flex: 1;
}
.nq-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nq-field-meta {
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-md-preview {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  padding: 14px;
  min-height: 320px;
}
.nq-skills-actions {
  display: flex;
  gap: 8px;
}
.nq-skills-actions .nq-btn {
  flex: 1;
  justify-content: center;
}
.nq-skill-import-card {
  max-width: 560px;
}
.nq-skill-import-tabs {
  align-self: flex-start;
  margin-bottom: 10px;
}
.nq-skill-import-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.nq-skill-import-url-row .nq-input {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.nq-skill-import-paste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.nq-skill-import-paste-area {
  min-height: 110px;
  resize: vertical;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.nq-skill-import-paste .nq-skill-import-fetch-btn {
  align-self: flex-end;
}
.nq-skill-import-status {
  font-size: 12px;
  color: var(--error);
  margin-bottom: 10px;
  word-break: break-word;
}
.nq-skill-import-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-quaternary);
  padding-top: 12px;
  margin-bottom: 14px;
}
.nq-skill-import-source {
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-skill-import-note {
  font-size: 12px;
  color: var(--info);
}
.nq-skill-import-content {
  min-height: 160px;
  max-height: 280px;
  resize: vertical;
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.nq-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;
}
.nq-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s var(--ease);
}
.nq-settings-nav-item:hover {
  background: var(--bg-layout);
}
.nq-settings-nav-item.active {
  background: var(--fill-tertiary);
  color: var(--text);
  font-weight: 600;
}
.nq-settings-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nq-settings-card {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 16px;
}
.nq-settings-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.nq-settings-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
}
.nq-settings-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.nq-settings-card-body {
  display: flex;
  flex-direction: column;
}
.nq-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.nq-settings-row + .nq-settings-row {
  border-top: 1px solid var(--border-quaternary);
}
.nq-settings-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text);
}
.nq-settings-row-hint {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-settings-value {
  font-size: 13px;
  color: var(--text-secondary);
}
.nq-theme-toggle {
  display: flex;
  gap: 8px;
}
.nq-theme-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.nq-theme-preview-bubble {
  align-self: flex-end;
  background: var(--send);
  color: var(--text-on-primary);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  max-width: 60%;
}
.nq-theme-preview-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-theme-preview-send {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--send);
  color: var(--text-on-primary);
}
.nq-sidebar-settings {
  display: none;
}
.app-shell.sidebar-settings .nq-window-bar,
.app-shell.sidebar-settings .nq-sidebar-mode-wrap,
.app-shell.sidebar-settings .nq-primary-nav,
.app-shell.sidebar-settings .nq-sidebar-scroll,
.app-shell.sidebar-settings .nq-sidebar-footer {
  display: none;
}
.app-shell.sidebar-settings .nq-sidebar-settings {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 6px 12px 10px;
}
.app-shell.sidebar-settings .nq-sidebar-settings .nq-settings-nav {
  flex: 1;
}
.nq-settings-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-settings-back:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-settings-back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-settings-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 0 8px;
  height: 30px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  color: var(--text-quaternary);
  transition: border-color .12s var(--ease);
}
.nq-settings-search:focus-within {
  border-color: var(--border);
}
.nq-settings-search > svg {
  flex-shrink: 0;
}
.nq-settings-search-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text);
  font-family: inherit;
}
.nq-settings-search-input::placeholder {
  color: var(--text-quaternary);
}
.nq-settings-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.nq-settings-nav-group-title {
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-quaternary);
  text-transform: uppercase;
}
.nq-settings-nav-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.nq-theme-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    border-color .12s var(--ease),
    box-shadow .12s var(--ease),
    background .12s var(--ease);
}
.nq-theme-card:hover {
  border-color: var(--border);
}
.nq-theme-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: var(--fill-accent);
}
.nq-theme-card-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 62px;
  border: 1px solid var(--border-quaternary);
  border-radius: calc(var(--radius-lg) - 3px);
  overflow: hidden;
}
.nq-theme-card-bar {
  height: 10px;
  flex-shrink: 0;
}
.nq-theme-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.nq-theme-card-side {
  width: 27%;
}
.nq-theme-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
}
.nq-theme-card-line {
  display: block;
  width: 82%;
  height: 5px;
  border-radius: 3px;
}
.nq-theme-card-line.short {
  width: 58%;
}
.nq-theme-card-radio {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: #fff;
}
.nq-theme-card.active .nq-theme-card-radio {
  border-color: var(--radio-accent);
  background: var(--radio-accent);
}
.nq-theme-card.active .nq-theme-card-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.nq-theme-card-name {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}
.nq-theme-card.active .nq-theme-card-name {
  color: var(--text);
  font-weight: 600;
}
.nq-theme-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-theme-card.active:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary), 0 0 0 1px var(--primary);
}
.nq-settings-row .nq-mcp-switch {
  margin-left: auto;
}
html.no-glass .nq-dialog-mask,
html.no-glass .nq-search-overlay,
html.no-glass .nq-demo-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.no-glass .nq-dialog-mask,
html.no-glass .nq-search-overlay {
  background: rgba(0, 0, 0, .34);
}
html.no-glass[data-theme=dark] .nq-dialog-mask,
html.no-glass[data-theme=dark] .nq-search-overlay {
  background: rgba(0, 0, 0, .52);
}
html.workbench-noise body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.nq-settings-irow-label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nq-settings-irow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-settings-irow-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nq-settings-irow + .nq-settings-irow {
  border-top: 1px dashed var(--border-quaternary);
}
.nq-settings-irow .nq-select {
  max-width: 220px;
}
.nq-settings-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 2px 0;
  flex-wrap: wrap;
}
.nq-settings-page-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nq-settings-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.nq-settings-page-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-settings-admin-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 14px;
  flex-wrap: wrap;
}
.nq-profile-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
}
.nq-profile-id-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.nq-profile-id {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.nq-profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: var(--bg-base);
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-profile-email {
  font-size: 12px;
  color: var(--text-quaternary);
  word-break: break-all;
}
.nq-profile-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nq-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-quaternary);
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 4px;
}
.nq-profile-stat + .nq-profile-stat {
  border-left: 1px solid var(--border-quaternary);
}
.nq-profile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-profile-stat-label {
  font-size: 11.5px;
  color: var(--text-quaternary);
  text-align: center;
}
.nq-sc-search {
  margin: 4px 0 0;
}
.nq-sc-summary {
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-sc-list {
  display: flex;
  flex-direction: column;
}
.nq-sc-group-title {
  padding: 10px 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-quaternary);
  text-transform: uppercase;
}
.nq-sc-keys-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nq-sc-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tertiary);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-base);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}
.nq-sc-listening {
  font-size: 11.5px;
  color: var(--primary);
  animation: nq-sc-pulse 1.2s ease-in-out infinite;
}
@keyframes nq-sc-pulse {
  50% {
    opacity: .4;
  }
}
.nq-voice-words-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-voice-words-input {
  width: 170px;
  height: 28px;
  font-size: 12px;
}
.nq-voice-words {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.nq-voice-words-empty {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 9px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: var(--bg-base);
  font-size: 11.5px;
  color: var(--text-secondary);
}
.nq-word-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-quaternary);
  cursor: pointer;
}
.nq-word-chip-x:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-voice-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 0 10px;
  border-top: 1px dashed var(--border-quaternary);
}
.nq-voice-history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.nq-voice-history-sub {
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-models-list {
  display: flex;
  flex-direction: column;
}
.nq-models-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 0;
}
.nq-models-empty-title {
  font-size: 13.5px;
  color: var(--text-quaternary);
}
.nq-models-empty-sub {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-quaternary);
  text-align: center;
}
.nq-model-row .nq-settings-row-hint {
  font-family: var(--font-mono);
}
.nq-model-form .nq-settings-row:first-child {
  padding-top: 6px;
}
.nq-pet-size-ctl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nq-pet-size-label {
  min-width: 44px;
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nq-range {
  width: 160px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--fill-tertiary);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.nq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.nq-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-elevated);
}
.nq-range:focus-visible {
  box-shadow: 0 0 0 2px var(--border-secondary);
}
.nq-memory-actions {
  display: flex;
  gap: 6px;
}
.nq-memory-action {
  width: 28px;
  height: 28px;
}
.nq-memory-project-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0 16px;
}
.nq-memory-project-icon {
  width: 32px;
  height: 32px;
  color: var(--text-quaternary);
}
.nq-memory-project-text {
  font-size: 13px;
  color: var(--text-tertiary);
}
.nq-memory-project-sub {
  font-size: 12px;
  color: var(--text-quaternary);
}
@media (max-width: 720px) {
  .nq-profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nq-profile-stat:nth-child(odd) {
    border-left: none;
  }
  .nq-profile-stat:nth-child(n+3) {
    border-top: 1px solid var(--border-quaternary);
  }
  .nq-profile-actions {
    margin-left: 0;
  }
  .nq-sc-keys-wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
.nq-settings-card-head:empty {
  display: none;
  margin: 0;
}
.nq-ext-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-ext-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
}
.nq-ext-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 0;
}
.nq-ext-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nq-ext-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition:
    background .12s var(--ease),
    color .12s var(--ease),
    border-color .12s var(--ease);
}
.nq-ext-tab:hover {
  color: var(--text-secondary);
}
.nq-ext-tab.active {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}
.nq-ext-tab-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-quaternary);
}
.nq-ext-tab.active .nq-ext-tab-count {
  color: var(--text-tertiary);
}
.nq-ext-tabs-row .nq-settings-search {
  margin: 0;
  width: 210px;
}
.nq-ext-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nq-ext-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.nq-ext-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.nq-ext-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.nq-ext-expand-btn:hover {
  color: var(--text);
}
.nq-ext-skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-ext-skill-desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-ext-skill-check {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--primary);
  flex-shrink: 0;
}
.nq-ext-conn {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-ext-conn + .nq-ext-conn {
  margin-top: 8px;
}
.nq-ext-conn-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.nq-ext-conn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-ext-conn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-ext-conn-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-ext-conn-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-ext-conn-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-ext-conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-quaternary);
  flex-shrink: 0;
}
.nq-ext-conn-status-ok {
  color: #16a34a;
}
.nq-ext-conn-status-ok .nq-ext-conn-dot {
  background: #22c55e;
}
.nq-ext-conn-status-error {
  color: #dc2626;
}
.nq-ext-conn-status-error .nq-ext-conn-dot {
  background: #ef4444;
}
.nq-ext-conn-status-untested {
  color: #d97706;
}
.nq-ext-conn-status-untested .nq-ext-conn-dot {
  background: #f59e0b;
}
.nq-ext-conn-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-ext-conn-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}
.nq-ext-conn-menu-btn,
.nq-ext-conn-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-ext-conn-menu-btn:hover,
.nq-ext-conn-chevron:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-ext-conn-chevron {
  transition: transform .15s var(--ease);
}
.nq-ext-conn-chevron.open {
  transform: rotate(180deg);
}
.nq-ext-conn-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 128px;
  padding: 4px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-ext-conn-menu-item {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: none;
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.nq-ext-conn-menu-item:hover {
  background: var(--fill-tertiary);
}
.nq-ext-conn-menu-item.danger {
  color: #dc2626;
}
.nq-ext-conn-menu-item.danger:hover {
  background: rgba(220, 38, 38, .08);
}
.nq-ext-conn-detail {
  border-top: 1px solid var(--border-quaternary);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nq-ext-conn-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-ext-conn-detail-row {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-ext-conn-detail-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  word-break: break-all;
}
.nq-ext-conn-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-ext-conn-edit-ops {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.nq-ext-agents-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 30px 0 22px;
  text-align: center;
}
.nq-ext-empty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text-quaternary);
}
.nq-ext-agents-empty-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-ext-agents-empty-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 320px;
}
.nq-hooks-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}
.nq-hooks-source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-hooks-source-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nq-hooks-source-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-hooks-source-path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-hooks-source-count {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nq-hooks-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #f0b25a;
  border-radius: var(--radius);
  background: #fdf6e3;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.55;
}
.nq-hooks-banner > svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}
html[data-theme=dark] .nq-hooks-banner {
  border-color: #8a5a19;
  background: rgba(217, 119, 6, .12);
  color: #f5c884;
}
.nq-hooks-item {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-hooks-item + .nq-hooks-item {
  margin-top: 8px;
}
.nq-hooks-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.nq-hooks-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-hooks-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-hooks-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-hooks-item-when {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-hooks-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-quaternary);
  transition: transform .15s var(--ease);
}
.nq-hooks-item-chevron.open {
  transform: rotate(180deg);
}
.nq-hooks-item-detail {
  border-top: 1px dashed var(--border-quaternary);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-hooks-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-hooks-entry + .nq-hooks-entry {
  border-top: 1px dashed var(--border-quaternary);
  padding-top: 8px;
}
.nq-hooks-entry-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nq-hooks-entry-k {
  flex-shrink: 0;
  width: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-hooks-entry-v {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  word-break: break-all;
}
.nq-hooks-entry-empty {
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-cc-chrome-icon svg {
  width: 24px;
  height: 24px;
}
.nq-cc-browser-ops {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nq-cc-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-quaternary);
  cursor: pointer;
}
.nq-cc-help-btn:hover {
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-cc-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.nq-cc-ext-link:hover {
  text-decoration: underline;
}
.nq-cc-keyboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-cc-kb-row {
  display: flex;
  gap: 4px;
}
.nq-cc-key {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border: 1px solid var(--border-quaternary);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-size: 9px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.nq-cc-key-fn {
  font-size: 8px;
  height: 18px;
  color: var(--text-quaternary);
}
.nq-cc-key-wide {
  flex: 1.6;
  font-size: 8.5px;
}
.nq-cc-key-space {
  flex: 6;
}
.nq-cc-key-cmd {
  flex: 1.6;
  border-color: var(--primary);
  color: var(--primary);
  background: var(--fill-accent);
  box-shadow: 0 0 0 1px var(--primary);
  font-weight: 700;
}
.nq-cc-shortcut-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
@media (max-width: 720px) {
  .nq-ext-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nq-ext-tabs-row .nq-settings-search {
    width: auto;
  }
  .nq-cc-keyboard {
    padding: 8px;
    gap: 3px;
  }
  .nq-cc-kb-row {
    gap: 3px;
  }
  .nq-cc-key {
    height: 20px;
  }
  .nq-cc-key-fn {
    height: 15px;
  }
}
.nq-git-prefix-input {
  width: auto;
  max-width: 280px;
  min-width: 180px;
}
.nq-git-instructions-wrap {
  position: relative;
  margin-top: 10px;
}
.nq-git-instructions-input {
  min-height: 96px;
  padding: 10px 36px 10px 12px;
  resize: none;
  line-height: 1.6;
}
.nq-git-slash {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.nq-wt-limit-select.nq-select {
  min-width: 88px;
}
.nq-wt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 26px 0 16px;
  text-align: center;
}
.nq-wt-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text-quaternary);
}
.nq-wt-empty-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-wt-empty-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 340px;
}
.nq-wt-create-btn {
  margin-left: auto;
  min-height: 28px;
  padding: 0 10px;
  font-weight: 600;
}
.nq-wt-create-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.nq-wt-create-btn:disabled:hover {
  background: var(--bg-base);
  border-color: var(--border-tertiary);
}
.nq-wt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nq-wt-loading {
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-wt-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
}
.nq-wt-group-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.nq-wt-group-path {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-wt-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-wt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  background: var(--bg-base);
}
.nq-wt-row-path {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-wt-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-wt-tag {
  max-width: 220px;
  padding: 1px 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-wt-hash {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-wt-dialog-select {
  cursor: pointer;
}
.nq-wt-dialog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.nq-wt-dialog-check input {
  accent-color: var(--send);
  width: 14px;
  height: 14px;
}
.nq-wti-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}
.nq-wti-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 12px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition:
    background .12s var(--ease),
    color .12s var(--ease),
    border-color .12s var(--ease);
}
.nq-wti-chip:hover {
  color: var(--text-secondary);
}
.nq-wti-chip.active {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
  font-weight: 600;
}
.nq-wti-chips-empty {
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-wti-path-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 12px;
  color: var(--text-tertiary);
}
.nq-wti-path-row + .nq-settings-row {
  border-top: 1px dashed var(--border-quaternary);
}
.nq-wti-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}
.nq-wti-status-ops {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nq-wti-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 11.5px;
  font-weight: 600;
}
.nq-conn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 48px 24px;
  border: 1.5px dashed var(--border-tertiary);
  border-radius: var(--radius-lg);
  text-align: center;
}
.nq-conn-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--fill-tertiary);
  color: var(--primary);
}
.nq-conn-empty-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.nq-conn-empty-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 360px;
}
.nq-sec-tier-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nq-sec-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(59, 129, 233, .14);
  color: var(--info);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .nq-conn-empty {
    margin-top: 8px;
    padding: 32px 16px;
  }
  .nq-git-prefix-input {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}
.nq-arch-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  flex-wrap: wrap;
}
.nq-arch-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}
.nq-arch-search > svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-quaternary);
  pointer-events: none;
}
.nq-arch-search-input {
  padding-left: 32px;
}
.nq-arch-project-select {
  width: auto;
  min-width: 150px;
  max-width: 240px;
}
.nq-arch-delete-all {
  background: color-mix(in srgb, var(--error) 10%, var(--bg-elevated));
  border-color: transparent;
  color: var(--error);
}
.nq-arch-delete-all:hover:not(:disabled) {
  background: color-mix(in srgb, var(--error) 18%, var(--bg-elevated));
  border-color: transparent;
}
.nq-arch-delete-all:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.nq-arch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-arch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: border-color .12s var(--ease);
}
.nq-arch-row:hover {
  border-color: var(--border);
}
.nq-arch-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-arch-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
}
.nq-arch-row-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-arch-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-arch-row-project {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-arch-row-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nq-arch-row-ops {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-arch-restore-btn,
.nq-arch-purge-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.nq-arch-purge-btn {
  color: var(--error);
}
.nq-arch-purge-btn:hover {
  background: color-mix(in srgb, var(--error) 8%, var(--bg-base));
  border-color: transparent;
}
.nq-arch-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 52px 24px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-align: center;
}
.nq-arch-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--fill-tertiary);
  color: var(--text-quaternary);
}
.nq-arch-empty-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.nq-arch-hint {
  padding: 28px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-quaternary);
}
@media (max-width: 720px) {
  .nq-arch-search {
    max-width: none;
    min-width: 0;
  }
  .nq-arch-project-select {
    min-width: 0;
    flex: 1;
    max-width: none;
  }
  .nq-arch-row {
    flex-wrap: wrap;
  }
  .nq-arch-row-ops {
    margin-left: auto;
  }
}
.nq-net-run-btn {
  min-height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  border-color: transparent;
  background: var(--text);
  color: var(--bg-base);
  font-weight: 600;
  flex-shrink: 0;
}
.nq-net-run-btn:hover:not(:disabled) {
  opacity: .88;
  background: var(--text);
  border-color: transparent;
}
.nq-net-dialog {
  max-width: 460px;
}
.nq-net-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.nq-net-dialog-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nq-net-dialog-head-text .nq-dialog-title {
  margin-bottom: 0;
}
.nq-net-dialog-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-net-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.nq-net-dialog-close:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-net-banner {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.nq-net-banner.ok {
  background: color-mix(in srgb, var(--success) 14%, var(--bg-base));
  color: var(--success);
}
.nq-net-banner.fail {
  background: color-mix(in srgb, var(--error) 12%, var(--bg-base));
  color: var(--error);
}
.nq-net-banner.pending {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-weight: 500;
}
.nq-net-svc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  min-width: 0;
}
.nq-net-svc-row + .nq-net-svc-row {
  border-top: 1px dashed var(--border-quaternary);
}
.nq-net-svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-net-svc-icon.ok {
  color: var(--success);
}
.nq-net-svc-icon.fail {
  color: var(--error);
}
.nq-net-svc-name {
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-net-svc-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
.nq-net-svc-status.ok {
  color: var(--success);
}
.nq-net-svc-status.fail {
  color: var(--error);
}
.nq-net-dialog-actions {
  margin-top: 14px;
}
.nq-net-copy-btn {
  min-height: 32px;
  padding: 0 14px;
  border-color: transparent;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-net-copy-btn:hover:not(:disabled) {
  background: var(--fill-secondary);
  border-color: transparent;
}
.nq-net-recheck-btn {
  min-height: 32px;
  padding: 0 14px;
  border-color: transparent;
  background: var(--send);
  color: var(--text-on-primary);
  font-weight: 600;
}
.nq-net-recheck-btn:hover:not(:disabled) {
  background: var(--send-hover);
  border-color: transparent;
}
.nq-net-copy-btn:disabled,
.nq-net-recheck-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .nq-net-dialog-actions {
    flex-wrap: wrap;
  }
  .nq-net-dialog-actions .nq-btn {
    flex: 1;
    justify-content: center;
  }
}
.nq-usage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.nq-usage-stat {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  padding: 12px;
}
.nq-usage-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-usage-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.nq-usage-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.nq-usage-meter-text {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  margin-top: 8px;
}
.nq-usage-chart-col {
  flex: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
}
.nq-usage-chart-bar {
  width: 100%;
  min-height: 2px;
  background: var(--primary);
  opacity: .8;
  border-radius: 3px 3px 0 0;
  transition: opacity .12s var(--ease);
}
.nq-usage-chart-col:hover .nq-usage-chart-bar {
  opacity: 1;
}
.nq-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 2px;
}
.nq-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-quaternary);
}
.nq-timeline:has(> .nq-empty)::before {
  display: none;
}
.nq-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}
.nq-timeline-item .nq-step-icon {
  margin-top: 1px;
  background: var(--bg-base);
}
.nq-timeline-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nq-timeline-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-quaternary);
}
.nq-timeline-kind {
  display: inline-flex;
  align-items: center;
}
.nq-timeline-tool {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.nq-timeline-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nq-doc-page.is-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}
.nq-doc-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nq-doc-brand:hover {
  opacity: .85;
}
.nq-doc-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.nq-doc-main {
  flex: 1;
  width: 100%;
}
.nq-doc-page.is-card .nq-doc-prose {
  padding: 18px 6px 0;
}
.nq-doc-date {
  margin-top: 32px;
  padding: 16px 6px 40px;
  border-top: 1px solid var(--border-quaternary);
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-doc-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px 24px 40px;
}
.nq-doc-footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-quaternary);
  border-top: 1px solid var(--border-quaternary);
}
.nq-doc-page.is-public {
  background: var(--bg-layout);
}
.nq-doc-page.is-public .nq-doc-bar {
  background: var(--bg-layout);
  border-bottom-color: var(--border-tertiary);
  padding: 0 max(24px, calc((100% - 880px) / 2));
}
.nq-doc-page.is-public .nq-doc-brand {
  gap: 10px;
}
.nq-doc-page.is-public .nq-doc-page.is-card {
  position: relative;
  box-shadow: var(--shadow-panel);
}
.nq-doc-page.is-public .nq-doc-page.is-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    linear-gradient(
      90deg,
      var(--primary),
      transparent 72%);
  opacity: .9;
  pointer-events: none;
}
.nq-doc-page.is-public .nq-doc-page.is-card.nq-progressive-enter {
  animation-duration: .32s;
}
.nq-doc-page.is-public .nq-doc-page-title {
  padding-top: 36px;
  font-size: clamp(22px, 4vw, 27px);
  line-height: 1.25;
}
.nq-doc-page.is-public .nq-doc-page.is-card .nq-doc-prose {
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.nq-doc-page.is-public .nq-doc-prose p {
  margin-bottom: 12px;
}
.nq-doc-page.is-public .nq-doc-prose h1 {
  margin: 44px 0 16px;
  font-size: 22px;
}
.nq-doc-page.is-public .nq-doc-prose h2 {
  margin: 40px 0 14px;
  font-size: 19px;
}
.nq-doc-page.is-public .nq-doc-prose h3 {
  margin: 26px 0 12px;
  font-size: 16px;
}
.nq-doc-page.is-public .nq-doc-date {
  margin-top: 40px;
  padding: 16px 6px 44px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .03em;
}
.nq-doc-page.is-public .nq-doc-footer {
  background: var(--bg-layout);
  border-top-color: var(--border-tertiary);
  padding: 22px 20px;
}
.nq-doc-page.is-public .nq-doc-footer .nq-doc-mark {
  width: 16px;
  height: 16px;
}
.nq-doc-page.is-public .nq-doc-footer-brand {
  gap: 7px;
}
@media (max-width: 899px) {
  .nq-doc-page.is-public .nq-doc-bar {
    height: 52px;
    padding: 0 16px;
  }
  .nq-doc-page.is-public .nq-doc-page.is-card {
    padding: 4px 18px 0;
  }
}
@media print {
  .nq-doc-page.is-public .nq-doc-page.is-card::before {
    display: none;
  }
  .nq-doc-page.is-public .nq-doc-page-title {
    padding-top: 18px;
  }
}
.nq-dialog-btn-danger {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}
.nq-dialog-btn-danger:hover {
  opacity: .88;
  background: var(--error);
}
@media (max-width: 899px) {
  .nq-two-pane {
    flex-direction: column;
  }
  .nq-two-pane-left {
    width: auto;
  }
  .nq-skills-list {
    max-height: 220px;
    overflow-y: auto;
  }
  .nq-usage-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nq-doc-page.is-card {
    width: min(calc(100% - 24px), 880px);
    margin: 16px auto 48px;
  }
  .nq-cards-grid {
    grid-template-columns: 1fr;
  }
}
.nq-demo-page {
  --nq-demo-bg: #f8faf9;
  --nq-demo-surface: #ffffff;
  --nq-demo-surface-muted: #f1f5f3;
  --nq-demo-border: #dce7e1;
  --nq-demo-text: #17201c;
  --nq-demo-muted: #78847e;
  --nq-demo-brand: #2f7d62;
  --nq-demo-brand-strong: #276a53;
  --nq-demo-brand-soft: #ecf5f0;
  --nq-demo-glass: rgba(248, 250, 249, .88);
  --nq-demo-border-hover: rgba(47, 125, 98, .4);
  --nq-demo-ring: rgba(47, 125, 98, .1);
  --nq-demo-glow-1: rgba(47, 125, 98, .28);
  --nq-demo-glow-2: rgba(47, 125, 98, .2);
  --nq-demo-glow-3: rgba(47, 125, 98, .3);
  --nq-demo-shadow: 0 18px 60px rgba(18, 45, 33, .07);
  --nq-demo-speed: 1;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--nq-demo-bg);
  color: var(--nq-demo-text);
  transition: background-color .16s ease, color .16s ease;
}
.nq-demo-page.nq-demo-dark {
  --nq-demo-bg: #111713;
  --nq-demo-surface: #18201c;
  --nq-demo-surface-muted: #202a25;
  --nq-demo-border: #303d36;
  --nq-demo-text: #edf4f0;
  --nq-demo-muted: #95a19b;
  --nq-demo-brand: #6fc09d;
  --nq-demo-brand-strong: #91d6b7;
  --nq-demo-brand-soft: #193629;
  --nq-demo-glass: rgba(17, 23, 19, .88);
  --nq-demo-border-hover: rgba(111, 192, 157, .4);
  --nq-demo-ring: rgba(111, 192, 157, .1);
  --nq-demo-glow-1: rgba(111, 192, 157, .28);
  --nq-demo-glow-2: rgba(111, 192, 157, .2);
  --nq-demo-glow-3: rgba(111, 192, 157, .3);
  --nq-demo-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}
.nq-demo-page button:focus-visible {
  outline: 2px solid var(--nq-demo-brand);
  outline-offset: 2px;
}
.nq-demo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--nq-demo-border);
  background: var(--nq-demo-glass);
  backdrop-filter: blur(18px);
}
.nq-demo-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  color: var(--nq-demo-text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.nq-demo-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.nq-demo-icon-btn,
.nq-demo-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nq-demo-border);
  background: var(--nq-demo-surface);
  color: var(--nq-demo-text);
  cursor: pointer;
}
.nq-demo-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
}
.nq-demo-icon-btn:hover,
.nq-demo-control-btn:hover {
  border-color: var(--nq-demo-border-hover);
  color: var(--nq-demo-brand-strong);
}
.nq-demo-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--nq-demo-brand-soft);
  color: var(--nq-demo-brand-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.nq-demo-shell {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  padding: 72px 0 88px;
}
.nq-demo-shell-wide {
  width: min(100% - 48px, 1120px);
}
.nq-demo-intro {
  max-width: 660px;
}
.nq-demo-shell-wide .nq-demo-intro {
  max-width: 720px;
}
.nq-demo-eyebrow,
.nq-demo-stage-kicker {
  margin: 0;
  color: var(--nq-demo-brand-strong);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
}
.nq-demo-intro h1 {
  margin: 11px 0 12px;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.nq-demo-intro-text {
  max-width: 610px;
  margin: 0;
  color: var(--nq-demo-muted);
  font-size: 14px;
  line-height: 1.75;
}
.nq-demo-stage {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--nq-demo-border);
  border-radius: 16px;
  background: var(--nq-demo-surface);
  box-shadow: var(--nq-demo-shadow);
}
.nq-demo-stage-topline {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nq-demo-border);
}
.nq-demo-stage-topline > div:first-child {
  display: grid;
  gap: 3px;
}
.nq-demo-stage-topline strong {
  font-size: 14px;
  font-weight: 650;
}
.nq-demo-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-demo-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--nq-demo-surface-muted);
}
.nq-demo-segmented button {
  min-width: 48px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--nq-demo-muted);
  font-size: 11px;
  cursor: pointer;
}
.nq-demo-segmented button.is-active {
  background: var(--nq-demo-surface);
  box-shadow: 0 1px 4px rgba(17, 36, 28, .1);
  color: var(--nq-demo-text);
  font-weight: 650;
}
.nq-demo-control-btn {
  height: 34px;
  gap: 6px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 11px;
}
.nq-demo-control-btn.is-icon-only {
  width: 34px;
  padding: 0;
}
.nq-demo-context {
  display: grid;
  min-height: 174px;
  align-content: center;
  padding: 34px 42px 38px;
}
.nq-demo-running-row {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 4px 5px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nq-demo-chevron {
  color: var(--nq-demo-muted);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity .13s ease, transform .13s ease;
}
.nq-demo-running-row:hover .nq-demo-chevron,
.nq-demo-running-row:focus-visible .nq-demo-chevron {
  opacity: 1;
  transform: translateX(0);
}
.nq-demo-story {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--nq-demo-muted);
  font-size: 12px;
}
.nq-demo-story-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--nq-demo-glow-3);
}
.nq-demo-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.nq-demo-options-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nq-demo-option {
  display: grid;
  min-width: 0;
  min-height: 210px;
  align-content: start;
  padding: 17px;
  border: 1px solid var(--nq-demo-border);
  border-radius: 13px;
  background: var(--nq-demo-surface);
  color: var(--nq-demo-text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color .14s ease,
    box-shadow .14s ease,
    transform .14s ease;
}
.nq-demo-option:hover {
  border-color: var(--nq-demo-border-hover);
  transform: translateY(-1px);
}
.nq-demo-option.is-selected {
  border-color: var(--nq-demo-brand);
  box-shadow: 0 0 0 3px var(--nq-demo-ring);
}
.nq-demo-option-heading,
.nq-demo-option-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-demo-option-topline {
  margin-bottom: 20px;
}
.nq-demo-option-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--nq-demo-brand-soft);
  color: var(--nq-demo-brand-strong);
}
.nq-demo-option-marker {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--nq-demo-surface-muted);
  color: var(--nq-demo-muted);
  font-size: 10px;
  font-weight: 780;
}
.nq-demo-option-index {
  color: var(--nq-demo-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .09em;
}
.nq-demo-option-check {
  margin-left: auto;
  color: var(--nq-demo-brand);
}
.nq-demo-option-preview {
  display: flex;
  min-height: 54px;
  align-items: center;
  margin: 18px 0 13px;
  padding: 0 13px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--nq-demo-surface-muted);
}
.nq-demo-option > strong {
  font-size: 13px;
  font-weight: 650;
}
.nq-demo-options-4 .nq-demo-option > strong {
  font-size: 15px;
  font-weight: 700;
}
.nq-demo-option > p {
  margin: 7px 0 0;
  color: var(--nq-demo-muted);
  font-size: 11px;
  line-height: 1.55;
}
.nq-demo-options-4 .nq-demo-option > p {
  margin: 8px 0 14px;
  font-size: 12px;
  line-height: 1.65;
}
.nq-demo-options-4 .nq-demo-option > small {
  align-self: end;
  margin-top: auto;
  color: var(--nq-demo-brand-strong);
  font-size: 10px;
  font-weight: 660;
}
.nq-demo-ld-effect {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--nq-demo-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 480;
  line-height: 1.4;
  white-space: nowrap;
}
.nq-demo-ld-text {
  position: relative;
  display: inline-block;
}
.nq-demo-page[data-motion=paused] .nq-demo-ld-effect,
.nq-demo-page[data-motion=paused] .nq-demo-ld-effect * {
  animation-play-state: paused !important;
}
.nq-demo-ld-effect.is-sweep .nq-demo-ld-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 255, 255, .92) 46%,
      #fff 50%,
      rgba(255, 255, 255, .92) 54%,
      transparent 66%,
      transparent 100%);
  background-position: 120% 50%;
  background-size: 240% 100%;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1px var(--nq-demo-glow-1)) drop-shadow(0 0 5px var(--nq-demo-glow-2));
  pointer-events: none;
  animation: nq-demo-ld-sweep calc(2.6s * var(--nq-demo-speed)) linear infinite;
}
.nq-demo-ld-effect.is-halo .nq-demo-ld-text {
  animation: nq-demo-ld-halo calc(2.2s * var(--nq-demo-speed)) ease-in-out infinite;
}
.nq-demo-ld-effect.is-scan .nq-demo-ld-text {
  background:
    linear-gradient(
      96deg,
      var(--nq-demo-muted) 0 46%,
      var(--nq-demo-brand-strong) 49% 51%,
      var(--nq-demo-muted) 54% 100%);
  background-position: 120% 50%;
  background-size: 340% 100%;
  background-clip: text;
  color: transparent;
  animation: nq-demo-ld-scan calc(1.7s * var(--nq-demo-speed)) linear infinite;
}
.nq-demo-ld-effect.is-breathe .nq-demo-ld-text {
  animation: nq-demo-ld-breathe calc(2s * var(--nq-demo-speed)) ease-in-out infinite;
}
.nq-demo-ld-effect.is-words {
  gap: 0;
}
.nq-demo-ld-word {
  animation: nq-demo-ld-word calc(2.4s * var(--nq-demo-speed)) ease-in-out infinite;
  animation-delay: calc(var(--nq-demo-word-index) * 150ms * var(--nq-demo-speed));
}
.nq-demo-ld-spark {
  flex: 0 0 auto;
  color: var(--nq-demo-brand);
  filter: drop-shadow(0 0 5px var(--nq-demo-glow-3));
  animation: nq-demo-ld-spark calc(1.8s * var(--nq-demo-speed)) ease-in-out infinite;
}
.nq-demo-ld-effect.is-spark .nq-demo-ld-text {
  background:
    linear-gradient(
      96deg,
      var(--nq-demo-muted) 0 38%,
      var(--nq-demo-brand) 50%,
      var(--nq-demo-muted) 62% 100%);
  background-position: 120% 50%;
  background-size: 220% 100%;
  background-clip: text;
  color: transparent;
  animation: nq-demo-ld-sweep calc(3.2s * var(--nq-demo-speed)) linear infinite;
}
@keyframes nq-demo-ld-sweep {
  from {
    background-position: 120% 50%;
  }
  to {
    background-position: -120% 50%;
  }
}
@keyframes nq-demo-ld-scan {
  from {
    background-position: 120% 50%;
  }
  to {
    background-position: -120% 50%;
  }
}
@keyframes nq-demo-ld-halo {
  0%, 100% {
    color: var(--nq-demo-muted);
    filter: blur(0);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: var(--nq-demo-brand-strong);
    filter: blur(.06px);
    text-shadow: 0 0 5px var(--nq-demo-glow-1), 0 0 15px var(--nq-demo-glow-2);
  }
}
@keyframes nq-demo-ld-breathe {
  0%, 100% {
    color: var(--nq-demo-muted);
    opacity: .72;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    color: var(--nq-demo-brand-strong);
    opacity: 1;
    text-shadow: 0 0 14px var(--nq-demo-glow-3);
  }
}
@keyframes nq-demo-ld-word {
  0%, 45%, 100% {
    color: var(--nq-demo-muted);
    text-shadow: 0 0 0 transparent;
  }
  18% {
    color: var(--nq-demo-brand-strong);
    text-shadow: 0 0 10px var(--nq-demo-glow-3);
  }
}
@keyframes nq-demo-ld-spark {
  0%, 100% {
    opacity: .45;
    transform: scale(.82) rotate(-8deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.06) rotate(8deg);
  }
}
.nq-demo-page.nq-demo-wm {
  background:
    radial-gradient(
      circle at 50% 8%,
      var(--nq-demo-glow-2),
      transparent 32rem),
    var(--nq-demo-bg);
}
.nq-demo-toolbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nq-demo-border);
  background: var(--nq-demo-glass);
}
.nq-demo-current {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.nq-demo-current-marker {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--nq-demo-brand-soft);
  color: var(--nq-demo-brand-strong);
  font-size: 12px;
  font-weight: 780;
}
.nq-demo-current > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.nq-demo-current small {
  color: var(--nq-demo-muted);
  font-size: 10px;
}
.nq-demo-current strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-demo-wm-task {
  padding: 28px 34px 34px;
}
.nq-demo-wm-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nq-demo-brand);
}
.nq-demo-wm-heading h2 {
  margin: 0;
  color: var(--nq-demo-text);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -.025em;
}
.nq-demo-wm-heading .icon {
  color: var(--nq-demo-brand);
}
.nq-demo-wm-chevron {
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-top: 1.5px solid var(--nq-demo-muted);
  border-left: 1.5px solid var(--nq-demo-muted);
  transform: translateY(3px) rotate(45deg);
}
.nq-demo-wm-paper {
  min-height: 500px;
  margin: 18px 0 0 32px;
  padding: 24px 26px 30px;
  overflow: hidden;
  border: 1px solid var(--nq-demo-border);
  border-radius: 17px;
  background: var(--nq-demo-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}
.nq-demo-page.nq-demo-dark .nq-demo-wm-paper {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.nq-demo-wm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nq-demo-muted);
  font-size: 14px;
  line-height: 1.65;
}
.nq-demo-wm-status svg {
  flex: 0 0 auto;
  color: var(--nq-demo-brand);
}
.nq-demo-wm-copy {
  margin-top: 22px;
  color: var(--nq-demo-muted);
  font-size: clamp(16px, 1.66vw, 20px);
  letter-spacing: .006em;
  line-height: 1.95;
}
.nq-demo-wm-paragraph {
  min-height: 1.95em;
  margin: 0 0 17px;
}
.nq-demo-wm-paragraph:first-child {
  color: var(--nq-demo-text);
  font-size: 1.08em;
  font-weight: 680;
}
.nq-demo-wm-paragraph:last-child {
  margin-bottom: 0;
}
.nq-demo-wm-unit {
  position: relative;
  animation-delay: var(--nq-demo-wm-delay);
  animation-duration: var(--nq-demo-wm-duration);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22, .72, .24, 1);
  will-change:
    opacity,
    filter,
    transform;
}
.nq-demo-wm-unit.is-emphasis,
.nq-demo-wm-sentence .is-emphasis {
  color: var(--nq-demo-text);
  font-weight: 720;
}
.nq-demo-wm-copy.is-characters .nq-demo-wm-unit {
  display: inline-block;
  animation-name: nq-demo-wm-character-in;
}
.nq-demo-wm-copy.is-characters .nq-demo-wm-unit.is-space {
  min-width: .28em;
}
.nq-demo-wm-copy.is-phrases .nq-demo-wm-unit {
  display: inline-block;
  animation-name: nq-demo-wm-phrase-in;
}
.nq-demo-wm-copy.is-sentences .nq-demo-wm-sentence {
  display: block;
  animation-name: nq-demo-wm-sentence-in;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.nq-demo-wm-copy.is-focus .nq-demo-wm-unit {
  display: inline-block;
  animation-name: nq-demo-wm-focus-in;
}
.nq-demo-wm-copy.is-focus .nq-demo-wm-unit::after {
  position: absolute;
  top: .12em;
  right: -.08em;
  width: 1.5px;
  height: 1.18em;
  border-radius: 2px;
  background: var(--nq-demo-brand);
  content: "";
  opacity: 0;
  animation: nq-demo-wm-caret var(--nq-demo-wm-duration) steps(1, end) var(--nq-demo-wm-delay) both;
}
.nq-demo-page[data-playback=paused] .nq-demo-wm-unit,
.nq-demo-page[data-playback=paused] .nq-demo-wm-unit::after {
  animation-play-state: paused;
}
@keyframes nq-demo-wm-character-in {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(5px) scale(.985);
  }
  65% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@keyframes nq-demo-wm-phrase-in {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(7px);
  }
  72%, 100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
@keyframes nq-demo-wm-sentence-in {
  0% {
    opacity: 0;
    filter: blur(4px);
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}
@keyframes nq-demo-wm-focus-in {
  0% {
    opacity: 0;
    color: var(--nq-demo-brand);
    filter: blur(6px);
    text-shadow: 0 0 16px var(--nq-demo-glow-2);
    transform: translateY(5px);
  }
  52% {
    opacity: 1;
    color: var(--nq-demo-brand-strong);
    filter: blur(0);
    text-shadow: 0 0 10px var(--nq-demo-glow-1);
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    color: inherit;
    filter: blur(0);
    text-shadow: none;
    transform: none;
  }
}
@keyframes nq-demo-wm-caret {
  0%, 28% {
    opacity: 0;
  }
  29%, 72% {
    opacity: .85;
  }
  73%, 100% {
    opacity: 0;
  }
}
.nq-demo-note {
  display: flex;
  max-width: 790px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--nq-demo-muted);
}
.nq-demo-note svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--nq-demo-brand);
}
.nq-demo-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}
@media (max-width: 820px) {
  .nq-demo-shell {
    width: min(100% - 32px, 680px);
    padding-top: 48px;
  }
  .nq-demo-options,
  .nq-demo-options-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nq-demo-stage-topline,
  .nq-demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .nq-demo-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .nq-demo-wm-paper {
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .nq-demo-header {
    padding-inline: 14px;
  }
  .nq-demo-shell {
    width: min(100% - 24px, 480px);
    padding: 38px 0 56px;
  }
  .nq-demo-options,
  .nq-demo-options-4 {
    grid-template-columns: 1fr;
  }
  .nq-demo-context {
    min-height: 144px;
    padding: 26px 22px 30px;
  }
  .nq-demo-segmented {
    width: 100%;
  }
  .nq-demo-segmented button {
    flex: 1;
  }
  .nq-demo-wm-task {
    padding: 24px 16px 20px;
  }
  .nq-demo-wm-paper {
    min-height: 560px;
    padding: 20px 18px 24px;
  }
  .nq-demo-wm-copy {
    font-size: 16px;
    line-height: 1.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-demo-ld-effect,
  .nq-demo-ld-effect *,
  .nq-demo-option,
  .nq-demo-chevron,
  .nq-demo-wm-unit,
  .nq-demo-wm-unit::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
.nq-share-card {
  max-width: 520px;
}
.nq-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.nq-share-head .nq-dialog-title {
  margin-bottom: 0;
}
.nq-share-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 96px;
}
.nq-share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nq-share-url-row .nq-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-share-url-row .nq-btn {
  flex-shrink: 0;
}
.nq-share-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.nq-share-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--send);
  cursor: pointer;
}
.nq-share-status {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.nq-share-error {
  font-size: 12.5px;
  color: var(--error);
}
.nq-sidebar-h3 .nq-h3-add + .nq-h3-add {
  margin-left: 0;
}
.nq-share-batch {
  border-top: 1px solid var(--border-quaternary);
  margin-top: 2px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-share-batch-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.nq-share-batch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nq-share-batch-row .nq-btn {
  flex-shrink: 0;
}
.nq-share-batch-row .nq-share-error {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.nq-bshare-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 264px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.nq-bshare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: background .12s;
}
.nq-bshare-row:hover {
  background: var(--fill-tertiary);
}
.nq-bshare-title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-bshare-row:hover .nq-bshare-title {
  color: var(--text);
}
.nq-bshare-row .nq-sfile-badge {
  flex-shrink: 0;
}
.nq-bshare-row .nq-icon-btn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nq-bshare-row .nq-icon-btn svg {
  width: 11px;
  height: 11px;
}
.nq-bshare-open {
  text-decoration: none;
  color: var(--text-tertiary);
}
.nq-bshare-open:hover {
  color: var(--text);
}
.nq-bshare-fail-summary {
  margin-top: 10px;
  font-size: 12px;
  color: var(--error);
  line-height: 1.6;
}
.nq-bshare-row-failed .nq-bshare-title {
  color: var(--error);
}
.nq-bshare-fail-reason {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--error);
  opacity: .85;
}
.nq-rev-card {
  max-width: 760px;
  width: 92%;
}
.nq-rev-body {
  display: flex;
  gap: 14px;
  height: 420px;
}
.nq-rev-list {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding-right: 6px;
}
.nq-rev-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nq-rev-item:hover {
  background: var(--bg-layout);
}
.nq-rev-item.selected {
  background: var(--fill-tertiary);
}
.nq-rev-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  border: 1px solid var(--border-tertiary);
  border-radius: 4px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.nq-rev-item.current .nq-rev-ver {
  color: var(--send);
  border-color: color-mix(in srgb, var(--send) 45%, transparent);
}
.nq-rev-item-body {
  flex: 1;
  min-width: 0;
}
.nq-rev-item-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-rev-item-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.nq-rev-preview {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.nq-rev-preview-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.nq-rev-md {
  padding: 0;
}
.nq-rev-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  min-height: 30px;
}
.nq-rev-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 8px 4px;
}
.nq-rev-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--fill-tertiary);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  padding: 2px;
  margin-bottom: 10px;
}
.nq-rev-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: inherit;
}
.nq-rev-tab:hover:not(.active):not(:disabled) {
  color: var(--text);
}
.nq-rev-tab.active {
  background: var(--bg-base);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.nq-rev-tab:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.nq-rev-diff-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.nq-rev-diff-base {
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.nq-rev-diff-nums {
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.nq-rev-diff {
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  background: var(--bg-base);
}
.nq-rev-diff-row {
  display: flex;
  align-items: stretch;
}
.nq-rev-diff-row .ln {
  flex-shrink: 0;
  width: 38px;
  text-align: right;
  padding: 0 8px;
  color: var(--text-quaternary);
  background: var(--bg-layout);
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.nq-rev-diff-row .sign {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  user-select: none;
}
.nq-rev-diff-row .txt {
  flex: 1;
  min-width: 0;
  padding: 0 10px 0 2px;
  white-space: pre-wrap;
  word-break: break-all;
}
.nq-rev-diff-row .txt:empty::after {
  content: " ";
}
.nq-rev-diff-row.add {
  background: color-mix(in srgb, var(--success) 10%, transparent);
}
.nq-rev-diff-row.del {
  background: color-mix(in srgb, var(--error) 10%, transparent);
}
.nq-rev-diff-row.add .sign {
  color: var(--success);
}
.nq-rev-diff-row.del .sign {
  color: var(--error);
}
.nq-rev-diff-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
}
.nq-rev-diff-trunc {
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  background: var(--bg-layout);
  border-top: 1px solid var(--border-quaternary);
  font-family: var(--font-sans);
}
.nq-share-list {
  display: flex;
  flex-direction: column;
}
.nq-share-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-share-list-row:last-child {
  border-bottom: none;
}
.nq-share-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nq-share-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-share-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  min-width: 0;
}
.nq-share-list-link {
  color: var(--info);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.nq-share-list-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nq-share-list-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.nq-doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  max-width: 520px;
}
.nq-doc-card-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nq-doc-card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.nq-doc-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
}
.nq-doc-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-doc-card-ver {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--fill-tertiary);
  padding: 1px 5px;
  border-radius: 4px;
}
.nq-doc-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.nq-doc-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 899px) {
  .nq-doc-card {
    max-width: 100%;
  }
  .nq-doc-card-sub {
    display: none;
  }
}
.nq-sheet-card {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  max-width: 520px;
}
.nq-sheet-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nq-sheet-card-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nq-sheet-card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.nq-sheet-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
}
.nq-sheet-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-sheet-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.nq-sheet-card-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.nq-sheet-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.nq-sheet-card-table {
  margin-top: 10px;
  overflow-x: auto;
}
.nq-sheet-card-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
@media (max-width: 899px) {
  .nq-sheet-card {
    max-width: 100%;
  }
  .nq-sheet-card-sub {
    display: none;
  }
}
.nq-image-card {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  max-width: 520px;
}
.nq-image-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nq-image-card-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nq-image-card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.nq-image-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
}
.nq-image-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-image-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.nq-image-card-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.nq-image-card-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.nq-image-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.nq-image-grid.is-multi {
  grid-template-columns: repeat(2, 1fr);
}
.nq-image-grid-item {
  padding: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
  min-width: 0;
}
.nq-image-grid-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.nq-image-grid.is-multi .nq-image-grid-img {
  aspect-ratio: 1 / 1;
  max-height: none;
}
@media (max-width: 899px) {
  .nq-image-card {
    max-width: 100%;
  }
  .nq-image-card-sub {
    display: none;
  }
}
.nq-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.nq-sheet-table th,
.nq-sheet-table td {
  border: 1px solid var(--border-tertiary);
  padding: 3px 8px;
  text-align: left;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-sheet-table th {
  background: var(--fill-tertiary);
  font-weight: 500;
  color: var(--text);
}
.nq-sheet-table td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nq-sheet-table-empty {
  text-align: center;
  color: var(--text-tertiary);
}
.nq-preview-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nq-preview-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-preview-sheet-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-preview-sheet-meta {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-preview-sheet-block {
  overflow-x: auto;
}
.nq-preview-sheet-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.nq-preview-sheet-note {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-video-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-width: 520px;
}
.nq-video-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-video-card.playing {
  flex-direction: column;
}
.nq-video-thumb {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 90px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--fill-tertiary);
  cursor: pointer;
  display: block;
}
.nq-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nq-video-thumb.no-img {
  background:
    linear-gradient(
      135deg,
      #2f4f43,
      #1f3a2e);
}
.nq-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s var(--ease), transform .12s var(--ease);
}
.nq-video-thumb:hover .nq-video-play {
  background: var(--send);
  transform: translate(-50%, -50%) scale(1.06);
}
.nq-video-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}
.nq-video-provider {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 1px 6px;
  border-radius: 4px;
}
.nq-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
  display: block;
}
.nq-video-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.nq-video-title:hover {
  color: var(--info);
}
.nq-video-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-video-actions {
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.nq-doc-h {
  scroll-margin-top: 72px;
}
.nq-doc-h-tools {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s var(--ease);
}
.nq-doc-h:hover .nq-doc-h-tools,
.nq-doc-h.h-hover .nq-doc-h-tools {
  opacity: 1;
  pointer-events: auto;
}
.nq-doc-h-badge,
.nq-doc-h-fold {
  height: 20px;
  min-width: 20px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tertiary);
  border-radius: 4px;
  background: var(--bg-base);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition:
    color .12s,
    border-color .12s,
    background .12s;
}
.nq-doc-h-badge:hover,
.nq-doc-h-fold:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-layout);
}
.nq-doc-h-fold svg {
  transition: transform .18s var(--ease);
}
.nq-doc-h.collapsed .nq-doc-h-fold svg {
  transform: rotate(-90deg);
}
.nq-doc-folded {
  display: none;
}
.nq-doc-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-quaternary);
  text-decoration: none;
}
.nq-doc-footer-brand:hover {
  color: var(--text-secondary);
}
@media print {
  .nq-doc-bar,
  .nq-doc-footer,
  .nq-doc-h-tools {
    display: none !important;
  }
  .nq-doc-page.is-public {
    background: #fff;
  }
  .nq-doc-main {
    padding: 0;
  }
  .nq-doc-page.is-public .nq-doc-page.is-card {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: #fff;
  }
  .nq-doc-page.is-public .nq-doc-page.is-card .nq-doc-prose {
    padding: 0;
  }
  .nq-doc-page.is-public .nq-doc-date {
    margin-top: 16px;
    padding: 8px 0 0;
  }
}
@media (max-width: 899px) {
  .nq-video-card {
    flex-direction: column;
  }
  .nq-video-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .nq-rev-card {
    width: 96%;
  }
  .nq-rev-body {
    flex-direction: column;
    height: 480px;
  }
  .nq-rev-list {
    width: auto;
    max-height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--border-quaternary);
    padding: 0 0 6px;
  }
  .nq-share-list-link {
    max-width: 140px;
  }
}
.nq-mcp-server {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.nq-mcp-server + .nq-mcp-server {
  margin-top: 10px;
}
.nq-mcp-server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nq-mcp-server-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nq-mcp-server-name {
  font-weight: 600;
  font-size: 14px;
}
.nq-mcp-status {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-mcp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-quaternary);
}
.nq-mcp-dot-ok {
  background: var(--success);
}
.nq-mcp-dot-error {
  background: var(--error);
}
.nq-mcp-dot-untested {
  background: var(--text-quaternary);
}
.nq-mcp-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  word-break: break-all;
}
.nq-mcp-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-mcp-error {
  font-size: 12px;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, transparent);
  border-left: 2px solid var(--error);
  border-radius: var(--radius);
  padding: 6px 10px;
  word-break: break-word;
}
.nq-mcp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.nq-mcp-actions .nq-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
}
.nq-mcp-btn-danger {
  color: var(--error);
}
.nq-mcp-btn-danger:hover {
  background: color-mix(in srgb, var(--error) 10%, transparent);
}
.nq-mcp-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}
.nq-mcp-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--fill-secondary);
  border: 1px solid var(--border-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.nq-mcp-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .15s var(--ease);
}
.nq-mcp-switch.on {
  background: var(--send);
  border-color: var(--send);
}
.nq-mcp-switch.on::after {
  transform: translateX(14px);
}
.nq-mcp-switch.busy {
  opacity: .5;
  pointer-events: none;
}
.nq-mcp-form {
  display: flex;
  flex-direction: column;
}
.nq-mcp-form .nq-settings-row {
  align-items: flex-start;
}
.nq-mcp-form .nq-settings-row-label {
  padding-top: 7px;
}
.nq-mcp-input,
.nq-mcp-header-input {
  width: 100%;
}
.nq-mcp-input {
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-mcp-header-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.nq-mcp-header-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nq-mcp-header-row .nq-mcp-header-input {
  flex: 1;
  min-width: 0;
}
.nq-mcp-header-row .nq-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.nq-mcp-header-rows > .nq-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.nq-mcp-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.nq-mcp-form-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-mcp-tools-preview {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-mcp-tools-count {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}
.nq-mcp-tool-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-mcp-tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 2px 6px;
  align-self: flex-start;
}
.nq-mcp-tool-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}
@media (max-width: 899px) {
  .nq-mcp-server-head {
    flex-wrap: wrap;
  }
  .nq-mcp-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.nq-sfile-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-sfile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-sfile-row:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-sfile-row.missing {
  opacity: .45;
}
.nq-sfile-row.missing:hover {
  cursor: default;
}
.nq-sfile-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-sfile-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-sfile-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nq-sfile-badge {
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--fill-tertiary);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-sfile-badge-shared {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.nq-sfile-badge-missing {
  color: var(--text-quaternary);
}
.nq-sfile-link {
  width: 20px;
  height: 20px;
  display: none;
  flex-shrink: 0;
}
.nq-sfile-row:hover .nq-sfile-link {
  display: inline-flex;
}
.nq-sfile-link svg {
  width: 11px;
  height: 11px;
}
.nq-inline-link {
  border: none;
  background: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: var(--info);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nq-inline-link:hover {
  color: var(--text);
}
.nq-share-intro {
  margin: 6px 2px 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-share-intro-text {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.nq-share-manage-btn {
  align-self: flex-start;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}
.nq-sshare-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-sshare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .12s;
}
.nq-sshare-row:hover {
  background: var(--fill-tertiary);
}
.nq-sshare-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-sshare-title {
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-sshare-row:hover .nq-sshare-title {
  color: var(--text);
}
.nq-sshare-meta {
  font-size: 10.5px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-sshare-row .nq-icon-btn {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nq-sshare-row .nq-icon-btn svg {
  width: 11px;
  height: 11px;
}
.nq-sdoc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-sdoc-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.nq-sdoc-title-row .nq-sshare-title {
  flex: 1;
  min-width: 0;
}
.nq-sdoc-title-row .nq-sfile-badge {
  flex-shrink: 0;
}
.nq-sdoc-ops {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nq-sdoc-row:hover .nq-sdoc-ops {
  display: inline-flex;
}
.nq-sdoc-empty-main {
  color: var(--text-tertiary);
}
.nq-sdoc-empty-hint {
  font-size: 11px;
  margin-top: 2px;
}
.nq-chat-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.nq-view-chat.has-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-preview > .nq-chat-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.nq-view-chat.has-preview > .nq-preview-pane {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.nq-preview-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-preview-head {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-preview-kicker {
  flex-shrink: 0;
  height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--fill-tertiary);
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-preview-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-preview-head-ops {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nq-preview-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}
.nq-preview-doc {
  max-width: 100%;
}
.nq-preview-loading {
  padding: 32px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-preview-hint-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  border: 1px dashed var(--border-tertiary);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 12px;
}
.nq-preview-hint-kicker {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nq-preview-hint-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.nq-preview-hint-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  word-break: break-all;
}
.nq-preview-hint-note {
  font-size: 12px;
  color: var(--text-quaternary);
  line-height: 1.7;
}
.nq-preview-hint-link {
  color: var(--info);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nq-preview-hint-link:hover {
  color: var(--text);
}
.nq-preview-title.is-renaming {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.nq-doc-rename-input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.nq-doc-rename-input:focus {
  outline: none;
  border-color: var(--border);
}
.nq-doc-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.nq-doc-edit-textarea {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color .12s var(--ease);
}
.nq-doc-edit-textarea:focus {
  border-color: var(--border);
}
.nq-doc-edit-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nq-doc-edit-hint {
  font-size: 12px;
  color: var(--error);
}
.nq-doc-fmt-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.nq-doc-fmt-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nq-doc-fmt-sep {
  width: 1px;
  height: 14px;
  margin: 0 3px;
  background: var(--border-quaternary);
  flex-shrink: 0;
}
.nq-doc-fmt-bar .nq-icon-btn {
  width: 24px;
  height: 24px;
}
.nq-doc-fmt-bar .nq-icon-btn svg {
  width: 13px;
  height: 13px;
}
.nq-doc-fmt-hbtn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nq-preview-pane.is-full .nq-doc-fmt-bar {
  padding: 0 6px;
}
.nq-doc-edit-main {
  position: relative;
}
.nq-doc-slash-menu {
  position: absolute;
  z-index: 30;
  min-width: 224px;
  max-width: 280px;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.nq-doc-slash-title {
  padding: 5px 8px 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}
.nq-doc-slash-list {
  max-height: 216px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-doc-slash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-doc-slash-item:hover,
.nq-doc-slash-item.is-active {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-doc-slash-item .icon-sm {
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.nq-doc-slash-h {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
}
.nq-doc-slash-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-doc-slash-syntax {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-quaternary);
}
.nq-doc-caret-measure {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  top: 0;
  left: 0;
  pointer-events: none;
}
.nq-doc-fmt-bar .nq-icon-btn.is-uploading {
  pointer-events: none;
}
.nq-doc-fmt-bar .nq-icon-btn.is-uploading svg {
  animation: nq-session-spin .9s linear infinite;
}
.nq-doc-find-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-doc-find-bar.is-hidden {
  display: none;
}
.nq-doc-find-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-doc-find-row .nq-icon-btn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.nq-doc-find-row .nq-icon-btn svg {
  width: 13px;
  height: 13px;
}
.nq-doc-find-input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color .12s var(--ease);
}
.nq-doc-find-input:focus {
  border-color: var(--border);
}
.nq-doc-find-input.no-match {
  border-color: var(--error);
}
.nq-doc-find-count {
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-doc-find-case {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: background .12s, color .12s;
}
.nq-doc-find-case:hover,
.nq-doc-find-case.is-active {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-doc-find-action {
  flex-shrink: 0;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .12s var(--ease), color .12s;
}
.nq-doc-find-action:hover {
  border-color: var(--border);
  color: var(--text);
}
.nq-preview-pane.is-full .nq-doc-find-bar {
  margin: 0 6px;
}
.nq-preview-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-top: 1px solid var(--border-quaternary);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-preview-body .nq-video-card {
  max-width: 100%;
}
@media (max-width: 899px) {
  .nq-view-chat.has-preview {
    display: flex;
  }
  .nq-view-chat.has-preview > .nq-preview-pane {
    position: absolute;
    inset: 0;
    z-index: 40;
    border-left: none;
  }
}
.nq-view-chat.has-preview.has-fullpreview {
  grid-template-columns: minmax(0, 0fr) minmax(0, 1fr);
}
.nq-view-chat.has-preview.has-fullpreview > .nq-chat-main {
  overflow: hidden;
}
.nq-view-chat.has-preview.has-fullpreview .nq-preview-pane:not(.is-doc) .nq-preview-body {
  padding: 20px 24px;
}
.nq-doc-phase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-doc-phase.is-hidden {
  display: none;
}
.nq-doc-phase-saved {
  background: transparent;
  color: var(--success);
}
.nq-doc-phase-dirty::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}
.nq-doc-phase-saving {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-doc-phase-spin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: nq-phase-spin .8s linear infinite;
}
.nq-doc-phase-error {
  background: transparent;
  color: var(--error);
  cursor: pointer;
}
.nq-doc-phase-error:hover {
  background: rgba(236, 91, 86, .1);
}
.nq-doc-phase-conflict {
  background: color-mix(in srgb, #d97706 12%, transparent);
  color: #b45309;
  cursor: pointer;
}
.nq-doc-phase-conflict:hover {
  background: color-mix(in srgb, #d97706 20%, transparent);
}
[data-theme=dark] .nq-doc-phase-conflict {
  color: #f59e0b;
}
@keyframes nq-phase-spin {
  to {
    transform: rotate(360deg);
  }
}
.nq-doc-edit-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-doc-split-preview {
  display: none;
}
@media (min-width: 1200px) {
  .nq-doc-edit.is-split {
    flex-direction: row;
    gap: 14px;
  }
  .nq-doc-edit.is-split .nq-doc-split-preview {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-quaternary);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    overflow: hidden;
  }
  .nq-doc-split-head {
    flex-shrink: 0;
    height: 28px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-quaternary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-quaternary);
  }
  .nq-doc-split-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
  }
}
.nq-doc-split-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 32px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}
.nq-bell-btn {
  position: relative;
}
.nq-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--bg-shell);
}
.nq-approval-menu {
  min-width: 300px;
  max-width: 380px;
}
.nq-approval-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}
.nq-approval-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-approval-tool {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-approval-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-approval-session {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-approval-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.nq-approval-skip {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--text-quaternary);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-approval-skip:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-approval-empty {
  color: var(--text-quaternary);
  cursor: default;
  justify-content: center;
}
.nq-linkref {
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 4px 2px;
}
.nq-linkref-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-linkref-input {
  flex: 1;
  min-width: 0;
}
.nq-linkref-tip {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.nq-linkref-tip.is-error {
  color: var(--error);
}
.nq-tool-btn.recording {
  color: var(--error);
  animation: nq-voice-pulse 1.6s var(--ease) infinite;
}
.nq-tool-btn.recording:hover {
  background: rgba(236, 91, 86, .12);
  color: var(--error);
}
@keyframes nq-voice-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(236, 91, 86, .35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(236, 91, 86, 0);
  }
}
.nq-history-item.unread .nq-item-title {
  font-weight: 600;
  color: var(--text);
}
.nq-history-item .nq-item-emoji {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
}
.nq-list-icon .nq-item-emoji {
  font-size: 14px;
  line-height: 1;
}
.nq-unread-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
.nq-emoji-menu-item {
  cursor: default;
}
.nq-emoji-menu-item:hover {
  background: transparent;
}
.nq-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 8px 6px;
}
.nq-emoji-btn {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background .12s,
    border-color .12s,
    box-shadow .12s;
}
.nq-emoji-btn:hover {
  background: var(--bg-layout);
}
.nq-emoji-btn.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: rgba(128, 199, 118, .12);
}
.nq-apikey-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.nq-apikey-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  background: var(--bg-base);
}
.nq-apikey-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-apikey-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-apikey-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-apikey-secret-warn {
  margin: 10px 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(236, 91, 86, .4);
  border-radius: var(--radius);
  background: rgba(236, 91, 86, .08);
  color: var(--error);
  font-size: 12px;
  line-height: 1.6;
}
.nq-apikey-secret-box {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-layout);
}
.nq-apikey-secret {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.6;
}
.nq-usage-runs {
  margin-top: 10px;
}
.nq-usage-runs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.nq-usage-runs-table th {
  text-align: left;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quaternary);
  border-bottom: 1px solid var(--border-quaternary);
  white-space: nowrap;
}
.nq-usage-runs-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-quaternary);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nq-usage-run-model {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.nq-usage-run-time {
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 32px;
  width: auto;
  min-width: 180px;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.nq-recovery-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, #d97706 35%, transparent);
  border-left: 3px solid #d97706;
  border-radius: var(--radius);
  background: color-mix(in srgb, #d97706 7%, transparent);
}
.nq-recovery-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d97706;
}
.nq-recovery-banner-body {
  flex: 1;
  min-width: 0;
}
.nq-recovery-banner-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.nq-recovery-banner-summary {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-recovery-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.nq-recovery-banner-actions .nq-btn {
  padding: 4px 12px;
  font-size: 12px;
}
.nq-recovery-banner-primary {
  color: #b45309;
}
.nq-recovery-banner-primary:hover {
  background: color-mix(in srgb, #d97706 12%, transparent);
}
.nq-mcp-server-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nq-mcp-server-intro-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.nq-mcp-endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-mcp-endpoint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  padding: 5px 10px;
  word-break: break-all;
}
.nq-mcp-endpoint-row .nq-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
}
.nq-mcp-key-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nq-link-btn:hover {
  opacity: 0.8;
}
.nq-sources-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.nq-sources-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--send);
}
.nq-sources-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}
.nq-source-row:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-source-site {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
}
.nq-source-site-glyph {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.nq-source-site-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}
.nq-source-row-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-source-chip-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}
.nq-source-row.flash {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--text);
}
.nq-cite {
  position: relative;
  display: inline-block;
  padding: 0 1px;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  vertical-align: super;
  cursor: pointer;
  color: var(--send);
  text-decoration: none;
  transition: color .12s var(--ease);
}
.nq-cite:hover {
  color: var(--primary);
}
.nq-cite-card {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 320px;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-menu);
  text-align: left;
  z-index: 40;
  cursor: default;
}
.nq-cite:hover .nq-cite-card,
.nq-cite:focus-visible .nq-cite-card {
  display: flex;
  animation: nq-cite-card-enter .14s var(--ease) both;
}
@keyframes nq-cite-card-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.nq-cite-card-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-cite-card-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-cite-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-cite-card-host {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-skills-group-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 10px 4px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.nq-skills-group-label svg {
  width: 11px;
  height: 11px;
}
.nq-skills-list > .nq-skills-group-label:first-child {
  margin-top: 2px;
}
.nq-skill-pin {
  appearance: none;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 5px;
  color: var(--text-quaternary);
  opacity: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    opacity .12s var(--ease),
    background .12s var(--ease),
    color .12s var(--ease);
}
.nq-skill-pin svg {
  width: 13px;
  height: 13px;
}
.nq-skills-item:hover .nq-skill-pin {
  opacity: 1;
}
.nq-skill-pin:hover {
  background: var(--fill-tertiary);
  color: var(--send);
}
.nq-skill-pin.active {
  opacity: 1;
  color: var(--send);
}
.nq-skill-pin.active svg {
  fill: currentColor;
}
.nq-plugins-hint {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.nq-plugin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-quaternary);
}
.nq-plugin-row:first-of-type {
  border-top: none;
}
.nq-plugin-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nq-plugin-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-plugin-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-tertiary);
}
@media (max-width: 899px) {
  .nq-plugin-row {
    flex-wrap: wrap;
  }
  .nq-plugin-row .nq-mcp-switch {
    margin-left: auto;
  }
}
.nq-billing-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--fill-tertiary);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.nq-billing-banner svg {
  flex-shrink: 0;
  color: var(--info);
}
.nq-billing-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--fill-tertiary);
  font-size: 12.5px;
  color: var(--text-secondary);
  animation: nq-progressive-enter .18s var(--ease) both;
}
.nq-billing-notice.ok {
  background: rgba(128, 199, 118, .12);
  color: var(--text);
}
.nq-billing-notice.ok svg {
  color: var(--success);
}
.nq-billing-notice svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-billing-plan-current-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-billing-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-billing-cancel-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(59, 129, 233, .08);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.nq-billing-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  background: var(--fill-secondary);
  color: var(--text-secondary);
}
.nq-billing-pill.paid {
  background: rgba(128, 199, 118, .16);
  color: var(--send);
}
.nq-billing-pill.pending {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-billing-pill.failed {
  background: rgba(236, 91, 86, .14);
  color: var(--error);
}
.nq-billing-pill.refunded {
  background: rgba(236, 91, 86, .14);
  color: var(--error);
}
.nq-billing-pill.partial {
  background: rgba(236, 91, 86, .09);
  color: var(--error);
}
.nq-billing-pill.neutral {
  background: rgba(59, 129, 233, .12);
  color: var(--info);
}
[data-theme=dark] .nq-billing-pill.paid {
  color: var(--success);
}
.nq-billing-interval-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  background: var(--bg-elevated);
  margin-bottom: 12px;
}
.nq-billing-interval-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s var(--ease);
}
.nq-billing-interval-btn:hover {
  color: var(--text);
}
.nq-billing-interval-btn.active {
  background: var(--fill-secondary);
  color: var(--text);
  font-weight: 600;
}
.nq-billing-interval-badge {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(128, 199, 118, .18);
  color: var(--send);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.7;
}
[data-theme=dark] .nq-billing-interval-badge {
  color: var(--success);
}
.nq-billing-plans {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nq-billing-group-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-quaternary);
  text-transform: uppercase;
}
.nq-billing-plan-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.nq-billing-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.nq-billing-plan:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-card);
}
.nq-billing-plan.current {
  border-color: var(--send);
  background: rgba(128, 199, 118, .06);
}
.nq-billing-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.nq-billing-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-billing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 4px;
}
.nq-billing-plan-price-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-billing-plan-price-unit {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-billing-plan-quota {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.nq-billing-plan-trial {
  font-size: 11.5px;
  color: var(--success);
}
.nq-billing-plan-btn {
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}
.nq-billing-plan-btn:disabled {
  cursor: default;
  opacity: .6;
}
.nq-billing-plan-btn:disabled:hover {
  background: var(--send);
  border-color: var(--send);
}
.nq-billing-orders {
  display: flex;
  flex-direction: column;
}
.nq-billing-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.nq-billing-order + .nq-billing-order {
  border-top: 1px solid var(--border-quaternary);
}
.nq-billing-order-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-billing-order-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-billing-order-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-billing-order-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nq-billing-order-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-strip-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background .12s var(--ease),
    border-color .12s var(--ease),
    color .12s var(--ease);
}
.nq-strip-upgrade:hover {
  background: var(--fill-tertiary);
  border-color: var(--border);
  color: var(--text);
}
@media (max-width: 899px) {
  .nq-billing-order {
    flex-wrap: wrap;
  }
  .nq-billing-order-right {
    margin-left: auto;
  }
  .nq-billing-plan-row {
    grid-template-columns: 1fr;
  }
}
.nq-import-card {
  max-width: 560px;
}
.nq-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.nq-import-head .nq-dialog-title {
  margin-bottom: 0;
}
.nq-import-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.nq-import-tabs {
  align-self: flex-start;
}
.nq-import-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  padding: 8px;
}
.nq-import-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-import-selectall {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border-quaternary);
  margin: -2px -2px 6px;
  padding-bottom: 8px;
}
.nq-import-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.nq-import-row:hover {
  background: var(--bg-layout);
}
.nq-import-row input {
  margin-top: 3px;
  accent-color: var(--send);
  flex-shrink: 0;
}
.nq-import-info {
  min-width: 0;
  flex: 1;
}
.nq-import-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-import-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.nq-import-retry-btn {
  align-self: center;
  margin: 8px 0;
}
.nq-import-actions {
  margin-top: 4px;
}
.nq-import-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 2px;
}
.nq-import-result-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nq-import-result-main .icon-sm {
  color: var(--send);
  flex-shrink: 0;
}
.nq-import-result-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  padding-left: 26px;
}
.nq-import-result-warn {
  color: var(--warning, #b8860b);
}
[data-theme=dark] .nq-import-result-warn {
  color: #d9a441;
}
.nq-import-list .nq-empty {
  padding: 20px 10px;
}
.nq-auto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nq-auto-head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nq-auto-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.nq-auto-subtitle {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin: 3px 0 0;
}
.nq-auto-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-auto-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--info) 8%, transparent);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-auto-banner .icon-sm {
  color: var(--info);
  flex-shrink: 0;
}
.nq-auto-banner-text {
  flex: 1;
  min-width: 0;
}
.nq-auto-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nq-auto-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-auto-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-auto-sort-btn {
  font-size: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-secondary);
}
.nq-auto-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-auto-card {
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-auto-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nq-auto-card-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-auto-more-btn {
  flex-shrink: 0;
}
.nq-auto-card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-auto-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-auto-freq-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
}
.nq-auto-freq-pill svg {
  flex-shrink: 0;
}
.nq-auto-next {
  font-variant-numeric: tabular-nums;
}
.nq-auto-tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.nq-auto-tpl-card {
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .12s var(--ease);
}
.nq-auto-tpl-card:hover {
  border-color: var(--border-secondary);
}
.nq-auto-tpl-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nq-auto-tpl-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-auto-tpl-cron {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-auto-tpl-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.nq-auto-tpl-actions .nq-btn-primary {
  font-size: 12px;
  min-height: 28px;
}
.nq-auto-exec-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.nq-auto-filter-chips {
  display: inline-flex;
  gap: 4px;
}
.nq-auto-filter-chip {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-tertiary);
  transition: all .12s var(--ease);
}
.nq-auto-filter-chip:hover {
  color: var(--text);
  background: var(--bg-layout);
}
.nq-auto-filter-chip.active {
  background: var(--fill-tertiary);
  color: var(--text);
  font-weight: 500;
}
.nq-auto-filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nq-auto-filter-btn {
  font-size: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--text-secondary);
}
.nq-auto-group-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-quaternary);
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}
.nq-auto-exec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-auto-exec-row {
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-auto-exec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nq-auto-exec-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-auto-exec-trigger {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-auto-exec-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-auto-exec-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--error);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-auto-exec-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  font-size: 12px;
  color: var(--info);
  transition: opacity .12s;
}
.nq-auto-exec-link:hover {
  opacity: .75;
  text-decoration: underline;
}
.nq-auto-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}
.nq-auto-status.is-running {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  color: var(--info);
}
.nq-auto-status.is-succeeded {
  background: color-mix(in srgb, var(--send) 12%, transparent);
  color: var(--send);
}
.nq-auto-status.is-failed {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
}
.nq-auto-status.is-skipped,
.nq-auto-status.is-unknown {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-auto-dialog {
  max-width: 780px;
  width: 94%;
}
.nq-auto-dialog-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 6px;
}
.nq-auto-dialog-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.nq-auto-dialog-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.nq-auto-lite {
  background: var(--bg-base);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding: 4px;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.nq-auto-lite:focus-within {
  border-color: var(--send);
  box-shadow: var(--shadow-card), 0 0 0 3px color-mix(in srgb, var(--send) 14%, transparent);
}
.nq-auto-lite-input {
  min-height: 200px;
  max-height: 320px;
  resize: vertical;
}
.nq-auto-lite .nq-composer-spacer {
  flex: 0 0 4px;
}
.nq-auto-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.nq-auto-field-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-quaternary);
}
.nq-auto-field-error {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--error);
}
.nq-auto-name-input {
  font-size: 13px;
}
.nq-auto-freq-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-auto-select-btn {
  justify-content: space-between;
  min-width: 132px;
  min-height: 32px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-auto-select-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-auto-cron-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-auto-date-input {
  width: 170px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-auto-section {
  border-top: 1px solid var(--border-quaternary);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-auto-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nq-auto-radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-auto-radio-row:hover .nq-auto-radio-text {
  color: var(--text);
}
.nq-auto-radio-dot {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transition: border-color .12s;
}
.nq-auto-radio-dot.selected {
  border-color: var(--text);
}
.nq-auto-radio-dot.selected::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--text);
}
.nq-auto-radio-text {
  transition: color .12s;
}
.nq-auto-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border-quaternary);
  margin-top: 16px;
  padding-top: 14px;
}
@media (max-width: 720px) {
  .nq-auto-dialog-cols {
    grid-template-columns: 1fr;
  }
  .nq-auto-exec-name {
    max-width: 100%;
  }
  .nq-auto-exec-time {
    margin-left: 0;
    width: 100%;
  }
}
.nq-kb-tabs-row {
  display: flex;
  align-items: center;
}
.nq-kb-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nq-kb-hero {
  position: relative;
  padding: 6px 2px 0;
}
.nq-kb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/brand/knowledge-hero-bg.png) right center / auto 100% no-repeat;
  opacity: .9;
  pointer-events: none;
}
[data-theme=dark] .nq-kb-hero::before {
  opacity: .18;
}
.nq-kb-hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
}
.nq-kb-hero-title .nq-kb-hero-strong {
  font-weight: 700;
  color: var(--text);
}
.nq-kb-hero-title .nq-kb-hero-accent {
  font-weight: 700;
  color: var(--send);
  margin-left: 10px;
}
.nq-kb-hero-sub {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
.nq-kb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nq-kb-detail-title h2 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.nq-kb-detail-title .nq-card-meta {
  margin-top: 2px;
}
.nq-kb-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .12s var(--ease);
  max-width: 220px;
}
.nq-kb-filter-btn span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-kb-filter-btn:hover {
  background: var(--bg-layout);
  border-color: var(--border);
}
.nq-kb-create-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 116px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s var(--ease), color .12s var(--ease);
}
.nq-kb-create-card:hover {
  border-color: var(--send);
  color: var(--send);
}
.nq-kb-dialog .nq-dialog-actions {
  margin-top: 16px;
}
.nq-kb-dialog .nq-kb-field-label {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-kb-name-wrap {
  position: relative;
}
.nq-kb-name-wrap .nq-dialog-input {
  margin-bottom: 0;
  padding-right: 56px;
}
.nq-kb-name-counter {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-tertiary);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.nq-kb-scope-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nq-kb-scope-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.nq-kb-scope-opt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-kb-scope-opt-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.nq-kb-scope-opt:hover {
  border-color: var(--border);
}
.nq-kb-scope-opt.active {
  border-color: var(--send);
  box-shadow: 0 0 0 1px var(--send) inset;
}
.nq-kb-ws-block {
  margin-top: 10px;
}
.nq-kb-ws-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.nq-kb-ws-select:hover {
  border-color: var(--border);
}
.nq-kb-ws-select span {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-kb-file-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nq-kb-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.nq-kb-file-row + .nq-kb-file-row {
  border-top: 1px solid var(--border-quaternary);
}
.nq-kb-file-row:hover {
  background: var(--bg-layout);
}
.nq-kb-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
}
.nq-kb-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nq-kb-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-kb-file-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-kb-file-more {
  flex-shrink: 0;
}
.nq-kb-files-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 20px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}
.nq-kb-files-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-auto-rows: 24px;
  gap: 6px;
  margin-bottom: 10px;
}
.nq-kb-files-empty-grid span {
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.nq-kb-viewer {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nq-kb-viewer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-kb-viewer-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--send);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
}
.nq-kb-viewer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-kb-viewer-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-kb-viewer-body {
  padding: 16px 20px;
  overflow-x: auto;
}
.nq-kb-viewer-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.nq-kb-viewer-img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}
.nq-kb-viewer-svg svg,
.nq-kb-viewer-html svg {
  max-width: 100%;
  height: auto;
}
.nq-kb-viewer-html {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.nq-kb-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.nq-kb-dropzone:hover,
.nq-kb-dropzone.drag {
  border-color: var(--send);
  background: var(--bg-layout);
}
.nq-kb-dropzone-main {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  pointer-events: none;
}
.nq-kb-dropzone-text {
  margin: 0;
  font-size: 13px;
}
.nq-kb-file-input {
  display: none;
}
.nq-kb-upload-hint {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.nq-kb-upload-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.nq-kb-upload-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-kb-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
}
.nq-kb-upload-row .nq-kb-file-icon {
  width: 26px;
  height: 26px;
}
.nq-kb-upload-status {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-kb-upload-status.ok {
  color: var(--success);
}
.nq-kb-upload-status.error {
  color: var(--error);
}
.nq-kb-upload-remove {
  flex-shrink: 0;
}
.nq-repo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.nq-repo-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease);
}
.nq-repo-card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-menu);
  transform: translateY(-2px);
}
.nq-repo-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nq-repo-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--send);
}
.nq-repo-card-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-repo-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}
.nq-repo-badge.on {
  color: var(--send);
  border-color: var(--send);
}
.nq-repo-card-actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .nq-kb-scope-row {
    grid-template-columns: 1fr;
  }
  .nq-repo-grid {
    grid-template-columns: 1fr;
  }
}
.nq-view-chat.has-monitor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-monitor > .nq-chat-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.nq-view-chat.has-monitor > .nq-monitor-pane {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.nq-monitor-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-monitor-head {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-monitor-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-monitor-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-monitor-updated {
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-monitor-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}
.nq-monitor-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.nq-monitor-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-quaternary);
}
.nq-monitor-card-head svg {
  flex-shrink: 0;
}
.nq-monitor-card-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nq-monitor-count {
  flex-shrink: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-tertiary);
  text-align: center;
}
.nq-monitor-env-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.nq-monitor-env-row svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-monitor-env-label {
  color: var(--text-tertiary);
}
.nq-monitor-env-value {
  margin-left: auto;
  font-weight: 500;
  color: var(--text);
}
.nq-monitor-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-monitor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-monitor-row:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-monitor-row.missing {
  opacity: .5;
}
.nq-monitor-row .nq-sfile-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--text-quaternary);
}
.nq-monitor-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-monitor-row-title {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-monitor-row-status {
  font-size: 11px;
  color: var(--text-quaternary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-monitor-row .nq-icon-btn {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-monitor-empty {
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-quaternary);
  line-height: 1.6;
}
.nq-monitor-more {
  padding: 4px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-monitor-source-row {
  background: transparent;
}
.nq-monitor-source-row .nq-source-row-title {
  font-size: 12px;
}
.nq-monitor-source-host {
  flex-shrink: 0;
  max-width: 120px;
  font-size: 11px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-monitor-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nq-monitor-quick-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background .12s,
    color .12s,
    border-color .12s;
}
.nq-monitor-quick-item:hover {
  background: var(--fill-secondary);
  color: var(--text);
  border-color: var(--border-quaternary);
}
.nq-monitor-quick-item svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-monitor-quick-item:hover svg {
  color: var(--text-secondary);
}
.nq-monitor-quick-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.nq-monitor-quick-kbd {
  flex-shrink: 0;
  font-size: 9.5px;
  color: var(--text-quaternary);
  border: 1px solid var(--border-quaternary);
  border-radius: 4px;
  padding: 1px 5px;
}
.nq-elevator-rail {
  position: absolute;
  top: 88px;
  right: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100% - 220px);
}
.nq-elevator-floors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.nq-elevator-floors::-webkit-scrollbar {
  display: none;
}
.nq-elevator-floor {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nq-elevator-floor::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-quaternary);
  opacity: .3;
  transition: opacity .12s var(--ease);
}
.nq-elevator-floor.is-active::before {
  opacity: .8;
}
.nq-elevator-pop {
  position: absolute;
  right: calc(100% + 12px);
  top: 0;
  transform: translateY(-50%);
  width: 264px;
  max-width: calc(100vw - 120px);
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s var(--ease), visibility .12s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.nq-elevator-pop.is-show {
  opacity: 1;
  visibility: visible;
}
.nq-elevator-pop-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.nq-elevator-pop-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-height: 72px;
  overflow: hidden;
}
.nq-icon-btn.nq-monitor-toggle.is-on,
.nq-icon-btn.nq-monitor-toggle.is-on:hover {
  background: var(--fill-tertiary);
  color: var(--send);
}
@media (max-width: 899px) {
  .nq-view-chat.has-monitor {
    display: flex;
  }
  .nq-monitor-pane,
  .nq-elevator-rail {
    display: none;
  }
}
.nq-view-chat.has-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-view-chat.has-terminal > .nq-chat-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.nq-view-chat.has-terminal > .nq-terminal-pane {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}
.nq-view-chat.has-preview.has-terminal {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-view-chat.has-monitor.has-terminal {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-terminal-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 240px;
  min-height: 0;
  min-width: 0;
  border-top: 1px solid var(--border-quaternary);
  background: #0d0f0e;
  color: #e6e6e3;
}
.nq-terminal-pane.is-light {
  background: #f7f8f6;
  color: #262625;
}
.nq-terminal-head {
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.nq-terminal-pane.is-light .nq-terminal-head {
  border-bottom-color: rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .02);
}
.nq-terminal-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nq-terminal-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}
.nq-terminal-cwd {
  min-width: 0;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(230, 230, 227, .55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-terminal-pane.is-light .nq-terminal-cwd {
  color: rgba(38, 38, 37, .55);
}
.nq-terminal-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nq-terminal-theme-btn {
  height: 24px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font-size: 11px;
  color: rgba(230, 230, 227, .6);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-terminal-theme-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: #e6e6e3;
}
.nq-terminal-pane.is-light .nq-terminal-theme-btn {
  color: rgba(38, 38, 37, .6);
}
.nq-terminal-pane.is-light .nq-terminal-theme-btn:hover {
  background: rgba(0, 0, 0, .06);
  color: #262625;
}
.nq-terminal-pane .nq-icon-btn {
  color: rgba(230, 230, 227, .6);
}
.nq-terminal-pane .nq-icon-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: #e6e6e3;
}
.nq-terminal-pane.is-light .nq-icon-btn {
  color: rgba(38, 38, 37, .6);
}
.nq-terminal-pane.is-light .nq-icon-btn:hover {
  background: rgba(0, 0, 0, .06);
  color: #262625;
}
.nq-terminal-body {
  flex: 1;
  min-height: 0;
  padding: 4px 8px;
}
.nq-terminal-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, #0d0f0e 72%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-size: 12px;
  color: rgba(230, 230, 227, .75);
}
.nq-terminal-pane.is-light .nq-terminal-overlay {
  background: color-mix(in srgb, #f7f8f6 72%, transparent);
  color: rgba(38, 38, 37, .75);
}
.nq-terminal-reopen {
  height: 30px;
}
.nq-terminal-actions-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow-x: auto;
  scrollbar-width: thin;
}
.nq-terminal-pane.is-light .nq-terminal-actions-bar {
  border-bottom-color: rgba(0, 0, 0, .08);
}
.nq-terminal-actions-bar::-webkit-scrollbar {
  height: 3px;
}
.nq-terminal-action-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 6px 0 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 11px;
  color: rgba(230, 230, 227, .8);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .12s,
    border-color .12s,
    color .12s;
}
.nq-terminal-action-chip:hover {
  background: rgba(255, 255, 255, .1);
  color: #e6e6e3;
}
.nq-terminal-pane.is-light .nq-terminal-action-chip {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .04);
  color: rgba(38, 38, 37, .8);
}
.nq-terminal-pane.is-light .nq-terminal-action-chip:hover {
  background: rgba(0, 0, 0, .07);
  color: #262625;
}
.nq-terminal-action-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-terminal-action-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: rgba(230, 230, 227, .5);
  opacity: 0;
  transition:
    opacity .12s,
    background .12s,
    color .12s;
}
.nq-terminal-action-chip:hover .nq-terminal-action-x {
  opacity: 1;
}
.nq-terminal-action-x:hover {
  background: rgba(255, 255, 255, .14);
  color: #e6e6e3;
}
.nq-terminal-pane.is-light .nq-terminal-action-x {
  color: rgba(38, 38, 37, .5);
}
.nq-terminal-pane.is-light .nq-terminal-action-x:hover {
  background: rgba(0, 0, 0, .1);
  color: #262625;
}
.nq-terminal-action-add {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: transparent;
  color: rgba(230, 230, 227, .55);
  cursor: pointer;
  transition:
    background .12s,
    border-color .12s,
    color .12s;
}
.nq-terminal-action-add:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
  color: #e6e6e3;
}
.nq-terminal-pane.is-light .nq-terminal-action-add {
  border-color: rgba(0, 0, 0, .16);
  color: rgba(38, 38, 37, .55);
}
.nq-terminal-pane.is-light .nq-terminal-action-add:hover {
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .3);
  color: #262625;
}
.nq-terminal-action-cmd {
  min-height: 0;
  height: auto;
  resize: vertical;
}
.nq-terminal-action-icons {
  margin-bottom: 4px;
}
.nq-icon-btn.nq-terminal-toggle.is-on,
.nq-icon-btn.nq-terminal-toggle.is-on:hover {
  background: var(--fill-tertiary);
  color: var(--send);
}
.nq-icon-btn.nq-sidebar-toggle {
  display: none;
}
@media (min-width: 900px) {
  .nq-icon-btn.nq-sidebar-toggle {
    display: inline-flex;
  }
}
@media (max-width: 899px) {
  .nq-view-chat.has-terminal,
  .nq-view-chat.has-preview.has-terminal,
  .nq-view-chat.has-monitor.has-terminal {
    display: flex;
  }
  .nq-terminal-pane,
  .nq-icon-btn.nq-terminal-toggle {
    display: none;
  }
}
.nq-queue-dock {
  margin: 4px 4px 0;
  padding: 6px 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: nq-queue-dock-in .16s var(--ease);
}
@keyframes nq-queue-dock-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nq-queue-dock-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.nq-queue-dock-head > svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-queue-dock-count {
  font-weight: 600;
}
.nq-queue-dock-paused {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--fill-secondary);
  color: var(--text-tertiary);
  font-size: 11px;
}
.nq-queue-dock-spacer {
  flex: 1;
}
.nq-queue-dock-resume {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--send);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease);
}
.nq-queue-dock-resume:hover {
  border-color: var(--send);
  background: var(--fill-accent);
}
.nq-queue-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 108px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nq-queue-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: var(--radius);
  transition: background .12s var(--ease);
}
.nq-queue-item:hover {
  background: var(--fill-tertiary);
}
.nq-queue-item-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-queue-item-btn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 5px;
  color: var(--text-quaternary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-queue-item-btn:hover {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-send-btn.queue {
  background: var(--send);
}
.nq-send-btn.queue:hover {
  background: var(--send-hover);
}
.nq-monitor-env-row.is-clean .nq-monitor-env-value {
  color: var(--success);
}
.nq-monitor-env-row.is-dirty .nq-monitor-env-value {
  color: var(--error);
}
.nq-monitor-env-action .nq-monitor-env-label {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.nq-image-strip {
  display: flex;
  align-items: center;
  align-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 8px 0 12px;
}
.nq-image-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.nq-image-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  display: block;
}
.nq-image-thumb-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .12s var(--ease);
}
.nq-image-thumb-x:hover {
  opacity: .85;
}
.nq-image-thumb.is-uploading img {
  opacity: .5;
}
.nq-image-thumb.is-uploading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--border-tertiary);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: nq-session-spin .7s linear infinite;
}
.nq-image-thumb.is-failed img {
  border: 1px dashed var(--error);
  opacity: .8;
}
.nq-image-note {
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-user-bubble-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.nq-user-bubble-img {
  max-width: 320px;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  object-fit: contain;
  display: block;
}
:root {
  --ctx-seg-system: #3b81e9;
  --ctx-seg-user: var(--send);
  --ctx-seg-assistant: var(--primary);
  --ctx-seg-tool: #c99a3c;
  --ctx-seg-other: #a8a6a2;
  --ctx-seg-free: #e4e4e2;
}
[data-theme=dark] {
  --ctx-seg-tool: #d4a94e;
  --ctx-seg-other: #6a6865;
  --ctx-seg-free: #2e2e2c;
}
.nq-ctx-vista {
  margin-top: 6px;
  padding: 6px 6px 4px;
  border-top: 1px solid var(--border-quaternary);
}
.nq-ctx-vista-donut {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 6px auto 2px;
}
.nq-ctx-vista-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.nq-ctx-vista-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}
.nq-ctx-vista-center-pct {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-ctx-vista-center-label {
  font-size: 10px;
  color: var(--text-tertiary);
}
.nq-ctx-vista-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 2px 2px;
}
.nq-ctx-vista-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}
.nq-ctx-vista-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.nq-ctx-vista-legend-name {
  color: var(--text-secondary);
}
.nq-ctx-vista-legend-val {
  margin-left: auto;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nq-ctx-vista-note {
  font-size: 10px;
  color: var(--text-quaternary);
  line-height: 1.5;
  padding: 4px 2px 0;
}
.nq-hist-badge {
  position: absolute;
  top: -26px;
  right: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  color: var(--text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-card);
}
.nq-hist-badge.is-global {
  color: var(--send);
  border-color: var(--primary);
  background: var(--fill-accent);
}
.nq-dpet {
  position: fixed;
  width: 88px;
  height: 88px;
  right: 20px;
  bottom: 136px;
  z-index: 90;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.nq-dpet:active {
  cursor: grabbing;
}
.nq-dpet-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nq-dpet-bd {
  fill: var(--ctx-seg-assistant);
}
.nq-dpet-head {
  fill: var(--ctx-seg-assistant);
}
.nq-dpet-shine {
  fill: rgba(255, 255, 255, .3);
}
.nq-dpet-beak {
  fill: var(--ctx-seg-tool);
}
.nq-dpet-eye {
  fill: #1c2419;
}
.nq-dpet-wing {
  fill: var(--ctx-seg-user);
}
.nq-dpet-body {
  transform-origin: 48px 70px;
}
.nq-dpet--idle .nq-dpet-body {
  animation: nq-dpet-breath 3.2s ease-in-out infinite;
}
.nq-dpet--thinking .nq-dpet-body {
  animation: nq-dpet-bob 1.4s ease-in-out infinite;
}
.nq-dpet--working .nq-dpet-body {
  animation: nq-dpet-waddle .9s ease-in-out infinite;
}
.nq-dpet--waiting .nq-dpet-body {
  animation: nq-dpet-tilt 2.4s ease-in-out infinite;
}
.nq-dpet--done .nq-dpet-body {
  animation: nq-dpet-hop .55s var(--ease) 3;
}
.nq-dpet--error .nq-dpet-body {
  animation: nq-dpet-shake .4s ease-in-out 4;
}
.nq-dpet--poke .nq-dpet-body {
  animation: nq-dpet-hop .5s var(--ease) 1;
}
.nq-dpet-bubble,
.nq-dpet-sparks {
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.nq-dpet--thinking .nq-dpet-bubble,
.nq-dpet--waiting .nq-dpet-bubble {
  opacity: 1;
}
.nq-dpet--done .nq-dpet-sparks {
  opacity: 1;
}
.nq-dpet-bub-dot {
  fill: var(--text-tertiary);
}
.nq-dpet--thinking .nq-dpet-bub-dot {
  animation: nq-dpet-bub 1.2s ease-in-out infinite;
}
.nq-dpet--thinking .nq-dpet-bub-d2 {
  animation-delay: .15s;
}
.nq-dpet--thinking .nq-dpet-bub-d3 {
  animation-delay: .3s;
}
.nq-dpet-spark {
  fill: var(--ctx-seg-tool);
}
.nq-dpet--done .nq-dpet-spark {
  animation: nq-dpet-twinkle 1.1s ease-in-out infinite;
}
.nq-dpet--done .nq-dpet-spark-s2 {
  animation-delay: .18s;
}
.nq-dpet--done .nq-dpet-spark-s3 {
  animation-delay: .36s;
}
@keyframes nq-dpet-breath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.025);
  }
}
@keyframes nq-dpet-bob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(-4deg);
  }
}
@keyframes nq-dpet-waddle {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
@keyframes nq-dpet-tilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-8deg) translateY(-1px);
  }
  70% {
    transform: rotate(4deg);
  }
}
@keyframes nq-dpet-hop {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-7px);
  }
}
@keyframes nq-dpet-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@keyframes nq-dpet-bub {
  0%, 100% {
    opacity: .35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes nq-dpet-twinkle {
  0%, 100% {
    opacity: .3;
    transform: scale(.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-dpet-body,
  .nq-dpet-bub-dot,
  .nq-dpet-spark {
    animation: none !important;
  }
}
.nq-doc-outline {
  display: none;
}
@media (min-width: 1280px) {
  .nq-preview-pane.has-doc-outline {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "outline head" "outline body" "outline foot";
  }
  .nq-preview-pane.has-doc-outline > .nq-preview-head {
    grid-area: head;
    min-width: 0;
  }
  .nq-preview-pane.has-doc-outline > .nq-preview-body {
    grid-area: body;
    min-height: 0;
  }
  .nq-preview-pane.has-doc-outline > .nq-preview-foot {
    grid-area: foot;
  }
  .nq-doc-outline {
    grid-area: outline;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    border-right: 1px solid var(--border-tertiary);
    background: var(--bg-elevated);
  }
}
.nq-doc-outline-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.nq-doc-outline-head svg {
  flex: none;
}
.nq-doc-outline-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 12px;
}
.nq-doc-outline-group {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-doc-outline-gh {
  padding: 2px 6px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.nq-doc-outline-empty {
  padding: 10px 6px;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-doc-outline-item {
  display: flex;
  align-items: center;
  border-radius: 6px;
}
.nq-doc-outline-item.lv2 .nq-doc-outline-link {
  padding-left: 16px;
}
.nq-doc-outline-item.lv3 .nq-doc-outline-link {
  padding-left: 26px;
}
.nq-doc-outline-item.is-bm .nq-doc-outline-link {
  font-weight: 500;
}
.nq-doc-outline-link {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-radius: 6px;
}
.nq-doc-outline-link:hover {
  background: var(--bg-layout);
  color: var(--text);
}
.nq-doc-outline-item.is-active .nq-doc-outline-link {
  color: var(--text);
  background: var(--bg-layout);
  font-weight: 500;
}
.nq-doc-outline-star {
  flex: none;
  visibility: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-quaternary);
  border-radius: 4px;
}
.nq-doc-outline-star:hover {
  color: var(--text-secondary);
  background: var(--bg-layout);
}
.nq-doc-outline-star.is-on {
  visibility: visible;
  color: #c99a3c;
}
.nq-doc-outline-item:hover .nq-doc-outline-star {
  visibility: visible;
}
.nq-doc-outline-star svg {
  width: 12px;
  height: 12px;
}
.nq-doc-prose h1,
.nq-doc-prose h2,
.nq-doc-prose h3 {
  scroll-margin-top: 10px;
}
.nq-doc-chart {
  display: block;
  width: 100%;
  height: auto;
}
.nq-doc-chart .nq-ch-title {
  font-size: 13px;
  font-weight: 600;
  fill: var(--text);
}
.nq-doc-chart .nq-ch-label {
  font-size: 11px;
  fill: var(--text-secondary);
}
.nq-doc-chart .nq-ch-tick {
  font-size: 11px;
  fill: var(--text-tertiary);
}
.nq-doc-chart .nq-ch-grid {
  stroke: var(--border-quaternary);
}
.nq-doc-chart .nq-ch-axis {
  stroke: var(--border-secondary);
}
.nq-doc-chart text {
  user-select: none;
}
.nq-doc-columns {
  display: grid;
  gap: 16px;
  margin: 12px 0;
  align-items: start;
}
.nq-doc-columns > .nq-doc-col {
  min-width: 0;
  max-width: none;
}
.nq-doc-block-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  padding: 5px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  background: var(--bg-elevated);
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-doc-block-error svg {
  flex: none;
}
.nq-doc-hero {
  position: relative;
  margin: 16px 0;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      var(--send) 0%,
      var(--primary) 130%);
  color: var(--text-on-primary, #fdfdfd);
  overflow: hidden;
  isolation: isolate;
}
.nq-doc-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(
      closest-side,
      rgba(255, 255, 255, .16),
      transparent 72%);
  pointer-events: none;
}
.nq-doc-hero-title {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fdfdfd;
}
.nq-doc-hero-subtitle {
  position: relative;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(253, 253, 253, .82);
  max-width: 46em;
}
.nq-doc-hero.is-center {
  text-align: center;
}
.nq-doc-hero.is-center .nq-doc-hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.nq-doc-slides {
  margin: 12px 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nq-doc-slides-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-doc-slides-thumb.is-cover {
  align-items: center;
  text-align: center;
}
.nq-doc-slides-thumb-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-doc-slides-thumb.is-cover .nq-doc-slides-thumb-title {
  font-size: 24px;
}
.nq-doc-slides-thumb .nq-slides-body {
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-height: 6em;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(
      180deg,
      #000 55%,
      transparent);
  mask-image:
    linear-gradient(
      180deg,
      #000 55%,
      transparent);
}
.nq-doc-slides-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
}
.nq-doc-slides-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nq-doc-slides-icon {
  display: inline-flex;
  color: var(--primary);
  flex: none;
}
.nq-doc-slides-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-doc-slides-count {
  flex: none;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--fill-tertiary);
  border-radius: 999px;
  padding: 2px 8px;
}
body.nq-slides-presenting {
  overflow: hidden;
}
.nq-slides-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0c100d;
  animation: nq-slides-overlay-in .18s var(--ease);
  --text: #eef2ee;
  --text-secondary: rgba(238, 242, 238, .72);
  --text-tertiary: rgba(238, 242, 238, .55);
  --text-quaternary: rgba(238, 242, 238, .4);
  --border: rgba(255, 255, 255, .3);
  --border-secondary: rgba(255, 255, 255, .22);
  --border-tertiary: rgba(255, 255, 255, .15);
  --border-quaternary: rgba(255, 255, 255, .1);
  --bg-base: transparent;
  --bg-elevated: rgba(255, 255, 255, .06);
  --bg-layout: rgba(255, 255, 255, .05);
  --fill-secondary: rgba(255, 255, 255, .14);
  --fill-tertiary: rgba(255, 255, 255, .07);
  --code-bg: rgba(255, 255, 255, .1);
  --code-color: #e6eae6;
  --selection-bg: rgba(128, 199, 118, .4);
}
.nq-slides-stage {
  position: relative;
  flex: 1;
  max-width: 1040px;
  padding: clamp(28px, 6vh, 64px) clamp(28px, 8vw, 88px) 76px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  outline: none;
}
.nq-slides-slide {
  animation: nq-slides-slide-in .26s var(--ease);
}
.nq-slides-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.nq-slides-slide-title {
  margin: 0 0 20px;
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #eef2ee;
}
.nq-slides-slide-title.is-cover {
  font-size: clamp(32px, 7vw, 54px);
  margin-bottom: 24px;
}
.nq-slides-slide.is-title {
  text-align: center;
}
.nq-slides-slide.is-title .nq-slides-body {
  text-align: center;
}
.nq-slides-slide.is-title .nq-slides-body ul,
.nq-slides-slide.is-title .nq-slides-body ol {
  text-align: left;
}
.nq-slides-body {
  padding: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
}
.nq-slides-slide.is-two-col .nq-slides-body {
  column-count: 2;
  column-gap: 2.75rem;
  column-rule: 1px solid rgba(255, 255, 255, .12);
}
.nq-slides-nav,
.nq-slides-close {
  position: fixed;
  z-index: 222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(238, 242, 238, .85);
  cursor: pointer;
  transition:
    background .15s var(--ease),
    color .15s var(--ease),
    border-color .15s var(--ease);
}
.nq-slides-nav:hover:not(:disabled),
.nq-slides-close:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}
.nq-slides-nav:disabled {
  opacity: .25;
  cursor: default;
}
.nq-slides-nav.is-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.nq-slides-nav.is-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.nq-slides-close {
  right: 16px;
  top: 16px;
}
.nq-slides-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 222;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(238, 242, 238, .68);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
}
.nq-slides-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  z-index: 222;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.nq-slides-progress > div {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width .2s var(--ease);
}
.nq-slides-hint {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 222;
  font-size: 11px;
  color: rgba(238, 242, 238, .42);
  pointer-events: none;
}
@keyframes nq-slides-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nq-slides-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 720px) {
  .nq-slides-hint {
    display: none;
  }
  .nq-slides-nav.is-prev {
    left: 8px;
  }
  .nq-slides-nav.is-next {
    right: 8px;
  }
  .nq-slides-stage {
    padding: 24px 18px 64px;
  }
  .nq-slides-slide.is-two-col .nq-slides-body {
    column-count: 1;
    column-rule: none;
  }
  .nq-doc-hero {
    padding: 28px 20px;
  }
  .nq-doc-slides-thumb {
    padding: 14px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-slides-overlay,
  .nq-slides-slide {
    animation: none;
  }
  .nq-slides-progress > div {
    transition: none;
  }
}
.nq-billing-pill.in {
  background: rgba(128, 199, 118, .16);
  color: var(--send);
}
.nq-billing-pill.out {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-billing-pill.back {
  background: rgba(236, 91, 86, .14);
  color: var(--error);
}
[data-theme=dark] .nq-billing-pill.in {
  color: var(--success);
}
.nq-credits-balance {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nq-credits-balance.negative {
  color: var(--error);
}
.nq-credits-negative {
  color: var(--error);
}
.nq-credits-topups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.nq-credits-topup {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
}
.nq-credits-topup-label {
  font-size: 13px;
  font-weight: 600;
}
.nq-credits-topup-price {
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
  font-variant-numeric: tabular-nums;
}
.nq-credits-ledger {
  display: flex;
  flex-direction: column;
}
.nq-credits-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.nq-credits-ledger-row + .nq-credits-ledger-row {
  border-top: 1px solid var(--border-quaternary);
}
.nq-credits-ledger-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-credits-ledger-reason {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-credits-ledger-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nq-credits-ledger-amount {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.nq-credits-ledger-amount.in {
  color: var(--send);
}
.nq-credits-ledger-amount.out {
  color: var(--error);
}
[data-theme=dark] .nq-credits-ledger-amount.in {
  color: var(--success);
}
.nq-credits-ledger-time {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-credits-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
}
.nq-credits-hint svg {
  flex: none;
  color: var(--send);
}
.nq-credits-go {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--send);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nq-credits-go:hover {
  opacity: .8;
}
@media (max-width: 899px) {
  .nq-credits-ledger-row {
    flex-wrap: wrap;
  }
  .nq-credits-ledger-right {
    margin-left: auto;
  }
}
.nq-view-chat.has-sidechat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-sidechat > .nq-chat-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.nq-view-chat.has-sidechat > .nq-side-chat-pane {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.nq-view-chat.has-preview.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) 360px;
}
.nq-view-chat.has-preview.has-sidechat > .nq-side-chat-pane {
  grid-column: 3;
}
.nq-view-chat.has-monitor.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) 360px;
}
.nq-view-chat.has-monitor.has-sidechat > .nq-side-chat-pane {
  grid-column: 3;
}
.nq-side-chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-side-chat-head {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border-quaternary);
  color: var(--text-secondary);
}
.nq-side-chat-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-side-chat-quote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  cursor: pointer;
  user-select: none;
}
.nq-side-chat-quote input[type=checkbox] {
  margin: 0;
  accent-color: var(--send);
  cursor: pointer;
}
.nq-side-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 14px 18px;
}
.nq-side-chat-messages .nq-empty {
  padding: 40px 12px;
}
.nq-side-chat-pane .nq-assistant-bubble.is-raw {
  white-space: pre-wrap;
}
.nq-side-chat-composer {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-quaternary);
}
.nq-side-chat-input {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 8px 11px;
  max-height: 120px;
  outline: none;
  transition: border-color .12s var(--ease);
}
.nq-side-chat-input:focus {
  border-color: var(--border);
}
.nq-side-chat-input::placeholder {
  color: var(--text-quaternary);
}
.nq-side-chat-send {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--send);
  color: #fff;
  cursor: pointer;
  transition: opacity .12s var(--ease), background .12s var(--ease);
}
.nq-side-chat-send:hover {
  opacity: .88;
}
.nq-side-chat-send:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.nq-side-chat-send.is-stop {
  background: var(--bg-base);
  border-color: var(--border);
  color: var(--error);
}
.nq-side-chat-send.is-stop:hover {
  background: var(--fill-tertiary);
}
.nq-side-chat-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--error);
  padding: 8px 10px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  background: var(--bg-layout);
}
.nq-side-chat-error span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.nq-side-chat-retry {
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--send);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nq-side-chat-retry:hover {
  opacity: .8;
}
.nq-side-chat-loading {
  margin: 2px 0;
}
.nq-icon-btn.nq-side-chat-toggle.is-on,
.nq-icon-btn.nq-side-chat-toggle.is-on:hover {
  background: var(--fill-tertiary);
  color: var(--send);
}
@media (max-width: 1023px) {
  .nq-view-chat.has-sidechat,
  .nq-view-chat.has-preview.has-sidechat,
  .nq-view-chat.has-monitor.has-sidechat {
    display: flex;
  }
  .nq-view-chat.has-sidechat > .nq-side-chat-pane {
    position: absolute;
    inset: 0;
    z-index: 40;
    border-left: none;
  }
}
.nq-docimg-card {
  max-width: 560px;
}
.nq-docimg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.nq-docimg-head .nq-dialog-title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.nq-docimg-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-layout);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}
.nq-docimg-mode {
  flex: 1;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background .12s var(--ease),
    color .12s var(--ease),
    box-shadow .12s var(--ease);
}
.nq-docimg-mode:hover {
  color: var(--text);
}
.nq-docimg-mode.is-active {
  background: var(--bg-base);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.nq-docimg-mode:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.nq-docimg-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 10px 0 6px;
}
.nq-docimg-prompt {
  width: 100%;
  box-sizing: border-box;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 8px 11px;
  outline: none;
  transition: border-color .12s var(--ease);
}
.nq-docimg-prompt:focus {
  border-color: var(--border);
}
.nq-docimg-prompt::placeholder {
  color: var(--text-placeholder);
}
.nq-docimg-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.nq-docimg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nq-docimg-chip {
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text-secondary);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background .12s var(--ease),
    border-color .12s var(--ease),
    color .12s var(--ease);
}
.nq-docimg-chip:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-docimg-chip.is-active {
  background: var(--fill-accent);
  border-color: var(--primary);
  color: var(--send);
}
.nq-docimg-progress {
  border-top: 1px solid var(--border-quaternary);
  margin-top: 14px;
  padding-top: 12px;
}
.nq-docimg-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-docimg-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-quaternary);
  transition: color .18s var(--ease);
}
.nq-docimg-step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.nq-docimg-step.is-active {
  color: var(--text);
  font-weight: 600;
}
.nq-docimg-step.is-active::before {
  border-color: var(--primary);
  background: var(--primary);
  animation: nq-docimg-pulse 1.1s ease-in-out infinite;
}
.nq-docimg-step.is-done {
  color: var(--text-secondary);
}
.nq-docimg-step.is-done::before {
  border-color: var(--primary);
  background: var(--primary);
}
.nq-docimg-step-sep {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: var(--border-quaternary);
}
.nq-docimg-count {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.nq-docimg-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.nq-docimg-thumb {
  width: 100%;
  height: 64px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-quaternary);
  background: var(--bg-layout);
}
.nq-docimg-error {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--error);
  background: var(--bg-layout);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-top: 12px;
  word-break: break-word;
}
.nq-docimg-card.is-busy .nq-docimg-panel {
  pointer-events: none;
  opacity: .55;
}
@keyframes nq-docimg-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}
