:root {
  --bg-base: #ffffff;
  --bg-elevated: #f9f9f9;
  --bg-layout: #f2f4f2;
  --bg-shell: #f2f2f2;
  --bg-card: #fdfdfd;
  --fill-active: #d8d8d8;
  --selection-bg: #d8d8d8;
  --text: #141414;
  --text-secondary: #636261;
  --text-tertiary: #838280;
  --text-quaternary: #8e8c8b;
  --text-effort: #aaa9a8;
  --border: #bcbbba;
  --border-secondary: #ddd;
  --border-tertiary: #e6e6e6;
  --border-quaternary: #efefef;
  --fill-secondary: #e3e3e3;
  --fill-tertiary: #f2f4f2;
  --fill-hover: rgba(0, 0, 0, .07);
  --control-hover: #f6f6f6;
  --fill-quaternary: #fcfcfc;
  --user-bubble-hover: color-mix(in srgb, var(--text) 5%, var(--bg-layout));
  --row-hover: color-mix(in srgb, var(--text) 6%, transparent);
  --row-active: color-mix(in srgb, var(--text) 9%, transparent);
  --row-hover-strong: color-mix(in srgb, var(--text) 15%, transparent);
  --row-active-strong: color-mix(in srgb, var(--text) 20%, transparent);
  --primary: #80c776;
  --send: #4b6f5a;
  --send-hover: #436651;
  --text-on-primary: #fdfdfd;
  --success: #73b78e;
  --error: #ec5b56;
  --error-bg: #fdf2f0;
  --info: #3b81e9;
  --warning: #b8860b;
  --warning-strong: #d97706;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --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-popover: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --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);
  --dialog-bg: var(--bg-elevated);
  --dialog-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --dialog-radius: 16px;
  --dialog-pad: 16px 17px;
  --dialog-pill: 16px;
  --dialog-reveal: .2s 16ms var(--ease);
  --dialog-scrim: rgba(148, 148, 148, .24);
  --dialog-scrim-blur: blur(16px);
  --content-w-chat: 776px;
  --content-w-page: 980px;
  --font-scale: 1;
  --fill-accent: color-mix(in srgb, var(--primary) 14%, transparent);
  --icon-stroke: 2;
  --mode-track: var(--fill-tertiary);
  --mode-seg-bg: var(--bg-card);
  --mode-seg-border: color-mix(in srgb, var(--send) 35%, transparent);
  --mode-seg-fg: var(--send);
  --font-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: #191b1a;
  --bg-card: var(--bg-base);
  --bg-elevated: #1f211f;
  --bg-layout: #222523;
  --text: #dadcd9;
  --text-secondary: #b5bab5;
  --text-tertiary: #969d97;
  --text-quaternary: #626863;
  --text-effort: #8a948c;
  --border: #4b524c;
  --border-secondary: #373c38;
  --border-tertiary: #373c38;
  --border-quaternary: #2b2e2b;
  --fill-secondary: #2b2e2b;
  --fill-tertiary: #232523;
  --fill-hover: #2d332e;
  --control-hover: #252b26;
  --fill-quaternary: #212622;
  --primary: #89cb99;
  --send: #4d9c61;
  --send-hover: #62ad78;
  --text-on-primary: #0b0d0b;
  --success: #89cb99;
  --error: #ec5b56;
  --error-bg: #4a1a1b;
  --info: #5c9af0;
  --warning: #d9a441;
  --warning-strong: #ff9f0a;
  --code-bg: #232523;
  --code-color: #b5bab5;
  --text-placeholder: #626863;
  --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);
  --dialog-shadow: 0 10px 15px -3px rgba(0, 0, 0, .45), 0 4px 6px -4px rgba(0, 0, 0, .35);
  --dialog-scrim: rgba(0, 0, 0, .3);
  --bg-shell: #242624;
  --fill-active: #2f332f;
  --selection-bg: #2f332f;
  --mode-track: #262b26;
  --mode-seg-bg: #1f2e22;
  --mode-seg-border: color-mix(in srgb, var(--send) 45%, transparent);
  --mode-seg-fg: var(--send);
}
html[data-accent=forest] {
  --primary: #80c776;
  --send: #4b6f5a;
  --send-hover: #436651;
  --text-on-primary: #fdfdfd;
  --success: #73b78e;
}
html[data-theme=dark][data-accent=forest] {
  --primary: #89cb99;
  --send: #4d9c61;
  --send-hover: #62ad78;
  --text-on-primary: #0b0d0b;
  --success: #89cb99;
}
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;
  --bg-card: var(--bg-base);
  --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;
  --mode-track: var(--fill-tertiary);
  --mode-seg-bg: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  --mode-seg-border: color-mix(in srgb, var(--send) 45%, transparent);
  --mode-seg-fg: var(--send);
}
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;
  --bg-card: var(--bg-base);
  --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;
  --mode-track: var(--fill-tertiary);
  --mode-seg-bg: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  --mode-seg-border: color-mix(in srgb, var(--send) 45%, transparent);
  --mode-seg-fg: var(--send);
}
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-card: var(--bg-base);
  --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;
  --fill-hover: color-mix(in srgb, var(--text) 10%, transparent);
  --mode-track: var(--fill-tertiary);
  --mode-seg-bg: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  --mode-seg-border: color-mix(in srgb, var(--send) 45%, transparent);
  --mode-seg-fg: var(--send);
}
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-step-icon-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(.85);
  }
}
@keyframes nq-step-icon-in {
  from {
    opacity: 0;
    transform: scale(.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes nq-answer-dot {
  0%, 70%, to {
    opacity: .25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes nq-think-matrix {
  0%, 100% {
    opacity: .25;
    transform: scale(.72);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes nq-think-ascii {
  0% {
    content: "|";
  }
  25% {
    content: "/";
  }
  50% {
    content: "-";
  }
  75% {
    content: "\\";
  }
}
@keyframes nq-think-music {
  0% {
    content: "♩";
  }
  25% {
    content: "♪";
  }
  50% {
    content: "♫";
  }
  75% {
    content: "♬";
  }
}
@keyframes nq-think-bird {
  0% {
    content: "𓅩";
  }
  16.67% {
    content: "𓅪";
  }
  33.33% {
    content: "𓅫";
  }
  50% {
    content: "𓅭";
  }
  66.67% {
    content: "𓅮";
  }
  83.33% {
    content: "𓅯";
  }
}
@keyframes nq-think-fish {
  0% {
    content: "𓆝";
  }
  12.5% {
    content: "𓆟";
  }
  25% {
    content: "𓆜";
  }
  37.5% {
    content: "𓆞";
  }
  50% {
    content: "𓆝";
  }
  62.5% {
    content: "𓆟";
  }
  75% {
    content: "𓆝";
  }
  87.5% {
    content: "𓆟";
  }
}
@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-dialog-mask-enter {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nq-dialog-enter {
  0% {
    clip-path: inset(0 0 100% 0 round var(--dialog-radius));
    translate: 0 -4px;
  }
  to {
    clip-path: inset(0 0 0 0 round var(--dialog-radius));
    translate: 0 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-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-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-spin {
  animation: nq-session-spin .9s linear 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(--control-hover);
}
.nq-icon-btn:active {
  background: var(--fill-hover);
}
.nq-icon-btn:focus-visible {
  background: var(--control-hover);
  color: var(--text);
  outline: none;
}
.nq-icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.nq-icon-btn.nq-icon-btn-2xs {
  width: 20px;
  height: 20px;
}
.nq-icon-btn.nq-icon-btn-xs {
  width: 22px;
  height: 22px;
}
.nq-icon-btn.nq-icon-btn-sm {
  width: 24px;
  height: 24px;
}
.nq-icon-btn.nq-icon-btn-lg {
  width: 28px;
  height: 28px;
}
.nq-icon-btn.nq-icon-btn-round {
  border-radius: var(--radius-2xl);
}
.nq-icon-btn.nq-icon-btn-glyph-16 svg {
  width: 16px;
  height: 16px;
}
.nq-icon-btn.nq-icon-btn-glyph-14 svg {
  width: 14px;
  height: 14px;
}
.nq-icon-btn.nq-icon-btn-glyph-13 svg {
  width: 13px;
  height: 13px;
}
.nq-icon-btn.nq-icon-btn-glyph-11 svg {
  width: 11px;
  height: 11px;
}
.nq-sidebar .nq-icon-btn:hover {
  background: var(--row-hover);
  color: var(--text);
}
.nq-dropdown {
  position: fixed;
  z-index: 120;
  min-width: 128px;
  max-width: 360px;
  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-popover);
  padding: 4px;
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-menu-ghost {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
}
.nq-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.nq-menu-item-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-menu-check.is-off {
  opacity: 0;
}
.nq-menu-shortcut {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-tertiary);
}
.nq-add-menu .nq-menu-item-selected,
.nq-add-menu .nq-menu-item-selected:hover {
  background: var(--fill-tertiary);
}
.nq-menu-item.nq-menu-item-md {
  min-height: 32px;
  padding: 8px;
  font-size: 12px;
  line-height: 16px;
}
.nq-menu-item.nq-menu-item-sm {
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 16px;
  gap: 6px;
}
.nq-menu-item.nq-menu-item-lg {
  align-items: flex-start;
  padding: 8px 10px;
}
.nq-menu-item-lg .nq-menu-item-desc {
  white-space: normal;
  line-height: 16px;
  margin-top: 1px;
}
.nq-menu-item.nq-menu-item-xl {
  border-radius: 12px;
  line-height: 16px;
}
.nq-menu-item:hover {
  background: var(--fill-hover);
}
.nq-menu-item.is-disabled {
  color: var(--text-quaternary);
  opacity: .55;
  cursor: default;
}
.nq-menu-item.is-disabled:hover,
.nq-menu-item.nq-model-item.is-locked:hover {
  background: transparent;
}
.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-hint {
  margin-left: auto;
  flex-shrink: 0;
  max-width: 112px;
  font-size: 10px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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-session-actions .nq-menu-sep,
.nq-ws-actions .nq-menu-sep,
.nq-view-menu .nq-menu-sep {
  margin: 4px;
}
.nq-session-actions .nq-menu-item.nq-menu-danger:hover,
.nq-ws-actions .nq-menu-item.nq-menu-danger:hover,
.nq-approval-preset-menu .nq-menu-item.nq-approval-item.nq-menu-danger:hover {
  background: var(--fill-hover);
}
[data-theme=dark] .nq-session-actions .nq-menu-item.nq-menu-danger,
[data-theme=dark] .nq-ws-actions .nq-menu-item.nq-menu-danger,
[data-theme=dark] .nq-user-menu .nq-menu-item.nq-menu-danger {
  color: #ff4d4f;
}
.nq-session-actions {
  min-width: 160px;
  max-width: 256px;
}
.nq-ws-actions {
  border-radius: 16px;
  min-width: 160px;
}
.nq-user-menu {
  min-width: 224px;
  border-radius: 16px;
}
.nq-user-menu-sub {
  min-width: 180px;
}
.nq-user-menu .nq-menu-item {
  min-height: 32px;
}
.nq-user-menu .nq-menu-sep {
  margin: 4px 4px;
  background: var(--border-tertiary);
}
.nq-user-menu .nq-menu-badge {
  border: none;
  padding: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-tertiary);
}
.nq-user-menu .nq-menu-item.nq-menu-danger:hover {
  background: var(--error-bg);
}
.nq-menu-section {
  padding: 4px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quaternary);
}
.nq-menu-item-chevron {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text);
}
.nq-cascading-submenu {
  z-index: 121;
}
.nq-menu-item.nq-menu-item-open {
  background: var(--fill-hover);
}
.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,
.nq-wsfile-file:hover,
.nq-selection-btn:hover,
.nq-scroll-bottom-btn:hover,
.nq-search-item:hover,
.nq-search-item.active,
.nq-file-mention-item:hover,
.nq-file-mention-item.active,
.nq-file-mention-btn:hover,
.nq-auto-filter-chip:hover,
.nq-doc-outline-link: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 svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.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,
.nq-output-file-mode:hover,
.nq-mgr-add:hover,
.nq-usage-panel-refresh:hover,
.nq-dialog-btn:hover,
.nq-voice-hist-text:hover,
.nq-ext-agent-pick:hover,
.nq-net-dialog-close:hover,
.nq-doc-agent-minimize:hover,
.nq-sfile-row:hover,
.nq-doc-slash-item:hover,
.nq-doc-slash-item.is-active,
.nq-approval-skip:hover,
.nq-monitor-row:hover,
.nq-review-file:hover,
.nq-review-file.active,
.nq-browser-error-retry:hover,
.nq-doc-site-link:hover,
.nq-docimg-chip:hover,
.nq-readout-row-link:hover,
.nq-monitor-link-row:hover,
.nq-monitor-presentation-btn:hover,
.nq-monitor-recap-btn:hover,
.nq-agent-guided-chip:hover {
  background: var(--fill-tertiary);
  color: var(--text);
}
.nq-dialog-close:hover,
.nq-thinkcopy-reset:hover,
.nq-word-chip-x:hover,
.nq-ext-conn-menu-btn:hover,
.nq-ext-conn-chevron:hover,
.nq-doc-bar-btn:hover,
.nq-doc-find-case:hover,
.nq-doc-find-case.is-active {
  background: var(--control-hover);
  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.nq-tooltip--dark {
  --nq-tt-bg: #1f2328;
  --nq-tt-bd: #1f2328;
}
.nq-tooltip--dark {
  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;
}
@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:focus-visible,
.nq-mode-seg:focus-visible,
.nq-panel-back:focus-visible,
.nq-sidebar-reveal:focus-visible,
.nq-suggest-chip:focus-visible,
.nq-strip-item:focus-visible,
.nq-strip-meter-wrap:focus-visible,
button.nq-account-main:focus-visible,
.nq-settings-back:focus-visible,
.nq-theme-card: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(--control-hover);
  border-radius: var(--radius);
  animation: nq-skeleton-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes nq-skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}
.nq-doc-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
}
.nq-doc-skeleton-bar {
  height: 16px;
}
.nq-doc-skeleton-bar.is-title {
  height: 28px;
}
.nq-flatlist-skel {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nq-flatlist-skel-icon {
  width: 14px;
  height: 14px;
  flex: none;
}
.nq-flatlist-skel-title {
  height: 17px;
}
.nq-flatlist-skel-meta {
  height: 15px;
}
@media (prefers-reduced-motion: reduce) {
  .nq-skeleton {
    animation: none;
  }
}
.nq-skeleton-soft {
  background: color-mix(in srgb, var(--control-hover) 38%, transparent);
}
.nq-conv-skel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nq-conv-skel-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.nq-conv-skel-bubble {
  width: 72%;
  max-width: 752px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--fill-secondary) 34%, transparent);
}
.nq-conv-skel-assistant {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 752px;
}
.nq-conv-skel-line {
  height: 16px;
  border-radius: 4px;
}
.nq-conv-skel-line-sm {
  height: 12px;
}
.nq-filetree-skel {
  padding: 4px 8px;
}
.nq-filetree-skel-row {
  display: flex;
  align-items: center;
  height: 28px;
  padding-left: 8px;
}
.nq-filetree-skel-row.is-child {
  padding-left: 22px;
}
.nq-filetree-skel-bar {
  height: 14px;
  flex: none;
}
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: var(--bg-base);
  color: var(--text);
}
.auth-window {
  display: flex;
  width: 100%;
  max-width: 690px;
  min-height: 446px;
  border-radius: var(--radius-xl);
  background: var(--bg-layout);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.auth-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding: 40px 24px 24px 36px;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.auth-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.auth-mark svg {
  width: 38px;
  height: 38px;
}
.auth-title {
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: var(--text);
}
.auth-tagline {
  margin: 0;
  max-width: 270px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
  white-space: pre-line;
}
.auth-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: none;
}
.auth-primary-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}
.auth-primary-slot {
  flex: 1;
  min-width: 0;
}
.auth-primary-row.is-waiting .auth-primary-slot {
  flex: none;
}
.auth-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 16px;
  background: var(--send);
  color: var(--text-on-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .12s var(--ease);
}
.auth-signin:enabled {
  cursor: pointer;
}
.auth-signin:hover:enabled {
  background: var(--send-hover);
}
.auth-signin:disabled {
  width: auto;
  opacity: .5;
}
.auth-signin > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-spinner {
  flex: none;
  width: 12px;
  height: 12px;
  animation: auth-spin .9s linear infinite;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-spinner {
    animation-duration: 2.4s;
  }
}
.auth-lang {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex: none;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s var(--ease);
}
.auth-lang:hover {
  background: var(--control-hover);
}
.auth-lang svg {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}
.auth-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-links:empty {
  display: none;
}
.auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-link:hover {
  color: var(--text);
}
.auth-art-col {
  display: flex;
  flex: none;
  width: 352px;
  padding: 16px 16px 16px 0;
}
.auth-art {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fill-secondary);
}
.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.is-desktop .auth-page {
  position: relative;
  padding: 0;
  background: var(--bg-layout);
}
.auth-drag {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  -webkit-app-region: drag;
}
html.is-desktop .auth-drag {
  display: block;
}
@media (max-width: 799px) {
  html:not(.is-desktop) .auth-page {
    padding: 16px;
  }
  html:not(.is-desktop) .auth-window {
    min-height: 0;
    max-width: 420px;
  }
  html:not(.is-desktop) .auth-art-col {
    display: none;
  }
  html:not(.is-desktop) .auth-brand-col {
    padding: 32px 24px;
  }
  html:not(.is-desktop) .auth-brand {
    flex: none;
  }
}
.genduo-lockup {
  display: block;
  height: auto;
}
[data-theme=dark] .genduo-lockup:not(.genduo-lockup-light) {
  filter: invert(1);
}
.genduo-logo-tile {
  fill: #fff;
}
.genduo-logo-ink {
  stroke: #000;
}
[data-theme=dark] .genduo-logo-tile {
  fill: #000;
}
[data-theme=dark] .genduo-logo-ink {
  stroke: #fff;
}
[data-theme=dark] .genduo-logo-light .genduo-logo-tile {
  fill: #fff;
}
[data-theme=dark] .genduo-logo-light .genduo-logo-ink {
  stroke: #000;
}
[data-theme=dark] .nq-demo-brand img,
[data-theme=dark] .loading-mark img {
  filter: invert(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 {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}
.auth-status.error {
  color: var(--error);
}
.auth-status:empty {
  display: none;
}
.auth-google-host {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 40px;
  align-items: center;
  overflow: hidden;
}
.auth-terms {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-quaternary);
}
.auth-terms a {
  color: var(--text-tertiary);
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-terms a:hover {
  text-decoration: underline;
}
.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: var(--sidebar-w, 248px) minmax(0, 1fr);
  transition: grid-template-columns .2s var(--ease);
  height: 100dvh;
  background: var(--bg-shell);
  overflow: hidden;
  position: relative;
}
html.is-desktop.is-mac .app-shell {
  background: color-mix(in srgb, var(--bg-shell) 58%, transparent);
}
html.is-desktop.is-mac.no-glass .app-shell {
  background: var(--bg-shell);
}
.app-shell.is-resizing {
  transition: none;
  user-select: none;
}
.app-shell.is-resizing iframe,
.app-shell.is-resizing webview {
  pointer-events: none;
}
.app-shell.will-collapse .nq-sidebar {
  opacity: .45;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}
.nq-sidebar {
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  --icon-stroke: 2.25;
}
.nq-sidebar > * {
  min-width: var(--sidebar-w, 248px);
}
.nq-sidebar-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--sidebar-w, 248px) - 3px);
  width: 7px;
  cursor: col-resize;
  z-index: 70;
  touch-action: none;
}
.nq-sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: transparent;
  transition: background .12s;
}
.nq-sidebar-resizer:hover::after,
.app-shell.is-resizing .nq-sidebar-resizer::after {
  background: var(--border-secondary);
}
.app-shell.sidebar-collapsed .nq-sidebar-resizer {
  display: none;
}
@media (max-width: 899px) {
  .nq-sidebar-resizer {
    display: none;
  }
}
.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: 76px;
  height: 14px;
  pointer-events: none;
}
.nq-sidebar-mode-wrap {
  flex-shrink: 0;
  padding: 8px 6px 13px;
}
.nq-mode-tabs {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--mode-track);
  box-shadow: inset 0 0 0 1px var(--border-tertiary);
}
.nq-mode-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 28px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background .15s,
    border-color .15s,
    color .15s;
}
.nq-mode-seg:hover {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--fill-secondary) 70%, transparent);
}
.nq-mode-seg-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.nq-mode-seg-label {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-mode-seg.active {
  padding: 0 5px 0 11px;
  background: var(--mode-seg-bg);
  border-color: var(--mode-seg-border);
  color: var(--mode-seg-fg);
  box-shadow: none;
}
.nq-mode-seg.active .nq-mode-seg-label {
  display: inline;
}
.sidebar-collapsed .nq-mode-seg {
  padding: 0 6px;
}
.sidebar-collapsed .nq-mode-seg-label {
  display: none !important;
}
.nq-panel-back {
  width: calc(100% - 24px);
  margin: 2px 12px 4px;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.nq-panel-back:hover {
  color: var(--text);
  background: var(--row-hover);
}
.nq-primary-nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}
.nq-nav-btn {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 16px;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-nav-btn .icon-sm,
.nq-nav-btn .icon {
  color: var(--text-secondary);
}
.nq-nav-btn:hover {
  background: var(--row-hover);
}
.nq-nav-btn:hover .icon-sm,
.nq-nav-btn:hover .icon {
  color: var(--text);
}
.nq-nav-btn.is-active {
  background: var(--row-active);
  color: var(--text);
}
.nq-nav-btn.is-active .icon-sm,
.nq-nav-btn.is-active .icon {
  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: 14px 8px 0;
}
#sidebar-folders,
#sidebar-recent {
  flex-shrink: 0;
}
.nq-sidebar-h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #b0b0b0;
  text-transform: uppercase;
  padding: 0 8px 5px;
  white-space: nowrap;
  overflow: hidden;
}
[data-theme=dark] .nq-sidebar-h3 {
  color: var(--text-quaternary);
}
.nq-sidebar-h3 .nq-h3-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: 16px;
  cursor: pointer;
}
.nq-h3-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .12s var(--ease), transform .12s var(--ease);
}
.nq-sidebar-h3 .nq-h3-toggle[aria-expanded=true] .nq-h3-chevron {
  transform: rotate(90deg);
}
.nq-sidebar-h3:hover .nq-h3-chevron,
.nq-sidebar-h3 .nq-h3-toggle:hover .nq-h3-chevron,
.nq-sidebar-h3 .nq-h3-toggle:focus-visible .nq-h3-chevron {
  opacity: 1;
}
.nq-sidebar-h3 .nq-h3-info {
  width: 14px;
  height: 14px;
  border-radius: 16px;
  color: var(--text-effort);
}
.nq-sidebar-h3 .nq-h3-info svg {
  width: 12px;
  height: 12px;
}
.nq-sidebar-h3 .nq-h3-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#sidebar-folders.nq-section-collapsed > :not(:first-child),
#sidebar-recent.nq-section-collapsed > :not(:first-child) {
  display: none;
}
.nq-sidebar-h3 .nq-h3-text ~ button:first-of-type {
  margin-left: auto;
}
.nq-sidebar-h3 .nq-h3-add:hover,
.nq-sidebar-h3 .nq-h3-collapse:hover,
.nq-sidebar-h3 .nq-h3-info:hover {
  color: var(--text-tertiary);
  background: var(--control-hover);
}
.nq-sidebar-h3 .nq-h3-add:active,
.nq-sidebar-h3 .nq-h3-collapse:active,
.nq-sidebar-h3 .nq-h3-info:active {
  background: var(--fill-hover);
}
.nq-sidebar-h3 .nq-h3-add,
.nq-sidebar-h3 .nq-h3-collapse {
  width: 20px;
  height: 20px;
  border-radius: 16px;
}
.nq-sidebar-h3 .nq-h3-add,
.nq-sidebar-h3 .nq-h3-collapse,
.nq-sidebar-h3 .nq-h3-view,
.nq-sidebar-h3 .nq-h3-info {
  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-collapse,
.nq-sidebar-h3:hover .nq-h3-view,
.nq-sidebar-h3:hover .nq-h3-info,
.nq-sidebar-h3.nq-menu-open .nq-h3-add,
.nq-sidebar-h3.nq-menu-open .nq-h3-collapse,
.nq-sidebar-h3.nq-menu-open .nq-h3-view,
.nq-sidebar-h3.nq-menu-open .nq-h3-info {
  opacity: 1;
  visibility: visible;
}
.nq-view-menu {
  min-width: 220px;
}
.nq-view-menu-sub {
  min-width: 160px;
  max-width: 256px;
}
.nq-view-menu .nq-view-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-tertiary);
}
.nq-view-menu .nq-menu-hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
  max-width: 112px;
}
.app-shell:not(.main-generic) .nq-project-item.active:has(~ .nq-ws-child.active):not(:hover) {
  background: none;
}
.nq-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 2px;
  padding: 0 4px 0 8px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  overflow: hidden;
}
.nq-row:hover,
.nq-row.active {
  background: var(--row-hover);
  color: var(--text);
}
.nq-row-quiet:hover {
  background: var(--row-hover);
  color: var(--text-secondary);
}
.nq-row-quiet.active {
  background: var(--row-active);
  color: var(--text);
}
.nq-row-indent {
  gap: 7px;
  padding: 0 4px 0 28px;
}
.nq-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-item-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-item-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nq-clamp.nq-clamp-2 {
  -webkit-line-clamp: 2;
}
.nq-clamp.nq-clamp-3 {
  -webkit-line-clamp: 3;
}
.nq-clamp.nq-clamp-4 {
  -webkit-line-clamp: 4;
}
.nq-clamp.nq-clamp-7 {
  -webkit-line-clamp: 7;
}
.nq-clamp.nq-clamp-12 {
  -webkit-line-clamp: 12;
}
.nq-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-item-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-item-sub-sm {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-search-pop-item-desc {
  margin-top: 1px;
}
.nq-item-name-soft {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-item-strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.nq-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-info-col.nq-info-col-gap-1 {
  gap: 1px;
}
.nq-info-col.nq-info-col-gap-3 {
  gap: 3px;
}
.nq-card-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-icon-plate {
  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-icon-plate.nq-icon-plate-26 {
  width: 26px;
  height: 26px;
}
.nq-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-hint-text {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.nq-item-name-mono {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--text);
}
.nq-row .nq-item-title {
  color: var(--text-tertiary);
  font-size: 13px;
}
.nq-row:hover .nq-item-title,
.nq-row.active .nq-item-title {
  color: var(--text);
}
.nq-row.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-row .nq-item-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s cubic-bezier(0, 0, .2, 1);
}
.nq-row:hover .nq-item-actions,
.nq-row.nq-menu-open .nq-item-actions,
.nq-row:focus-within .nq-item-actions {
  opacity: 1;
  pointer-events: auto;
}
.nq-row .nq-item-actions .nq-icon-btn:hover {
  background: transparent;
  color: var(--text-tertiary);
}
.nq-action-slot {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nq-action-slot .nq-icon-btn:hover,
.nq-user-foot .nq-icon-btn:hover {
  background: var(--control-hover);
  color: var(--text);
}
.nq-action-slot .nq-icon-btn.active {
  color: var(--send);
}
.nq-flat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: background .12s;
}
.nq-flat-row:hover {
  background: var(--fill-tertiary);
}
.nq-flat-row.is-placeholder:hover {
  background: transparent;
}
.nq-hover-key {
  opacity: 0;
  transition: opacity .12s, background .12s;
}
.nq-hover-row:hover .nq-hover-key,
.nq-hover-row.nq-menu-open .nq-hover-key,
.nq-hover-key:focus-visible {
  opacity: 1;
}
.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 8px 2px;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--text-quaternary);
}
.app-shell.main-generic .nq-ws-child.active:not(:hover) {
  background: none;
}
.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-ws-more {
  color: var(--text-quaternary);
  font-size: 11px;
}
.nq-ws-child.nq-ws-more:hover {
  color: var(--text-secondary);
}
.nq-ws-child.nq-ws-empty .nq-item-title {
  color: var(--text-quaternary);
  opacity: .6;
}
#sidebar-pinned {
  padding-bottom: 0;
}
#sidebar-pinned .nq-history-item {
  padding-left: 28px;
  border-radius: var(--radius-lg);
}
.nq-row-hovercard {
  position: fixed;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 9px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  pointer-events: none;
  animation: nq-menu-enter .14s var(--ease) both;
}
.nq-row-hovercard-date {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-sidebar-empty {
  font-size: 12px;
  color: var(--text-quaternary);
  padding: 2px 8px 6px;
}
.nq-sidebar-empty-center {
  font-size: 13px;
  text-align: center;
  padding: 20px 8px;
}
.nq-recent-scroll {
  display: block;
}
.nq-recent-more {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 30px;
  margin-top: 3px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
  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(--row-hover);
  color: var(--text);
}
.nq-recent-more svg {
  flex-shrink: 0;
}
.nq-recent-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 4px;
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-sidebar-footer {
  position: relative;
  flex-shrink: 0;
  border-top: none;
  padding: 4px 8px 8px;
}
.nq-sidebar-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 20px;
  height: 1px;
  background: var(--border-tertiary);
}
.nq-footer-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}
.nq-account-row {
  height: 48px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 0 4px;
}
.nq-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  corner-shape: squircle;
  border: 1px solid var(--border-tertiary);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 12px;
  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: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-sidebar-reveal {
  position: fixed;
  left: 12px;
  top: 11px;
  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(--row-hover);
  color: var(--text);
}
.nq-sidebar-reveal svg {
  flex-shrink: 0;
}
@media (max-width: 899px) {
  .app-shell.sidebar-collapsed .nq-sidebar-reveal {
    display: none;
  }
}
.nq-main {
  margin: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-panel);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: margin-left .2s var(--ease);
}
.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-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-main-topbar .nq-window-actions .nq-icon-btn {
  color: var(--text-secondary);
}
.nq-main-topbar .nq-window-actions .nq-icon-btn svg {
  width: 16px;
  height: 16px;
}
.nq-main-topbar .nq-window-actions .nq-icon-btn:focus-visible {
  color: var(--text);
}
.nq-nav-group {
  position: fixed;
  left: 88px;
  top: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nq-nav-group .nq-icon-btn {
  color: var(--text);
}
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 {
  min-width: 0;
  max-width: 60%;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
  user-select: none;
  cursor: pointer;
}
.nq-main-overflow {
  margin-right: auto;
  color: var(--text-tertiary);
  -webkit-app-region: no-drag;
}
.nq-main-overflow:hover {
  color: var(--text);
}
.nq-main-title-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
}
.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,
html.is-desktop .app-shell.sidebar-collapsed .nq-generic-header {
  padding-left: 180px;
}
.app-shell.sidebar-collapsed .nq-main-topbar,
.app-shell.sidebar-collapsed .nq-generic-header {
  padding-left: 48px;
}
html.is-desktop .nq-main-topbar,
html.is-desktop .nq-generic-header {
  -webkit-app-region: drag;
}
html.is-desktop .nq-main-topbar button,
html.is-desktop .nq-generic-header button {
  -webkit-app-region: no-drag;
}
html.is-desktop .nq-main-topbar,
html.is-desktop .nq-generic-header {
  padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 12px);
}
@media (max-width: 1099px) {
  html.is-desktop .nq-main-topbar .nq-side-chat-toggle {
    display: none;
  }
}
@media (max-width: 899px) {
  .nq-main-topbar {
    display: none;
  }
}
.app-shell.main-generic .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);
  transition: padding-left .2s var(--ease);
}
.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-compress-divider {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}
.nq-compress-rule {
  flex: 1;
  height: 1px;
  background: var(--border-tertiary);
}
.nq-compress-mid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 8px;
  color: var(--text-tertiary);
}
.nq-compress-text {
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--text-tertiary);
}
.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: 16px;
  font-size: calc(12px * var(--font-scale));
  line-height: calc(16px * var(--font-scale));
  max-width: 752px;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  max-height: 100px;
  overflow: hidden;
}
.nq-user-bubble.is-overflowing {
  cursor: pointer;
  transition: background-color .2s;
}
.nq-user-bubble.is-overflowing:hover {
  background: var(--user-bubble-hover);
}
.nq-user-bubble.is-overflowing::before,
.nq-user-bubble.is-overflowing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
}
.nq-user-bubble.is-overflowing::before {
  background:
    linear-gradient(
      to top,
      var(--bg-layout),
      transparent);
}
.nq-user-bubble.is-overflowing::after {
  background:
    linear-gradient(
      to top,
      var(--user-bubble-hover),
      transparent);
  opacity: 0;
  transition: opacity .2s;
}
.nq-user-bubble.is-overflowing:hover::after {
  opacity: 1;
}
.nq-user-bubble.is-editing,
.nq-user-bubble.is-expanded {
  max-height: none;
  overflow: visible;
}
.nq-user-bubble:empty {
  display: none;
}
.nq-user-foot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  min-height: 28px;
  opacity: 0;
  transition: opacity .15s ease;
}
.nq-user-message:hover .nq-user-foot,
.nq-message-wrap:focus-within .nq-user-foot {
  opacity: 1;
}
.nq-user-foot-time {
  font-size: 12px;
  color: var(--text-quaternary);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nq-assistant-message {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nq-assistant-bubble {
  font-size: calc(13px * var(--font-scale));
  line-height: calc(28px * var(--font-scale));
  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 16px;
}
.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,
.nq-assistant-bubble h5,
.nq-assistant-bubble h6 {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.nq-assistant-bubble h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 8px;
  letter-spacing: -0.01em;
}
.nq-assistant-bubble h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 18px 0 7px;
  letter-spacing: -0.01em;
}
.nq-assistant-bubble h3 {
  font-size: 15px;
  font-weight: 600;
}
.nq-assistant-bubble h5 {
  font-size: 13.5px;
  font-weight: 600;
}
.nq-assistant-bubble h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-assistant-bubble h1:first-child,
.nq-assistant-bubble h2:first-child,
.nq-assistant-bubble h3:first-child {
  margin-top: 2px;
}
.nq-assistant-bubble ul,
.nq-assistant-bubble ol {
  margin: 4px 0 10px;
  padding-left: 22px;
}
.nq-assistant-bubble li {
  margin: 3px 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-doclink-acts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  vertical-align: -3px;
}
.nq-doclink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 6px;
  background: var(--bg-base);
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    color .12s ease,
    border-color .12s ease,
    background .12s ease;
}
.nq-doclink-btn:hover,
.nq-doclink-btn:focus-visible {
  color: var(--send);
  border-color: color-mix(in srgb, var(--send) 45%, transparent);
  background: color-mix(in srgb, var(--send) 8%, var(--bg-base));
}
.nq-doclink-btn svg {
  width: 12px;
  height: 12px;
}
.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;
  width: 100%;
}
.nq-assistant-bubble th,
.nq-assistant-bubble td {
  border: 1px solid var(--border-tertiary);
  padding: 7px 12px;
  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;
}
.nq-fileicon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nq-fileicon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--nq-fileicon-bg, #8a8f98);
  color: var(--nq-fileicon-fg, #fff);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.nq-fileicon[data-size=sm] .nq-fileicon-badge {
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 9px;
}
.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;
}
.md-code-body {
  position: relative;
}
.md-code.is-collapsed .md-code-body {
  max-height: 240px;
  overflow: hidden;
}
.md-code.is-collapsed .md-code-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--bg-layout) 0%, transparent),
      var(--bg-layout));
  pointer-events: none;
}
.md-code-foot {
  display: none;
  width: 100%;
  padding: 2px 12px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-tertiary);
  transition: color .12s;
}
.md-code.is-collapsible .md-code-foot {
  display: inline-flex;
}
.md-code-foot:hover {
  color: var(--text);
}
.md-code .hljs-addition,
.md-code .hljs-deletion {
  display: block;
  margin: 0 -12px;
  padding: 0 12px;
}
.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;
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  padding: 2px;
  box-shadow: var(--shadow-card);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.nq-message-wrap:hover .nq-message-actions,
.nq-message-wrap:focus-within .nq-message-actions {
  opacity: 1;
  pointer-events: auto;
}
.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,
.nq-wall-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-quaternary);
}
.nq-answer-loading-text {
  white-space: nowrap;
}
.nq-think-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  flex: none;
  color: var(--text-tertiary);
}
.nq-think-loader[data-loader-variant=dots] {
  gap: 4px;
}
.nq-think-loader[data-loader-variant=dots] i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: nq-answer-dot 1.1s ease-in-out infinite;
}
.nq-think-loader[data-loader-variant=dots] i:nth-child(2) {
  animation-delay: .12s;
}
.nq-think-loader[data-loader-variant=dots] i:nth-child(3) {
  animation-delay: .24s;
}
.nq-think-loader[data-loader-variant=matrix] {
  display: grid;
  grid-template-columns: repeat(3, 4.2px);
  grid-auto-rows: 4.2px;
  gap: .7px;
  place-content: center;
}
.nq-think-loader[data-loader-variant=matrix] i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
  animation: nq-think-matrix 1.35s ease-in-out infinite;
}
.nq-think-loader[data-loader-variant=matrix] i:nth-child(2),
.nq-think-loader[data-loader-variant=matrix] i:nth-child(4) {
  animation-delay: .2s;
}
.nq-think-loader[data-loader-variant=matrix] i:nth-child(3),
.nq-think-loader[data-loader-variant=matrix] i:nth-child(5),
.nq-think-loader[data-loader-variant=matrix] i:nth-child(7) {
  animation-delay: .4s;
}
.nq-think-loader[data-loader-variant=matrix] i:nth-child(6),
.nq-think-loader[data-loader-variant=matrix] i:nth-child(8) {
  animation-delay: .6s;
}
.nq-think-loader[data-loader-variant=matrix] i:nth-child(9) {
  animation-delay: .8s;
}
.nq-think-loader[data-loader-variant=ascii]::after,
.nq-think-loader[data-loader-variant=music]::after,
.nq-think-loader[data-loader-variant=bird]::after,
.nq-think-loader[data-loader-variant=fish]::after {
  content: "";
  line-height: 1;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
}
.nq-think-loader[data-loader-variant=ascii]::after {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  animation-name: nq-think-ascii;
}
.nq-think-loader[data-loader-variant=music]::after {
  font-size: 13px;
  animation-name: nq-think-music;
}
.nq-think-loader[data-loader-variant=bird]::after,
.nq-think-loader[data-loader-variant=fish]::after {
  font-family:
    "Noto Sans Egyptian Hieroglyphs",
    "Segoe UI Historic",
    serif;
  font-size: 13px;
  font-weight: 400;
}
.nq-think-loader[data-loader-variant=bird]::after {
  animation-name: nq-think-bird;
}
.nq-think-loader[data-loader-variant=fish]::after {
  animation-name: nq-think-fish;
}
.nq-busy-row {
  margin: 6px 0 2px;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-busy-row .nq-answer-loading-text.is-in {
  animation: nq-busy-phrase-in .22s var(--ease);
}
@keyframes nq-busy-phrase-in {
  from {
    opacity: .15;
  }
  to {
    opacity: 1;
  }
}
.nq-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  max-width: 752px;
  min-width: 0;
}
.nq-message-actions-inline {
  margin-left: -4px;
  flex-wrap: wrap;
}
.nq-msg-meta .nq-msg-usage {
  margin-top: 0;
  white-space: nowrap;
  font-size: 12px;
}
.nq-msg-timestamp {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  height: 24px;
  padding: 0 4px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-quaternary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s 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(--control-hover);
  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-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: 13px;
  color: var(--text-secondary);
}
@keyframes nq-activity-enter {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.nq-task-step.nq-activity-enter,
.nq-thinking-step.nq-activity-enter {
  animation: nq-activity-enter .15s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--nq-enter-i, 0) * 30ms);
}
.nq-activity-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 6px;
  margin-left: -6px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  transition: color .12s;
}
.nq-activity-summary:hover {
  color: var(--text-secondary);
}
.nq-activity-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  font-size: 10px;
  transition: border-color .15s;
}
.nq-activity-arrow-count,
.nq-activity-arrow-chevron {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: opacity .15s;
}
.nq-activity-arrow-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.nq-activity-arrow-chevron svg {
  transition: transform .15s var(--ease);
}
.nq-activity-group.is-open .nq-activity-arrow-chevron svg {
  transform: rotate(90deg);
}
.nq-activity-arrow.has-count .nq-activity-arrow-chevron {
  opacity: 0;
}
.nq-activity-summary:hover .nq-activity-arrow.has-count .nq-activity-arrow-chevron,
.nq-activity-summary:focus-visible .nq-activity-arrow.has-count .nq-activity-arrow-chevron,
.nq-activity-group.is-running .nq-activity-arrow-chevron {
  opacity: 1;
}
.nq-activity-summary:hover .nq-activity-arrow-count,
.nq-activity-summary:focus-visible .nq-activity-arrow-count,
.nq-activity-group.is-running .nq-activity-arrow-count {
  opacity: 0;
}
.nq-activity-group.is-running .nq-activity-arrow-chevron svg {
  animation: nq-stage-arrow-running .82s cubic-bezier(.4, 0, .2, 1) infinite;
}
.nq-activity-label {
  font-variant-numeric: tabular-nums;
}
.nq-activity-summary:focus-visible {
  outline: none;
  color: var(--text-secondary);
}
.nq-activity-summary:focus-visible .nq-activity-arrow {
  border-color: var(--border-secondary);
}
.nq-activity-content-wrap {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows .2s cubic-bezier(.2, .8, .2, 1);
}
.nq-activity-group:not(.is-open) .nq-activity-content-wrap {
  grid-template-rows: 0fr;
}
.nq-activity-group.is-running .nq-activity-content-wrap {
  transition-duration: .15s;
}
.nq-activity-content {
  position: relative;
  overflow: hidden;
  margin: 0 0 0 10px;
  padding-left: 16px;
  border-left: 1px solid var(--border-tertiary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 1;
  transition: opacity .2s cubic-bezier(.2, .8, .2, 1), margin-top .2s cubic-bezier(.2, .8, .2, 1);
}
.nq-activity-group.is-open .nq-activity-content {
  margin-top: 4px;
}
.nq-activity-group:not(.is-open) .nq-activity-content {
  opacity: 0;
}
@property --nq-fade-y-top { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --nq-fade-y-bottom { syntax: "<number>"; inherits: false; initial-value: 1; }
@keyframes nq-scroll-fade-y-start {
  from {
    --nq-fade-y-top: 0;
  }
  to {
    --nq-fade-y-top: 1;
  }
}
@keyframes nq-scroll-fade-y-end {
  from {
    --nq-fade-y-bottom: 1;
  }
  to {
    --nq-fade-y-bottom: 0;
  }
}
.nq-activity-group[data-activity-presentation=large] .nq-activity-content {
  --nq-fade-y: 8px;
  max-height: 240px;
  overflow-y: auto;
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black calc(var(--nq-fade-y) * var(--nq-fade-y-top)),
      black calc(100% - (var(--nq-fade-y) * var(--nq-fade-y-bottom))),
      transparent);
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black calc(var(--nq-fade-y) * var(--nq-fade-y-top)),
      black calc(100% - (var(--nq-fade-y) * var(--nq-fade-y-bottom))),
      transparent);
  animation: linear both nq-scroll-fade-y-start, linear both nq-scroll-fade-y-end;
  animation-timeline: scroll(self y), scroll(self y);
  animation-range: 0 96px, calc(100% - 96px) 100%;
}
.nq-task-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 2px 0;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--text-quaternary);
  position: relative;
  top: 1px;
}
.nq-step-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.nq-step-avatar svg {
  display: block;
  width: 20px;
  height: 20px;
}
.nq-step-avatar.loading {
  color: var(--text-quaternary);
}
.nq-step-status,
.nq-queue-item-attach {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-step-status.is-done {
  color: var(--success);
}
.nq-step-status.is-error {
  color: var(--error);
}
.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-icon.is-leaving {
  animation: nq-step-icon-out .15s ease-out both;
}
.nq-step-icon.is-entering {
  animation: nq-step-icon-in .15s ease-out both;
}
.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-part {
  min-width: 0;
}
.nq-step-detail {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows .2s var(--ease);
}
.nq-step-detail.open {
  grid-template-rows: minmax(0, 1fr);
}
.nq-step-detail.open .nq-step-detail-body,
.nq-thinking-step.open .nq-thinking-step-body {
  opacity: 1;
}
.nq-step-detail-body {
  opacity: 0;
  transition: opacity .2s var(--ease);
  margin: 4px 0 0 20px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--control-hover);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--text-tertiary);
  max-height: 400px;
  overflow-y: auto;
  word-break: break-word;
}
.nq-step-detail-result {
  margin-top: 6px;
}
.nq-step-raw {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}
.nq-step-detail-body pre,
.nq-thinking-step-body pre {
  font-family: inherit;
}
.nq-todo-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-todo-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-subagent-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.nq-subagent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-subagent-transcript {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
.nq-tr-note {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-tr-text,
.nq-tr-thought {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.nq-tr-thought {
  color: var(--text-tertiary);
  padding-left: 8px;
  border-left: 2px solid var(--border-quaternary);
}
.nq-tr-thought-label {
  font-size: 11px;
  color: var(--text-quaternary);
  margin-bottom: 2px;
}
.nq-tr-text.is-live,
.nq-tr-thought.is-live {
  opacity: .72;
}
.nq-tr-md > :first-child {
  margin-top: 0;
}
.nq-tr-md > :last-child {
  margin-bottom: 0;
}
.nq-tr-more {
  align-self: flex-start;
}
.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 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-plan-count-sep {
  color: var(--text-quaternary);
}
.nq-plan-chevron,
.nq-hooks-item-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-bottom: 1px solid var(--border-quaternary);
  padding: 8px 14px 10px;
  max-height: 240px;
  overflow-y: auto;
}
.nq-plan-dock.is-open .nq-plan-items,
.nq-plan-dock.is-hover .nq-plan-items {
  display: block;
  animation: nq-activity-detail-enter .2s var(--ease) both;
}
.nq-plan-dock.is-running .nq-plan-items {
  border-bottom-color: transparent;
}
.nq-plan-dock:not(.is-open):not(.is-hover) {
  width: auto;
  border-radius: 999px;
}
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-progress-track {
  display: none;
}
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-summary {
  min-height: 0;
  padding: 6px 12px;
  gap: 6px;
  justify-content: center;
}
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-summary-main {
  flex: 0 0 auto;
  gap: 6px;
}
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-summary-text,
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-chevron {
  display: none;
}
.nq-plan-dock:not(.is-open):not(.is-hover) .nq-plan-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.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;
  display: grid;
  grid-template-rows: auto minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows .2s var(--ease);
}
.nq-thinking-step.open {
  grid-template-rows: auto minmax(0, 1fr);
}
.nq-thinking-step-head .nq-step-icon.muted {
  color: var(--success);
}
.nq-thinking-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  padding: 2px 0;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
}
.nq-thinking-step-label {
  white-space: nowrap;
  flex-shrink: 0;
}
.nq-thinking-step-preview:not(:empty)::before {
  content: "· ";
}
.nq-thinking-step-body {
  opacity: 0;
  transition: opacity .2s var(--ease);
  margin: 4px 0 0 20px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--control-hover);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--text-tertiary);
  max-height: 200px;
  overflow-y: auto;
  word-break: break-word;
}
.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: inherit;
}
.nq-step-detail-body pre:not(.nq-step-raw),
.nq-thinking-step-body pre:not(.nq-step-raw) {
  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: inherit;
}
.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-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-output-file-card {
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.nq-output-file-card:hover {
  border-color: var(--border-secondary);
}
.nq-output-file-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nq-output-file-mode .icon-xs {
  flex-shrink: 0;
}
.nq-preview-body > .nq-md-preview {
  border: none;
  background: transparent;
  min-height: 0;
  padding: 18px 22px;
}
.nq-preview-html-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.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,
.nq-sfile-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;
  left: calc(50% - 16px);
  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[data-generating=true] {
  color: var(--send);
}
.nq-scroll-bottom-btn.show[data-generating=true] svg {
  animation: nq-scroll-arrow-breath 2.4s cubic-bezier(.2, .8, .2, 1) infinite;
}
@keyframes nq-scroll-arrow-breath {
  0%, to {
    opacity: .62;
    filter: drop-shadow(0 0 2px color-mix(in srgb, var(--send) 16%, transparent));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--info) 34%, transparent));
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-scroll-bottom-btn.show[data-generating=true] svg {
    animation: none;
  }
}
.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-pending-slot {
  position: relative;
}
.nq-pending-float {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 7;
  padding-bottom: 8px;
  pointer-events: none;
}
@keyframes nq-pending-enter {
  0% {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.nq-pending-origin {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-quaternary);
  margin-bottom: 6px;
}
.nq-ask-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-tertiary);
  border-radius: 28px;
  background: var(--bg-base);
  box-shadow: 0 10px 32px -20px rgba(0, 0, 0, .1);
  animation: nq-pending-enter .2s var(--ease) both;
}
.nq-ask-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 20px;
}
.nq-ask-head-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text);
}
.nq-ask-body {
  padding-bottom: 4px;
}
.nq-ask-question {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 20px 12px;
  word-break: break-word;
}
.nq-ask-question p {
  margin: 0 0 6px;
}
.nq-ask-question p:last-child {
  margin-bottom: 0;
}
.nq-ask-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-ask-options {
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-ask-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s cubic-bezier(.2, .8, .2, 1);
}
.nq-ask-option:hover {
  background: var(--fill-quaternary);
}
.nq-ask-option.is-selected {
  background: var(--control-hover);
}
.nq-ask-option-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 50%;
  background: var(--fill-quaternary);
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 16px;
}
.nq-ask-option.is-selected .nq-ask-option-index {
  border-color: var(--border-secondary);
  background: var(--bg-elevated);
  color: var(--text);
}
.nq-ask-option-label {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text);
}
.nq-ask-option-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  opacity: 0;
  transition: opacity .15s;
}
.nq-ask-option:hover .nq-ask-option-action,
.nq-ask-option:focus-visible .nq-ask-option-action {
  opacity: 1;
}
.nq-ask-option.is-selected .nq-ask-option-action {
  opacity: 1;
  color: var(--primary);
}
.nq-ask-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 16px 12px 12px;
}
.nq-ask-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  padding: 0 8px;
}
.nq-ask-custom-field {
  position: relative;
  min-width: 0;
  flex: 1;
}
.nq-ask-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
  font-family: inherit;
}
.nq-ask-input::placeholder {
  color: var(--text-tertiary);
}
.nq-ask-custom-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  border-bottom: 1px dashed var(--border-tertiary);
  pointer-events: none;
}
.nq-ask-pen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 50%;
  background: var(--fill-quaternary);
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-ask-pen:focus-visible {
  background: var(--fill-secondary);
  outline: none;
}
.nq-approval-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: min(55vh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-base);
  background-image:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-base) 64%, transparent) 0%,
      color-mix(in srgb, var(--bg-elevated) 42%, transparent) 100%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  backdrop-filter: blur(40px) saturate(150%);
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, .102),
    0 18px 42px -20px rgba(0, 0, 0, .078),
    inset 0 1px 0 color-mix(in srgb, var(--bg-base) 72%, transparent);
  pointer-events: auto;
  animation: nq-pending-enter .2s var(--ease) both;
}
.nq-approval-head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-approval-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-approval-body {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--bg-base);
  padding: 16px 20px 12px;
}
.nq-approval-desc {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}
.nq-approval-cmd {
  margin-top: 12px;
  border-radius: 6px;
  background: var(--control-hover);
  padding: 3px 12px;
  max-height: 240px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--text-tertiary);
  overflow-wrap: anywhere;
}
.nq-approval-plan {
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
}
.nq-approval-plan p {
  margin: 0 0 6px;
}
.nq-approval-plan p:last-child {
  margin-bottom: 0;
}
.nq-approval-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-tertiary);
}
.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);
  --composer-border: var(--border-tertiary);
  --composer-border-focus: var(--border-secondary);
  --composer-grip-bg: var(--bg-base);
  --composer-grip-active: #f2f4f2;
  border: 1px solid var(--composer-border);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.nq-session-composer:focus-within {
  border-color: var(--composer-border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-secondary) 14%, transparent);
}
[data-theme=dark] .nq-session-composer {
  --composer-border-focus: #404842;
  --composer-grip-bg: #222523;
  --composer-grip-active: #14261c;
}
.nq-composer-textarea {
  width: 100%;
  min-height: 76px;
  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.846;
  color: var(--text);
  display: block;
}
.nq-composer-textarea::placeholder {
  color: var(--text-tertiary);
}
.nq-composer-toolbar {
  --composer-hover: var(--control-hover);
  --composer-active: var(--fill-hover);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-top: 1px dashed var(--border-quaternary);
}
.nq-composer-spacer {
  flex: 1;
}
.nq-composer-resize {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
  opacity: 0;
  transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}
.nq-session-composer:hover > .nq-composer-resize,
.nq-session-composer:focus-within > .nq-composer-resize {
  opacity: 1;
}
.nq-composer-resize.is-dragging {
  opacity: 1;
}
.nq-composer-resize::before {
  content: "";
  width: 96px;
  height: 6px;
  border-radius: 9999px;
  background: var(--composer-grip-bg);
  border: 1px solid var(--border-quaternary);
  transition: border-color .12s var(--ease), background-color .12s var(--ease);
}
.nq-composer-resize:hover::before,
.nq-composer-resize:focus-visible::before,
.nq-composer-resize.is-dragging::before {
  border-color: var(--composer-border-focus);
}
.nq-composer-resize.is-dragging::before {
  background: var(--composer-grip-active);
}
.nq-composer-resize:focus {
  outline: none;
}
.nq-session-composer .nq-tool-btn.nq-tool-add {
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, .72);
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .04));
  border: none;
  box-shadow:
    0 2px 2px -1px rgba(0, 0, 0, .04),
    0 4px 4px -2px rgba(0, 0, 0, .02),
    inset 0 0 0 1px rgba(0, 0, 0, .16),
    inset 0 .5px 0 0 rgba(0, 0, 0, .08),
    inset 0 -.5px 0 0 rgba(0, 0, 0, .16);
  color: var(--text);
}
[data-theme=dark] .nq-session-composer .nq-tool-btn.nq-tool-add {
  background-color: rgba(28, 28, 28, .72);
  box-shadow:
    0 2px 2px -1px rgba(0, 0, 0, .04),
    0 4px 4px -2px rgba(0, 0, 0, .02),
    inset 0 0 0 1px rgba(0, 0, 0, .16),
    inset 0 .5px 0 0 rgba(255, 255, 255, .5),
    inset 0 -.5px 0 0 rgba(255, 255, 255, .22);
}
.nq-tool-add svg {
  transition: rotate .15s cubic-bezier(.4, 0, .2, 1);
}
.nq-tool-add.nq-anchor-open svg {
  rotate: 45deg;
}
.nq-session-composer .nq-tool-btn.nq-tool-add svg,
.nq-auto-lite .nq-tool-add svg {
  width: 20px;
  height: 20px;
}
.nq-session-composer .nq-tool-btn svg,
.nq-session-composer .nq-send-btn svg {
  width: 16px;
  height: 16px;
}
.nq-tool-add {
  --add-fx: #000;
  --add-fx-hover: .04;
  --add-fx-active: .06;
}
[data-theme=dark] .nq-tool-add {
  --add-fx: #fff;
  --add-fx-hover: .08;
  --add-fx-active: .12;
}
.nq-session-composer .nq-tool-btn.nq-tool-add {
  position: relative;
  isolation: isolate;
}
.nq-tool-add::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: var(--add-fx);
  opacity: 0;
  transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}
.nq-tool-add:hover::before {
  opacity: var(--add-fx-hover);
}
.nq-tool-add:active::before {
  opacity: var(--add-fx-active);
}
.nq-tool-add.nq-anchor-open::before {
  opacity: 0;
}
.nq-session-composer .nq-tool-btn.nq-tool-add:active {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
}
.nq-auto-lite .nq-tool-btn.nq-tool-add:hover,
.nq-auto-lite .nq-tool-btn.nq-tool-add:active {
  background-color: transparent;
}
.nq-session-composer .nq-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text);
}
.nq-session-composer .nq-tool-chip {
  height: 28px;
  line-height: 16px;
}
@supports (corner-shape: squircle) {
  .nq-session-composer .nq-tool-btn,
  .nq-session-composer .nq-tool-chip,
  .nq-session-composer .nq-send-btn,
  .nq-user-bubble,
  .nq-conv-skel-bubble {
    corner-shape: squircle;
  }
}
.nq-tool-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 16px;
  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.nq-tool-add {
  border-radius: 10px;
}
.nq-tool-btn:hover,
.nq-tool-chip:hover {
  background: var(--composer-hover, var(--bg-layout));
  color: var(--text);
}
.nq-tool-btn:active,
.nq-tool-chip:active {
  background: var(--composer-active, var(--fill-hover));
  color: var(--text);
}
.nq-tool-chip {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: none;
  background: transparent;
  border-radius: 16px;
  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 svg {
  flex-shrink: 0;
}
.nq-tool-chip .icon-xs {
  width: 12px;
  height: 12px;
  color: var(--text-tertiary);
}
.nq-tool-chip-model .nq-provider-icon {
  color: var(--text);
}
.nq-tool-chip.nq-tool-chip-active .icon-xs,
.nq-tool-chip.nq-tool-chip-active .nq-chip-icon,
.nq-tool-chip.nq-tool-chip-danger .icon-xs,
.nq-tool-chip.nq-tool-chip-danger .nq-chip-icon {
  color: inherit;
}
.nq-tool-chip .nq-chip-label {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-tool-chip-active {
  background: var(--fill-accent);
  color: var(--primary);
  font-weight: 600;
}
.nq-tool-chip-active:hover {
  background: var(--fill-accent);
  color: var(--primary);
}
.nq-chip-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.nq-tool-chip-danger {
  color: var(--error);
}
.nq-tool-chip-danger:hover {
  color: var(--error);
}
.nq-send-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 16px;
  background: var(--send);
  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: var(--send-hover);
}
.nq-send-btn.stop {
  background: var(--send);
}
.nq-send-btn.stop:hover {
  background: var(--send-hover);
}
.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: 8px;
  padding: 6px 7px 0;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
}
.nq-strip-item {
  border: none;
  background: none;
  padding: 0 8px;
  margin: 0;
  font: inherit;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 28px;
  border-radius: var(--radius);
  transition: background .12s, color .12s;
}
.nq-strip-item:hover {
  color: var(--text);
}
.nq-strip-item.is-static {
  cursor: default;
}
.nq-strip-item.is-static:hover {
  color: var(--text-secondary);
}
.nq-strip-item svg {
  flex-shrink: 0;
  color: currentColor;
}
.nq-strip-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-strip-item-sm {
  padding: 2px 0;
  font-weight: 500;
  height: 20px;
  border-radius: 16px;
}
.nq-session-context-strip .nq-strip-item {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-strip-project {
  margin-left: -8px;
  min-width: auto;
}
.nq-strip-project svg {
  color: var(--text-tertiary);
}
.nq-strip-meter-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  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);
}
.nq-strip-pct {
  font-size: 10px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-credit-meter {
  width: 48px;
  height: 6px;
  border: 1px solid var(--border-tertiary);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      120deg,
      var(--border-secondary) 0 1px,
      transparent 1px 4px);
}
.nq-credit-fill {
  height: 100%;
  background: var(--send);
  transition: width .3s;
}
.nq-strip-branch-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
}
.nq-dropdown.nq-runtime-mode-menu {
  width: 220px;
}
.nq-branch-section-label {
  padding: 4px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quaternary);
  letter-spacing: .02em;
}
.nq-dropdown.nq-model-menu {
  --model-surface: var(--bg-base);
  --model-border: #d5dbd8;
  --model-row-active: #f6f6f6;
  width: 360px;
  height: 310px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--model-surface);
  border-color: var(--model-border);
  border-radius: var(--radius-xl);
  box-shadow:
    0 8px 18px -8px rgba(0, 0, 0, .1),
    0 18px 42px -20px rgba(0, 0, 0, .08),
    inset 0 1px 0 color-mix(in srgb, var(--model-surface) 72%, transparent);
}
[data-theme=dark] .nq-dropdown.nq-model-menu {
  --model-surface: var(--bg-layout);
  --model-border: #335942;
  --model-row-active: #252b26;
}
.nq-model-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-model-list > .nq-menu-sep {
  margin: 3px 4px;
}
.nq-dropdown.nq-model-menu > .nq-menu-sep {
  margin: 4px -4px;
  background: var(--border-tertiary);
}
.nq-menu-item.nq-model-footer {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}
.nq-menu-item.nq-model-footer .icon-sm {
  color: var(--text-tertiary);
}
.nq-provider-icon {
  flex-shrink: 0;
  display: inline-block;
}
.nq-provider-tile {
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-quaternary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  transition: border-color .12s;
}
.nq-provider-tile .nq-provider-icon {
  margin: 0;
}
.nq-menu-item.nq-model-item .nq-provider-tile {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xl);
  margin-top: 0;
  border-color: var(--border-tertiary);
  background: var(--model-surface);
  color: var(--text-tertiary);
}
.nq-provider-tile-lg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-top: 0;
}
.nq-menu-item.nq-model-item.active .nq-provider-tile {
  border-color: var(--send);
  color: var(--text);
}
.nq-tile-check {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--send);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nq-tile-check .icon-xs {
  width: 10px;
  height: 10px;
}
.nq-menu-item.nq-model-item {
  align-items: center;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: var(--radius-lg);
}
.nq-model-info {
  flex: 1;
  min-width: 0;
}
.nq-model-name {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.nq-model-desc {
  font-size: 11px;
  line-height: 16px;
  margin-top: 2px;
  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;
}
.nq-model-mult {
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    monospace;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-effort);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.nq-model-mult-was {
  text-decoration: line-through;
  opacity: .7;
}
.nq-model-mult-now {
  margin-left: 4px;
}
.nq-menu-item.nq-model-item.is-locked {
  opacity: .55;
  cursor: not-allowed;
}
.nq-menu-item.nq-model-item.is-locked .nq-model-badges .icon-sm {
  color: var(--text-tertiary);
}
.nq-menu-item.nq-model-item.active {
  background: var(--model-row-active);
  color: var(--text);
  font-weight: 400;
}
.nq-menu-item.nq-model-item.active:hover {
  background: var(--model-row-active);
}
.nq-chip-thinking {
  color: var(--text-effort);
  font-weight: 400;
}
.nq-model-tip {
  position: fixed;
  z-index: 130;
  width: 248px;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 12px 13px;
  pointer-events: none;
  animation: nq-tooltip-enter .14s var(--ease) both;
}
.nq-model-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-model-tip-pill {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 17px;
  color: var(--send);
  background: var(--fill-accent);
  border-radius: 999px;
  padding: 0 7px;
}
.nq-model-tip-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.nq-model-tip-sep {
  height: 1px;
  margin: 9px 0;
  background: var(--border-quaternary);
}
.nq-model-tip-foot {
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-dropdown.nq-model-menu {
  --model-banner: #579b6e;
}
[data-theme=dark] .nq-dropdown.nq-model-menu {
  --model-banner: #73cd94;
}
.nq-model-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  margin: 0 -4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--model-banner);
}
.nq-model-banner .icon-sm {
  color: inherit;
}
.nq-model-banner-time {
  font-family:
    ui-monospace,
    SFMono-Regular,
    "SF Mono",
    Menlo,
    monospace;
  font-variant-numeric: tabular-nums;
}
.nq-menu-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  margin: 0 0 4px;
  border-radius: var(--radius-xl);
  background: var(--fill-hover);
}
.nq-menu-tab {
  flex: 1;
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
.nq-menu-tab:hover {
  color: var(--text-secondary);
}
.nq-menu-tab.is-active {
  background: var(--model-surface, var(--bg-base));
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}
.nq-dialog-card.nq-model-mgr-card {
  max-height: min(490px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
}
.nq-mgr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.nq-mgr-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nq-mgr-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-mgr-tab:hover {
  color: var(--text-secondary);
}
.nq-mgr-tab.is-active {
  color: var(--text);
  font-weight: 600;
}
.nq-mgr-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: var(--radius);
  padding: 4px 8px;
  margin-left: auto;
}
.nq-mgr-add + .nq-mgr-close {
  margin-left: 0;
}
.nq-mgr-close {
  margin-left: auto;
  flex-shrink: 0;
}
.nq-mgr-table {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.nq-mgr-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 11px 2px;
  grid-template-columns: minmax(140px, 1.6fr) minmax(64px, .62fr) 56px minmax(150px, 1.3fr);
}
.nq-mgr-thead {
  padding: 4px 2px 8px;
  border-bottom: 1px solid var(--border-quaternary);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-mgr-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nq-mgr-name-box {
  min-width: 0;
}
.nq-mgr-name-label {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-mgr-name-sub,
.nq-rev-item-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.nq-mgr-select {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  padding: 3px 6px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.nq-mgr-select:hover {
  background: var(--fill-tertiary);
}
.nq-mgr-select:focus {
  outline: none;
}
.nq-mgr-select-chevron {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 16px;
}
.nq-mgr-nolevel {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 3px 6px;
  min-width: 0;
}
.nq-switch {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 20px;
  justify-self: start;
}
.nq-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.nq-switch-track {
  width: 32px;
  height: 20px;
  border-radius: 999px;
  position: relative;
  background: var(--fill-secondary);
  pointer-events: none;
  transition: background .15s;
}
.nq-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-on-primary);
  transition: transform .15s;
}
.nq-switch input:checked + .nq-switch-track {
  background: var(--send);
}
.nq-switch input:checked + .nq-switch-track::after {
  transform: translateX(12px);
}
.nq-mgr-ctx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 10px;
}
.nq-ctx-slider {
  position: relative;
  height: 17px;
}
.nq-ctx-slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 17px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.nq-ctx-slider input[type=range]::-webkit-slider-runnable-track {
  height: 17px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #DEE4E2 var(--p, 18%),
      #F7F7F7 var(--p, 18%));
}
.nq-ctx-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 4px;
  height: 12px;
  margin-top: 2.5px;
  border-radius: 2px;
  background: #869D8D;
  border: none;
  box-shadow: none;
}
.nq-ctx-slider input[type=range]::-moz-range-track {
  height: 17px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #DEE4E2 var(--p, 18%),
      #F7F7F7 var(--p, 18%));
}
.nq-ctx-slider input[type=range]::-moz-range-thumb {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: #869D8D;
  border: none;
  box-shadow: none;
}
[data-theme=dark] .nq-ctx-slider input[type=range]::-webkit-slider-runnable-track,
[data-theme=dark] .nq-ctx-slider input[type=range]::-moz-range-track {
  background:
    linear-gradient(
      90deg,
      var(--fill-accent) var(--p, 18%),
      var(--fill-tertiary) var(--p, 18%));
}
[data-theme=dark] .nq-ctx-slider input[type=range]::-webkit-slider-thumb,
[data-theme=dark] .nq-ctx-slider input[type=range]::-moz-range-thumb {
  background: var(--send);
}
.nq-ctx-ticks {
  height: 7px;
  margin-top: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      #E4E4E4 0 1px,
      transparent 1px 8px);
}
[data-theme=dark] .nq-ctx-ticks {
  background:
    repeating-linear-gradient(
      90deg,
      var(--border-quaternary) 0 1px,
      transparent 1px 8px);
}
.nq-ctx-labels {
  position: relative;
  height: 14px;
  margin-top: -7px;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-quaternary);
}
.nq-ctx-labels span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.nq-ctx-labels span.is-on {
  color: var(--text-secondary);
  font-weight: 600;
}
.nq-mgr-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-mgr-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.nq-mgr-default-thinking {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-mgr-default-label {
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-mgr-default-thinking .nq-mgr-select {
  padding: 2px 16px 2px 6px;
  font-size: 11.5px;
}
.nq-mgr-hint {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.nq-mgr-hint::before {
  content: "ⓘ ";
}
.nq-mgr-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.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-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 {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  margin: 4px 2px 6px;
  padding: 0 12px 0 28px;
  border: none;
  border-radius: 16px;
  background: var(--control-hover);
  transition: background .12s var(--ease);
}
.nq-workspace-search-wrap > svg {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color .12s var(--ease);
}
.nq-workspace-search-wrap:focus-within {
  background: var(--fill-hover);
}
.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-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 1px;
}
.nq-menu-item-icon.is-secondary {
  color: var(--text-secondary);
}
.nq-menu-item.active .nq-menu-item-icon.is-secondary {
  color: inherit;
}
.nq-menu-item-icon.is-safe {
  color: var(--send);
}
.nq-menu-item-icon.is-neutral {
  color: var(--text-secondary);
}
.nq-menu-item-icon.is-danger {
  color: var(--error);
}
.nq-menu-item-icon.is-grid {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.nq-menu-item-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
}
.nq-menu-item-title.nq-menu-item-title-sm {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
}
.nq-menu-check.is-overlay {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
}
.nq-menu-check.is-inset {
  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-dropdown.nq-approval-preset-menu {
  width: fit-content;
  min-width: 260px;
  max-width: calc(100vw - 24px);
}
.nq-approval-preset-menu .nq-menu-item.nq-approval-item {
  position: relative;
  align-items: flex-start;
  padding: 8px 32px 8px 8px;
  font-size: 12px;
  line-height: 16px;
}
.nq-approval-preset-menu .nq-menu-item.nq-approval-item .nq-menu-item-desc,
.nq-menu-item-info.nq-info-col .nq-menu-item-desc {
  margin-top: 0;
}
.nq-approval-preset-menu .nq-menu-item.nq-approval-item.active:not(.nq-menu-danger) {
  color: var(--text);
  font-weight: 400;
}
.nq-dropdown.nq-agent-menu {
  width: 300px;
}
.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-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-spend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 3px 6px 0;
  font-variant-numeric: tabular-nums;
}
.nq-usage-pop-spend-detail {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 2px 6px 8px;
}
.nq-usage-pop-findings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}
.nq-usage-pop-finding-empty {
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 2px 6px 0;
}
.nq-usage-pop-finding {
  margin: 0 6px;
  padding: 6px 8px;
  border-left: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
}
.nq-usage-pop-finding-warn {
  border-left-color: var(--error);
}
.nq-usage-pop-finding-info {
  border-left-color: var(--send);
}
.nq-usage-pop-finding-title,
.nq-usage-sec-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.nq-usage-pop-finding-hint {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}
.nq-usage-pop-finding-runs {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 3px;
}
button.nq-account-main {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  transition: background .12s;
}
.nq-account-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nq-account-actions .nq-icon-btn:hover {
  background: transparent;
  color: var(--text-secondary);
}
.nq-usage-panel {
  width: 300px;
  padding: 0;
}
.nq-usage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 6px;
}
.nq-usage-panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 12px 12px;
}
.nq-usage-panel-hint {
  font-size: 12px;
  color: var(--text-quaternary);
  padding: 8px 0;
}
.nq-usage-sec-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.nq-usage-tier {
  padding: 0 6px;
  border-radius: 4px;
  background: var(--fill-accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}
.nq-usage-sec-spacer {
  flex: 1;
}
.nq-usage-sec-note {
  font-size: 11px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-tickbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.nq-tick {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 1px;
  background: var(--fill-secondary);
}
.nq-tick.on {
  background: color-mix(in srgb, var(--text) 62%, transparent);
}
.nq-usage-sec-nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-quaternary);
  font-variant-numeric: tabular-nums;
}
.nq-usage-sec-used strong,
.nq-usage-sec-remain strong {
  color: var(--text);
  font-size: 12px;
}
.nq-usage-sec-remain-label {
  margin-right: 3px;
}
.nq-usage-sec-tip {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 2px;
  color: var(--text-quaternary);
  cursor: help;
}
.nq-usage-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-quaternary);
}
.nq-usage-panel-refresh {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tertiary);
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-usage-panel-detail {
  flex: 1;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: var(--radius);
  background: var(--send);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s var(--ease);
}
.nq-usage-panel-detail:hover {
  background: var(--send-hover);
}
.nq-ext-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-ext-installed-btn.is-on {
  background: var(--fill-accent);
  border-color: transparent;
  color: var(--primary);
}
.nq-page.nq-ext-page {
  max-width: none;
}
.nq-ext-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.nq-ext-hero {
  position: relative;
  min-height: 268px;
  overflow: hidden;
  margin: -24px -24px 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px 42px;
  text-align: center;
  background: var(--bg-layout);
}
.nq-ext-hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: 0;
}
.nq-ext-hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 10px 0 24px;
  color: var(--text-tertiary);
  font-size: 16px;
  line-height: 22px;
}
.nq-ext-search {
  position: relative;
  z-index: 2;
  width: min(606px, 72vw);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  color: var(--text-quaternary);
  background: var(--bg-base);
  box-shadow: none;
  transition: border-color .2s ease;
}
.nq-ext-search:focus-within {
  border-color: var(--primary);
  box-shadow: none;
}
.nq-ext-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.nq-ext-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nq-ext-deco-ic {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  color: var(--text-tertiary);
}
.nq-ext-deco-ic svg {
  width: 19px;
  height: 19px;
}
.nq-ext-deco-ic:nth-child(1) {
  left: 8%;
  top: 19%;
  transform: rotate(-10deg);
  color: var(--send);
}
.nq-ext-deco-ic:nth-child(2) {
  left: 18%;
  bottom: 17%;
  transform: rotate(7deg);
  color: var(--info);
}
.nq-ext-deco-ic:nth-child(3) {
  right: 18%;
  top: 17%;
  transform: rotate(8deg);
  color: var(--warning);
}
.nq-ext-deco-ic:nth-child(4) {
  right: 7%;
  bottom: 18%;
  transform: rotate(-8deg);
  color: var(--error);
}
.nq-ext-deco-ic:nth-child(5) {
  left: 30%;
  top: 12%;
  width: 34px;
  height: 34px;
  transform: rotate(6deg);
}
.nq-ext-deco-ic:nth-child(6) {
  right: 30%;
  bottom: 10%;
  width: 34px;
  height: 34px;
  transform: rotate(-7deg);
}
.nq-ext-market-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 36px;
  overflow-x: auto;
  padding: 36px 0 20px;
  border-bottom: 0;
  background: var(--bg-base);
}
.nq-ext-market-tab {
  position: relative;
  flex-shrink: 0;
  height: 34px;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  transition: color .2s ease;
}
.nq-ext-market-tab:hover {
  color: var(--text);
}
.nq-ext-market-tab.active {
  color: var(--text);
  font-weight: 500;
}
.nq-ext-market-tab.active::after {
  content: none;
}
.nq-ext-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
}
.nq-ext-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-ext-chip {
  border: none;
  background: transparent;
  cursor: pointer;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color .2s ease, background-color .2s ease;
}
.nq-ext-chip:hover {
  color: var(--text);
}
.nq-ext-chip.active {
  background: var(--fill-tertiary);
  color: var(--text);
  font-weight: 600;
}
.nq-ext-chips-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-ext-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  cursor: pointer;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-secondary);
  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease;
}
.nq-ext-chip-btn:hover {
  color: var(--text);
  border-color: var(--border);
}
.nq-ext-chip-btn.is-on {
  color: var(--primary);
  background: var(--fill-accent);
  border-color: transparent;
}
.nq-ext-page-body {
  padding: 0 0 36px;
}
.nq-ext-section {
  margin-top: 0;
  margin-bottom: 40px;
}
.nq-ext-section + .nq-ext-section {
  margin-top: 0;
}
.nq-ext-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.nq-ext-section-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
}
.nq-ext-section-count {
  margin-left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-quaternary);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}
.nq-ext-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s ease;
}
.nq-ext-see-all:hover {
  color: var(--text);
}
.nq-ext-section-empty {
  padding: 28px;
  border: 1px dashed var(--border-tertiary);
  border-radius: 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}
.nq-ext-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.nq-ext-card {
  position: relative;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-tertiary);
  border-radius: 12px;
  background: var(--bg-elevated);
  padding: 20px 20px 16px;
  outline: none;
  overflow: hidden;
  transition:
    background-color .2s,
    border-color .2s,
    box-shadow .2s;
}
.nq-ext-card:hover {
  background: var(--bg-elevated);
}
.nq-ext-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nq-ext-card-link {
  cursor: pointer;
}
.nq-ext-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nq-ext-card-icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
}
.nq-ext-card-icon > svg {
  width: 18px;
  height: 18px;
}
.nq-ext-card-tick {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--send);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
}
.nq-ext-card-tick svg {
  width: 9px;
  height: 9px;
}
.nq-ext-card-text {
  flex: 1;
  min-width: 0;
}
.nq-ext-card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text);
  margin: 0;
}
.nq-ext-card-name-market {
  padding-right: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.nq-ext-card-desc {
  min-height: 36px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 18px;
  flex: 1;
}
.nq-ext-featured-badge {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  color: #188a4f;
  background: rgba(34, 197, 94, .1);
  font-size: 9px;
  font-weight: 600;
}
.nq-ext-card-meta {
  position: static;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-quaternary);
  font-size: 12px;
  line-height: 18px;
}
.nq-ext-source-line {
  display: none;
}
.nq-ext-source-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nq-ext-source-link:hover {
  color: var(--text);
}
.nq-ext-detail {
  padding: 24px;
}
.nq-ext-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nq-ext-detail-heading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-ext-detail-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.nq-ext-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.nq-ext-detail-icon > svg {
  width: 23px;
  height: 23px;
}
.nq-ext-detail-byline {
  color: var(--text-tertiary);
  font-size: 12px;
}
.nq-ext-detail-desc {
  margin: 18px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.nq-ext-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nq-ext-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-layout);
}
.nq-ext-detail-fact span {
  color: var(--text-quaternary);
  font-size: 10px;
}
.nq-ext-detail-fact strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.nq-ext-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.nq-ext-detail-tags span {
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--text-tertiary);
  background: var(--fill-secondary);
  font-size: 10px;
}
.nq-ext-detail-source {
  display: block;
  margin-top: 14px;
  color: var(--text-tertiary);
  font-size: 11px;
}
.nq-ext-community-cta {
  margin-top: 56px;
  padding: 28px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-layout);
}
.nq-ext-community-cta h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
}
.nq-ext-community-cta p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}
@media (max-width: 1180px) {
  .nq-ext-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .nq-ext-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nq-ext-deco-ic:nth-child(5),
  .nq-ext-deco-ic:nth-child(6) {
    display: none;
  }
}
@media (max-width: 620px) {
  .nq-btn.nq-ext-manage-btn {
    display: none;
  }
  .nq-ext-hero {
    min-height: 240px;
    margin: -24px -24px 0;
    padding: 52px 24px 36px;
  }
  .nq-ext-hero-title {
    font-size: 26px;
    line-height: 36px;
  }
  .nq-ext-hero-subtitle {
    max-width: 260px;
    margin-bottom: 28px;
    font-size: 13px;
  }
  .nq-ext-search {
    width: 100%;
  }
  .nq-ext-deco-ic {
    width: 34px;
    height: 34px;
    opacity: .72;
  }
  .nq-ext-deco-ic:nth-child(2),
  .nq-ext-deco-ic:nth-child(3) {
    display: none;
  }
  .nq-ext-market-tabs {
    gap: 20px;
    padding: 20px 0 16px;
  }
  .nq-ext-market-tab {
    font-size: 15px;
  }
  .nq-ext-chips {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
  }
  .nq-ext-chips-right {
    width: 100%;
  }
  .nq-ext-grid {
    grid-template-columns: 1fr;
  }
  .nq-ext-card {
    min-height: 156px;
  }
  .nq-ext-community-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .nq-ext-detail-facts {
    grid-template-columns: 1fr;
  }
}
.nq-ext-empty-go {
  display: flex;
  margin: 10px auto 0;
}
.nq-ext-add-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.nq-ext-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
}
.nq-ext-add-row:hover {
  background: var(--bg-layout);
}
.nq-ext-add-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--fill-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nq-ext-add-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.nq-ext-add-desc,
.nq-memory-item-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-ext-add-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-menu-item.nq-menu-danger {
  color: var(--error);
}
.nq-menu-item.nq-menu-danger:hover {
  background: var(--bg-layout);
}
.nq-about-card {
  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-lockup {
  width: 166px;
  margin: 0 auto 8px;
}
.nq-update-note,
.nq-td-board-tab-count {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-update-note:empty {
  display: none;
}
.nq-about-version {
  margin-top: 2px;
}
.nq-about-tagline,
.nq-docimg-count {
  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 {
  margin-top: 6px;
}
.nq-about-update-progress,
.nq-force-update-progress {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--border-tertiary);
  margin-top: 6px;
}
.nq-force-update-mask {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.nq-force-update-card {
  width: 372px;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.nq-force-update-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
}
.nq-force-update-body {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 8px;
}
.nq-force-update-version {
  margin-top: 6px;
}
.nq-force-update-message {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--fill-accent);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-top: 12px;
  text-align: left;
}
.nq-force-update-status {
  margin-top: 12px;
}
.nq-force-update-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.nq-force-update-quit {
  display: block;
  margin: 14px auto 0;
  padding: 4px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-force-update-quit:hover {
  color: var(--text-secondary);
}
.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,
.nq-share-url-row .nq-input,
.nq-share-sec-row .nq-input,
.nq-skill-import-url-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 .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: var(--dialog-scrim);
  -webkit-backdrop-filter: var(--dialog-scrim-blur);
  backdrop-filter: var(--dialog-scrim-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: nq-dialog-mask-enter .18s ease both;
}
.nq-dialog-card {
  background: var(--dialog-bg);
  border-radius: var(--dialog-radius);
  border: 1px solid var(--border-quaternary);
  padding: var(--dialog-pad);
  width: calc(100% - 2rem);
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--dialog-shadow);
  animation: nq-dialog-enter var(--dialog-reveal) both;
}
.nq-dialog-card.nq-dialog-card-400 {
  max-width: 400px;
}
.nq-dialog-card.nq-dialog-card-460 {
  max-width: 460px;
}
.nq-dialog-card.nq-dialog-card-520 {
  max-width: 520px;
}
.nq-dialog-card.nq-dialog-card-548 {
  max-width: 548px;
}
.nq-dialog-card.nq-dialog-card-560 {
  max-width: 560px;
}
.nq-dialog-card.nq-dialog-card-672 {
  max-width: 672px;
}
.nq-dialog-card.nq-dialog-card-680 {
  max-width: 680px;
}
.nq-dialog-card.nq-dialog-card-760 {
  max-width: 760px;
}
.nq-dialog-card.nq-dialog-card-860 {
  max-width: min(860px, calc(100vw - 48px));
}
.nq-msg-full-body {
  margin-top: 16px;
  max-height: calc(80vh - 104px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.nq-dialog-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  margin-bottom: 8px;
}
.nq-dialog-title.nq-dialog-title-md {
  font-size: 14px;
}
.nq-dialog-title.nq-dialog-title-lg {
  font-size: 16px;
  line-height: 24px;
}
.nq-dialog-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.nq-dialog-actions,
.nq-ext-conn-edit-ops,
.nq-byok-row-actions,
.nq-repo-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.nq-dialog-btn {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--dialog-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nq-dialog-btn-primary {
  background: var(--send);
  color: var(--text-on-primary);
}
.nq-dialog-btn-primary:hover {
  background: var(--send-hover);
  color: var(--text-on-primary);
}
.nq-dialog-btn:disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}
.nq-dialog-btn-primary:disabled,
.nq-dialog-btn-primary:disabled:hover {
  background: var(--send);
  color: var(--text-on-primary);
  opacity: .45;
  cursor: not-allowed;
}
.nq-dialog-alert,
.nq-dialog-form {
  max-width: 384px;
  padding: 24px;
  border-radius: 12px;
  background: var(--bg-base);
}
.nq-dialog-form {
  border-color: var(--border-tertiary);
}
.nq-dialog-alert .nq-dialog-hint {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
}
.nq-dialog-alert .nq-dialog-actions,
.nq-dialog-form .nq-dialog-actions {
  margin-top: 24px;
}
.nq-dialog-form .nq-dialog-title {
  margin-bottom: 4px;
}
.nq-dialog-form .nq-dialog-hint {
  line-height: 16px;
  margin-bottom: 20px;
}
.nq-dialog-form .nq-dialog-input {
  min-height: 28px;
  height: 28px;
  padding: 0 12px;
  margin-bottom: 0;
  border-radius: var(--dialog-pill);
  background: var(--bg-base);
  border-color: var(--border-tertiary);
  font-size: 13px;
  line-height: 16px;
}
.nq-dialog-alert .nq-dialog-btn:not(.nq-dialog-btn-primary):not(.nq-dialog-btn-danger),
.nq-dialog-form .nq-dialog-btn:not(.nq-dialog-btn-primary):not(.nq-dialog-btn-danger) {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-dialog-alert .nq-dialog-btn:not(.nq-dialog-btn-primary):not(.nq-dialog-btn-danger):hover,
.nq-dialog-form .nq-dialog-btn:not(.nq-dialog-btn-primary):not(.nq-dialog-btn-danger):hover {
  background: var(--fill-active);
  color: var(--text);
}
.nq-dialog-form .nq-dialog-btn {
  min-width: 88px;
}
[data-theme=dark] .nq-dialog-alert .nq-dialog-btn:not(.nq-dialog-btn-primary):not(.nq-dialog-btn-danger) {
  background: #363d37;
}
[data-theme=dark] .nq-dialog-alert .nq-dialog-btn-danger {
  background: #ff4d4f;
  color: #080807;
}
[data-theme=dark] .nq-dialog-alert .nq-dialog-btn-danger:hover {
  background: #ff4d4f;
  opacity: .88;
}
.nq-dialog-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.nq-dialog-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 4px;
  background: var(--bg-base);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nq-dialog-check input:checked {
  border-color: var(--send);
  background: var(--send) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.nq-dialog-error {
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--error);
}
.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-audit-list {
  max-height: 50vh;
  overflow-y: auto;
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-audit-empty {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  padding: 22px 0;
}
.nq-audit-row {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-layout);
  padding: 8px 11px;
}
.nq-audit-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nq-audit-time {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.nq-audit-tool {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-audit-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-tertiary);
  color: var(--text-secondary);
  background: var(--bg-base);
}
.nq-audit-badge.is-allowed,
.nq-audit-badge.is-preset-allowed {
  color: var(--success);
  border-color: var(--success);
  background: transparent;
}
.nq-audit-badge.is-denied,
.nq-audit-badge.is-preset-denied {
  color: var(--error);
  border-color: var(--error);
  background: transparent;
}
.nq-audit-summary {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 16px;
  font-family: var(--font-mono);
  word-break: break-all;
  margin-top: 5px;
  max-height: 66px;
  overflow-y: auto;
}
.nq-audit-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 5px;
}
.nq-audit-note {
  font-size: 11px;
  line-height: 17px;
  color: var(--text-tertiary);
  background: var(--fill-tertiary);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin: 2px 0 14px;
}
.nq-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--dialog-scrim);
  -webkit-backdrop-filter: var(--dialog-scrim-blur);
  backdrop-filter: var(--dialog-scrim-blur);
  z-index: 110;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  animation: nq-dialog-mask-enter .18s ease both;
}
.nq-search-card {
  width: min(560px, calc(100vw - 32px));
  background: var(--dialog-bg);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--dialog-radius);
  box-shadow: var(--dialog-shadow);
  overflow: hidden;
  animation: nq-dialog-enter var(--dialog-reveal) 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,
.nq-ext-search-input::placeholder,
.nq-input::placeholder,
.nq-textarea::placeholder,
.nq-settings-search-input::placeholder,
.nq-side-chat-input::placeholder,
.nq-td-search-input::placeholder,
.nq-td-input::placeholder,
.nq-td-textarea::placeholder,
.nq-td-composer-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 .nq-item-title {
  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-2line {
  align-items: flex-start;
}
.nq-search-item.nq-search-item-2line > svg {
  margin-top: 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-palette-card {
  width: min(860px, calc(100vw - 32px));
}
.nq-file-palette-body {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  min-height: 0;
}
.nq-file-palette-results {
  max-height: 60vh;
  border-right: 1px solid var(--border-quaternary);
}
.nq-file-palette-results .nq-search-item .nq-item-title {
  font-size: 12.5px;
}
.nq-file-palette-preview {
  max-height: 60vh;
  padding: 10px 12px;
  background: var(--bg-layout);
}
.nq-file-palette-preview-path {
  padding: 2px 2px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-quaternary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.nq-file-palette-pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: pre;
  overflow: auto;
  min-height: 120px;
}
.nq-file-palette-note {
  padding: 20px 12px;
  font-size: 13px;
  color: var(--text-quaternary);
  text-align: center;
}
@media (max-width: 720px) {
  .nq-file-palette-body {
    grid-template-columns: 1fr;
  }
  .nq-file-palette-results {
    max-height: 34vh;
    border-right: none;
    border-bottom: 1px solid var(--border-quaternary);
  }
  .nq-file-palette-preview {
    max-height: 30vh;
  }
}
.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-suggest-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(480px, 56vh);
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  z-index: 60;
  animation: nq-menu-enter .14s var(--ease) both;
  animation-name: nq-menu-enter-up;
  transform-origin: 50% 100%;
}
.nq-suggest-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}
.nq-suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 16px;
  color: var(--text);
  cursor: pointer;
}
.nq-suggest-item > svg {
  color: var(--text-tertiary);
}
.nq-suggest-item:hover,
.nq-suggest-item.is-active {
  background: var(--bg-layout);
}
.nq-suggest-item:hover > svg,
.nq-suggest-item.is-active > svg {
  color: var(--text);
}
.nq-suggest-item-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-suggest-item-desc {
  flex: 1 1 auto;
  min-width: 0;
}
.nq-suggest-sep {
  height: 1px;
  margin: 4px 10px;
  background: var(--border-tertiary);
}
.nq-suggest-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 96px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-suggest-loading > svg {
  width: 16px;
  height: 16px;
}
.nq-suggest-empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-suggest-empty.is-error {
  color: var(--warning-strong);
}
.nq-suggest-error {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border-tertiary);
  font-size: 11px;
  color: var(--warning-strong);
}
.nq-suggest-hint {
  flex-shrink: 0;
  padding: 6px 12px;
  border-top: 1px solid var(--border-tertiary);
  font-size: 11px;
  color: var(--text-quaternary);
}
.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-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-ws-child.nq-ws-empty,
.nq-file-mention-muted {
  color: var(--text-quaternary);
  cursor: default;
}
.nq-ws-child.nq-ws-empty:hover,
.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-srcfolder-btn {
  display: block;
  width: 100%;
  padding: 4px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--control-hover);
  cursor: pointer;
  transition: background .12s;
}
.nq-srcfolder-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 114px;
  border: 1px dashed var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-layout);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
  transition: color .12s;
}
.nq-srcfolder-btn:hover {
  background: var(--fill-secondary);
}
.nq-srcfolder-btn:hover .nq-srcfolder-zone {
  color: var(--text);
}
.nq-srcfolder-btn svg {
  width: 15px;
  height: 15px;
}
.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-srcfolder-remove-key {
  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-srcfolder-remove-key: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: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  margin: 2px 0 14px;
}
.nq-ws-icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--control-hover);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color .12s,
    color .12s,
    background .12s;
}
.nq-ws-icon-opt svg {
  width: 14px;
  height: 14px;
}
.nq-ws-icon-opt:hover {
  color: var(--text);
}
.nq-ws-icon-opt.active {
  border-color: var(--send);
}
.nq-ws-color-opt {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--control-hover);
  padding: 0;
  cursor: pointer;
  transition: background .12s;
}
.nq-ws-color-opt::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ws-color, var(--text-quaternary));
}
.nq-ws-color-opt:hover,
.nq-ws-color-opt.active {
  background: var(--fill-hover);
}
.nq-terminal-action-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nq-terminal-action-icons .nq-ws-icon-opt,
.nq-terminal-action-icons .nq-ws-icon-opt:hover {
  width: 30px;
  height: 30px;
  aspect-ratio: auto;
  border-color: var(--border-tertiary);
  background: var(--bg-base);
}
.nq-terminal-action-icons .nq-ws-icon-opt:hover {
  border-color: var(--border-secondary);
}
.nq-terminal-action-icons .nq-ws-icon-opt svg {
  width: 15px;
  height: 15px;
}
.nq-terminal-action-icons .nq-ws-icon-opt.active {
  border-color: var(--send);
  background: var(--bg-layout);
  box-shadow: inset 0 0 0 1px var(--send);
}
.nq-dialog-head,
.nq-wsedit-src-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nq-dialog-head-row .nq-dialog-title {
  margin-bottom: 0;
}
.nq-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--dialog-pill);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nq-dialog-close svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nq-dialog-close.is-overlay {
  position: absolute;
  top: 21px;
  right: 16px;
}
.nq-wsedit-src-head .nq-dialog-hint {
  margin-bottom: 0;
}
.nq-wsedit-src-head + .nq-localdir-hint {
  margin-top: 0;
  margin-bottom: 8px;
}
.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.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-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-activity-group,
  .nq-file-changes-card,
  .nq-output-file-card,
  .nq-error-block,
  .nq-msg-meta {
    max-width: 100%;
  }
  .nq-scroll-bottom-btn {
    left: calc(50% - 16px);
    right: auto;
    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,
  .nq-step-icon.is-leaving,
  .nq-step-icon.is-entering {
    animation-duration: .01ms !important;
  }
  .nq-task-step.nq-activity-enter,
  .nq-thinking-step.nq-activity-enter {
    animation-delay: 0s !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:not(:disabled) {
  background: var(--bg-layout);
  border-color: var(--border);
}
.nq-send-btn:disabled,
.nq-dialog-btn:disabled,
.nq-btn:disabled,
.nq-arch-delete-all:disabled,
.nq-rev-tab:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.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-btn.nq-btn-sm {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.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.nq-input-sm {
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
}
.nq-input:focus,
.nq-textarea:focus,
.nq-doc-rename-input:focus,
.nq-td-textarea:focus {
  outline: none;
  border-color: var(--border);
}
.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-feedback-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-feedback-cat {
  width: 100%;
}
.nq-feedback-text {
  min-height: 150px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.nq-feedback-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  margin-top: -6px;
}
.nq-feedback-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.nq-feedback-sent {
  font-size: 13px;
  color: var(--send);
}
.nq-feedback-recent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.nq-feedback-recent-title {
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-feedback-recent-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: var(--bg-layout);
}
.nq-feedback-recent-cat {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-secondary);
}
.nq-feedback-recent-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.nq-feedback-recent-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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-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,
.nq-arch-row-title {
  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-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.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-name {
  font-size: 13px;
  font-weight: 600;
  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-skill-detail-layout {
  display: block;
}
.nq-skill-detail-layout > .nq-two-pane-left {
  display: none;
}
.nq-skill-detail-layout > .nq-two-pane-right {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding-bottom: 48px;
  overflow: visible;
}
.nq-skill-detail-page {
  color: var(--text);
}
.nq-skill-detail-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 20px;
}
.nq-skill-detail-crumb-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nq-skill-detail-crumb-link:hover {
  color: var(--text);
}
.nq-skill-detail-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nq-skill-detail-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tertiary);
  border-radius: 12px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}
.nq-skill-detail-icon svg {
  width: 24px;
  height: 24px;
}
.nq-skill-detail-hero-copy {
  min-width: 0;
}
.nq-skill-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nq-skill-detail-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: 0;
}
.nq-skill-detail-meta {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 20px;
}
.nq-skill-detail-summary {
  max-width: 900px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}
.nq-skill-detail-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-skill-detail-tab {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
}
.nq-skill-detail-tab:hover {
  color: var(--text);
}
.nq-skill-detail-tab.active {
  background: var(--fill-tertiary);
  color: var(--text);
  font-weight: 500;
}
.nq-skill-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.nq-skill-detail-main {
  min-width: 0;
}
.nq-skill-detail-facts {
  margin: 0 0 32px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
  overflow: hidden;
}
.nq-skill-detail-fact {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 48px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-skill-detail-fact:last-child {
  border-bottom: 0;
}
.nq-skill-detail-fact dt,
.nq-skill-detail-fact dd {
  margin: 0;
  padding: 13px 20px;
  font-size: 13px;
  line-height: 20px;
}
.nq-skill-detail-fact dt {
  color: var(--text-tertiary);
  background: var(--bg-layout);
}
.nq-skill-detail-fact dd {
  color: var(--text);
  border-left: 1px solid var(--border-quaternary);
  overflow-wrap: anywhere;
}
.nq-skill-detail-guide {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}
.nq-skill-detail-guide > :first-child {
  margin-top: 0;
}
.nq-skill-detail-source-view {
  min-height: 480px;
  padding: 20px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
  background: var(--bg-layout);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.nq-skill-detail-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-tertiary);
  border-radius: 10px;
  background: var(--bg-elevated);
}
.nq-skill-detail-aside h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.nq-skill-detail-aside p {
  margin: -4px 0 6px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 20px;
}
@media (max-width: 900px) {
  .nq-skill-detail-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nq-skill-detail-aside {
    position: static;
    order: -1;
  }
}
@media (max-width: 620px) {
  .nq-skill-detail-crumb {
    margin-bottom: 18px;
  }
  .nq-skill-detail-hero {
    align-items: flex-start;
    gap: 14px;
  }
  .nq-skill-detail-icon {
    width: 52px;
    height: 52px;
  }
  .nq-skill-detail-title-row h1 {
    font-size: 23px;
    line-height: 32px;
  }
  .nq-skill-detail-meta {
    font-size: 12px;
  }
  .nq-skill-detail-summary {
    margin: 18px 0;
  }
  .nq-skill-detail-fact {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .nq-skill-detail-fact dt,
  .nq-skill-detail-fact dd {
    padding: 11px 12px;
  }
}
.nq-md-preview {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  padding: 14px;
  min-height: 320px;
}
.nq-preview-body.is-wrap .nq-md-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}
.nq-skills-actions {
  display: flex;
  gap: 8px;
}
.nq-skills-actions .nq-btn {
  flex: 1;
  justify-content: center;
}
.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 {
  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;
  height: 28px;
  padding: 0 8px;
  flex-shrink: 0;
  border-radius: 8px;
  corner-shape: superellipse(2);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-settings-nav-item:hover {
  background: var(--row-hover);
  color: var(--text);
}
.nq-settings-nav-item.active {
  background: var(--row-active);
  color: var(--text);
}
.app-shell.sidebar-settings .nq-generic-body {
  padding: 8px 0 48px;
}
.app-shell.sidebar-settings .nq-page {
  max-width: 820px;
  padding: 0 32px;
}
.nq-settings-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-settings-section {
  display: flex;
  flex-direction: column;
}
.nq-settings-section-head {
  display: flex;
  height: 44px;
  align-items: flex-end;
  padding: 0 16px;
}
.nq-settings-section-title {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--text-tertiary);
}
.nq-settings-card {
  margin-top: 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: 12px;
  background: var(--bg-base);
  padding: 0 16px;
  overflow: hidden;
  box-shadow: 0 1px 1px #00000008;
}
.nq-settings-card-body {
  display: flex;
  flex-direction: column;
}
.nq-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.nq-settings-row + .nq-settings-row {
  border-top: 1px dashed var(--border-tertiary);
}
.nq-settings-row-label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
}
.nq-settings-row-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.nq-settings-value {
  font-size: 13px;
  color: var(--text-secondary);
}
.nq-theme-toggle {
  display: flex;
  gap: 8px;
}
.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: 12px;
}
.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: 4px;
  border: none;
  border-radius: 6px;
  corner-shape: superellipse(2);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-settings-back:hover {
  background: var(--row-hover);
  color: var(--text);
}
.nq-settings-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 8px;
  padding: 0 9px;
  height: 32px;
  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: 30px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
}
.nq-settings-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.nq-settings-nav-group-title {
  padding: 0 8px;
  flex-shrink: 0;
  height: 18px;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--text-quaternary);
  opacity: .6;
}
.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.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: 8px;
  flex-wrap: wrap;
}
.nq-settings-irow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-settings-irow-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nq-settings-irow .nq-select {
  max-width: 220px;
}
.nq-di-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nq-settings-inline-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nq-dialog-card.nq-thinkcopy-card {
  padding: 20px 0 16px;
}
.nq-thinkcopy-card .nq-dialog-head,
.nq-thinkcopy-card .nq-dialog-hint {
  padding: 0 20px;
}
.nq-thinkcopy-body {
  max-height: min(56vh, 560px);
  overflow-y: auto;
  border-top: 1px solid var(--border-quaternary);
}
.nq-thinkcopy-head,
.nq-thinkcopy-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
}
.nq-thinkcopy-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-quaternary);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}
.nq-thinkcopy-row {
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-thinkcopy-row:last-child {
  border-bottom: 0;
}
.nq-thinkcopy-idx {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}
.nq-thinkcopy-input {
  min-height: 28px;
  height: 28px;
  padding: 0 12px;
  border-radius: 16px;
}
.nq-thinkcopy-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-thinkcopy-reset:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: transparent;
  color: var(--text-tertiary);
}
.nq-thinkcopy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 0;
}
.nq-thinkcopy-spacer {
  flex: 1;
}
.nq-dialog-btn-error {
  background: var(--error);
  border-color: var(--error);
  color: var(--text-on-primary);
}
.nq-dialog-btn-error:hover {
  background: var(--error);
  border-color: var(--error);
  filter: brightness(.94);
}
.nq-dialog-btn-error:disabled,
.nq-dialog-btn-error:disabled:hover {
  background: var(--error);
  border-color: var(--error);
  opacity: .45;
  cursor: not-allowed;
  filter: none;
}
.nq-settings-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  flex-wrap: wrap;
}
.nq-settings-page-head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nq-settings-page-title {
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: var(--text);
}
.nq-settings-page-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  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-sc-off .nq-kbd {
  opacity: .45;
}
.nq-sc-off-badge {
  height: 20px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--fill-tertiary);
  border: 1px solid var(--border-tertiary);
  font-size: 10.5px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-sc-conflict {
  color: var(--warning-strong);
}
.nq-sc-off-note {
  padding: 10px 0 0;
}
.nq-voice-words-add {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-voice-words-input {
  width: 132px;
  height: 28px;
  font-size: 12px;
}
.nq-voice-words-arrow {
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.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-arrow {
  color: var(--text-quaternary);
}
.nq-word-chip-to {
  color: var(--text);
  font-weight: 500;
}
.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-voice-hist {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.nq-voice-hist-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-voice-hist-text {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 4px 6px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-voice-device-name {
  max-width: 300px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: right;
}
.nq-live {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 130;
  width: 380px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 8px 32px #0002;
  overflow: hidden;
}
.nq-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-live-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.nq-live-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.nq-live[data-live-state=listening] .nq-live-badge {
  background: var(--send);
  color: var(--text-on-primary);
}
.nq-live[data-live-state=thinking] .nq-live-badge,
.nq-live[data-live-state=speaking] .nq-live-badge {
  background: var(--fill-active);
  color: var(--text);
}
.nq-live[data-live-state=error] .nq-live-badge {
  background: var(--error);
  color: #fff;
}
.nq-live-close {
  flex: none;
}
.nq-live-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
}
.nq-live-label {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-live-user {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
}
.nq-live-user.is-interim {
  color: var(--text-tertiary);
  font-style: italic;
}
.nq-live-answer {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}
.nq-live-user.is-empty,
.nq-live-answer.is-empty {
  display: none;
}
.nq-live-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--border-quaternary);
}
.nq-live-hint {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}
.nq-live-screen {
  flex: none;
  max-width: 46%;
  font-size: 11px;
  line-height: 1.45;
  color: var(--primary);
}
.nq-live-btn {
  flex: none;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}
.nq-pg {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 20px;
}
.nq-pg-pool {
  --pg-water-top: #2d7f9c;
  --pg-water-bottom: #0c2a44;
  --pg-bubble: rgba(210, 240, 255, .75);
  --pg-ray: rgba(170, 225, 245, .22);
  --pet-body: var(--ctx-seg-assistant, #80c776);
  --pet-accent: var(--ctx-seg-tool, #c99a3c);
  --pet-limb: var(--ctx-seg-user, #4b6f5a);
  position: relative;
  width: 84.46%;
  max-width: 1000px;
  aspect-ratio: 1000 / 380;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 28px -14px rgba(0, 0, 0, .22);
}
[data-theme=dark] .nq-pg-pool {
  --pg-water-top: #133a4d;
  --pg-water-bottom: #050f1c;
  --pg-bubble: rgba(160, 210, 235, .6);
  --pg-ray: rgba(120, 190, 220, .14);
}
.nq-pg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.nq-pg-octo {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28));
}
.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-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-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);
}
.nq-memory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.nq-memory-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-quaternary);
  letter-spacing: .02em;
}
.nq-memory-dialog-content {
  min-height: 120px;
  resize: vertical;
}
@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-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-tabs .nq-ext-add-btn {
  flex-shrink: 0;
  min-height: 28px;
  height: 28px;
}
.nq-ext-add-menu {
  width: 320px;
}
.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-check {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--primary);
  flex-shrink: 0;
}
.nq-ext-plugin-name-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nq-ext-plugin-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.nq-ext-plugin-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nq-ext-components-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 52vh;
  overflow-y: auto;
  margin-bottom: 14px;
}
.nq-ext-components-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 10px 0 4px;
}
.nq-ext-components-note {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.nq-ext-plugin-uninstall {
  background: transparent;
  border-color: transparent;
  color: var(--text-tertiary);
}
.nq-ext-plugin-uninstall:hover {
  background: transparent;
  color: #dc2626;
  border-color: rgba(220, 38, 38, .35);
}
.nq-skill-readonly-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font-size: 12.5px;
}
.nq-ext-market-card {
  scroll-margin-top: 24px;
}
.nq-group-card {
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
}
.nq-group-card + .nq-group-card {
  margin-top: 8px;
}
.nq-ext-conn-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.nq-ext-conn-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.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-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-agents-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 30px 0 22px;
  text-align: center;
}
.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-ext-agent-new {
  padding: 3px 10px;
  font-size: 12px;
}
.nq-ext-agent-tpl-hint {
  margin: 0 2px 8px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
.nq-ext-agent-editor {
  gap: 14px;
}
.nq-ext-agent-instructions {
  min-height: 150px;
  line-height: 1.55;
}
.nq-ext-agent-tools {
  min-height: 62px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-ext-agent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nq-ext-agent-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.nq-ext-agent-pick input {
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
.nq-ext-agent-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.nq-ext-agent-starter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  background: none;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  text-align: left;
}
.nq-ext-agent-starter:hover,
.nq-strip-upgrade:hover {
  background: var(--fill-tertiary);
  color: var(--text);
  border-color: var(--border);
}
.nq-ext-agent-starter[disabled] {
  opacity: .5;
  cursor: default;
}
.nq-ext-agent-starter .nq-icon {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-ext-agent-starters-block {
  padding: 8px 12px 2px;
}
.nq-ext-agent-starters-hint {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-ext-agent-tpl-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.nq-ext-agent-perms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-ext-agent-perm-catalog {
  display: flex;
  flex-direction: column;
  max-height: 232px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius);
}
.nq-ext-agent-perm-name {
  flex: 0 0 138px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-ext-agent-perm-purpose {
  flex: 1;
  min-width: 0;
}
.nq-ext-agent-perm-key {
  flex-shrink: 0;
  white-space: nowrap;
}
.nq-ext-agent-perm-conflict:empty {
  display: none;
}
.nq-agent-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nq-agent-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nq-agent-page-filters {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--fill-tertiary);
}
.nq-agent-page-filter {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition:
    background .15s var(--ease),
    border-color .15s var(--ease),
    color .15s var(--ease);
}
.nq-agent-page-filter:hover {
  color: var(--text);
}
.nq-agent-page-filter.active {
  border-color: var(--border-quaternary);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.nq-agent-page-search {
  width: min(248px, 42%);
}
.nq-agent-default {
  background: var(--fill-quaternary);
}
.nq-agent-create-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.nq-agent-create-back {
  color: var(--text-secondary);
}
.nq-agent-create-step {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-agent-create-copy {
  max-width: 680px;
  padding: 18px 2px 4px;
}
.nq-agent-create-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.nq-agent-create-copy p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-secondary);
}
.nq-agent-create-copy .nq-agent-create-note {
  color: var(--text-tertiary);
}
.nq-agent-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.nq-agent-create-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 166px;
  padding: 16px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    background .15s var(--ease),
    border-color .15s var(--ease),
    transform .15s var(--ease);
}
.nq-agent-create-card:hover {
  border-color: var(--border);
  background: var(--fill-quaternary);
  transform: translateY(-1px);
}
.nq-agent-create-card:active {
  transform: translateY(0);
}
.nq-agent-create-card:focus-visible,
.nq-agent-page-filter:focus-visible,
.nq-agent-guided-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nq-agent-create-card strong {
  font-size: 13.5px;
  line-height: 20px;
  font-weight: 600;
}
.nq-agent-create-card > span:not(.nq-icon-plate):not(.nq-agent-create-link),
.nq-agent-template-card > span:not(.nq-icon-plate):not(.nq-agent-create-link) {
  font-size: 12.5px;
  line-height: 19px;
  color: var(--text-tertiary);
}
.nq-agent-create-link {
  margin-top: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nq-agent-template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nq-agent-template-card {
  min-height: 146px;
}
.nq-agent-guided-copy {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.nq-agent-guided-input {
  min-height: 132px;
  line-height: 1.55;
}
.nq-agent-guided-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.nq-agent-guided-chip {
  padding: 5px 9px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    background .15s var(--ease),
    border-color .15s var(--ease),
    color .15s var(--ease);
}
@media (max-width: 760px) {
  .nq-agent-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .nq-agent-page-search {
    width: 100%;
  }
  .nq-agent-create-grid {
    grid-template-columns: 1fr;
  }
  .nq-agent-create-card {
    min-height: 0;
  }
}
.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-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-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-when {
  font-size: 12px;
  color: var(--text-tertiary);
}
.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(--control-hover);
  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-hot {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--fill-accent);
  box-shadow: 0 0 0 1px var(--primary);
  font-weight: 700;
}
.nq-cc-perm-ops {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nq-cc-perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-quaternary);
  background: var(--bg-base);
  color: var(--text-quaternary);
  font-size: 11.5px;
  white-space: nowrap;
}
.nq-cc-perm-badge.ok {
  border-color: var(--success, #34c759);
  color: var(--success, #34c759);
}
.nq-cc-perm-badge.ok .nq-cc-perm-dot {
  background: var(--success, #34c759);
}
.nq-cc-perm-badge.missing {
  border-color: var(--warning-strong);
  color: var(--warning-strong);
}
.nq-cc-perm-badge.missing .nq-cc-perm-dot {
  background: var(--warning-strong);
}
.nq-cc-perm-btn {
  padding: 4px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.nq-cc-perm-btn:hover {
  background: var(--fill-tertiary);
}
.nq-cc-perm-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.nq-cc-perm-foot .nq-cc-ext-link {
  margin-top: 0;
}
.nq-cc-attach-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-quaternary);
  background: var(--bg-base);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.nq-cc-attach-status .icon-sm {
  flex-shrink: 0;
  margin-top: 2px;
}
.nq-cc-attach-ready {
  border-color: var(--success, #34c759);
  color: var(--success, #34c759);
}
.nq-cc-attach-not-enabled,
.nq-cc-attach-unreachable {
  border-color: var(--warning-strong);
}
.nq-cc-attach-not-enabled .icon-sm,
.nq-cc-attach-unreachable .icon-sm {
  color: var(--warning-strong);
}
.nq-cc-attach-steps {
  margin: 10px 0;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-tertiary);
}
.nq-cc-attach-steps li + li {
  margin-top: 2px;
}
.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;
  cursor: pointer;
}
.nq-git-slash:hover,
.nq-git-slash:focus-visible {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-git-slash-menu {
  position: absolute;
  right: 8px;
  bottom: 34px;
  z-index: 40;
  min-width: 240px;
  max-width: min(360px, 100%);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.nq-git-slash-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nq-git-slash-item.active,
.nq-git-slash-item:hover {
  background: var(--fill-tertiary);
}
.nq-git-slash-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.nq-git-slash-label {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.nq-git-slash-empty {
  padding: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-wt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 26px 0 16px;
  text-align: center;
}
.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-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,
.nq-cite-card-host {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-wt-max-input {
  width: 72px;
  text-align: right;
}
.nq-wt-setup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.nq-wt-setup-project {
  align-self: flex-start;
  max-width: 320px;
}
.nq-wt-setup-script {
  font-family: var(--font-mono);
  resize: vertical;
}
.nq-wt-start-list {
  max-height: 180px;
}
.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 {
  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-conn-list {
  display: flex;
  flex-direction: column;
}
.nq-conn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-conn-row:last-child {
  border-bottom: none;
}
.nq-conn-row-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-tertiary);
}
.nq-conn-row-info {
  flex: 1;
  min-width: 0;
}
.nq-conn-row-name {
  font-size: 13px;
  color: var(--text);
}
.nq-conn-row-target {
  font-size: 11.5px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-conn-connect {
  flex: none;
}
.nq-conn-add {
  margin-top: 12px;
  align-self: flex-start;
}
.nq-conn-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.nq-conn-dialog-err {
  color: var(--danger, #c2403d);
}
.nq-dialog-card.nq-dialog-card-fit {
  width: auto;
  max-width: 92vw;
}
.nq-dialog-card .nq-share-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nq-dialog-card .nq-share-dialog-head .nq-dialog-title {
  margin-right: auto;
}
.nq-share-canvas {
  display: block;
  width: 280px;
  height: 380px;
  margin: 4px auto 12px;
  border-radius: 12px;
}
.nq-share-toggle[aria-pressed=true] {
  background: var(--bg-layout);
}
.nq-wall-summary,
.nq-notes-count {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}
@media (max-width: 720px) {
  .nq-wall-grid {
    grid-template-columns: 1fr;
  }
}
.nq-wall-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
  background: var(--bg-layout);
  opacity: .6;
}
.nq-wall-cell.is-earned {
  opacity: 1;
  border-color: var(--send);
}
.nq-wall-cell.is-earned .nq-wall-icon {
  color: var(--send);
}
.nq-wall-info {
  flex: 1;
  min-width: 0;
}
.nq-wall-desc {
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-wall-state {
  flex: none;
  font-size: 11.5px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.nq-wall-cell.is-earned .nq-wall-state {
  color: var(--send);
}
.nq-notes-search {
  width: 100%;
  margin-bottom: 10px;
}
.nq-notes-list {
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-note-row {
  padding: 10px 12px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
  background: var(--bg-layout);
}
.nq-note-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.nq-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.nq-note-time {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-quaternary);
}
.nq-note-acts {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nq-notes-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-notes-actions .nq-dialog-btn-primary {
  margin-left: auto;
}
.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;
}
.nq-sec-perm {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nq-sec-perm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.nq-sec-perm-label {
  color: var(--text-secondary);
}
.nq-sec-perm-value {
  font-weight: 500;
  white-space: nowrap;
}
.nq-sec-perm-value.is-ok {
  color: var(--text);
}
.nq-sec-perm-value.is-open {
  color: var(--text-tertiary);
}
.nq-sec-perm-note {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-quaternary);
  overflow-wrap: anywhere;
}
.nq-sec-levels {
  display: flex;
  flex-direction: column;
}
.nq-sec-level-row {
  cursor: pointer;
  border-radius: 8px;
}
.nq-sec-level-row.is-on {
  background: var(--bg-layout);
}
.nq-sec-level-radio {
  flex: none;
  margin: 0 2px 0 0;
  accent-color: var(--send);
  cursor: pointer;
}
.nq-sec-scan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.nq-sec-run {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nq-sec-cloud {
  margin-top: 8px;
}
.nq-dialog-card.nq-sec-card {
  max-height: 84vh;
}
.nq-sec-body {
  display: flex;
  flex-direction: column;
}
.nq-sec-pick-session {
  width: 100%;
  margin-bottom: 8px;
}
.nq-sec-pick-level {
  width: 100%;
  margin-bottom: 12px;
}
.nq-sec-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.nq-sec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nq-sec-summary-line {
  font-size: 13px;
  font-weight: 500;
}
.nq-sec-counts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nq-sec-count {
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  background: var(--bg-layout);
  color: var(--text-secondary);
}
.nq-sec-count.is-high {
  background: color-mix(in srgb, var(--error) 14%, transparent);
  color: var(--error);
}
.nq-sec-root {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-quaternary);
  overflow-wrap: anywhere;
}
.nq-sec-files {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-sec-file-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-sec-file-row.is-clean {
  color: var(--text-quaternary);
}
.nq-sec-file-path {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.nq-sec-file-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.nq-sec-clean {
  font-size: 13px;
  color: var(--text-secondary);
}
.nq-sec-findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-sec-finding {
  border-left: 2px solid var(--border-tertiary);
  padding: 2px 0 2px 10px;
}
.nq-sec-finding.is-high {
  border-left-color: var(--error);
}
.nq-sec-finding.is-medium {
  border-left-color: color-mix(in srgb, var(--error) 55%, var(--border-tertiary));
}
.nq-sec-finding-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-sec-finding-sev {
  font-size: 11px;
  font-weight: 600;
}
.nq-sec-finding-sev.is-high {
  color: var(--error);
}
.nq-sec-finding-sev.is-medium {
  color: var(--text-secondary);
}
.nq-sec-finding-sev.is-low {
  color: var(--text-tertiary);
}
.nq-sec-finding-rule {
  font-size: 12.5px;
  font-weight: 500;
}
.nq-sec-finding-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
  overflow-wrap: anywhere;
}
.nq-sec-finding-snippet {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--code-bg);
  border-radius: 6px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.nq-sec-note {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-quaternary);
}
.nq-sec-review {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: 10px;
  background: var(--bg-layout);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-sec-review-title {
  font-size: 13px;
  font-weight: 600;
}
.nq-sec-review-warn {
  font-size: 12px;
  line-height: 1.6;
  color: var(--error);
}
.nq-sec-review-done {
  font-size: 12px;
  font-weight: 500;
}
.nq-sec-review-disputed {
  font-size: 12px;
  line-height: 1.6;
  color: var(--error);
}
.nq-sec-pick-model {
  width: 100%;
}
.nq-sec-verdict {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}
.nq-sec-verdict.is-confirmed {
  color: var(--error);
}
.nq-sec-verdict.is-dismissed {
  color: var(--text-quaternary);
}
.nq-sec-verdict.is-disputed {
  color: var(--text);
}
.nq-sec-verdict.is-uncertain {
  color: var(--text-quaternary);
}
.nq-sec-opinion {
  display: flex;
  gap: 8px;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.6;
}
.nq-sec-opinion-pass {
  flex: none;
  min-width: 28px;
  color: var(--text-quaternary);
}
.nq-sec-opinion-reason {
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
@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-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-name {
  min-width: 0;
}
.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-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-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-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.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-proxy-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  word-break: break-all;
}
.nq-proxy-field {
  max-width: 220px;
  width: 100%;
  flex-shrink: 0;
}
.nq-proxy-pending {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.nq-proxy-err {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--error);
}
.nq-proxy-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.nq-proxy-foot .nq-settings-row-hint {
  flex: 1;
  min-width: 0;
}
.nq-exp-preview-body {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.nq-exp-preview-ack {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
}
.nq-exp-preview-ack input {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}
.nq-exp-preview-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.nq-exp-preview-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.nq-rollout-rule + .nq-rollout-rule {
  border-top: 1px dashed var(--border-quaternary);
  margin-top: 6px;
  padding-top: 6px;
}
.nq-rollout-percent {
  width: 96px;
  min-width: 96px;
  flex: 0 0 auto;
}
.nq-rollout-accounts {
  min-height: 76px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.nq-rollout-status {
  flex: 1;
  min-width: 0;
}
.nq-rollout-status.is-error {
  color: var(--error);
}
.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-credits-sec {
  margin-top: 12px;
}
.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-title-row,
.nq-monitor-card-head {
  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;
}
.nq-doc-page.is-public {
  --doc-bar-h: 56px;
  --doc-measure: 76ch;
  --doc-gutter: clamp(20px, 4vw, 56px);
  --doc-rail-w: 380px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  overflow-x: clip;
}
.nq-doc-main {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.nq-doc-page.is-public .nq-doc-main {
  padding: clamp(24px, 4vw, 52px) 0 0;
}
.nq-doc-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--doc-bar-h);
  padding: 0 var(--doc-gutter);
  border-bottom: 1px solid var(--border-quaternary);
  background: color-mix(in srgb, var(--bg-base) 86%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
}
.nq-doc-bar-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color .12s var(--ease);
}
.nq-doc-bar-brand:hover {
  color: var(--text);
}
.nq-doc-bar-lockup {
  width: 94px;
  flex: none;
}
.nq-doc-bar-heading {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nq-doc-bar .nq-doc-page-title {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-doc-bar-meta {
  flex: none;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.nq-doc-bar-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-doc-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .12s var(--ease), background .12s var(--ease);
}
.nq-doc-bar-agent-toggle {
  display: none;
}
.nq-doc-page.is-public.has-agent .nq-doc-bar-agent-toggle {
  display: inline-flex;
}
.nq-doc-page.is-public .nq-doc-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.nq-doc-page.is-public .nq-doc-page.is-card {
  position: relative;
  font-size: 15px;
  width: min(calc(100% - var(--doc-gutter) * 2), var(--doc-measure));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nq-doc-page.is-public .nq-doc-page.is-card::before {
  display: none;
}
.nq-doc-page.is-public .nq-doc-page.is-card.nq-progressive-enter {
  animation-duration: .28s;
}
.nq-doc-page.is-public .nq-doc-page.is-card .nq-doc-prose {
  padding: 0;
  font-size: 15px;
  line-height: 1.75;
}
.nq-doc-page.is-public .nq-doc-prose p {
  margin-bottom: 14px;
}
.nq-doc-page.is-public .nq-doc-prose h1 {
  margin: 52px 0 18px;
  font-size: 26px;
}
.nq-doc-page.is-public .nq-doc-prose h2 {
  margin: 44px 0 16px;
  font-size: 21px;
}
.nq-doc-page.is-public .nq-doc-prose h3 {
  margin: 30px 0 12px;
  font-size: 17px;
}
.nq-doc-page.is-public .nq-doc-date {
  margin-top: 48px;
  padding: 18px 0 64px;
  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-page.is-public .nq-doc-prose > .nq-doc-hero,
.nq-doc-page.is-public .nq-doc-prose > .nq-doc-slides {
  margin-inline: calc(var(--doc-gutter) * -1);
  border-radius: 0;
}
.nq-doc-page.is-public .nq-doc-site {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}
.nq-doc-page.is-public .nq-doc-site-nav {
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 0 0 14px;
  border-bottom: 0;
  background: transparent;
}
.nq-doc-page.is-public .nq-doc-site-name.is-dup-title {
  display: none;
}
.nq-doc-page.is-public .nq-doc-site-name {
  padding-top: 5px;
}
.nq-doc-page.is-public .nq-doc-site-links {
  flex: none;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  background: var(--bg-layout);
}
.nq-doc-page.is-public .nq-doc-site-link {
  padding: 5px 13px;
  border-radius: 999px;
}
.nq-doc-page.is-public .nq-doc-site-link.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}
.nq-doc-page.is-public .nq-doc-site-view {
  min-height: 0;
}
.nq-doc-page.is-public .nq-doc-site-page.nq-doc-prose {
  padding: 0;
}
.nq-doc-page.is-public .nq-doc-h {
  scroll-margin-top: calc(var(--doc-bar-h) + 20px);
}
.nq-doc-page.is-public .nq-doc-agent {
  display: none;
}
.nq-doc-page.is-public.has-agent .nq-doc-agent {
  display: flex;
  background: var(--bg-layout);
}
.nq-doc-agent-inner {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.nq-doc-agent-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-doc-agent-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--fill-accent);
  color: var(--primary);
}
.nq-doc-agent-head-text {
  flex: 1;
  min-width: 0;
}
.nq-doc-agent-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.nq-doc-agent-desc {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-doc-agent-minimize {
  flex: none;
  display: inline-flex;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .12s var(--ease), background .12s var(--ease);
}
.nq-doc-agent-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.nq-doc-agent-msg {
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}
.nq-doc-agent-msg.is-user {
  align-self: flex-end;
  background: var(--fill-accent);
  color: var(--text);
}
.nq-doc-agent-msg.is-assistant {
  align-self: flex-start;
  background: var(--bg-base);
  color: var(--text);
}
.nq-doc-agent-msg.is-pending {
  color: var(--text-tertiary);
}
.nq-doc-agent-msg.is-error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 9%, transparent);
}
.nq-doc-agent-msg > :first-child {
  margin-top: 0;
}
.nq-doc-agent-msg > :last-child {
  margin-bottom: 0;
}
.nq-doc-agent-msg p {
  margin: 6px 0;
}
.nq-doc-agent-msg ul,
.nq-doc-agent-msg ol {
  margin: 6px 0;
  padding-left: 18px;
}
.nq-doc-agent-msg.is-streaming::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background: currentColor;
  opacity: .45;
  animation: nq-doc-caret-blink 1s steps(2, start) infinite;
}
@keyframes nq-doc-caret-blink {
  50% {
    opacity: 0;
  }
}
.nq-doc-agent-retry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 4px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  opacity: .8;
  transition: opacity .12s var(--ease);
}
.nq-doc-agent-retry:hover {
  opacity: 1;
}
.nq-doc-agent-jump {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: var(--bg-base);
  box-shadow: var(--shadow-menu);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.nq-doc-agent-jump.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nq-doc-agent-form {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 0;
  border-top: 1px solid var(--border-quaternary);
}
.nq-doc-agent-input {
  flex: 1;
  min-height: 38px;
  max-height: 132px;
  padding: 9px 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: 10px;
  background: var(--bg-base);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  line-height: 18px;
  resize: none;
}
.nq-doc-agent-input:focus {
  outline: none;
  border-color: var(--border-secondary);
  box-shadow: 0 0 0 3px var(--fill-accent);
}
.nq-doc-agent-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--send);
  color: var(--text-on-primary);
  cursor: pointer;
  transition: opacity .12s var(--ease);
}
.nq-doc-agent-form.is-busy .nq-doc-agent-send {
  opacity: .5;
  pointer-events: none;
}
.nq-doc-agent-note {
  flex: none;
  padding: 6px 14px 12px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-doc-agent-bar {
  display: none;
}
.nq-doc-agent-bar-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--fill-accent);
  color: var(--primary);
}
@media (max-width: 1023px) {
  html.doc-public {
    --doc-agent-bar-h: 64px;
  }
  .nq-doc-bar-meta {
    display: none;
  }
  .nq-doc-page.is-public.has-agent .nq-doc-body {
    padding-bottom: var(--doc-agent-bar-h);
  }
  .nq-doc-page.is-public.has-agent .nq-doc-agent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(var(--doc-agent-bar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 16px env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid var(--border-quaternary);
    background: color-mix(in srgb, var(--bg-base) 92%, transparent);
    backdrop-filter: saturate(150%) blur(12px);
    color: var(--text-tertiary);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: text;
  }
  .nq-doc-page.is-public.is-agent-open .nq-doc-agent-bar {
    display: none;
  }
  .nq-doc-page.is-public.has-agent .nq-doc-agent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    height: var(--vvh, 100dvh);
    border-top: 1px solid var(--border-tertiary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--bg-base);
    box-shadow: var(--shadow-panel);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s var(--ease);
  }
  .nq-doc-page.is-public.is-agent-open .nq-doc-agent {
    transform: none;
    visibility: visible;
  }
  html.kb-open .nq-doc-agent {
    top: var(--vvo, 0px);
    bottom: auto;
    height: var(--vvh, 100dvh);
  }
}
@media (min-width: 1024px) {
  .nq-doc-page.is-public.has-agent:not(.is-agent-collapsed) .nq-doc-body {
    grid-template-columns: minmax(0, 1fr) var(--doc-rail-w);
  }
  .nq-doc-page.is-public.is-agent-collapsed .nq-doc-agent {
    display: none;
  }
  .nq-doc-page.is-public.has-agent:not(.is-agent-collapsed) .nq-doc-bar-agent-toggle {
    display: none;
  }
  .nq-doc-page.is-public.has-agent .nq-doc-agent {
    border-left: 1px solid var(--border-quaternary);
  }
  .nq-doc-agent-inner {
    position: sticky;
    top: var(--doc-bar-h);
    height: calc(100dvh - var(--doc-bar-h));
  }
}
html.doc-public .nq-toast-root {
  bottom: calc(var(--doc-agent-bar-h, 0px) + 20px);
}
@media (prefers-reduced-motion: reduce) {
  .nq-doc-bar-btn,
  .nq-doc-bar-brand,
  .nq-doc-agent-minimize,
  .nq-doc-agent-retry,
  .nq-doc-agent-jump,
  .nq-doc-agent-send {
    transition: none;
  }
  .nq-doc-page.is-public .nq-doc-page.is-card.nq-progressive-enter {
    animation: none;
  }
  .nq-doc-agent-msg.is-streaming::after {
    animation: none;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .nq-doc-page.is-public.has-agent .nq-doc-agent {
    transition: none;
  }
}
@media print {
  .nq-doc-bar,
  .nq-doc-agent,
  .nq-doc-agent-bar,
  .nq-doc-agent-jump {
    display: none !important;
  }
  .nq-doc-page.is-public {
    background: #fff;
    overflow: visible;
  }
  .nq-doc-page.is-public .nq-doc-body {
    display: block;
    padding: 0;
  }
  .nq-doc-page.is-public .nq-doc-main {
    padding: 0;
  }
  .nq-doc-page.is-public .nq-doc-prose > h1:first-child {
    display: block;
  }
  .nq-doc-page.is-public .nq-doc-date {
    margin-top: 16px;
    padding: 8px 0 0;
  }
  .nq-doc-page.is-public .nq-doc-hero,
  .nq-doc-page.is-public .nq-doc-slides {
    margin-inline: 0;
  }
}
.nq-dialog-btn-danger {
  background: 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 {
  display: inline-block;
  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 {
  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 {
  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 {
  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-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.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 {
  font-family: var(--font-mono);
  font-size: 12px;
}
.nq-share-url-row .nq-btn,
.nq-share-sec-row .nq-btn,
.nq-share-batch-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-agent {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-share-agent-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.nq-share-agent-select {
  width: 100%;
  cursor: pointer;
}
.nq-share-agent-note {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nq-share-security {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-share-sec-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nq-share-sec-cap {
  flex-shrink: 0;
  width: 62px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.nq-sshare-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-sshare-title-row .nq-sshare-title,
.nq-sdoc-title-row .nq-sshare-title {
  flex: 1;
  min-width: 0;
}
.nq-sshare-title-row svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.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-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.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-title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-flat-row:hover .nq-bshare-title {
  color: var(--text);
}
.nq-bshare-row .nq-sfile-badge,
.nq-sdoc-title-row .nq-sfile-badge {
  flex-shrink: 0;
}
.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-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-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-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-result-card {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-base);
  max-width: 520px;
  font-family: var(--font-sans);
}
.nq-result-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.nq-result-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.nq-result-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-result-card-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.nq-result-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
}
.nq-result-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.nq-result-card-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.nq-result-card-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}
.nq-result-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 899px) {
  .nq-result-card {
    max-width: 100%;
  }
  .nq-result-card-sub {
    display: none;
  }
}
.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-sheet-card-table {
  margin-top: 10px;
  overflow-x: auto;
}
.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;
}
.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;
  cursor: pointer;
}
.nq-video-title:hover {
  color: var(--info);
}
.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;
}
@media print {
  .nq-doc-h-tools {
    display: none !important;
  }
  .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;
  }
}
@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-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-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}
.nq-mcp-switch {
  position: relative;
  width: 32px;
  height: 20px;
  border-radius: 999px;
  background: var(--fill-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s var(--ease);
}
.nq-mcp-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-on-primary);
  transition: transform .15s var(--ease);
}
.nq-mcp-switch.on {
  background: var(--send);
}
.nq-mcp-switch.on::after {
  transform: translateX(12px);
}
.nq-mcp-switch.busy {
  opacity: .5;
  pointer-events: none;
}
.nq-mcp-switch[aria-disabled=true] {
  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-args {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}
.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);
}
.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.missing {
  opacity: .45;
}
.nq-sfile-row.missing:hover {
  cursor: default;
}
.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 {
  display: none;
  flex-shrink: 0;
}
.nq-sfile-row:hover .nq-sfile-link {
  display: inline-flex;
}
.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-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 {
  cursor: pointer;
}
.nq-sshare-title {
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-flat-row:hover .nq-sshare-title {
  color: var(--text);
}
.nq-sshare-meta {
  font-size: 10.5px;
  color: var(--text-quaternary);
  white-space: nowrap;
}
.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-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-sdoc-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px 8px;
}
.nq-sdoc-search {
  width: 100%;
  height: 28px;
  padding: 0 9px;
  font-size: 11.5px;
}
.nq-sdoc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nq-sdoc-filter {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-quaternary);
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}
.nq-sdoc-filter:hover {
  color: var(--text);
  border-color: var(--border-tertiary);
}
.nq-sdoc-filter.is-active {
  background: var(--fill-tertiary);
  color: var(--text);
  border-color: transparent;
}
.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,
.nq-view-chat.has-monitor > .nq-chat-main,
.nq-view-chat.has-review > .nq-chat-main,
.nq-view-chat.has-browser > .nq-chat-main,
.nq-view-chat.has-terminal > .nq-chat-main,
.nq-view-chat.has-sidechat > .nq-chat-main,
.nq-view-chat.has-subagent > .nq-chat-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.nq-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-left: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-view-chat.has-preview > .nq-preview-pane,
.nq-view-chat.has-monitor > .nq-monitor-pane,
.nq-view-chat.has-review > .nq-review-pane,
.nq-view-chat.has-browser > .nq-browser-pane,
.nq-view-chat.has-sidechat > .nq-side-chat-pane,
.nq-view-chat.has-subagent > .nq-subagent-pane {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.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-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-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-draft-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  margin-top: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.nq-doc-candidate-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
}
.nq-doc-candidate-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-doc-candidate-diff {
  min-height: 120px;
  max-height: 52vh;
  overflow: auto;
}
.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-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 .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-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-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-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-chat-find {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  width: min(520px, calc(100% - 24px));
  margin: 0 auto;
  z-index: 6;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: nq-menu-enter-up .14s var(--ease) both;
}
.nq-chat-find.is-hidden {
  display: none;
}
.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-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  color: var(--text-quaternary);
}
.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-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-panel {
  display: grid;
  grid-template-columns: repeat(5, 30px);
  gap: 4px;
}
.nq-emoji-btn {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  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(--control-hover);
}
.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-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-apikey-scope {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.nq-apikey-scope-write {
  background: rgba(47, 125, 98, 0.15);
  color: #2f7d62;
}
.nq-apikey-scope-read-only {
  background: rgba(120, 120, 120, 0.18);
  color: var(--text-secondary);
}
.nq-apikey-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nq-apikey-scope-pick {
  display: flex;
  gap: 12px;
  margin: 4px 0 10px;
}
.nq-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.nq-radio-input {
  accent-color: #2f7d62;
  cursor: pointer;
}
.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,
.nq-browser-error-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-tools {
  font-size: 12px;
  color: var(--text-tertiary);
  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,
.nq-doc-product-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-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.nq-sources-bar-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
}
.nq-sources-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nq-source-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  height: 22px;
  padding: 0 8px 0 3px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color .12s var(--ease), color .12s var(--ease);
}
.nq-source-row:hover {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-source-site {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  overflow: hidden;
}
.nq-source-site-glyph {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.nq-source-site-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
  box-sizing: border-box;
}
.nq-source-row-title {
  min-width: 0;
  max-width: 220px;
  font-size: 12px;
  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) 24%, 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;
}
.nq-cite-card-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  word-break: break-all;
}
.nq-cite-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.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(--control-hover);
  color: var(--send);
}
.nq-skill-pin.active {
  opacity: 1;
  color: var(--send);
}
.nq-skill-pin.active svg {
  fill: currentColor;
}
.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-plans {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.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-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-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nq-ledger-row + .nq-ledger-row {
  border-top: 1px solid var(--border-quaternary);
}
.nq-ledger-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nq-ledger-amount {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 899px) {
  .nq-ledger-row {
    flex-wrap: wrap;
  }
  .nq-ledger-right {
    margin-left: auto;
  }
}
.nq-billing-orders {
  display: flex;
  flex-direction: column;
}
.nq-billing-order {
  padding: 10px 0;
}
.nq-billing-order-amount {
  color: var(--text);
}
.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);
}
@media (max-width: 899px) {
  .nq-billing-plan-row {
    grid-template-columns: 1fr;
  }
}
.nq-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.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-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);
}
.nq-import-list .nq-empty {
  padding: 20px 10px;
}
.nq-auto-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 2px 0;
}
.nq-auto-hero-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.3px;
}
.nq-auto-hero-title .nq-auto-hero-lead {
  font-weight: 500;
  color: var(--text-secondary);
}
.nq-auto-hero-title .nq-auto-hero-accent,
.nq-kb-hero-title .nq-kb-hero-accent {
  font-weight: 700;
  color: var(--send);
  margin-left: 10px;
}
.nq-auto-hero-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
.nq-auto-hero-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.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,
.nq-auto-filter-btn {
  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,
.nq-repo-card-name {
  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,
.nq-auto-tpl-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-tertiary);
}
.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-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.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-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 {
  max-width: 40%;
}
.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;
}
.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%;
  max-height: min(86vh, 860px);
  overflow-y: auto;
}
.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-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-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: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-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-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-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-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-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-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}
@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-float > .nq-monitor-pane.is-float {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(380px, calc(100% - 24px));
  z-index: 40;
  border: 1px solid var(--border-quaternary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu-strong);
  overflow: hidden;
}
.nq-view-chat.has-monitor-float.right-sidebar-open:not(.right-sidebar-fullscreen):not(.has-preview):not(.has-monitor):not(.has-review):not(.has-browser):not(.has-sidechat) > .nq-monitor-pane.is-float {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  top: auto;
  right: auto;
  bottom: auto;
  justify-self: end;
  align-self: stretch;
  margin: 12px;
}
.nq-pane-head-row {
  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-pane-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-item-meta {
  font-size: 11px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 4px;
  font-size: 11px;
  color: var(--text-quaternary);
}
.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 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-card.is-quiet {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}
.nq-monitor-card.is-quiet .nq-monitor-card-head {
  flex-shrink: 0;
}
.nq-monitor-card.is-quiet .nq-monitor-list,
.nq-monitor-card.is-quiet .nq-monitor-presentation {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.nq-monitor-quiet {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-quaternary);
}
.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.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-title {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-monitor-row .nq-icon-btn {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-monitor-pane.hide-card-env .nq-monitor-card-env,
.nq-monitor-pane.hide-card-goal .nq-monitor-card-goal,
.nq-monitor-pane.hide-card-subagents .nq-monitor-card-subagents,
.nq-monitor-pane.hide-card-jobs .nq-monitor-card-jobs,
.nq-monitor-pane.hide-card-presentation .nq-monitor-card-presentation,
.nq-monitor-pane.hide-card-caps .nq-monitor-card-caps,
.nq-monitor-pane.hide-card-sidechat .nq-monitor-card-sidechat,
.nq-monitor-pane.hide-card-outputs .nq-monitor-card-outputs,
.nq-monitor-pane.hide-card-browse .nq-monitor-card-browse,
.nq-monitor-pane.hide-card-sources .nq-monitor-card-sources,
.nq-monitor-pane.hide-card-memory .nq-monitor-card-memory,
.nq-monitor-pane.hide-card-recap .nq-monitor-card-recap {
  display: none;
}
.nq-readout-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 12px;
}
.nq-readout-row-link {
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-readout-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-quaternary);
}
.nq-readout-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-readout-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-monitor-job-dot.is-running {
  background: var(--primary);
}
.nq-monitor-job-dot.is-exited {
  background: var(--success);
}
.nq-monitor-job-dot.is-failed {
  background: var(--error);
}
.nq-monitor-job-dot.is-killed {
  background: var(--text-quaternary);
}
.nq-monitor-job-cmd {
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.nq-monitor-cap-row > svg {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-monitor-cap-kind {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: var(--radius);
  background: var(--bg-layout);
  font-size: 10.5px;
  color: var(--text-tertiary);
}
.nq-subagent-dot.is-running {
  background: var(--primary);
}
.nq-subagent-dot.is-paused {
  background: var(--text-tertiary);
}
.nq-subagent-dot.is-done {
  background: var(--success);
}
.nq-subagent-dot.is-failed,
.nq-subagent-dot.is-timed_out {
  background: var(--error);
}
.nq-subagent-dot.is-killed,
.nq-subagent-dot.is-interrupted {
  background: var(--text-quaternary);
}
.nq-monitor-cap-scope {
  padding: 6px 8px 2px;
  font-size: 11px;
  color: var(--text-quaternary);
  line-height: 1.5;
}
.nq-monitor-cap-group {
  padding: 8px 8px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.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-link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}
.nq-monitor-link-row .nq-monitor-link-label {
  flex: 1;
  min-width: 0;
}
.nq-monitor-goal {
  padding: 2px 8px 4px;
}
.nq-monitor-goal-objective {
  padding: 2px 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word;
}
.nq-monitor-goal-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 2px;
}
.nq-monitor-goal-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-monitor-goal-status.is-active {
  color: var(--text-secondary);
}
.nq-monitor-goal-status.is-blocked {
  color: var(--warning);
}
.nq-monitor-goal-status.is-complete {
  color: var(--success);
}
.nq-monitor-presentation {
  padding: 2px 8px 4px;
}
.nq-monitor-presentation-stage {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 6px;
  background: var(--fill-tertiary);
  overflow: hidden;
  cursor: pointer;
}
.nq-monitor-presentation-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}
.nq-monitor-presentation-caption {
  padding: 4px 0 6px;
  font-size: 11px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-monitor-presentation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 6px;
}
.nq-monitor-presentation-thumb {
  width: 52px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: 4px;
  background: var(--fill-tertiary);
  overflow: hidden;
  cursor: pointer;
}
.nq-monitor-presentation-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nq-monitor-presentation-count {
  flex-shrink: 0;
}
.nq-monitor-presentation-actions {
  display: flex;
  padding: 0 0 4px;
}
.nq-monitor-presentation-foot .nq-monitor-presentation-actions {
  margin-left: auto;
  padding: 0;
}
.nq-monitor-presentation-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--border-tertiary);
  background: none;
  font: inherit;
  font-size: 11px;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: pointer;
}
.nq-monitor-presentation-btn.is-primary {
  color: var(--text-secondary);
}
.nq-monitor-presentation-hidden {
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-quaternary);
}
.nq-monitor-recap {
  padding: 2px 8px 4px;
}
.nq-monitor-recap-status {
  padding: 4px 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.nq-monitor-recap-cost {
  padding: 0 0 6px;
  font-size: 11px;
  color: var(--text-quaternary);
  line-height: 1.5;
}
.nq-monitor-recap-text {
  padding: 2px 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.nq-clamp-box {
  position: relative;
}
.nq-clamp-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 40px;
  padding: 0 0 6px;
  border: 0;
  background:
    linear-gradient(
      to top,
      var(--bg-elevated),
      transparent);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .15s;
}
.nq-clamp-more:hover,
.nq-clamp-more:focus-visible {
  color: var(--text-secondary);
}
.nq-clamp-more:focus-visible {
  outline: none;
}
.nq-clamp-more-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  box-shadow: 0 0 0 1px var(--border-tertiary);
  opacity: 0;
  transition: opacity .15s;
}
.nq-clamp-more:hover .nq-clamp-more-chip,
.nq-clamp-more:focus-visible .nq-clamp-more-chip {
  opacity: 1;
}
.nq-monitor-recap-stale {
  color: var(--warning);
}
.nq-monitor-recap-actions {
  padding: 2px 0 2px;
}
.nq-monitor-recap-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-tertiary);
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
}
.nq-monitor-source-row {
  height: auto;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: transparent;
}
.nq-monitor-source-row:hover {
  background: var(--fill-tertiary);
}
.nq-monitor-source-row .nq-source-row-title {
  flex: 1;
  max-width: none;
}
.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-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-toggle-key.is-on,
.nq-icon-btn.nq-toggle-key.is-on:hover {
  background: var(--control-hover);
  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-subagent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-subagent.has-terminal {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-view-chat.has-subagent.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) 360px;
}
.nq-subagent-head {
  padding-left: 10px;
}
.nq-subagent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-subagent-meta-text {
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-subagent-meta-text.is-error {
  color: var(--error);
}
.nq-subagent-meta-text.is-done {
  color: var(--success);
}
.nq-subagent-head-ops {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nq-subagent-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}
.nq-subagent-prompt {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--fill-tertiary);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 899px) {
  .nq-view-chat.has-subagent {
    display: flex;
  }
  .nq-subagent-pane {
    display: none;
  }
}
.nq-view-chat.has-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-review.has-terminal {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-view-chat.has-review.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) 360px;
}
.nq-view-chat.has-preview.has-sidechat > .nq-side-chat-pane,
.nq-view-chat.has-monitor.has-sidechat > .nq-side-chat-pane,
.nq-view-chat.has-review.has-sidechat > .nq-side-chat-pane,
.nq-view-chat.has-browser.has-sidechat > .nq-side-chat-pane,
.nq-view-chat.has-subagent.has-sidechat > .nq-side-chat-pane {
  grid-column: 3;
}
.nq-review-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
}
.nq-review-files {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border-quaternary);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nq-review-file {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.nq-review-file-staged {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-quaternary);
}
.nq-review-file-external {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--warning);
}
.nq-review-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.nq-review-badge.is-mod {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--warning);
}
.nq-review-badge.is-add {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.nq-review-badge.is-del {
  background: color-mix(in srgb, var(--error) 14%, transparent);
  color: var(--error);
}
.nq-review-badge.is-ren {
  background: color-mix(in srgb, var(--info) 14%, transparent);
  color: var(--info);
}
.nq-review-badge.is-unt {
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-review-note {
  padding: 16px 12px;
  font-size: 12px;
  color: var(--text-quaternary);
  text-align: center;
}
.nq-review-diff {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-review-diff .nq-rev-diff-head {
  margin-bottom: 0;
}
.nq-review-diff-path {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.nq-review-hunk,
.nq-review-meta {
  padding: 2px 10px;
  background: var(--bg-layout);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-all;
}
.nq-review-hunk {
  color: var(--info);
}
.nq-review-meta {
  color: var(--text-quaternary);
}
.nq-review-hunk-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  background: var(--bg-layout);
}
.nq-review-hunk-row > .nq-review-hunk {
  flex: 1;
  min-width: 0;
}
@media (max-width: 899px) {
  .nq-view-chat.has-review {
    display: flex;
  }
  .nq-review-pane {
    display: none;
  }
}
.nq-view-chat.has-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--browser-w, 50%));
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-browser.has-terminal {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--browser-w, 50%));
  grid-template-rows: minmax(0, 1fr) auto;
}
.nq-view-chat.has-browser.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--browser-w, 50%)) 360px;
}
.nq-browser-head {
  height: 40px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border-quaternary);
}
.nq-browser-url-icon {
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-browser-url {
  flex: 1;
  min-width: 0;
  height: 26px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-base);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text);
}
.nq-browser-url:focus {
  outline: none;
  border-color: var(--send);
}
.nq-browser-url::placeholder {
  color: var(--text-quaternary);
  font-family: var(--font-sans);
}
.nq-browser-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
.nq-browser-body webview {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
}
.nq-browser-pick-bar {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--primary, #3b82f6);
  color: var(--text-on-primary);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.nq-browser-annot-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-quaternary);
  background: var(--bg-layout);
}
.nq-browser-annot-size {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-browser-annot-input {
  flex: 1;
  min-width: 0;
}
.nq-browser-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-quaternary);
  background: var(--bg-base);
}
.nq-browser-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  background: var(--bg-base);
  color: var(--text-tertiary);
}
.nq-browser-error svg {
  color: var(--warning);
}
.nq-browser-error-desc {
  font-size: 12px;
}
.nq-browser-error-url {
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-quaternary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-browser-error-retry {
  margin-top: 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 5px 16px;
  font: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.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-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-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: 0;
  padding: 4px;
  border: 1px solid var(--border-tertiary);
  border-bottom: 1px solid var(--border-quaternary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: nq-queue-dock-in .16s var(--ease);
}
.nq-session-composer-wrap.has-queue > .nq-session-composer {
  border-top-color: transparent;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.nq-session-composer-wrap.has-queue > .nq-session-composer:focus-within {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 12px rgba(0, 0, 0, .04);
}
[data-theme=dark] .nq-session-composer-wrap.has-queue > .nq-session-composer:focus-within {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .28);
}
@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;
  min-height: 22px;
  padding: 0 2px 0 8px;
  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;
  color: var(--text);
}
.nq-queue-dock-paused {
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
  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: 100px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nq-queue-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 2px 3px 8px;
  border-radius: var(--radius);
  transition: background .12s var(--ease);
}
.nq-queue-item:hover {
  background: var(--fill-tertiary);
}
.nq-queue-item-lead {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-quaternary);
}
.nq-queue-item-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-queue-item-btn {
  min-width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 5px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nq-queue-item-btn:hover {
  background: var(--fill-secondary);
  color: var(--text);
}
.nq-queue-item-interject {
  padding: 0 7px;
  border: 1px solid var(--border-tertiary);
  color: var(--text-secondary);
}
.nq-queue-item-interject:hover {
  border-color: var(--send);
  color: var(--send);
  background: var(--fill-accent);
}
.nq-queue-item-interject-label {
  font-size: 12px;
  font-weight: 500;
}
.nq-send-btn.queue {
  background: #1a1a19;
}
.nq-send-btn.queue:hover {
  background: #3d3d3b;
}
[data-theme=dark] .nq-send-btn.queue {
  background: #e8e8e6;
  color: #141414;
}
[data-theme=dark] .nq-send-btn.queue:hover {
  background: #c9c9c7;
}
.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-monitor-env-row.is-actionable {
  margin: 0 -6px;
  padding: 2px 6px;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .12s;
}
.nq-monitor-env-row.is-actionable:hover {
  background: var(--fill-tertiary);
}
.nq-monitor-env-action.is-actionable:hover .nq-monitor-env-label {
  background: var(--fill-secondary);
}
.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-thumb-tag {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  padding: 0 4px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--text) 78%, transparent);
  color: var(--bg-base);
  font-size: 9px;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}
.nq-image-note {
  font-size: 11px;
  color: var(--text-quaternary);
}
.nq-image-thumb.is-file {
  width: auto;
  max-width: 220px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.nq-image-thumb.is-file .nq-image-thumb-name {
  min-width: 0;
  font-size: 12px;
  color: var(--text);
}
.nq-image-thumb.is-file.is-failed {
  border: 1px dashed var(--error);
  opacity: .8;
}
.nq-quote-strip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 0 12px;
}
.nq-quote-strip-side {
  flex: 0 0 100%;
  padding: 4px 0 0;
}
.nq-quote-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 8px;
  max-width: 752px;
}
.nq-quote-chip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  background: var(--bg-elevated);
  font-size: 12px;
  line-height: 1.5;
}
.nq-quote-chip > svg {
  margin-top: 1px;
  color: var(--text-tertiary);
}
.nq-quote-chip-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 1px;
}
.nq-quote-chip-src {
  font-size: 11px;
  color: var(--text-tertiary);
}
.nq-quote-chip-line,
.nq-quote-chip-text {
  color: var(--text-secondary);
}
.nq-record-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 0 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
  animation: nq-record-pulse 1.6s ease-in-out infinite;
}
@keyframes nq-record-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}
.nq-record-label {
  flex-shrink: 0;
}
.nq-record-steps {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.nq-record-step {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-record-step.is-error {
  color: var(--error);
}
.nq-record-action {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid var(--border-tertiary);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.nq-record-action:hover {
  background: var(--control-hover);
}
.nq-record-action + .nq-record-action {
  margin-left: 0;
}
.nq-record-clear {
  color: var(--text-tertiary);
}
.nq-user-bubble-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.nq-user-bubble-img {
  max-width: 320px;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--border-tertiary);
  object-fit: contain;
  display: block;
}
.nq-user-bubble-appshots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.nq-appshot-chip {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-tertiary);
  border-radius: 8px;
  background: var(--bg-elevated);
  max-width: 100%;
}
.nq-appshot-chip > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}
.nq-appshot-chip > summary::-webkit-details-marker {
  display: none;
}
.nq-appshot-chip-app {
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}
.nq-appshot-chip-count {
  color: var(--text-quaternary);
  flex-shrink: 0;
  margin-left: auto;
}
.nq-appshot-chip-text {
  margin: 0;
  padding: 6px 8px 8px;
  border-top: 1px solid var(--border-tertiary);
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-secondary);
}
: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-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-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;
}
@media (max-width: 640px) {
  .nq-doc-columns {
    grid-template-columns: 1fr !important;
  }
}
.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-skill-ui {
  margin: 12px 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
}
.nq-skill-ui-frame {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}
.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);
  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-hero-body {
  position: relative;
  min-width: 0;
}
.nq-doc-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(253, 253, 253, .74);
}
.nq-doc-hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 9px 20px;
  border-radius: 999px;
  background: #fdfdfd;
  color: var(--send);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.nq-doc-hero-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.nq-doc-hero.is-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
}
.nq-doc-hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.nq-doc-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.nq-doc-products {
  display: grid;
  gap: 18px;
  margin: 16px 0;
  align-items: stretch;
}
.nq-doc-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-base);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease);
}
a.nq-doc-product:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-panel);
  transform: translateY(-2px);
}
.nq-doc-product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--fill-tertiary);
  overflow: hidden;
}
.nq-doc-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.nq-doc-product-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}
.nq-doc-product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-panel);
}
.nq-doc-product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.nq-doc-product-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.nq-doc-product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nq-doc-product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.nq-doc-product-compare {
  font-size: 13px;
  color: var(--text-tertiary);
}
.nq-doc-product-cta {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--send);
}
a.nq-doc-product:hover .nq-doc-product-cta {
  text-decoration: underline;
}
.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);
}
.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-count {
  flex: none;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--fill-tertiary);
  border-radius: 999px;
  padding: 2px 8px;
}
.nq-doc-site {
  margin: 12px 0;
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-xl);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.nq-doc-site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-quaternary);
  background: var(--bg-elevated);
}
.nq-doc-site-name {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.nq-doc-site-name svg {
  color: var(--primary);
  flex: none;
}
.nq-doc-site-links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.nq-doc-site-link {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .12s var(--ease), background .12s var(--ease);
}
.nq-doc-site-link.is-active {
  color: var(--primary);
  font-weight: 600;
  background: var(--fill-tertiary);
}
.nq-doc-site-view {
  min-height: 200px;
}
.nq-doc-site-page.nq-doc-prose {
  padding: 20px 26px 36px;
  animation: nq-site-page-in .22s var(--ease);
}
@keyframes nq-site-page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 720px) {
  .nq-doc-site-nav {
    gap: 10px;
    padding: 0 12px;
  }
  .nq-doc-site-page.nq-doc-prose {
    padding: 14px 16px 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-doc-site-page.nq-doc-prose {
    animation: none;
  }
}
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-hero.is-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 20px;
  }
  .nq-doc-products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .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 {
  padding: 9px 0;
}
.nq-credits-ledger-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.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;
}
.nq-view-chat.has-sidechat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr);
}
.nq-view-chat.has-preview.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr) 360px;
}
.nq-view-chat.has-monitor.has-sidechat {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) 360px;
}
.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;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.nq-side-chat-title:hover {
  color: var(--send);
}
.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-steps:not(:empty) {
  margin-bottom: 8px;
}
.nq-side-chat-composer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-quaternary);
}
.nq-side-chat-chips {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.nq-side-chat-attach-strip {
  flex: 0 0 100%;
  padding: 4px 0 0;
}
.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-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-stop {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--error);
  cursor: pointer;
  transition: background .12s var(--ease);
}
.nq-side-chat-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;
}
@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-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.nq-docimg-head .nq-dialog-title {
  flex: 1;
  min-width: 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-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.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-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;
  }
}
.desktop-approval-page > .auth-window {
  display: none;
}
.desktop-approval {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: #f6f7f5;
  color: #20251f;
  font-family: inherit;
}
.desktop-approval-brand {
  position: absolute;
  top: 36px;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 600;
}
.desktop-approval-brand .genduo-lockup {
  width: 170px;
}
.desktop-approval-card {
  width: min(360px, calc(100% - 48px));
  margin: max(150px, 27vh) auto 60px;
  text-align: center;
}
.desktop-approval-mark svg {
  width: 48px;
  height: 48px;
}
.desktop-approval-card h1 {
  margin: 24px 0 12px;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -.6px;
}
.desktop-approval-card p {
  color: #777c75;
  font-size: 14px;
  line-height: 1.6;
}
.desktop-approval-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e2e5df;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 13px;
}
.desktop-approval-account span {
  color: #777c75;
}
.desktop-approval-account strong {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.desktop-approval .desktop-approve {
  width: 100%;
  background: #2e613e;
  color: white;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
}
.desktop-approval-status {
  min-height: 24px;
}
.desktop-switch-account {
  margin-top: 36px;
  background: none;
  border: 0;
  color: #697266;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.desktop-switch-account:hover {
  color: #20251f;
  text-decoration: underline;
}
.nq-byok-card {
  width: min(560px, calc(100vw - 48px));
  max-height: min(640px, calc(100vh - 96px));
  overflow: auto;
}
.nq-byok-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 12px;
}
.nq-byok-empty {
  color: var(--text-tertiary);
  font-size: 13px;
  padding: 14px 4px;
  text-align: center;
}
.nq-byok-row {
  border: 1px solid var(--border-tertiary);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-byok-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.nq-byok-row-title {
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
}
.nq-byok-row-key {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.nq-byok-row-meta {
  font-size: 12px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.nq-byok-danger:hover {
  color: var(--error);
  border-color: var(--error);
}
.nq-byok-sep {
  height: 1px;
  background: var(--border-quaternary);
  margin: 4px 0 12px;
}
.nq-byok-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-byok-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nq-byok-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.nq-byok-input {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-base);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius);
  padding: 8px 10px;
  outline: none;
}
.nq-byok-input:focus {
  border-color: var(--border);
}
textarea.nq-byok-input {
  resize: vertical;
  min-height: 52px;
  font-family: var(--font-mono);
}
.nq-byok-status {
  min-height: 18px;
  font-size: 12px;
  color: var(--text-tertiary);
  overflow-wrap: anywhere;
}
.nq-byok-status.is-good {
  color: var(--success);
}
.nq-byok-status.is-bad {
  color: var(--error);
}
.nq-byok-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nq-sites-page {
  max-width: var(--content-w-page);
  gap: 0;
}
.nq-sites-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-sites-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 148px;
  padding: 20px 2px 26px;
}
.nq-sites-hero-copy {
  position: relative;
  z-index: 1;
}
.nq-sites-hero-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.35px;
  color: var(--text);
  font-weight: 700;
}
.nq-sites-hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #8c75ef;
  background: color-mix(in srgb, #6e55df 16%, transparent);
  transform: rotate(-3deg);
}
.nq-sites-hero-accent {
  color: #8c75ef;
}
.nq-sites-hero-sub {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--text);
}
.nq-sites-hero-art {
  position: relative;
  width: 252px;
  height: 106px;
  flex: none;
  margin-right: 32px;
  opacity: .92;
}
.nq-sites-hero-windows {
  position: absolute;
  right: 46px;
  top: 27px;
  width: 132px;
  height: 62px;
}
.nq-sites-hero-window {
  position: absolute;
  width: 88px;
  height: 52px;
  border: 1px solid var(--border-tertiary);
  border-radius: 9px;
  background: color-mix(in srgb, var(--send) 7%, var(--bg-base));
  box-shadow: 0 8px 24px color-mix(in srgb, #000 9%, transparent);
}
.nq-sites-hero-window::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 11px;
  height: 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--send) 17%, transparent);
  box-shadow: 0 12px 0 color-mix(in srgb, var(--send) 10%, transparent), 0 24px 0 color-mix(in srgb, var(--send) 7%, transparent);
}
.nq-sites-hero-window.is-back {
  left: 0;
  top: 0;
  transform: rotate(-7deg);
  opacity: .74;
}
.nq-sites-hero-window.is-front {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}
.nq-sites-hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 4px 18px color-mix(in srgb, #000 10%, transparent);
}
.nq-sites-hero-badge.is-globe {
  left: 6px;
  top: 38px;
  color: #777;
  background: #f3f3f1;
  transform: rotate(-7deg);
}
.nq-sites-hero-badge.is-link {
  right: 0;
  top: 9px;
  color: #8c75ef;
  background: color-mix(in srgb, #6e55df 18%, var(--bg-base));
}
.nq-sites-hero-badge.is-data {
  right: 20px;
  bottom: 0;
  color: var(--send);
  background: color-mix(in srgb, var(--send) 17%, var(--bg-base));
}
.nq-sites-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}
.nq-sites-controls .nq-page-tabs {
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}
.nq-sites-controls .nq-page-tab {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}
.nq-sites-controls .nq-page-tab.active {
  background: var(--fill-secondary);
  box-shadow: none;
}
.nq-sites-controls .nq-page-tab:hover:not(.active) {
  background: var(--fill-tertiary);
}
.nq-sites-layout-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  background: var(--fill-secondary);
}
.nq-sites-layout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition:
    background .14s var(--ease),
    color .14s var(--ease),
    transform .14s var(--ease);
}
.nq-sites-layout-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--bg-base) 55%, transparent);
}
.nq-sites-layout-btn:active {
  transform: scale(.94);
}
.nq-sites-layout-btn.active {
  color: var(--text);
  background: var(--bg-base);
  box-shadow: var(--shadow-card);
}
.nq-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.nq-site-card {
  border: 1px solid var(--border-tertiary);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
  background: color-mix(in srgb, var(--bg-base) 94%, var(--send));
  transition:
    border-color .15s var(--ease),
    background .15s var(--ease),
    transform .15s var(--ease);
}
.nq-site-card:hover {
  border-color: var(--border);
  background: var(--bg-base);
  transform: translateY(-1px);
}
.nq-site-card h3 {
  overflow-wrap: anywhere;
  margin: 12px 0 8px;
}
.nq-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.nq-site-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.nq-site-skel-icon {
  width: 14px;
  height: 14px;
}
.nq-site-skel-title {
  height: 21px;
  width: 60%;
  margin: 12px 0 8px;
}
.nq-site-skel-line {
  height: 18px;
  width: 30%;
}
.nq-site-skel-meta {
  height: 15px;
  width: 40%;
}
.nq-site-skel-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.nq-site-skel-btn {
  width: 64px;
  height: 30px;
  flex: none;
}
.nq-sites-grid.is-list {
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.nq-sites-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
  padding: 92px 20px 36px;
  color: var(--text-tertiary);
  text-align: center;
}
.nq-sites-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  width: min(100%, 420px);
  height: 132px;
  border: 1px solid var(--border-secondary);
  background: color-mix(in srgb, var(--bg-base) 96%, var(--send));
  color: var(--text-tertiary);
  overflow: hidden;
  opacity: .72;
}
.nq-sites-ticket::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent 0 5px,
      var(--border-tertiary) 5px 6px);
  border-right: 1px solid var(--border-tertiary);
}
.nq-sites-ticket::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1px solid var(--border-secondary);
  border-radius: 50%;
  background: var(--bg-base);
}
.nq-sites-ticket-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: 18px;
  border-right: 1px solid var(--border-tertiary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.nq-sites-ticket-stamp svg {
  width: 42px;
  height: 42px;
  color: var(--text-secondary);
}
.nq-sites-ticket-readout {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  font-family: var(--font-mono);
}
.nq-sites-ticket-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: .6px;
}
.nq-sites-ticket-line strong {
  color: var(--text-secondary);
  font-weight: 500;
}
.nq-sites-ticket-line:first-child strong {
  color: var(--send);
}
.nq-sites-ticket-verified {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  font-size: 9px;
  letter-spacing: .6px;
}
.nq-sites-ticket-verified strong {
  color: var(--send);
  font-family: var(--font-sans);
  font-size: 18px;
  font-style: italic;
  letter-spacing: -1px;
}
.nq-sites-empty h3 {
  margin: 30px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.nq-sites-empty p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
}
@media (max-width: 720px) {
  .nq-sites-hero {
    min-height: 118px;
    padding-top: 12px;
  }
  .nq-sites-hero-art {
    display: none;
  }
  .nq-sites-hero-title {
    font-size: 23px;
  }
  .nq-sites-hero-sub {
    font-size: 16px;
  }
  .nq-sites-controls .nq-page-tab {
    padding: 7px 9px;
    font-size: 12.5px;
  }
  .nq-sites-empty {
    min-height: 320px;
    padding: 54px 0 24px;
  }
  .nq-sites-ticket {
    height: 118px;
  }
  .nq-sites-ticket-readout {
    padding: 13px 11px;
  }
  .nq-sites-ticket-line,
  .nq-sites-ticket-verified {
    font-size: 8px;
  }
}
.nq-site-pages-label {
  margin-top: 14px;
}
.nq-site-pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 6px;
}
.nq-site-page-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border-quaternary);
  border-radius: 10px;
}
.nq-site-page-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nq-site-page-title {
  flex: 1;
  min-width: 0;
}
.nq-site-page-path {
  flex: 0 0 150px;
  min-width: 0;
}
.nq-site-page-body {
  min-height: 92px;
  resize: vertical;
}
.nq-site-addpage {
  margin-top: 10px;
}
.nq-update-ready {
  position: fixed;
  z-index: 90;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 48px);
  padding: 14px 16px;
  border: 1px solid var(--border, #ddd);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 8px 32px #0002;
}
.nq-about-release-notes {
  white-space: pre-wrap;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.nq-about-release-notes:empty {
  display: none;
}
.nq-browser-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-quaternary);
  color: var(--text-secondary);
}
.nq-browser-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.nq-browser-tabs::-webkit-scrollbar {
  display: none;
}
.nq-browser-tab {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 64px;
  max-width: 180px;
  height: 26px;
  padding: 0 2px 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
}
.nq-browser-tab:hover {
  background: var(--control-hover);
  color: var(--text-secondary);
}
.nq-browser-tab.is-active {
  background: var(--fill-tertiary);
  border-color: var(--border-quaternary);
  color: var(--text);
}
.nq-browser-tab-close {
  flex-shrink: 0;
}
.nq-nav-btn[aria-pressed=true] {
  background: var(--fill-active);
}
.nq-browser-head button:disabled {
  opacity: .3;
  cursor: default;
}
.nq-browser-pane[aria-busy=true] .nq-browser-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%;
  height: 2px;
  background: var(--text-tertiary);
  animation: nq-browser-loading 1.2s ease-in-out infinite alternate;
}
@keyframes nq-browser-loading {
  to {
    left: 65%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nq-browser-pane[aria-busy=true] .nq-browser-head::after {
    animation: none;
    width: 100%;
    opacity: .5;
  }
}
@media (max-width: 899px) {
  .nq-view-chat.has-browser {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .nq-view-chat.has-browser > .nq-chat-main {
    display: none;
  }
  .nq-view-chat.has-browser > .nq-browser-pane {
    display: flex;
    grid-column: 1;
    border-left: 0;
  }
}
.nq-browser-pane {
  position: relative;
}
.nq-browser-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 8px;
  cursor: col-resize;
  touch-action: none;
  z-index: 10;
  -webkit-app-region: no-drag;
}
.nq-browser-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  background: transparent;
}
.nq-browser-resizer:hover::after,
.nq-browser-resizer:focus-visible::after,
.is-browser-resizing .nq-browser-resizer::after {
  background: var(--border-secondary);
}
.nq-view-chat.is-browser-resizing {
  cursor: col-resize;
  user-select: none;
}
.nq-view-chat.is-browser-resizing webview,
.nq-view-chat.is-browser-resizing iframe {
  pointer-events: none;
}
@media (max-width: 899px) {
  .nq-browser-resizer {
    display: none;
  }
  .nq-view-chat.has-browser.has-terminal,
  .nq-view-chat.has-browser.has-sidechat {
    grid-template-columns: minmax(0, 1fr);
  }
  .nq-view-chat.has-browser.has-sidechat > .nq-side-chat-pane {
    display: none;
  }
}
.nq-review-toolbar {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--border, #ddd);
}
.nq-review-toolbar select {
  width: auto;
  min-width: 120px;
}
.nq-review-commit {
  display: flex;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  align-items: flex-start;
}
.nq-review-commit textarea {
  flex: 1;
  min-width: 80px;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
  max-height: 132px;
}
.nq-review-commit button {
  white-space: nowrap;
}
.nq-review-draft,
.nq-review-push {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nq-review-file-item {
  border-bottom: 1px solid var(--border, #ddd);
  padding-bottom: 6px;
}
.nq-review-file-item .nq-review-file {
  width: 100%;
}
.nq-review-file-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 8px;
}
.nq-review-file-actions button {
  font-size: 11px;
  padding: 3px 6px;
}
.nq-review-line-feedback {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  width: 22px;
  flex: 0 0 22px;
  opacity: .45;
}
.nq-review-line-feedback:hover,
.nq-review-line-feedback:focus-visible {
  opacity: 1;
  background: var(--accent, #dbeafe);
}
.nq-review-pane.is-busy .nq-review-toolbar,
.nq-review-pane.is-busy .nq-review-file-actions,
.nq-review-pane.is-busy .nq-review-hunk-row {
  pointer-events: none;
  opacity: .6;
}
.nq-nav-badge {
  margin-left: auto;
  flex-shrink: 0;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  color: rgb(63, 142, 247);
  background: rgb(225, 237, 253);
}
[data-theme=dark] .nq-nav-badge {
  color: rgb(75, 168, 255);
  background: rgb(19, 42, 64);
}
.nq-td-header {
  margin-bottom: 12px;
}
.nq-td-header-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--text);
}
.nq-td-header-sub {
  margin: 6px 0 0;
  max-width: 68ch;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-tertiary);
}
.nq-td-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nq-td-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 14px 0 12px;
  margin-left: 6px;
  border: none;
  border-radius: 16px;
  background: var(--send);
  color: var(--text-on-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  font-family: inherit;
}
.nq-td-primary-action:hover {
  background: var(--send-hover);
}
.nq-td-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  flex-shrink: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nq-td-icon-action:hover {
  background: var(--control-hover);
}
.nq-td-icon-action.is-active {
  background: var(--row-active);
}
.nq-td-search {
  display: flex;
  align-items: center;
}
.nq-td-search-input {
  width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: width .14s var(--ease), padding .14s var(--ease);
}
.nq-td-search.is-open .nq-td-search-input {
  width: 176px;
  padding: 0 8px;
}
.nq-td-search-input:focus {
  outline: none;
}
.nq-td-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nq-td-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.nq-td-crumb:hover {
  background: var(--control-hover);
  color: var(--text);
}
.nq-td-crumb-sep {
  color: var(--text-quaternary);
  font-size: 12px;
}
.nq-td-crumb-current {
  font-size: 13px;
  line-height: 16px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nq-td-list-wrap {
  position: relative;
}
.nq-td-list {
  list-style: none;
  margin: 0 -12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-td-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  border-radius: 6px;
  transition: background .12s;
}
.nq-td-row:hover {
  background: var(--fill-hover);
}
.nq-td-row-link {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.nq-td-row-link:focus-visible {
  outline: 2px solid var(--send);
  outline-offset: -2px;
}
.nq-td-row-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.nq-td-row-icon-project {
  background:
    linear-gradient(
      to right,
      var(--send),
      color-mix(in srgb, var(--send) 30%, var(--bg-base)));
  color: var(--text-on-primary);
}
.nq-td-row-icon-discussion {
  background: var(--fill-tertiary);
  color: var(--send);
}
.nq-td-row-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  margin-left: 12px;
}
.nq-td-row-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-td-row-sub {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nq-td-row-more {
  position: relative;
  z-index: 1;
  color: var(--text);
}
.nq-td-row-more:hover {
  background: var(--row-hover);
}
.nq-page.nq-td-page-wide {
  max-width: 1360px;
  padding: 0 32px;
}
.nq-td-detail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 auto;
}
.nq-td-detail-body .nq-td-header {
  margin-bottom: 24px;
}
.nq-td-board-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nq-td-board-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 16px;
  font-family: inherit;
  cursor: pointer;
}
.nq-td-board-tab:hover {
  background: var(--control-hover);
  color: var(--text);
}
.nq-td-board-tab.is-active {
  background: var(--row-active);
  color: var(--text);
}
.nq-td-board-tab-sep {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--border-tertiary);
}
.nq-td-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  flex: 1 0 auto;
}
.nq-td-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 304px;
  width: 304px;
  min-height: 320px;
  padding: 8px;
  border-radius: 8px;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--fill-secondary) 30%, transparent),
      transparent);
}
.nq-td-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 4px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.nq-td-col-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-quaternary);
}
.nq-td-col-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text);
}
.nq-td-col-count {
  font-size: 11px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
}
.nq-td-col-add {
  margin-left: auto;
}
.nq-td-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
}
.nq-td-col-empty {
  margin: 0;
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-quaternary);
}
.nq-td-issue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 8px;
  border-radius: 8px;
  background: var(--bg-base);
  border: 1px solid var(--border-quaternary);
}
.nq-td-issue-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text);
  word-break: break-word;
}
.nq-td-issue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-tertiary);
}
.nq-td-issue-prio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nq-td-issue-prio-high,
.nq-td-issue-prio-urgent {
  color: var(--error);
}
.nq-td-issue-assignee {
  font-variant-numeric: tabular-nums;
}
.nq-td-issue-more {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-td-issue-more:hover {
  background: var(--control-hover);
}
.nq-dialog-card.nq-td-dialog {
  padding: 0 6px;
}
.nq-td-dialog-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 12px 10px 8px;
  flex-shrink: 0;
}
.nq-td-dialog-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  color: var(--text);
}
.nq-td-dialog-close {
  color: var(--text);
}
.nq-td-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--bg-base);
  max-height: 62vh;
  overflow-y: auto;
}
.nq-td-dialog-body.nq-td-dialog-body-wide {
  padding: 16px 20px;
}
.nq-td-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 48px;
  padding: 0 10px;
  flex-shrink: 0;
}
.nq-td-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-td-field-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-td-field-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text);
}
.nq-td-field-hint {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--send);
  margin-left: auto;
}
.nq-td-input-box {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-base);
}
.nq-td-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  line-height: 16px;
  font-family: inherit;
  color: var(--text);
}
.nq-td-input:focus {
  outline: none;
}
.nq-td-input-box-lg {
  height: 36px;
}
.nq-td-input-box-lg .nq-td-input {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.nq-td-textarea {
  width: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid var(--border-tertiary);
  border-radius: 16px;
  background: var(--bg-base);
  resize: vertical;
  font-size: 13px;
  line-height: 20px;
  font-family: inherit;
  color: var(--text);
}
.nq-td-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.nq-td-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-tertiary);
  border-radius: 16px;
  background: var(--bg-base);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  font-family: inherit;
  cursor: pointer;
}
.nq-td-select:hover {
  background: var(--control-hover);
}
.nq-td-cover-grid {
  display: grid;
  grid-template-columns: repeat(6, 40px);
  gap: 8px;
}
.nq-td-cover-option {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  cursor: pointer;
}
.nq-td-cover-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid transparent;
}
.nq-td-cover-option.is-selected .nq-td-cover-tile {
  border-color: #436651;
}
.nq-td-cover-radio {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-base);
}
.nq-td-cover-option.is-selected .nq-td-cover-radio {
  border-color: var(--text);
}
.nq-td-cover-option.is-selected .nq-td-cover-radio::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}
.nq-td-disc-body {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex: 1 0 auto;
}
.nq-td-disc-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.nq-td-disc-filed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.nq-td-transcript {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 0 auto;
}
.nq-td-transcript-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 400px;
  max-width: 100%;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--border-quaternary);
  border-radius: 8px;
  background: var(--bg-base);
}
.nq-td-transcript-empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}
.nq-td-transcript-empty-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text);
  text-align: center;
}
.nq-td-transcript-empty-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-tertiary);
  text-align: center;
}
.nq-td-msg {
  display: flex;
  gap: 10px;
}
.nq-td-msg-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--send);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.nq-td-msg-body {
  min-width: 0;
  flex: 1;
}
.nq-td-msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nq-td-msg-author {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--text);
}
.nq-td-msg-time {
  font-size: 11px;
  line-height: 20px;
  color: var(--text-quaternary);
}
.nq-td-msg-del {
  width: 24px;
  height: 24px;
  padding: 4px;
  margin-left: auto;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.nq-td-msg-del:hover {
  background: var(--control-hover);
}
.nq-td-msg-text {
  font-size: 13px;
  line-height: 22px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.nq-td-composer {
  padding: 10px;
  border-radius: 16px;
  background: var(--control-hover);
}
.nq-td-composer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--border-tertiary);
  background: var(--bg-base);
}
.nq-td-composer-input {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  font-size: 13px;
  line-height: 20px;
  font-family: inherit;
  color: var(--text);
  max-height: 160px;
  overflow-y: auto;
}
.nq-td-composer-input:focus {
  outline: none;
}
.nq-td-composer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nq-td-composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border: none;
  border-radius: 16px;
  background: var(--send);
  color: var(--text-on-primary);
  cursor: pointer;
}
.nq-td-composer-send:hover {
  background: var(--send-hover);
}
.nq-td-composer-send:disabled,
.nq-td-composer-send:disabled:hover {
  background: var(--send);
  opacity: .45;
  cursor: not-allowed;
}
.nq-td-disc-panel {
  flex: 0 0 240px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nq-td-disc-panel-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nq-td-disc-panel-tab {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 16px;
  font-family: inherit;
  cursor: pointer;
}
.nq-td-disc-panel-tab:hover {
  background: var(--control-hover);
  color: var(--text);
}
.nq-td-disc-panel-tab.is-active {
  background: var(--row-active);
  color: var(--text);
}
.nq-td-disc-panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nq-td-disc-panel-stats {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text);
}
.nq-td-disc-panel-sec {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-tertiary);
}
.nq-td-disc-panel-empty {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-quaternary);
}
.nq-td-disc-members {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nq-td-disc-member {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
}
.nq-td-disc-member-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--send);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.nq-td-disc-member-tag {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
}
.nq-main-topbar .nq-window-actions .nq-terminal-toggle {
  margin-left: 12px;
}
.nq-main-topbar .nq-window-actions .nq-right-workbench-add {
  margin-left: 12px;
}
.nq-main-topbar .nq-window-actions .nq-right-workbench-full:not(.hidden) + .nq-terminal-toggle {
  margin-left: 0;
}
.nq-main-topbar .nq-window-actions .nq-terminal-toggle.is-on {
  background: transparent;
  color: var(--text-secondary);
}
.nq-toggle-icon-fill {
  fill: color-mix(in srgb, var(--text-quaternary) 50%, transparent);
  stroke: color-mix(in srgb, var(--text-quaternary) 50%, transparent);
}
.nq-terminal-toggle.is-on .nq-toggle-icon-fill,
.nq-right-sidebar-toggle.is-on .nq-toggle-icon-fill {
  fill: var(--text-secondary);
  stroke: var(--text-secondary);
}
.nq-main-topbar .nq-window-actions .nq-right-sidebar-toggle {
  flex-shrink: 0;
}
.nq-right-workbench {
  display: none;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--border-quaternary);
  background: var(--bg-base);
}
.nq-right-workbench::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 448px;
  height: 424px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(
      circle,
      var(--border-tertiary) .75px,
      transparent .75px);
  background-size: 8px 8px;
  mask-image:
    radial-gradient(
      ellipse at center,
      #000 38%,
      transparent 78%);
}
.nq-right-workbench::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 568px;
  height: 420px;
  transform: translate(-50%, -50%) rotate(-61deg);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(24px);
  background:
    radial-gradient(
      ellipse at center,
      color-mix(in srgb, var(--fill-active) 18%, transparent),
      transparent 68%);
}
.nq-right-workbench-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 326px;
  margin: auto;
  padding: 24px;
  max-height: 100%;
  overflow-y: auto;
}
.nq-right-workbench-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  padding: 0 12px;
  border: 1px solid var(--border-tertiary);
  border-radius: 12px;
  background: var(--bg-base);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nq-right-workbench-action:hover {
  border-color: var(--border-secondary);
  background: var(--bg-elevated);
}
.nq-right-workbench-action:disabled {
  cursor: not-allowed;
}
.nq-right-workbench-action:disabled:hover {
  border-color: var(--border-tertiary);
  background: var(--bg-base);
}
.nq-right-workbench-action:disabled .nq-right-workbench-action-icon,
.nq-right-workbench-action:disabled .nq-right-workbench-action-label {
  opacity: .5;
}
.nq-right-workbench-action:focus-visible {
  outline: 2px solid var(--border-secondary);
  outline-offset: 2px;
}
.nq-right-workbench-action-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
}
.nq-right-workbench-action-icon svg {
  width: 20px;
  height: 20px;
}
.nq-right-workbench-action:hover .nq-right-workbench-action-icon {
  color: var(--text-secondary);
}
.nq-right-workbench-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
.nq-right-workbench-action-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-quaternary);
}
@media (min-width: 900px) {
  .nq-view-chat.right-sidebar-open:not(.has-preview):not(.has-monitor):not(.has-review):not(.has-browser):not(.has-sidechat) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
  .nq-view-chat.right-sidebar-open.has-terminal:not(.has-preview):not(.has-monitor):not(.has-review):not(.has-browser):not(.has-sidechat) {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .nq-view-chat.right-sidebar-open:not(.has-preview):not(.has-monitor):not(.has-review):not(.has-browser):not(.has-sidechat) > .nq-chat-main {
    grid-column: 1;
    grid-row: 1;
  }
  .nq-view-chat.right-sidebar-open:not(.has-preview):not(.has-monitor):not(.has-review):not(.has-browser):not(.has-sidechat) > .nq-right-workbench {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
  }
  .nq-view-chat.right-sidebar-hidden {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  .nq-view-chat.right-sidebar-hidden.has-terminal {
    grid-template-rows: minmax(0, 1fr) auto !important;
  }
  .nq-view-chat.right-sidebar-hidden > .nq-chat-main {
    display: flex;
    grid-column: 1 !important;
    grid-row: 1 !important;
    overflow: visible;
  }
  .nq-view-chat.right-sidebar-hidden > .nq-preview-pane,
  .nq-view-chat.right-sidebar-hidden > .nq-monitor-pane:not(.is-float),
  .nq-view-chat.right-sidebar-hidden > .nq-review-pane,
  .nq-view-chat.right-sidebar-hidden > .nq-browser-pane,
  .nq-view-chat.right-sidebar-hidden > .nq-side-chat-pane {
    display: none !important;
  }
  .nq-view-chat.right-sidebar-fullscreen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .nq-view-chat.right-sidebar-fullscreen > .nq-chat-main {
    display: none !important;
  }
  .nq-view-chat.right-sidebar-fullscreen > .nq-right-workbench,
  .nq-view-chat.right-sidebar-fullscreen > .nq-preview-pane,
  .nq-view-chat.right-sidebar-fullscreen > .nq-monitor-pane:not(.is-float),
  .nq-view-chat.right-sidebar-fullscreen > .nq-review-pane,
  .nq-view-chat.right-sidebar-fullscreen > .nq-browser-pane,
  .nq-view-chat.right-sidebar-fullscreen > .nq-side-chat-pane {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
}
@media (max-width: 1023px) {
  .nq-td-disc-body {
    flex-direction: column;
  }
  .nq-td-disc-panel {
    flex: 0 0 auto;
    width: 100%;
  }
}
:root {
  --nq-theme-transition: 300ms;
}
::view-transition-old(root) {
  animation: nq-theme-fade-out var(--nq-theme-transition) ease-out both;
}
::view-transition-new(root) {
  animation: nq-theme-fade-in var(--nq-theme-transition) ease-out both;
}
@keyframes nq-theme-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nq-theme-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
