/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .sticky {
    position: sticky;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .flex-shrink {
    flex-shrink: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

:root {
  --bg: #0e1014;
  --bg-deep: #0a0c10;
  --surface: #181b22;
  --surface-2: #20242c;
  --surface-3: #262a34;
  --border: #2a2e37;
  --border-strong: #383c45;
  --text: #f6f7fa;
  --text-2: #ccd0d8;
  --text-3: #989da7;
  --text-muted: #6c727c;
  --accent: #f5a623;
  --accent-soft: #f5a62321;
  --accent-strong: #d97706;
  --brand-gold: #f5a623;
  --good: #16a34a;
  --bad: #ef4444;
  --topbar-bg: #0e1014b8;
  --bubble-user-bg: #f5a62324;
  --bubble-user-border: #f5a6234d;
  --bubble-assistant-bg: #ffffff0a;
  --bubble-assistant-border: #ffffff1a;
  --shadow-card: 0 1px 2px #0000002e, 0 4px 12px #0000001a;
  --gradient-accent: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
}

:root[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-deep: #eef0f4;
  --surface: #fff;
  --surface-2: #f3f4f8;
  --surface-3: #e8eaef;
  --border: #e1e4eb;
  --border-strong: #ccd1da;
  --text: #1c1f26;
  --text-2: #4a4f58;
  --text-3: #71717a;
  --text-muted: #a8acb5;
  --accent: #d97706;
  --accent-soft: #d977061a;
  --accent-strong: #b45309;
  --brand-gold: #d97706;
  --good: #16a34a;
  --bad: #dc2626;
  --topbar-bg: #f7f8fbb8;
  --bubble-user-bg: #d9770614;
  --bubble-user-border: #d9770638;
  --bubble-assistant-bg: #fff;
  --bubble-assistant-border: #0f172a14;
  --shadow-card: 0 1px 2px #0f172a0a, 0 2px 8px #0f172a0f;
  --gradient-accent: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--text);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, SF Pro Text, SF Pro Display, Inter, PingFang SC, Helvetica Neue, Segoe UI, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  transition: background-color .2s;
  position: relative;
}

body:before {
  content: "";
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(80% 100% at 50% 0, #f5a6230a, #0000 70%);
  height: 60vh;
  position: fixed;
  inset: 0 0 auto;
}

:root[data-theme="light"] body:before {
  background: radial-gradient(80% 100% at 50% 0, #d977060d, #0000 70%);
}

::selection {
  color: #fff;
  background: #f5a62347;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.cb-topbar {
  background: var(--topbar-bg);
  border-bottom: .5px solid var(--border);
  z-index: 50;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  display: flex;
  position: sticky;
  top: 0;
}

.cb-brand {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  display: flex;
}

.cb-logo {
  object-fit: contain;
  flex-grow: 0;
  flex-shrink: 0;
  width: 42px;
  min-width: 42px;
  height: 28px;
  display: block;
}

.cb-brand-title {
  flex-shrink: 0;
}

.cb-topbar-right {
  flex-shrink: 1;
  min-width: 0;
}

.cb-logo-light {
  display: none;
}

.cb-logo-dark, :root[data-theme="light"] .cb-logo-light {
  display: block;
}

:root[data-theme="light"] .cb-logo-dark {
  display: none;
}

.cb-brand-title {
  color: var(--text);
  letter-spacing: -.01em;
  white-space: nowrap;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.cb-brand-divider {
  color: var(--text-muted);
  margin: 0 2px;
  font-weight: 300;
}

.cb-version {
  color: var(--text-3);
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 500;
}

.cb-topbar-right {
  align-items: center;
  gap: 8px;
  display: flex;
}

.cb-topbar-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  transition: all .12s;
  display: inline-flex;
}

.cb-topbar-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.cb-topbar-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cb-topbar-btn.icon-only {
  justify-content: center;
  min-width: 32px;
  padding: 6px 8px;
}

.cb-select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 14px;
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-family: inherit;
  font-size: 13px;
  transition: all .12s;
}

.cb-select:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cb-select:focus {
  border-color: var(--accent);
  outline: none;
}

.cb-select:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-bubble-user {
  background: var(--bubble-user-bg);
  border: 1px solid var(--bubble-user-border);
  color: var(--text);
}

.cb-bubble-assistant {
  background: var(--bubble-assistant-bg);
  border: 1px solid var(--bubble-assistant-border);
  color: var(--text);
}

.cb-bubble-system {
  color: var(--bad);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  font-size: 12px;
}

.cb-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  resize: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .12s, box-shadow .12s;
}

.cb-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.cb-input::placeholder {
  color: var(--text-muted);
}

.cb-input:disabled {
  opacity: .6;
}

.cb-send-btn {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  min-width: 64px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s, transform 80ms;
}

.cb-send-btn:hover:not(:disabled) {
  background: var(--accent-strong);
}

.cb-send-btn:active:not(:disabled) {
  transform: scale(.97);
}

.cb-send-btn:disabled {
  background: var(--surface-3);
  color: var(--text-muted);
  cursor: not-allowed;
}

.cb-stop-btn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  border-radius: 12px;
  min-width: 64px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all .12s;
}

.cb-stop-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.cb-empty {
  text-align: center;
  margin-top: 18vh;
}

.cb-empty-tagline {
  color: var(--text-3);
  margin-bottom: 16px;
  font-size: 14px;
}

.cb-empty-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 2;
}

.cb-empty-hint > div {
  border: 1px dashed var(--border);
  background: var(--surface);
  cursor: default;
  border-radius: 999px;
  margin: 4px;
  padding: 4px 12px;
  transition: all .12s;
  display: inline-block;
}

.cb-empty-hint > div:hover {
  border-color: var(--accent);
  color: var(--text-2);
  background: var(--accent-soft);
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

/* [project]/src/app/markdown-and-auth.css [app-client] (css) */
.cb-md p {
  margin: 0 0 8px;
}

.cb-md p:last-child {
  margin-bottom: 0;
}

.cb-md h1, .cb-md h2, .cb-md h3, .cb-md h4 {
  color: var(--text);
  margin: 12px 0 6px;
  font-weight: 700;
  line-height: 1.3;
}

.cb-md h1 {
  font-size: 18px;
}

.cb-md h2 {
  font-size: 16px;
}

.cb-md h3 {
  font-size: 15px;
}

.cb-md h4 {
  font-size: 14px;
}

.cb-md ul, .cb-md ol {
  margin: 4px 0 8px;
  padding-left: 22px;
}

.cb-md li {
  margin: 2px 0;
}

.cb-md li > p {
  margin: 0;
}

.cb-md a {
  color: var(--accent);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.cb-md a:hover {
  color: var(--accent-strong);
}

.cb-md blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-2);
  border-radius: 0 6px 6px 0;
  margin: 8px 0;
  padding: 4px 12px;
}

.cb-md code {
  background: var(--surface-3);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: SF Mono, JetBrains Mono, Consolas, ui-monospace, monospace;
  font-size: 13px;
}

.cb-md pre {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
}

.cb-md pre code {
  color: var(--text);
  background: none;
  padding: 0;
  font-size: 13px;
}

.cb-md table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 13px;
}

.cb-md th, .cb-md td {
  border: 1px solid var(--border);
  text-align: left;
  padding: 6px 10px;
}

.cb-md th {
  background: var(--surface-2);
  font-weight: 600;
}

.cb-md hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.cb-md strong {
  color: var(--text);
  font-weight: 700;
}

.cb-md em {
  font-style: italic;
}

.cb-md del {
  color: var(--text-muted);
  text-decoration: line-through;
}

.cb-login-wrap {
  background: var(--bg);
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 24px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.cb-login-wrap:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 20%, var(--accent-soft), transparent 70%);
  position: absolute;
  inset: 0;
}

.cb-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  padding: 32px 28px 24px;
  position: relative;
}

.cb-login-brand {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  display: flex;
}

.cb-login-brand .cb-logo {
  width: 60px;
  min-width: 60px;
  height: 40px;
}

.cb-login-title {
  text-align: center;
}

.cb-login-title-en {
  letter-spacing: .02em;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.cb-login-title-zh {
  color: var(--text-3);
  margin-top: 2px;
  font-size: 13px;
}

.cb-feishu-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all .12s;
  display: flex;
  position: relative;
}

.cb-feishu-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.cb-feishu-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-feishu-icon {
  color: #fff;
  background: linear-gradient(135deg, #00d6b9, #3370ff);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.cb-feishu-soon {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  position: absolute;
  right: 12px;
}

.cb-login-divider {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 11px;
  display: flex;
}

.cb-login-divider:before, .cb-login-divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.cb-login-form {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.cb-login-form .cb-input {
  width: 100%;
}

.cb-login-form .cb-send-btn {
  height: 40px;
  margin-top: 6px;
  padding: 10px 18px;
}

.cb-login-err {
  color: var(--bad);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.cb-login-hint {
  text-align: center;
  color: var(--text-muted);
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.cb-login-hint code {
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: SF Mono, Consolas, monospace;
  font-size: 12px;
}

.cb-pw-row {
  align-items: center;
  display: flex;
  position: relative;
}

.cb-pw-row .cb-input {
  flex: 1;
  padding-right: 76px;
}

.cb-pw-eye {
  appearance: none;
  cursor: pointer;
  opacity: .6;
  background: none;
  border: 0;
  padding: 4px;
  font-size: 16px;
  transition: opacity .1s;
  position: absolute;
  right: 42px;
}

.cb-pw-eye:hover {
  opacity: 1;
}

.cb-pw-ok {
  color: #16a34a;
  font-size: 16px;
  font-weight: 700;
  position: absolute;
  right: 14px;
}

.cb-pw-err {
  color: var(--bad);
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  right: 14px;
}

.cb-login-cert-hint {
  text-align: center;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 8px;
  margin: 12px 0 0;
  padding: 8px 10px;
  font-size: 11.5px;
}

.cb-login-cert-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cb-login-cert-hint a:hover {
  text-decoration: underline;
}

.cb-kb-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  transition: all .12s;
  display: inline-flex;
}

.cb-kb-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.cb-kb-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

.cb-kb-toggle:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.cb-user-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  display: inline-flex;
}

.cb-user-info {
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
  display: inline-flex;
}

.cb-user-name {
  color: var(--text);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.cb-user-role {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 10px;
}

/* [project]/src/app/admin-and-extras.css [app-client] (css) */
.cb-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  padding: 20px 22px;
}

.cb-admin-h2 {
  color: var(--text);
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
}

.cb-admin-tip {
  color: var(--text-3);
  margin: 0 0 14px;
  font-size: 13px;
}

.cb-admin-row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  display: flex;
}

.cb-admin-label {
  color: var(--text-2);
  align-items: center;
  font-size: 13px;
  display: inline-flex;
}

.cb-admin-ok {
  color: var(--good);
  background: #16a34a1a;
  border: 1px solid #16a34a4d;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.cb-admin-count {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

.cb-admin-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.cb-admin-table th, .cb-admin-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
}

.cb-admin-table th {
  color: var(--text-3);
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 12px;
  font-weight: 600;
}

.cb-admin-table tr:hover td {
  background: var(--accent-soft);
}

.cb-admin-table code {
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: SF Mono, JetBrains Mono, Consolas, monospace;
  font-size: 12px;
}

.cb-role-admin {
  color: var(--accent);
  font-weight: 600;
}

.cb-role-kb {
  color: #60a5fa;
  font-weight: 500;
}

.cb-role-member {
  color: var(--text-2);
}

.cb-tag {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.cb-tag-warn {
  color: var(--accent);
  background: #f5a62324;
  border: 1px solid #f5a6234d;
}

.cb-tag-good {
  color: var(--good);
  background: #16a34a24;
  border: 1px solid #16a34a4d;
}

.cb-tag-bad {
  color: var(--bad);
  background: #ef444424;
  border: 1px solid #ef44444d;
}

.cb-tag-self {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 10px;
}

.cb-row-actions {
  flex-wrap: nowrap;
  gap: 6px;
  display: inline-flex;
}

.cb-row-actions .cb-topbar-btn {
  white-space: nowrap;
  padding: 4px 8px;
  font-size: 12px;
}

.cb-btn-danger {
  color: var(--bad) !important;
  border-color: #ef444466 !important;
}

.cb-btn-danger:hover:not(:disabled) {
  border-color: var(--bad) !important;
  background: #ef44441a !important;
}

.cb-kb-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 360px;
  max-height: calc(100dvh - 80px);
  box-shadow: var(--shadow-card);
  z-index: 100;
  border-radius: 14px;
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 60px;
  right: 16px;
  overflow: hidden;
}

.cb-kb-panel-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 16px 10px;
  display: flex;
}

.cb-kb-panel-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.cb-kb-panel-sub {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 11px;
}

.cb-kb-upload-zone {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.cb-kb-upload-hint {
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
}

.cb-kb-list {
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 12px;
  display: flex;
  overflow-y: auto;
}

.cb-kb-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 12px;
  line-height: 1.6;
}

.cb-kb-doc {
  background: var(--surface-2);
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  transition: all .12s;
  display: flex;
}

.cb-kb-doc:hover {
  border-color: var(--border);
  background: var(--surface-3);
}

.cb-kb-doc-main {
  flex: 1;
  min-width: 0;
}

.cb-kb-doc-title {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}

.cb-kb-doc-meta {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 11px;
}

.cb-conv-active {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
}

.cb-conv-active .cb-kb-doc-title {
  color: var(--accent);
  font-weight: 600;
}

/* [project]/src/app/layout-v2.css [app-client] (css) */
.cb-app {
  background: var(--bg);
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100dvh;
  display: grid;
}

.cb-app.cb-sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.cb-app.cb-sidebar-collapsed .cb-sidebar {
  visibility: hidden;
  border-right: none;
  overflow: hidden;
}

.cb-sidebar {
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.cb-sidebar-head {
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 10px;
  display: flex;
}

.cb-sidebar-brand {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.cb-sidebar-brand .cb-logo {
  object-fit: contain;
  width: 33px;
  min-width: 33px;
  height: 22px;
}

.cb-sidebar-name {
  color: var(--text);
  letter-spacing: .01em;
  font-size: 14px;
  font-weight: 700;
}

.cb-icon-btn {
  appearance: none;
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
  transition: all .12s;
  display: inline-flex;
}

.cb-icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cb-icon-btn.cb-btn-danger {
  color: var(--text-3);
}

.cb-icon-btn.cb-btn-danger:hover {
  color: var(--bad);
  background: #ef44441a;
}

.cb-new-chat-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  margin: 6px 12px 18px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all .12s;
  display: flex;
}

.cb-new-chat-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}

.cb-new-chat-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cb-plus {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

.cb-sidebar-section-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 0 18px 6px;
  font-size: 11px;
  font-weight: 600;
}

.cb-conv-list {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 0 8px 8px;
  display: flex;
  overflow-y: auto;
}

.cb-conv-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 18px 12px;
  font-size: 12px;
}

.cb-conv-item {
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  transition: background 80ms;
  display: flex;
}

.cb-conv-item:hover {
  background: var(--surface-2);
}

.cb-conv-item.active {
  background: var(--accent-soft);
}

.cb-conv-item.active .cb-conv-title {
  color: var(--accent);
  font-weight: 500;
}

.cb-conv-title {
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
}

.cb-conv-del {
  appearance: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  transition: opacity .1s;
  display: inline-flex;
}

.cb-conv-item:hover .cb-conv-del {
  opacity: 1;
}

.cb-conv-del:hover {
  color: var(--bad);
  background: #ef444426;
}

.cb-sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 10px;
}

.cb-sidebar-foot-btn {
  width: 100%;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  transition: all .1s;
  display: flex;
}

.cb-sidebar-foot-btn:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.cb-sidebar-foot-btn-disabled {
  opacity: .5;
  cursor: not-allowed !important;
}

.cb-sidebar-foot-btn-disabled:hover {
  color: var(--text-2) !important;
  background: none !important;
  border-color: #0000 !important;
}

.cb-counter-bad {
  color: var(--bad) !important;
  background: #ef44441f !important;
}

.cb-counter {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
}

.cb-main {
  grid-template-rows: 56px 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  height: 100dvh;
  display: grid;
}

.cb-main.cb-main-empty {
  grid-template-rows: 56px minmax(min-content, 1fr) auto minmax(0, 1.4fr);
}

.cb-main.cb-main-empty .cb-input-area {
  border-top: none;
}

.cb-main.cb-main-empty .cb-msg-area {
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
  display: flex;
}

.cb-topbar-v2 {
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  display: flex;
}

.cb-topbar-center {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
}

.cb-topbar-center .cb-icon-btn {
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  color: var(--text-3);
  border-radius: 50%;
  font-size: 12px;
}

.cb-topbar-center .cb-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.cb-model-guide-list {
  padding: 4px 8px 14px;
  overflow-y: auto;
}

.cb-model-guide-item {
  border-radius: 10px;
  padding: 12px 14px;
  transition: background .1s;
}

.cb-model-guide-item:hover {
  background: var(--surface-2);
}

.cb-model-guide-tag {
  color: var(--text);
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
}

.cb-model-guide-desc {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

.cb-model-guide-bench {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  margin-top: 6px;
  padding: 3px 8px;
  font-family: SF Mono, JetBrains Mono, Consolas, monospace;
  font-size: 11px;
  display: inline-block;
}

.cb-model-guide-foot {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 12px 14px;
  font-size: 10px;
  line-height: 1.5;
}

.cb-select-model {
  border-color: var(--border) !important;
  background-color: #0000 !important;
  border-radius: 999px !important;
  padding: 6px 32px 6px 12px !important;
  font-size: 13px !important;
}

.cb-select-model:hover {
  background-color: var(--surface) !important;
}

.cb-user-menu-wrap {
  position: relative;
}

.cb-avatar-btn {
  appearance: none;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
}

.cb-avatar {
  background: var(--gradient-accent);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: 0;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 700;
  transition: box-shadow .12s;
  display: inline-flex;
  box-shadow: 0 0 0 2px #0000;
}

.cb-avatar-btn:hover .cb-avatar {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.cb-user-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 220px;
  box-shadow: var(--shadow-card);
  z-index: 60;
  border-radius: 12px;
  flex-direction: column;
  padding: 4px 0;
  display: flex;
  position: absolute;
  top: 44px;
  right: 0;
  overflow: hidden;
}

.cb-menu-header {
  padding: 8px 14px 10px;
}

.cb-menu-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.cb-menu-role {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 11px;
}

.cb-menu-sep {
  background: var(--border);
  height: 1px;
  margin: 4px 0;
}

.cb-menu-item {
  appearance: none;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  text-decoration: none;
  transition: background 80ms;
  display: flex;
}

.cb-menu-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.cb-menu-danger {
  color: var(--bad) !important;
}

.cb-menu-danger:hover {
  background: #ef44441a !important;
}

.cb-messages-area {
  padding: 24px 16px 8px;
  overflow-y: auto;
}

.cb-messages-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.cb-welcome {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 14vh;
  display: flex;
}

.cb-welcome-logo {
  margin-bottom: 6px;
}

.cb-welcome-logo .cb-logo {
  object-fit: contain;
  width: 72px;
  min-width: 72px;
  height: 48px;
}

.cb-welcome-title {
  color: var(--text);
  letter-spacing: -.01em;
  background: var(--gradient-accent);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 26px;
  font-weight: 700;
}

.cb-welcome-sub {
  color: var(--text-3);
  margin-bottom: 18px;
  font-size: 14px;
}

.cb-welcome-hints {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 660px;
  display: flex;
}

.cb-hint-card {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  flex-shrink: 0;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  transition: all .12s;
}

.cb-hint-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

.cb-msg-list {
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
  display: flex;
}

.cb-msg-row {
  display: flex;
}

.cb-msg-row.right {
  justify-content: flex-end;
}

.cb-msg-row.left {
  justify-content: flex-start;
}

.cb-msg-row .cb-bubble-user, .cb-msg-row .cb-bubble-assistant, .cb-msg-row .cb-bubble-system {
  word-break: break-word;
  border-radius: 16px;
  max-width: 86%;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.65;
}

.cb-thinking {
  color: var(--text-muted);
  font-style: italic;
}

.cb-msg-copy-btn {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  width: 24px;
  height: 24px;
  color: var(--text-2);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  transition: all .12s;
  display: inline-flex;
  position: absolute;
  top: 6px;
  right: 6px;
}

.cb-bubble-user:hover .cb-msg-copy-btn, .cb-bubble-assistant:hover .cb-msg-copy-btn {
  opacity: 1;
}

.cb-msg-copy-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.cb-msg-copy-btn svg {
  display: block;
}

.cb-msg-copy-btn.cb-copy-fail {
  border-color: var(--bad);
  color: var(--bad);
  background: #ef44441a;
}

.cb-input-area {
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 18px;
  display: flex;
}

.cb-input-area > * {
  width: 100%;
  max-width: 760px;
}

.cb-input-inner {
  max-width: 760px;
  margin: 0 auto;
}

.cb-model-menu-wrap {
  display: inline-flex;
  position: relative;
}

.cb-pod-model-btn {
  appearance: none;
  border: 1px solid var(--border);
  height: 36px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .1s, border-color .1s, color .1s;
  display: inline-flex;
}

.cb-pod-model-btn-label {
  text-overflow: ellipsis;
  overflow: hidden;
}

.cb-pod-model-btn-caret {
  opacity: .7;
  flex-shrink: 0;
  transition: transform .12s;
}

.cb-pod-model-btn[aria-expanded="true"] .cb-pod-model-btn-caret {
  transform: rotate(180deg);
}

.cb-pod-model-btn:hover:not(:disabled), .cb-pod-model-btn[aria-expanded="true"] {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.cb-pod-model-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-model-menu {
  z-index: 1000;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 260px;
  max-width: 320px;
  max-height: min(60vh, 400px);
  padding: 6px;
  position: absolute;
  left: 0;
  overflow-y: auto;
  box-shadow: 0 4px 12px #0000000a, 0 12px 28px #0000001f;
}

.cb-model-menu-cascade {
  flex-direction: row;
  min-width: 420px;
  max-width: 560px;
  max-height: min(60vh, 420px);
  padding: 0;
  display: flex;
  overflow: visible;
}

.cb-model-menu-cat-col {
  border-right: 1px solid var(--border);
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  width: 170px;
  padding: 6px;
  display: flex;
}

.cb-model-menu-cat-item {
  appearance: none;
  width: 100%;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 80ms;
  display: flex;
}

.cb-model-menu-cat-item:hover, .cb-model-menu-cat-item.is-active {
  background: var(--surface-2);
}

.cb-model-menu-cat-item.is-active {
  color: var(--accent, #2563eb);
  font-weight: 600;
}

.cb-model-menu-cat-label {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  overflow: hidden;
}

.cb-model-menu-cat-dot {
  color: var(--accent, #2563eb);
  flex-shrink: 0;
  font-size: 7px;
  line-height: 1;
}

.cb-model-menu-cat-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.cb-model-menu-models-col {
  overscroll-behavior: contain;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  max-height: min(60vh, 420px);
  padding: 6px;
  overflow-y: auto;
}

.cb-model-menu-back {
  display: none;
}

.cb-model-menu.is-down {
  animation: .12s ease-out cb-model-menu-in-down;
  top: calc(100% + 8px);
}

.cb-model-menu.is-up {
  animation: .12s ease-out cb-model-menu-in-up;
  bottom: calc(100% + 8px);
}

@keyframes cb-model-menu-in-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cb-model-menu-in-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-model-menu-group + .cb-model-menu-group {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 4px;
}

.cb-model-menu-header {
  color: var(--text-3);
  letter-spacing: .02em;
  -webkit-user-select: none;
  user-select: none;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
}

.cb-model-menu-item {
  appearance: none;
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  transition: background 80ms;
  display: flex;
}

.cb-model-menu-item:hover:not(:disabled) {
  background: var(--surface-2);
}

.cb-model-menu-item.is-active {
  background: var(--accent-soft, #3b82f61a);
  color: var(--accent, #2563eb);
  font-weight: 600;
}

.cb-model-menu-item.is-active:hover {
  background: var(--accent-soft, #3b82f626);
}

.cb-model-menu-item.is-pending {
  color: var(--text-3);
  cursor: not-allowed;
}

.cb-model-menu-item.is-pending:hover {
  background: none;
}

.cb-model-menu-check {
  text-align: center;
  width: 14px;
  color: var(--accent, #2563eb);
  flex-shrink: 0;
  font-size: 12px;
}

.cb-model-menu-item-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.cb-model-menu-pending {
  background: var(--surface-2);
  color: var(--text-3);
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 10.5px;
}

@media (max-width: 720px) {
  .cb-pod-model-btn {
    max-width: 140px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .cb-model-menu.is-down, .cb-model-menu.is-up {
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 70vh;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border-radius: 16px;
    animation: .2s ease-out cb-model-menu-sheet-in;
    position: fixed;
    inset: auto 8px 8px;
    box-shadow: 0 -8px 32px #0000002e;
  }

  .cb-model-menu:before {
    content: "";
    z-index: -1;
    pointer-events: none;
    background: #00000059;
    position: fixed;
    inset: 0;
  }

  .cb-model-menu .cb-model-menu-group:first-child {
    padding-top: 4px;
  }

  .cb-model-menu .cb-model-menu-group:first-child:before {
    content: "";
    background: var(--border-strong, var(--border));
    border-radius: 2px;
    width: 36px;
    height: 4px;
    margin: 4px auto 8px;
    display: block;
  }

  .cb-model-menu-item {
    padding: 12px;
    font-size: 14px;
  }

  .cb-model-menu-cascade {
    min-width: 0;
    max-width: none;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    flex-direction: column;
    overflow-y: auto;
  }

  .cb-model-menu-cascade .cb-model-menu-cat-col {
    border-right: 0;
    width: auto;
    padding: 6px;
  }

  .cb-model-menu-cascade.has-active .cb-model-menu-cat-col {
    display: none;
  }

  .cb-model-menu-cascade .cb-model-menu-models-col {
    min-width: 0;
    max-width: none;
    max-height: none;
    padding: 0 6px 6px;
  }

  .cb-model-menu-cat-item {
    padding: 14px 12px;
    font-size: 14px;
  }

  .cb-model-menu-back {
    border: 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    color: var(--text-2);
    text-align: left;
    cursor: pointer;
    background: none;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    padding: 10px 6px 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    display: flex !important;
  }

  .cb-model-menu-back:active {
    background: var(--surface-2);
  }

  .cb-model-menu-cascade .cb-model-menu-cat-col:before {
    content: "";
    background: var(--border-strong, var(--border));
    border-radius: 2px;
    width: 36px;
    height: 4px;
    margin: 4px auto 8px;
    display: block;
  }

  .cb-model-menu-cascade.has-active .cb-model-menu-cat-col:before {
    display: none;
  }
}

@keyframes cb-model-menu-sheet-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-input-tools {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.cb-chip {
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  transition: all .12s;
  display: inline-flex;
}

.cb-chip:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.cb-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.cb-chip:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cb-chip-empty {
  border-style: dashed;
}

.cb-chip-warn {
  cursor: help;
  color: var(--bad) !important;
  background: #ef444414 !important;
  border-color: #ef444466 !important;
}

.cb-chip-warn:hover {
  border-color: var(--bad) !important;
  background: #ef444424 !important;
}

.cb-chip-rec {
  font-weight: 600;
  border-color: var(--bad) !important;
  color: var(--bad) !important;
  background: #ef444424 !important;
}

.cb-rec-dot {
  background: var(--bad);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  animation: 1s infinite cb-rec-pulse;
  display: inline-block;
}

@keyframes cb-rec-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.85);
  }
}

.cb-mic-level-wrap {
  background: var(--surface-2);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
}

.cb-mic-icon {
  font-size: 14px;
}

.cb-mic-bar {
  background: var(--surface-3);
  border-radius: 999px;
  flex: 1;
  min-width: 100px;
  height: 8px;
  overflow: hidden;
}

.cb-mic-bar-fill {
  border-radius: 999px;
  height: 100%;
  transition: width 80ms linear, background .2s;
}

.cb-mic-level-num {
  text-align: right;
  min-width: 60px;
  font-family: SF Mono, Consolas, monospace;
  font-size: 11px;
}

.cb-live-cursor {
  width: 6px;
  color: var(--accent);
  margin-left: 2px;
  font-weight: 600;
  animation: .9s step-end infinite cb-blink;
  display: inline-block;
}

@keyframes cb-blink {
  50% {
    opacity: 0;
  }
}

.cb-input-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  transition: border-color .12s, box-shadow .12s;
  display: flex;
}

.cb-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cb-input-v2 {
  appearance: none;
  resize: none;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  min-height: 24px;
  max-height: 200px;
  padding: 6px 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.cb-input-v2::placeholder {
  color: var(--text-muted);
}

.cb-input-v2:disabled {
  opacity: .6;
}

.cb-send-circle {
  appearance: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 700;
  transition: all .12s;
  display: inline-flex;
}

.cb-send-circle:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: scale(1.04);
}

.cb-send-circle:disabled {
  background: var(--surface-3);
  color: var(--text-muted);
  cursor: not-allowed;
}

.cb-send-circle.cb-stop {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  font-size: 12px;
}

.cb-send-circle.cb-stop:hover {
  background: var(--bad);
  color: #fff;
  border-color: var(--bad);
}

.cb-overlay {
  z-index: 100;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0006;
  position: fixed;
  inset: 0;
}

.cb-kb-panel-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(440px, 92vw);
  max-height: 80dvh;
  box-shadow: var(--shadow-card);
  z-index: 101;
  border-radius: 16px;
  flex-direction: column;
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

@media (max-width: 720px) {
  .cb-app, .cb-app.cb-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cb-sidebar {
    z-index: 210;
    width: 280px;
    max-width: 85vw;
    transition: transform .22s;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(0);
    box-shadow: 4px 0 24px #00000073;
    visibility: visible !important;
  }

  .cb-app.cb-sidebar-collapsed .cb-sidebar {
    box-shadow: none;
    transform: translateX(-100%);
    visibility: visible !important;
    display: flex !important;
  }

  .cb-main {
    width: 100vw;
  }

  .cb-topbar-v2 {
    padding: 0 12px;
  }

  .cb-select-model {
    max-width: 60vw;
    font-size: 12px !important;
  }

  .cb-input-area {
    padding: 6px 12px 12px;
  }

  .cb-input-tools {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px;
    overflow-x: auto;
  }

  .cb-input-tools::-webkit-scrollbar {
    display: none;
  }

  .cb-chip {
    flex-shrink: 0;
  }

  .cb-main.cb-main-empty {
    grid-template-rows: 56px auto auto 1fr;
  }

  .cb-messages-area, .cb-msg-area {
    scrollbar-width: none;
  }

  .cb-messages-area::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  .cb-msg-area::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  .cb-bubble-user .cb-msg-copy-btn, .cb-bubble-assistant .cb-msg-copy-btn {
    opacity: .55;
    background: none;
    border-color: #0000;
    width: 22px;
    height: 22px;
    top: auto;
    bottom: -28px;
    right: 4px;
  }

  .cb-bubble-user .cb-msg-copy-btn:active, .cb-bubble-assistant .cb-msg-copy-btn:active {
    opacity: 1;
    background: var(--accent-soft);
    border-color: var(--accent);
  }

  .cb-msg-row {
    padding-bottom: 24px;
  }

  .cb-welcome {
    gap: 6px;
    padding-top: 4vh;
  }

  .cb-welcome-logo .cb-logo {
    width: 60px;
    min-width: 60px;
    height: 40px;
  }

  .cb-welcome-title {
    font-size: 20px;
  }

  .cb-welcome-sub {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .cb-welcome-hints {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .cb-hint-card {
    text-overflow: ellipsis;
    max-width: none;
    padding: 8px 12px;
    font-size: 12.5px;
    overflow: hidden;
  }

  .cb-user-menu {
    min-width: 200px;
    right: -8px;
  }
}

.cb-mobile-backdrop {
  z-index: 200;
  -webkit-backdrop-filter: blur(2px);
  background: #00000080;
  position: fixed;
  inset: 0;
}

@supports (-webkit-touch-callout: none) {
  .cb-app {
    height: -webkit-fill-available;
  }
}

nextjs-portal {
  display: none !important;
}

.cb-drag-overlay {
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  pointer-events: none;
  border: 3px dashed var(--accent);
  background: #f5a6232e;
  justify-content: center;
  align-items: center;
  animation: 1.2s ease-in-out infinite cb-pulse;
  display: flex;
  position: fixed;
  inset: 0;
}

.cb-drag-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  text-align: center;
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 24px 48px #00000040;
}

.cb-drag-icon {
  margin-bottom: 12px;
  font-size: 48px;
}

.cb-drag-title {
  color: var(--text);
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.cb-drag-sub {
  color: var(--text-3);
  font-size: 12px;
}

@keyframes cb-pulse {
  0%, 100% {
    background: #f5a62324;
  }

  50% {
    background: #f5a62338;
  }
}

.cb-drag-zones {
  pointer-events: auto;
  gap: 24px;
  width: min(92vw, 920px);
  max-width: 920px;
  padding: 24px;
  display: flex;
}

.cb-drag-zone {
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  text-align: center;
  cursor: copy;
  min-height: 220px;
  box-shadow: var(--shadow-card);
  border-radius: 18px;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 28px 22px;
  transition: border-color .12s, background .12s, transform .12s;
  display: flex;
}

.cb-drag-zone.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.02);
}

.cb-drag-zone.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.cb-drag-zone.disabled.active {
  border-color: var(--bad);
  background: #ef44440f;
}

.cb-drag-zone .cb-drag-icon {
  font-size: 38px;
}

.cb-drag-zone .cb-drag-title {
  font-size: 16px;
}

.cb-drag-zone .cb-drag-sub {
  color: var(--text-3);
  max-width: 220px;
  font-size: 12px;
}

@media (max-width: 720px) {
  .cb-drag-zones {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .cb-drag-zone {
    min-height: 140px;
    padding: 16px;
  }
}

.cb-chip-wrap {
  display: inline-block;
  position: relative;
}

.cb-kb-hover-pop {
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 320px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-card), 0 8px 24px #0000001a;
  color: var(--text-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  animation: .12s ease-out cb-pop-in;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
}

@keyframes cb-pop-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cb-kb-hover-pop-head {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.cb-kb-hover-pop-title {
  color: var(--text);
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
}

.cb-kb-hover-pop-sub {
  color: var(--text-3);
  font-size: 11px;
}

.cb-kb-hover-pop-list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.cb-kb-hover-pop-item {
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 -4px;
  padding: 5px 4px;
  font-size: 12px;
  transition: background 80ms;
  display: flex;
}

.cb-kb-hover-pop-item:hover {
  background: var(--surface-2);
}

.cb-kb-hover-pop-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  flex: 1;
  overflow: hidden;
}

.cb-kb-hover-pop-meta {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 11px;
}

.cb-kb-hover-pop-del {
  color: var(--text-muted);
  cursor: pointer;
  opacity: .55;
  background: none;
  border: none;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 13px;
  transition: opacity .1s, color .1s, background .1s;
}

.cb-kb-hover-pop-item:hover .cb-kb-hover-pop-del {
  opacity: 1;
}

.cb-kb-hover-pop-del:hover:not(:disabled) {
  color: var(--bad);
  opacity: 1;
  background: #ef44441a;
}

.cb-kb-hover-pop-del:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.cb-inline-confirm {
  background: #ef44441a;
  border: 1px solid #ef444459;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  animation: .12s ease-out cb-inline-confirm-in;
  display: inline-flex;
}

@keyframes cb-inline-confirm-in {
  from {
    opacity: 0;
    transform: scale(.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cb-inline-confirm-text {
  color: var(--bad);
  white-space: nowrap;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
}

.cb-inline-confirm-yes, .cb-inline-confirm-no {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  transition: background .1s, color .1s;
  display: inline-flex;
}

.cb-inline-confirm-yes {
  color: var(--bad);
}

.cb-inline-confirm-yes:hover {
  background: var(--bad);
  color: #fff;
}

.cb-inline-confirm-no {
  color: var(--text-2);
}

.cb-inline-confirm-no:hover {
  background: var(--surface-3);
  color: var(--text);
}

.cb-kb-hover-pop-more {
  color: var(--text-muted);
  padding-top: 4px;
  font-size: 11px;
  font-style: italic;
  list-style: none;
}

.cb-kb-hover-pop-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 14px 0;
  font-size: 12px;
}

.cb-kb-hover-pop-foot {
  border-top: 1px dashed var(--border);
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 11px;
}

.cb-toast {
  z-index: 400;
  background: var(--surface);
  border: 1px solid var(--good);
  border-left: 3px solid var(--good);
  color: var(--text);
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  max-width: min(360px, 100vw - 32px);
  padding: 12px 16px;
  font-size: 13px;
  animation: .2s ease-out cb-toast-in;
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 12px 32px #0000002e;
}

.cb-toast-icon {
  background: var(--good);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.cb-toast-text strong {
  color: var(--text);
  font-weight: 600;
}

.cb-toast.cb-toast-bad {
  border-color: var(--bad);
  border-left-color: var(--bad);
}

.cb-toast.cb-toast-bad .cb-toast-icon {
  background: var(--bad);
}

.cb-toast-files {
  color: var(--text-3);
  margin-top: 4px;
  font-size: 11.5px;
  display: block;
}

.cb-toast-file {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
  padding: 1px 0;
  display: block;
  overflow: hidden;
}

.cb-toast-file-bad {
  color: var(--bad);
}

.cb-toast-warn-line {
  border-top: 1px dashed var(--border);
  color: var(--bad);
  margin-top: 4px;
  padding-top: 4px;
  display: block;
}

@keyframes cb-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .cb-toast {
    max-width: none;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .cb-toast-file {
    max-width: 100%;
  }
}

.cb-pod {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  flex-direction: column;
  gap: 0;
  padding: 4px;
  transition: border-color .12s, box-shadow .12s;
  display: flex;
  box-shadow: 0 1px 3px #0000000a, 0 4px 16px #0000000f;
}

.cb-pod:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cb-pod-attachments {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  display: flex;
}

.cb-pod-refimage {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.cb-pod-refimage.empty .cb-refimage-drop {
  background: var(--accent-soft);
  border: 1.5px dashed var(--accent);
  cursor: pointer;
  width: 100%;
  color: var(--text-2);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13px;
  transition: background .12s;
  display: flex;
}

.cb-pod-refimage.empty .cb-refimage-drop:hover {
  background: #f5a6232e;
}

.cb-refimage-drop-icon {
  flex-shrink: 0;
  font-size: 26px;
}

.cb-refimage-drop-text {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.cb-refimage-drop-text strong {
  color: var(--text);
  font-size: 14px;
}

.cb-refimage-drop-text span:not(strong) {
  color: var(--text-3);
  font-size: 12px;
}

.cb-refimage-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  display: flex;
}

.cb-refimage-thumb {
  object-fit: cover;
  background: var(--surface);
  border-radius: 8px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.cb-refimage-meta {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.cb-refimage-name {
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.cb-refimage-hint {
  color: var(--text-3);
  font-size: 11px;
}

.cb-refimage-del {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transition: background .1s, color .1s;
  display: inline-flex;
}

.cb-refimage-del:hover {
  background: var(--bad);
  color: #fff;
}

.cb-pod-textarea {
  resize: none;
  width: 100%;
  min-height: 50px;
  max-height: 240px;
  font: inherit;
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.cb-pod-textarea::placeholder {
  color: var(--text-muted);
}

.cb-pod-textarea:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.cb-pod-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  display: flex;
}

.cb-pod-toolbar-left, .cb-pod-toolbar-right {
  align-items: center;
  gap: 6px;
  display: flex;
}

.cb-pod-iconbtn {
  width: 36px;
  height: 36px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 16px;
  transition: background .1s, border-color .1s, color .1s;
  display: inline-flex;
}

.cb-pod-iconbtn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.cb-pod-iconbtn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-pod-iconbtn-rec {
  border-color: var(--bad);
  color: var(--bad);
  background: #ef44441f;
  gap: 4px;
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.cb-pod-iconbtn-rec:hover:not(:disabled) {
  border-color: var(--bad);
  color: var(--bad);
  background: #ef44442e;
}

.cb-pod-plus {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.cb-pod-toggle-wrap {
  display: inline-block;
  position: relative;
}

.cb-pod-toggle {
  border: 1px solid var(--border);
  height: 36px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .1s, border-color .1s, color .1s;
  display: inline-flex;
}

.cb-pod-toggle:hover:not(:disabled) {
  background: var(--surface-2);
}

.cb-pod-toggle.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.cb-pod-toggle.warn {
  border-color: var(--bad);
  color: var(--bad);
}

.cb-pod-toggle:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-pod-toggle-count {
  background: var(--surface);
  min-width: 16px;
  height: 16px;
  color: var(--text-3);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin-left: 2px;
  padding: 0 4px;
  font-size: 10.5px;
  display: inline-flex;
}

.cb-pod-toggle.active .cb-pod-toggle-count {
  background: var(--accent);
  color: #fff;
}

.cb-pod-send {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  transition: background .1s, transform .1s;
  display: inline-flex;
}

.cb-pod-send:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: scale(1.05);
}

.cb-pod-send:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cb-pod-stop {
  background: var(--bad);
}

.cb-pod-stop:hover {
  background: #b91c1c;
}

.cb-plus-wrap {
  position: relative;
}

.cb-plus-menu {
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 240px;
  box-shadow: var(--shadow-card), 0 8px 24px #0000001a;
  border-radius: 12px;
  padding: 6px;
  animation: .12s ease-out cb-pop-in;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
}

.cb-plus-menu-section {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
}

.cb-plus-menu-divider {
  background: var(--border);
  height: 1px;
  margin: 4px 0;
}

.cb-plus-item {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  transition: background .1s;
  display: flex;
}

.cb-plus-item:hover {
  background: var(--surface-2);
}

.cb-plus-icon {
  flex-shrink: 0;
  width: 22px;
  font-size: 16px;
}

.cb-plus-text {
  flex-direction: column;
  gap: 1px;
  display: flex;
}

.cb-plus-hint {
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .cb-plus-menu {
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: 70vh;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
    z-index: 1000;
    border-radius: 16px;
    position: fixed;
    inset: auto 8px 8px;
    overflow-y: auto;
    box-shadow: 0 -8px 32px #0000002e;
  }

  .cb-plus-menu:before {
    content: "";
    background: var(--border-strong, var(--border));
    border-radius: 2px;
    width: 36px;
    height: 4px;
    margin: 4px auto 8px;
    display: block;
  }

  .cb-plus-item {
    padding: 14px 12px;
    font-size: 14px;
  }
}

.cb-pod-err {
  color: var(--bad);
  white-space: pre-wrap;
  background: #ef444414;
  border: 1px solid #ef444440;
  border-radius: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .cb-pod-toggle {
    padding: 0 9px;
    font-size: 11.5px;
  }

  .cb-pod-iconbtn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .cb-pod-send {
    width: 32px;
    height: 32px;
  }

  .cb-pod-toolbar {
    gap: 4px;
    padding: 4px;
  }

  .cb-pod-toolbar-left {
    gap: 4px;
  }

  .cb-pod-toolbar-right {
    flex-shrink: 0;
    gap: 4px;
  }

  .cb-pod-toolbar-left {
    scrollbar-width: none;
    flex: 1 1 0;
    min-width: 0;
    overflow: auto hidden;
  }

  .cb-pod-toolbar-left::-webkit-scrollbar {
    display: none;
  }

  .cb-pod-model-btn {
    max-width: 120px;
    height: 32px;
    padding: 0 8px;
    font-size: 11.5px;
  }

  .cb-pod-iconbtn, .cb-pod-toggle {
    flex-shrink: 0;
  }
}

.cb-attach-strip {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text-2);
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.cb-attach-strip-label {
  color: var(--accent);
  white-space: nowrap;
  margin-right: 2px;
  font-weight: 600;
}

.cb-attach-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  max-width: 280px;
  padding: 2px 4px 2px 10px;
  display: inline-flex;
}

.cb-attach-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  flex: 1;
  font-size: 11.5px;
  overflow: hidden;
}

.cb-attach-del {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  transition: background .1s, color .1s;
  display: inline-flex;
}

.cb-attach-del:hover {
  background: var(--bad);
  color: #fff;
}

.cb-meeting-modal {
  z-index: 250;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 5vh 5vw;
  overflow: hidden;
  box-shadow: 0 24px 64px #0003;
}

.cb-meeting-modal.cb-meeting-modal-narrow {
  inset: 10vh max(5vw, 50vw - 320px);
}

.cb-meeting-topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  display: flex;
}

.cb-meeting-title {
  color: var(--text);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.cb-meeting-name-input {
  border: 1px dashed var(--border);
  min-width: 180px;
  color: var(--text);
  background: none;
  border-radius: 6px;
  outline: none;
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  transition: border-color .12s;
}

.cb-meeting-name-input:focus {
  border-style: solid;
  border-color: var(--accent);
}

.cb-meeting-toolbar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.cb-meeting-error {
  color: var(--bad);
  background: #ef44441a;
  border-bottom: 1px solid #ef44444d;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.6;
}

.cb-meeting-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.cb-meeting-left {
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.cb-meeting-mic-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  display: flex;
}

.cb-meeting-mic-strip .cb-mic-level-wrap {
  flex: 1;
  min-width: 80px;
  margin: 0;
}

.cb-meeting-mic-warn {
  color: var(--bad);
  background: #ef44441a;
  border: 1px solid #ef44444d;
  border-radius: 8px;
  margin: 12px 18px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}

.cb-meeting-transcript {
  color: var(--text);
  word-break: break-word;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  display: flex;
  overflow-y: auto;
}

.cb-mtg-tx-block {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.cb-mtg-tx-meta {
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 2px;
  width: 88px;
  padding-top: 2px;
  display: flex;
}

.cb-mtg-tx-speaker {
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  max-width: 88px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
  overflow: hidden;
}

.cb-mtg-tx-block[data-speaker="ME"] .cb-mtg-tx-speaker {
  background: var(--accent-soft);
  color: var(--accent);
}

.cb-mtg-tx-block[data-speaker="OPP"] .cb-mtg-tx-speaker {
  color: var(--good, #16a34a);
  background: #16a34a1f;
}

.cb-mtg-tx-block[data-speaker="S"] .cb-mtg-tx-speaker {
  color: #a855f7;
  background: #a855f71f;
}

.cb-mtg-tx-time {
  color: var(--text-3);
  letter-spacing: -.02em;
  font-family: SF Mono, ui-monospace, monospace;
  font-size: 10.5px;
}

.cb-mtg-tx-text {
  white-space: pre-wrap;
  flex: 1;
  min-width: 0;
}

.cb-mtg-tx-sent {
  margin: 0 0 4px;
  line-height: 1.6;
}

.cb-mtg-tx-sent:last-child {
  margin-bottom: 0;
}

.cb-mtg-tx-text-partial {
  color: var(--text-2);
  opacity: .75;
}

.cb-mtg-tx-block-partial .cb-mtg-tx-speaker {
  opacity: .6;
}

.cb-meeting-right {
  background: var(--surface-2);
  flex-direction: column;
  width: 380px;
  max-width: 42vw;
  padding: 6px 0;
  display: flex;
  overflow-y: auto;
}

.cb-mtg-setup-modal {
  z-index: 260;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
  width: 480px;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 64px #0003;
}

.cb-mtg-setup-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
}

.cb-mtg-setup-close {
  appearance: none;
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 16px;
}

.cb-mtg-setup-close:hover {
  background: var(--surface);
  color: var(--text);
}

.cb-mtg-setup-body {
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  display: flex;
  overflow-y: auto;
}

.cb-mtg-setup-field {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.cb-mtg-setup-label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.cb-mtg-setup-foot {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  display: flex;
}

.cb-mtg-section {
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.cb-mtg-section:last-child {
  border-bottom: none;
}

.cb-mtg-section-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  display: flex;
}

.cb-mtg-section-label {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11.5px;
  font-weight: 600;
}

.cb-mtg-progress {
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 999px;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
}

.cb-mtg-tone {
  background: var(--surface);
  border: 1px solid var(--border);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-2);
  border-radius: 6px;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 400;
}

.cb-mtg-force-btn {
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
}

.cb-mtg-force-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cb-mtg-force-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.cb-mtg-bg-input {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text);
  resize: vertical;
  border-radius: 8px;
  outline: none;
  min-height: 50px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.cb-mtg-bg-input:focus {
  border-color: var(--accent);
}

.cb-mtg-scenario-select {
  width: 100%;
  padding: 7px 28px 7px 10px;
  font-size: 13px;
}

.cb-mtg-subject-fields {
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.cb-mtg-subject-field {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.cb-mtg-subject-label {
  color: var(--text-3);
  font-size: 11px;
}

.cb-mtg-required {
  color: var(--bad);
}

.cb-mtg-subject-input {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text);
  border-radius: 6px;
  outline: none;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 12.5px;
}

.cb-mtg-subject-input:focus {
  border-color: var(--accent);
}

.cb-mtg-subject-input::placeholder {
  color: var(--text-muted);
}

.cb-mtg-scenarios {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.cb-mtg-scenario {
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  transition: background .1s;
  display: flex;
}

.cb-mtg-scenario:hover {
  background: var(--surface-3);
}

.cb-mtg-scenario-status {
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  flex-shrink: 0;
  width: 22px;
  padding: 0;
  font-size: 15px;
}

.cb-mtg-scenario-text {
  color: var(--text);
  flex: 1;
}

.cb-mtg-status-done .cb-mtg-scenario-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.cb-mtg-status-skip .cb-mtg-scenario-text {
  opacity: .55;
}

.cb-mtg-status-priority .cb-mtg-scenario-text {
  color: var(--accent);
  font-weight: 600;
}

.cb-mtg-scenario-del {
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  font-size: 14px;
  transition: opacity .1s;
}

.cb-mtg-scenario:hover .cb-mtg-scenario-del {
  opacity: 1;
}

.cb-mtg-scenario-del:hover {
  color: var(--bad);
}

.cb-mtg-add-row {
  margin-top: 4px;
}

.cb-mtg-add-input {
  background: var(--surface);
  border: 1px dashed var(--border);
  width: 100%;
  color: var(--text);
  border-radius: 6px;
  outline: none;
  padding: 6px 10px;
  font-size: 13px;
}

.cb-mtg-add-input:focus {
  border-style: solid;
  border-color: var(--accent);
}

.cb-mtg-summary {
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 220px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  overflow-y: auto;
}

.cb-mtg-meta {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 11px;
}

.cb-mtg-err {
  color: var(--bad);
  background: #ef44440f;
  border-radius: 6px;
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 11.5px;
}

.cb-mtg-placeholder {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.cb-mtg-mode-switch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}

.cb-mtg-mode-btn {
  color: var(--text-3);
  cursor: pointer;
  background: none;
  border: none;
  padding: 3px 9px;
  font-size: 11.5px;
}

.cb-mtg-mode-btn.active {
  background: var(--accent);
  color: #fff;
}

.cb-mtg-style-row {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  display: flex;
}

.cb-mtg-style-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
}

.cb-mtg-style-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.cb-mtg-replies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-mtg-reply {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
}

.cb-mtg-reply-text {
  flex: 1;
}

.cb-mtg-reply-copy {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 0 2px;
  font-size: 13px;
}

.cb-mtg-reply-copy:hover {
  color: var(--accent);
}

.cb-mtg-entities {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.cb-mtg-entity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.cb-mtg-entity-company {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cb-mtg-entity-personal {
  background: #6366f10f;
  border-color: #6366f180;
}

.cb-mtg-entity-none {
  opacity: .7;
}

.cb-mtg-entity-head {
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  display: flex;
}

.cb-mtg-entity-name {
  color: var(--text);
  font-weight: 600;
}

.cb-mtg-entity-source {
  color: var(--text-3);
  white-space: nowrap;
  font-size: 10.5px;
}

.cb-mtg-entity-snippet {
  color: var(--text-2);
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.cb-mtg-actions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-mtg-action {
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  display: flex;
}

.cb-mtg-action:last-child {
  border-bottom: none;
}

.cb-mtg-action-owner {
  color: var(--accent);
  min-width: 48px;
  font-weight: 600;
}

.cb-mtg-action-due {
  color: var(--text-3);
  min-width: 56px;
  font-size: 11px;
}

.cb-mtg-action-task {
  color: var(--text);
  flex: 1;
}

.cb-mtg-empty {
  color: var(--text-muted);
  padding: 6px 0;
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 900px) {
  .cb-meeting-modal {
    border-radius: 0;
    inset: 0;
  }

  .cb-meeting-body {
    flex-direction: column;
  }

  .cb-meeting-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cb-meeting-right {
    width: auto;
    max-width: none;
  }
}

/*# sourceMappingURL=src_app_02j3ny3._.css.map*/