:root {
  color-scheme: light;
  --canvas: #faf7f4;
  --canvas-deep: #f4eee9;
  --paper: #ffffff;
  --paper-soft: #fffaf7;
  --ink: #281d19;
  --ink-soft: #4d403b;
  --muted: #766963;
  --faint: #9a8981;
  --line: #eee1da;
  --line-strong: #dcc8bf;
  --accent: #cf4228;
  --accent-deep: #aa3321;
  --accent-soft: #ffede5;
  --accent-pale: #fff6f1;
  --sage: #b84a32;
  --sage-soft: #ffede7;
  --sky: #b55b3c;
  --sky-soft: #fff0ea;
  --danger: #a93422;
  --shadow-sm: 0 1px 2px rgba(77, 44, 31, .04), 0 8px 24px rgba(77, 44, 31, .035);
  --shadow-lg: 0 24px 70px rgba(77, 44, 31, .12), 0 2px 8px rgba(77, 44, 31, .04);
  --font: "Avenir Next", "Segoe UI Variable Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  --display: "Avenir Next", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --ease: cubic-bezier(.22, .72, .24, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(244, 121, 74, .22);
  outline-offset: 2px;
}

button:disabled {
  cursor: default;
}

::selection {
  color: #3e261e;
  background: #ffdccc;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(88, 91, 83, .14);
  border: 3px solid transparent;
  border-radius: 10px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 91, 83, .24);
  border: 3px solid transparent;
  background-clip: content-box;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
}

body.embed-mode .app-shell {
  display: block;
}

body.embed-mode .sidebar,
body.embed-mode .mobile-menu,
body.embed-mode .sidebar-scrim,
body.embed-mode .sidebar-close {
  display: none !important;
}

body.embed-mode .main {
  height: 100dvh;
}

body.bare-embed .topbar {
  display: none;
}

body.bare-embed .main {
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
}

body.bare-embed .stage {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent !important;
}

body.bare-embed,
body.bare-embed .app-shell {
  background: transparent !important;
}

html.bare-embed {
  background: transparent !important;
}

body.bare-embed .winter-scene-layer {
  display: none !important;
}

body.bare-embed .composer-zone {
  display: none !important;
}

body.bare-embed #visitBoard,
body.bare-embed #visitDanmaku {
  display: none !important;
}

body.embed-mode .topbar {
  height: 56px;
  padding: 0 18px;
}

body.embed-mode .topbar::after {
  right: 18px;
  left: 18px;
}

body.embed-mode .welcome {
  width: calc(100% - 28px);
  padding-top: 42px;
}

body.embed-mode .hero-avatar {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
}

body.embed-mode .welcome h1 {
  font-size: 34px;
}

body.embed-mode .starter-list {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 460px;
  gap: 7px;
  margin-top: 24px;
}

body.embed-mode .starter {
  min-height: 55px;
}

body.embed-mode .chat-view {
  width: calc(100% - 30px);
}

body.embed-mode .composer-zone {
  padding-right: 14px;
  padding-left: 14px;
}

.sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 14px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(300px 220px at -20% 0%, rgba(244, 121, 74, .07), transparent 72%),
    var(--canvas-deep);
  border-right: 1px solid var(--line);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 7px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  user-select: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--accent);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: none;
}

.brand-mark .mark-sun {
  fill: var(--accent);
}

.brand-mark .mark-leaf {
  fill: var(--sage);
}

.brand-mark-sm {
  width: 31px;
  height: 31px;
}

.avatar-orb {
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #eeeae4;
  border: 1px solid rgba(73, 64, 55, .12);
  border-radius: 50%;
}

.avatar-orb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-avatar {
  width: 33px;
  height: 33px;
  box-shadow: 0 3px 10px rgba(60, 51, 43, .12);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .18s, background .18s;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button:hover {
  color: var(--ink);
  background: rgba(37, 39, 37, .06);
}

.sidebar-close,
.mobile-menu,
.sidebar-scrim {
  display: none;
}

.new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 13px 0 15px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(37, 39, 37, .12);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s, background .16s;
}

.new-chat:hover {
  background: var(--accent-deep);
  box-shadow: 0 9px 24px rgba(37, 39, 37, .17);
}

.new-chat:active {
  transform: translateY(1px);
}

.new-chat svg {
  width: 18px;
  height: 18px;
}

.new-chat span {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}

.new-chat kbd {
  padding: 2px 6px;
  color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  font: 10px/1.4 var(--font);
}

.sidebar-features {
  min-width: 0;
  margin-top: 12px;
}

.sidebar-features-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 4px 9px 4px 11px;
  color: var(--faint);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color .16s, background .16s;
}

.sidebar-features-toggle:hover {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .46);
}

.sidebar-features-title,
.sidebar-features-state {
  display: inline-flex;
  align-items: center;
}

.sidebar-features-title {
  min-width: 0;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.sidebar-features-title > svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

.sidebar-features-title small {
  padding: 1px 6px;
  color: var(--faint);
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(217, 218, 211, .72);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-feature-group {
  margin: 4px 0 6px;
}

.sidebar-feature-group > summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  color: var(--ink-soft);
  list-style: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.sidebar-feature-group > summary::-webkit-details-marker {
  display: none;
}

.sidebar-feature-group > summary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
}

.sidebar-feature-group > summary > span:first-child {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.sidebar-feature-group > summary b {
  font-size: 10.5px;
  font-weight: 700;
}

.sidebar-feature-group > summary small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-feature-group-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(217, 218, 211, .82);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.sidebar-feature-group > summary > svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}

.sidebar-feature-group[open] > summary > svg {
  transform: rotate(90deg);
}

.sidebar-feature-group-list {
  display: grid;
  gap: 6px;
  padding: 4px 0 2px;
}

.sidebar-feature-group-list .skills-nav {
  margin-top: 0;
}

.sidebar-features-state {
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.feature-toggle-chevron {
  width: 14px;
  height: 14px;
  transition: transform .22s var(--ease);
}

.sidebar-features.is-collapsed .feature-toggle-chevron {
  transform: rotate(180deg);
}

.sidebar-features-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .24s var(--ease),
    opacity .18s ease;
}

.sidebar-features-body-inner {
  min-height: 0;
  overflow: hidden;
}

.sidebar-features.is-collapsed .sidebar-features-body {
  grid-template-rows: minmax(0, 0fr);
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .24s var(--ease),
    opacity .12s ease,
    visibility 0s linear .24s;
}

.history-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  margin: 15px 2px 13px;
  padding: 0 11px;
  color: var(--faint);
  border: 1px solid transparent;
  border-radius: 11px;
  transition: background .16s, border-color .16s;
}

.history-search:focus-within {
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  border-color: var(--line);
}

.history-search svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.history-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.history-search input::placeholder {
  color: var(--faint);
}

.history-section {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  flex-direction: column;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 11px 7px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}

.text-button {
  padding: 2px 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink-soft);
}

.history-list {
  min-height: 0;
  padding: 0 1px 8px;
  overflow: visible;
}

.history-empty {
  padding: 20px 12px 28px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

.project-group {
  margin: 0 0 7px;
}

.project-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 9px;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.project-row:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .56);
}

.project-group.is-current .project-row {
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(222, 202, 193, .78);
  box-shadow: 0 1px 2px rgba(62, 43, 35, .035);
}

.project-folder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  margin-right: 8px;
  color: var(--muted);
}

.project-group.is-current .project-folder {
  color: var(--accent);
}

.project-folder svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.project-row-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--faint);
}

.project-row-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  color: var(--faint);
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(225, 211, 204, .72);
  border-radius: 999px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.project-group.is-current .project-row-count {
  color: var(--muted);
  background: var(--accent-pale);
  border-color: rgba(207, 66, 40, .13);
}

.project-row-chevron {
  width: 13px;
  height: 13px;
  transition: transform .18s var(--ease);
}

.project-group.is-collapsed .project-row-chevron {
  transform: rotate(-90deg);
}

.project-sessions {
  display: grid;
  gap: 1px;
  padding: 2px 0 3px 34px;
}

.project-group.is-collapsed .project-sessions {
  display: none;
}

.project-empty {
  padding: 8px 10px 9px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
}

.project-session-row {
  position: relative;
  min-width: 0;
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 7px 36px 7px 9px;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s, background .15s;
}

.history-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .67);
}

.history-item.active {
  color: var(--ink);
  background: transparent;
}

.history-item-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-time {
  position: absolute;
  right: 12px;
  color: var(--faint);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.history-item:hover .history-item-time {
  opacity: 0;
}

.history-active-dot {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  display: none;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .09);
  transition: opacity .14s ease;
}

.history-item.active .history-active-dot {
  display: block;
}

.history-item.active .history-item-time {
  opacity: 0;
}

.history-item:hover .history-active-dot {
  opacity: 0;
}

.history-delete {
  position: absolute;
  top: 50%;
  right: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 7px;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 1;
}

.history-delete svg {
  width: 14px;
  height: 14px;
}

.project-session-row:hover .history-delete,
.history-delete:focus-visible {
  opacity: 1;
}

.history-delete:hover {
  color: var(--danger);
  background: rgba(199, 82, 66, .08);
}

.workspace-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 2px;
  padding: 10px 11px;
  color: var(--ink-soft);
  text-decoration: none;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

.workspace-link:hover {
  background: rgba(255, 255, 255, .46);
}

.studio-workspace-link {
  margin-top: -8px;
  border-top: 0;
}

.browser-assistant-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-download-icon {
  width: 26px !important;
  height: 26px !important;
  flex: none;
  padding: 6px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(207, 66, 40, .12);
  border-radius: 8px;
  transition: color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
}

.browser-assistant-link:hover .browser-download-icon {
  color: var(--paper);
  background: var(--accent);
  transform: translateY(1px);
}

.workspace-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 9px;
}

.workspace-icon svg {
  width: 17px;
  height: 17px;
}

.workspace-link > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.workspace-link b {
  font-size: 12.5px;
  font-weight: 600;
}

.workspace-link small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 10px;
}

.chevron {
  width: 15px !important;
  height: 15px !important;
  color: var(--faint);
}

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

.local-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 9px 9px;
  color: var(--faint);
  font-size: 10px;
}

.local-badge b {
  font-weight: 400;
}

.local-badge.external {
  color: #a06b2e;
}

.local-badge.external .privacy-dot {
  background: #d69a47;
}

.local-badge span,
.local-pill span,
.model-status i,
.call-private i {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
  border-radius: 50%;
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

.profile:hover {
  background: rgba(255, 255, 255, .57);
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex: none;
  color: #754631;
  background: #f7ded1;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}

.profile-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.profile-copy b {
  font-size: 12px;
  font-weight: 600;
}

.profile-copy small {
  color: var(--faint);
  font-size: 10px;
}

.profile > svg {
  width: 17px;
  height: 17px;
  color: var(--faint);
}

.main {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background:
    radial-gradient(760px 440px at 58% -20%, rgba(255, 238, 226, .48), transparent 66%),
    linear-gradient(180deg, #fcfcfa, var(--canvas));
}

.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  flex: none;
  padding: 0 28px;
}

.topbar::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 231, 225, .9) 20%, rgba(231, 231, 225, .9) 80%, transparent);
  content: "";
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.topbar-title > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.topbar-kicker {
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .08em;
}

.topbar-name {
  max-width: min(440px, 50vw);
  overflow: hidden;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-brand-mark {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s, background .16s;
}

.model-status:hover {
  color: var(--ink);
  background: rgba(37, 39, 37, .045);
}

.model-status.offline i {
  background: #a5a6a0;
}

.model-status.busy i {
  background: #d4a14d;
  animation: softPulse 1.6s infinite;
}

.model-status.external i {
  background: var(--accent);
}

.model-status.external.busy i {
  background: #d69a47;
}

.model-status.external.offline i {
  background: #c77958;
}

.top-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s, background .16s, border-color .16s;
}

.top-login:hover {
  color: #fff;
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}

.top-login:active {
  transform: translateY(0) scale(.98);
}

.top-login svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s, background .16s;
}

.top-call:hover {
  background: var(--accent-deep);
}

.top-call:active {
  transform: scale(.98);
}

.top-call svg {
  width: 15px;
  height: 15px;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.welcome {
  position: relative;
  display: flex;
  width: min(780px, calc(100% - 56px));
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(58px, 8vh, 90px) 0 290px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.welcome-glow {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 440px;
  height: 330px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 198, 165, .19), transparent 78%),
    radial-gradient(closest-side at 70% 30%, rgba(206, 225, 206, .16), transparent 74%);
  filter: blur(12px);
}

.hero-mark {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  filter: drop-shadow(0 12px 16px rgba(215, 115, 75, .12));
  animation: heroIn .72s var(--ease) both;
}

.hero-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow:
    0 15px 34px rgba(74, 57, 45, .16),
    0 0 0 1px rgba(199, 169, 150, .18);
  animation: heroIn .72s var(--ease) both;
}

.welcome-time {
  position: relative;
  margin: 0 0 3px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  animation: heroIn .72s .04s var(--ease) both;
}

.welcome h1 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 580;
  line-height: 1.18;
  letter-spacing: -.055em;
  animation: heroIn .72s .07s var(--ease) both;
}

.welcome-lead {
  position: relative;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .005em;
  animation: heroIn .72s .1s var(--ease) both;
}

.welcome-lead b,
.welcome-lead span {
  display: block;
}

.welcome-lead b {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.welcome-lead span {
  max-width: 560px;
  line-height: 1.7;
}

.starter-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 30px;
  animation: heroIn .72s .14s var(--ease) both;
}

.starter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 69px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .64);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}

.starter:hover {
  transform: translateY(-2px);
  background: var(--paper);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.starter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
}

.starter-icon svg {
  width: 17px;
  height: 17px;
}

.starter-icon.clay {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.starter-icon.sage {
  color: var(--sage);
  background: var(--sage-soft);
}

.starter-icon.sky {
  color: var(--sky);
  background: var(--sky-soft);
}

.starter-icon.ember {
  color: #9c6218;
  background: #fff1d4;
}

.starter > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.starter b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starter small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starter .chevron {
  display: none;
}

.chat-view {
  width: min(820px, calc(100% - 56px));
  margin: 0 auto;
  padding: 33px 0 250px;
}

.conversation-title {
  padding: 7px 0 28px;
  border-bottom: 1px solid var(--line);
}

.conversation-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.conversation-title p {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
}

.message {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
}

.message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 10px;
}

.message-avatar.assistant {
  overflow: hidden;
  padding: 0;
  background: #f0ece7;
  border: 1px solid #e5ddd6;
}

.message-avatar.assistant .avatar-orb {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 9px;
}

.message-avatar.user {
  color: #75503d;
  background: #f5dfd2;
  font-size: 11px;
  font-weight: 650;
}

.message-body {
  min-width: 0;
  flex: 1;
}

.message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  margin-bottom: 5px;
}

.message-head b {
  font-size: 12px;
  font-weight: 650;
}

.message-head span {
  color: var(--faint);
  font-size: 9.5px;
}

.message.user {
  justify-content: flex-end;
  padding-left: 60px;
}

.message.user .message-avatar {
  order: 2;
}

.message.user .message-body {
  flex: 0 1 auto;
  max-width: 82%;
}

.message.user .message-head {
  justify-content: flex-end;
}

.message.user .message-content {
  padding: 11px 15px;
  background: #f5e8df;
  border-radius: 16px 4px 16px 16px;
  color: #423b36;
  font-size: 13.5px;
  line-height: 1.72;
  white-space: normal;
  overflow-wrap: anywhere;
}

.message.user .message-text {
  white-space: pre-wrap;
}

.message.user .message-content.has-attachments {
  width: min(520px, 100%);
  padding: 9px;
}

.message-text + .message-attachments {
  margin-top: 9px;
}

.message-attachments {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.message-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.message-image-grid.single {
  grid-template-columns: 1fr;
}

.message-image-card {
  position: relative;
  display: block;
  min-height: 92px;
  overflow: hidden;
  background: #eee9e3;
  border: 1px solid rgba(92, 73, 60, .1);
  border-radius: 10px;
  text-decoration: none !important;
}

.message-image-card img {
  display: block;
  width: 100%;
  max-height: 270px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s var(--ease);
}

.message-image-grid:not(.single) .message-image-card img {
  height: 128px;
  aspect-ratio: auto;
}

.message-image-card:hover img {
  transform: scale(1.025);
}

.message-image-card span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  overflow: hidden;
  padding: 5px 7px;
  color: #fff;
  background: rgba(31, 32, 29, .68);
  border-radius: 6px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.message-user-sequences {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.message-image-sequence {
  display: flex;
  width: min(560px, 100%);
  gap: 8px;
  margin: 0;
  padding: 0 0 5px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.message-sequence-item {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(260px, 76vw);
  flex: 0 0 min(260px, 76vw);
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(92, 73, 60, .12);
  border-radius: 12px;
  scroll-snap-align: start;
}

.message-sequence-image {
  display: block;
  min-height: 120px;
  overflow: hidden;
  background: #eee9e3;
}

.message-sequence-image img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  transition: transform .2s var(--ease);
}

.message-sequence-image:hover img {
  transform: scale(1.02);
}

.message-sequence-index {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  color: #fff;
  background: rgba(44, 34, 29, .76);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  place-items: center;
  backdrop-filter: blur(8px);
}

.message-sequence-caption {
  overflow: hidden;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-image-waiting {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 11px;
  background: linear-gradient(110deg, #fbefe8, #f6f2ee 62%, #eef4ef);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.message-image-waiting > span {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, .78);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 14px;
  place-items: center;
}

.message-image-waiting > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.message-image-waiting b {
  font-size: 10px;
  font-weight: 650;
}

.message-image-waiting small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
}

.message-image-waiting > i {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(207, 66, 40, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: imageWait .8s linear infinite;
}

.message-image-error {
  padding: 8px 10px;
  color: #8e4c3b;
  background: #fff2ec;
  border: 1px solid rgba(207, 66, 40, .13);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.55;
}

@keyframes imageWait {
  to { transform: rotate(360deg); }
}

.message-file-list {
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.message-file-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(124, 91, 69, .1);
  border-radius: 9px;
  cursor: pointer;
}

.message-file-card:hover {
  background: rgba(255, 255, 255, .95);
}

.message-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: none;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 8px;
}

.message-file-icon svg {
  width: 14px;
  height: 14px;
}

.message-file-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.message-file-copy b,
.message-file-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file-copy b {
  font-size: 10.5px;
  font-weight: 620;
}

.message-file-copy small {
  color: var(--faint);
  font-size: 8.5px;
}

.message-file-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--faint);
}

.message-reply-cards {
  display: flex;
  width: min(680px, 100%);
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.message-reply-card {
  overflow: hidden;
  background: linear-gradient(160deg, #fffdfb, #fff6ef);
  border: 1px solid rgba(105, 73, 57, .14);
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 16px 42px rgba(61, 42, 32, .08);
}

.reply-card-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
}

.reply-card-head.compact {
  padding-bottom: 8px;
}

.reply-card-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 10px;
}

.reply-card-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reply-card-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.reply-card-heading small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.reply-card-heading b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #2b7052;
  background: #e8f6ef;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
}

.reply-card-status i {
  width: 5px;
  height: 5px;
  background: #38a46f;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(56, 164, 111, .12);
}

.reply-card-architecture {
  color: #f8f4ed;
  background:
    radial-gradient(circle at 92% 5%, rgba(116, 197, 207, .22), transparent 31%),
    linear-gradient(145deg, #142431 0%, #1d3140 58%, #12212c 100%);
  border-color: rgba(164, 201, 208, .22);
  box-shadow: 0 18px 48px rgba(17, 36, 49, .18);
}

.reply-card-architecture .reply-card-mark {
  color: #b8ecf1;
  background: rgba(158, 226, 233, .13);
  border: 1px solid rgba(184, 236, 241, .16);
}

.reply-card-architecture .reply-card-heading small {
  color: #86b9c4;
}

.reply-card-architecture .reply-card-heading b {
  color: #fbf8f1;
}

.architecture-preview {
  position: relative;
  min-height: 170px;
  margin: 0 13px;
  overflow: hidden;
  background:
    linear-gradient(rgba(42, 82, 92, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 82, 92, .075) 1px, transparent 1px),
    #fbfaf6;
  background-size: 18px 18px;
  border: 1px solid rgba(208, 228, 230, .28);
  border-radius: 12px;
}

.architecture-preview > a {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 10px;
}

.architecture-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.architecture-preview figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  color: #4b6470;
  background: rgba(251, 250, 246, .88);
  border: 1px solid rgba(67, 103, 112, .12);
  border-radius: 7px;
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 650;
}

.architecture-preview.is-placeholder {
  display: grid;
  min-height: 170px;
  grid-template-columns: repeat(3, minmax(42px, 78px));
  grid-template-rows: repeat(2, 32px);
  place-content: center;
  gap: 14px;
}

.architecture-preview.is-placeholder i {
  position: relative;
  display: block;
  background: #e5eef0;
  border: 1px solid #b8ced2;
  border-radius: 6px;
}

.architecture-preview.is-placeholder i::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 15px;
  height: 1px;
  background: #9bb7bd;
  content: "";
}

.architecture-preview.is-placeholder i:nth-child(3)::after,
.architecture-preview.is-placeholder i:nth-child(5)::after {
  display: none;
}

.architecture-preview.is-placeholder i:nth-child(4) {
  grid-column: 2;
}

.architecture-preview.is-placeholder i:nth-child(5) {
  grid-column: 3;
}

.reply-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 15px 10px;
}

.reply-card-copy p {
  margin: 0;
  color: rgba(248, 244, 237, .8);
  font-size: 11.5px;
  line-height: 1.65;
}

.reply-card-copy > small {
  color: #8fb6be;
  font-size: 9px;
  line-height: 1.55;
}

.reply-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.reply-card-chips span {
  padding: 4px 7px;
  color: #c5e7ea;
  background: rgba(157, 215, 222, .1);
  border: 1px solid rgba(157, 215, 222, .16);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .05em;
}

.reply-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px 14px;
}

.reply-card-primary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #132b37;
  background: #d6f1f2;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 720;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.reply-card-primary:hover {
  background: #effcfc;
}

.reply-card-primary:active {
  transform: translateY(1px);
}

.reply-card-primary svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.reply-card-files {
  position: relative;
}

.reply-card-files summary {
  padding: 7px 9px;
  color: #b9d7dc;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(185, 215, 220, .13);
  border-radius: 8px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 650;
  list-style: none;
}

.reply-card-files summary::-webkit-details-marker {
  display: none;
}

.reply-card-files > div {
  position: static;
  display: flex;
  width: min(310px, 72vw);
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 6px;
  background: #f9fbfb;
  border: 1px solid #d5e2e4;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(9, 29, 38, .12);
}

.reply-card-files > div a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px;
  color: #1c3742;
  border-radius: 7px;
  text-decoration: none;
}

.reply-card-files > div a:hover {
  background: #edf6f7;
}

.reply-card-files > div span {
  display: grid;
  min-height: 24px;
  place-items: center;
  color: #376977;
  background: #e3f0f2;
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 760;
}

.reply-card-files > div b {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-card-timeline,
.reply-card-metrics {
  background: linear-gradient(160deg, #fffdf9, #f8f7f2);
}

.reply-card-timeline ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 2px 16px 15px;
  list-style: none;
}

.reply-card-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  padding: 3px 0 12px;
}

.reply-card-timeline li::before {
  position: absolute;
  top: 15px;
  bottom: -1px;
  left: 5px;
  width: 1px;
  background: #dcd8cf;
  content: "";
}

.reply-card-timeline li:last-child::before {
  display: none;
}

.reply-card-timeline li > i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  background: #fff;
  border: 2px solid #a8b3ad;
  border-radius: 50%;
}

.reply-card-timeline li.is-done > i {
  border-color: #3a966c;
  background: #3a966c;
}

.reply-card-timeline li.is-active > i {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.reply-card-timeline li.is-risk > i {
  border-color: #c5553e;
  background: #c5553e;
}

.reply-card-timeline li > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.reply-card-timeline time {
  color: var(--faint);
  font-size: 8px;
}

.reply-card-timeline b {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 680;
}

.reply-card-timeline small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.reply-card-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 4px 14px 14px;
}

.reply-card-metrics-grid article {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e6dfd5;
  border-radius: 11px;
}

.reply-card-metrics-grid small {
  color: var(--muted);
  font-size: 8.5px;
}

.reply-card-metrics-grid b {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 20px;
  font-weight: 600;
}

.reply-card-metrics-grid span {
  color: #34795c;
  font-size: 8px;
  font-weight: 650;
}

@media (max-width: 620px) {
  .reply-card-head {
    padding: 11px 12px;
  }

  .reply-card-status {
    display: none;
  }

  .architecture-preview {
    min-height: 130px;
    margin: 0 10px;
  }

  .architecture-preview > a {
    min-height: 130px;
  }

  .reply-card-copy {
    padding: 10px 12px 8px;
  }

  .reply-card-actions {
    flex-wrap: wrap;
    padding: 0 12px 12px;
  }

  .reply-card-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.message-deliverables {
  position: relative;
  width: min(520px, 100%);
  margin-top: 14px;
  padding: 11px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 247, 241, .92));
  border: 1px solid #ead7cc;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 10px 28px rgba(82, 51, 38, .055);
}

.message-deliverables::before {
  position: absolute;
  top: 0;
  left: 15px;
  width: 54px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  content: "";
}

.delivery-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 2px 10px;
}

.delivery-mark {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 9px;
}

.delivery-mark svg {
  width: 17px;
  height: 17px;
}

.delivery-heading-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.delivery-heading-copy b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 680;
  letter-spacing: .01em;
}

.delivery-heading-copy small {
  color: var(--muted);
  font-size: 9px;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delivery-file {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(121, 83, 64, .11);
  border-radius: 10px;
}

.delivery-file-type {
  position: relative;
  display: flex;
  width: 36px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: #fff8f4;
  border: 1px solid #ead6cb;
  border-radius: 7px;
}

.delivery-file-type::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: linear-gradient(225deg, #fff 49%, #efdbcf 50%);
  border-radius: 0 7px 0 3px;
  content: "";
}

.delivery-file-type b {
  transform: translateY(3px);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: .05em;
}

.delivery-file-type i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 1px;
  background: #ecd8cd;
}

.delivery-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.delivery-file-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-file-copy small {
  color: var(--muted);
  font-size: 8.5px;
}

.delivery-download {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  color: #fffaf7;
  background: var(--ink);
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.delivery-download:hover {
  background: var(--accent-deep);
}

.delivery-download:active {
  transform: translateY(1px);
}

.delivery-download svg {
  width: 12px;
  height: 12px;
}

.delivery-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.message-wechat-article {
  --article-card-accent: #cf4228;
  position: relative;
  display: grid;
  width: min(590px, 100%);
  margin-top: 16px;
  grid-template-columns: minmax(170px, .86fr) minmax(0, 1.34fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(207, 66, 40, .11), transparent 34%),
    linear-gradient(145deg, #fffdfb 0%, #fff7f2 100%);
  border: 1px solid #ead9cf;
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 18px 42px rgba(77, 45, 31, .09);
}

.message-wechat-article.theme-ocean {
  --article-card-accent: #aa3321;
}

.message-wechat-article.theme-clay {
  --article-card-accent: #bd4934;
}

.message-wechat-article::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  width: 64px;
  height: 4px;
  background: var(--article-card-accent);
  border-radius: 0 0 5px 5px;
  content: "";
}

.wechat-article-cover {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .88);
  background:
    linear-gradient(145deg, rgba(36, 29, 26, .9), rgba(87, 51, 39, .95));
  font-family: var(--serif);
  font-size: 58px;
  text-decoration: none;
}

.wechat-article-cover::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 13, 11, .02) 38%, rgba(18, 13, 11, .55) 100%);
  content: "";
  pointer-events: none;
}

.wechat-article-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.wechat-article-cover:hover img {
  transform: scale(1.025);
}

.wechat-article-cover i {
  position: absolute;
  z-index: 1;
  bottom: 13px;
  left: 14px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, .95);
  background: rgba(32, 24, 21, .5);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 660;
  letter-spacing: .08em;
}

.wechat-article-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.wechat-article-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.wechat-article-kicker span {
  overflow: hidden;
  color: var(--article-card-accent);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-article-kicker b {
  flex: none;
  padding: 3px 7px;
  color: #50705d;
  background: #edf5ef;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 680;
}

.wechat-article-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.035em;
}

.wechat-article-copy > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wechat-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 12px;
}

.wechat-article-meta span {
  padding: 4px 7px;
  color: #78645a;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(125, 86, 67, .12);
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 580;
}

.wechat-article-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
}

.wechat-article-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 680;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.wechat-article-actions a:hover {
  transform: translateY(-1px);
}

.wechat-article-open {
  color: #fffaf7;
  background: var(--ink);
}

.wechat-article-open:hover {
  background: var(--article-card-accent);
}

.wechat-article-download {
  color: #705d54;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #e4d4cb;
}

.wechat-article-download:hover {
  color: var(--ink);
  border-color: #cbb5a9;
}

.wechat-article-actions svg {
  width: 12px;
  height: 12px;
}

.wechat-article-actions a:focus-visible,
.wechat-article-cover:focus-visible {
  outline: 2px solid var(--article-card-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .message-wechat-article {
    grid-template-columns: 1fr;
  }

  .wechat-article-cover {
    min-height: 0;
    aspect-ratio: 900 / 383;
  }

  .wechat-article-copy {
    padding: 17px 16px 16px;
  }

  .wechat-article-actions {
    padding-top: 14px;
  }
}

.message.assistant .message-content {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.message-content > :first-child {
  margin-top: 0;
}

.message-content > :last-child {
  margin-bottom: 0;
}

.plan-block {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfb, #fff8f3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px 12px;
  border-bottom: 1px dashed var(--line);
}

.plan-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.plan-coverage {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 9px;
  font-weight: 650;
}

.coverage-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 13px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  font-size: 8px;
}

.coverage-chip.source-internal {
  color: var(--accent-deep);
}

.coverage-chip.source-market {
  color: #93651f;
}

.coverage-chip.source-github {
  color: #34373b;
}

.plan-head b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}

.plan-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plan-steps {
  margin: 0;
  padding: 6px 16px;
  list-style: none;
}

.plan-step {
  display: flex;
  gap: 10px;
  padding: 9px 0;
}

.plan-step + .plan-step {
  border-top: 1px solid rgba(238, 225, 218, .55);
}

.plan-step-no {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d8623d, var(--accent));
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.plan-step.source-market .plan-step-no {
  background: linear-gradient(135deg, #b88635, #93651f);
}

.plan-step.source-github .plan-step-no {
  background: linear-gradient(135deg, #5d6268, #34373b);
}

.plan-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.plan-step-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-step-top b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.plan-step-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-deep);
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.plan-step-tool .tool-source-label {
  padding-right: 5px;
  border-right: 1px solid currentColor;
  opacity: .66;
  font-size: 9px;
}

.plan-step-tool.source-market {
  border-color: #ead3aa;
  color: #93651f;
}

.plan-step-tool.source-github {
  border-color: #d1d3d4;
  color: #34373b;
}

a.plan-step-tool:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

a.plan-step-tool.source-market:hover {
  border-color: #93651f;
  background: #fff5df;
}

a.plan-step-tool.source-github:hover {
  border-color: #34373b;
  background: #f1f1ef;
}

.plan-step-tool svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-step-action {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plan-actions {
  display: flex;
  padding: 10px 16px 14px;
}

.plan-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d35a32, var(--accent));
  box-shadow: 0 6px 18px rgba(207, 66, 40, .22);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

.plan-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(207, 66, 40, .3);
}

.plan-primary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.external-shelf {
  padding: 13px 16px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .52);
}

.external-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.external-head > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.external-head b {
  color: var(--ink);
  font-size: 12px;
}

.external-head small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.external-count {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--faint);
  background: #faf7f4;
  font-size: 9px;
}

.external-shelf.is-fallback .external-count {
  color: #93651f;
  background: #fff5df;
}

.candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.tool-candidate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.tool-candidate:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.tool-candidate.source-github:hover {
  border-color: #9ea1a4;
}

.tool-candidate.source-market:hover {
  border-color: #cba15f;
}

.candidate-top,
.candidate-foot,
.candidate-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.candidate-top {
  justify-content: space-between;
}

.source-badge {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.source-badge.source-market {
  color: #93651f;
  background: #fff5df;
}

.source-badge.source-github {
  color: #fff;
  background: #34373b;
}

.source-badge.source-internal {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.candidate-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 8px;
}

.candidate-meta span + span::before {
  content: "/";
  margin-right: 5px;
  color: var(--line-strong);
}

.tool-candidate strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-why {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-foot {
  justify-content: space-between;
  color: var(--faint);
  font-size: 8px;
}

.candidate-foot > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-soft);
}

.candidate-foot svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.external-notice {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.plan-followups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}

.plan-followup {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}

.plan-followup:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-pale);
}

.markdown-body {
  min-width: 0;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 8px 0 13px;
  padding-left: 1.45em;
}

.markdown-body li {
  margin: 4px 0;
}

.markdown-body li::marker {
  color: #b96c4d;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.45;
}

.markdown-body h1 {
  font-size: 20px;
}

.markdown-body h2 {
  font-size: 17px;
}

.markdown-body h3 {
  font-size: 15px;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 14px;
}

.markdown-body strong {
  color: var(--ink);
  font-weight: 650;
}

.markdown-body code {
  padding: 1px 5px;
  color: #8b4e38;
  background: #f7eee9;
  border-radius: 4px;
  font: 12px/1.6 "SFMono-Regular", Consolas, monospace;
}

.markdown-body pre {
  position: relative;
  margin: 12px 0;
  padding: 28px 15px 13px;
  overflow: auto;
  color: #e8eae5;
  background: #2e312e;
  border-radius: 12px;
}

.markdown-body pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 9px;
  left: 14px;
  color: #aeb5ae;
  font: 650 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .03em;
  text-transform: lowercase;
}

.markdown-body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.markdown-body blockquote {
  margin: 12px 0;
  padding: 3px 0 3px 13px;
  color: var(--muted);
  border-left: 3px solid #e8cdbf;
}

.markdown-body .markdown-callout {
  padding: 11px 14px 11px 16px;
  color: var(--ink-soft);
  background:
    linear-gradient(90deg, rgba(244, 121, 74, .08), rgba(244, 121, 74, 0) 78%),
    var(--paper-soft);
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.markdown-body .markdown-callout > :last-child {
  margin-bottom: 0;
}

.markdown-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body hr {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
  border: 0;
}

.markdown-body del {
  color: var(--faint);
}

.markdown-body .markdown-figure {
  width: min(660px, 100%);
  margin: 16px 0 20px;
}

.markdown-body .markdown-image-link {
  display: block;
  overflow: hidden;
  color: inherit;
  background: #f0efe9;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.markdown-body .markdown-image-link > img {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  border-radius: 9px;
}

.markdown-body .markdown-figure img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #f2f1ec;
}

.markdown-body .markdown-figure figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.markdown-body .sxm-inline-icon-svg {
  display: inline-block;
  width: 1.03em;
  height: 1.03em;
  margin: 0 .18em;
  color: var(--accent);
  vertical-align: -.13em;
}

.markdown-body .sxm-viz {
  width: 100%;
  min-width: 0;
  margin: 16px 0 19px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0, rgba(229, 108, 61, .08), transparent 28%),
    var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(77, 44, 31, .045);
}

.markdown-body .sxm-viz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 13px 12px;
  background: rgba(255, 250, 247, .82);
  border-bottom: 1px solid var(--line);
}

.sxm-viz-identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}

.sxm-viz-icon {
  width: 31px;
  height: 31px;
  flex: none;
  padding: 7px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #f3d3c6;
  border-radius: 9px;
}

.sxm-viz-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-top: 1px;
}

.sxm-viz-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxm-viz-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxm-viz-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.sxm-viz-scroll-hint {
  display: none;
}

.sxm-block-action {
  display: inline-flex;
  min-height: 27px;
  padding: 4px 7px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font: 600 9px/1 var(--font);
  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.sxm-block-action:hover {
  color: var(--accent-deep);
  background: #fff;
  border-color: #e5c4b6;
}

.sxm-block-action.is-copied {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #eec1af;
}

.sxm-block-action:disabled {
  cursor: wait;
  opacity: .62;
}

.sxm-action-icon {
  width: 12px;
  height: 12px;
  flex: none;
}

.sxm-viz-canvas {
  width: 100%;
  min-width: 0;
  padding: 10px 10px 3px;
  overflow: auto;
  overscroll-behavior: contain;
}

.sxm-mindmap .sxm-viz-canvas {
  max-height: 560px;
}

.sxm-chart-stack {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sxm-chart-svg {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.sxm-donut-svg {
  width: min(310px, 100%);
  min-width: 0;
}

.sxm-series-0 {
  --sxm-series-color: #cf4228;
}

.sxm-series-1 {
  --sxm-series-color: #e56c3d;
}

.sxm-series-2 {
  --sxm-series-color: #d59a43;
}

.sxm-series-3 {
  --sxm-series-color: #8a776c;
}

.sxm-chart-grid-line {
  fill: none;
  stroke: #eee4de;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.sxm-chart-axis-line,
.sxm-chart-zero-line {
  fill: none;
  stroke: #d8c8c0;
  stroke-width: 1;
}

.sxm-chart-axis-label,
.sxm-chart-unit {
  fill: var(--faint);
  stroke: none;
  font-family: var(--font);
  font-size: 9.5px;
  font-weight: 500;
}

.sxm-chart-x-label {
  font-size: 9.5px;
}

.sxm-chart-unit {
  font-size: 8.5px;
  letter-spacing: .02em;
}

.sxm-chart-bar {
  fill: var(--sxm-series-color);
  stroke: none;
  opacity: .94;
}

.sxm-chart-bar:hover {
  opacity: 1;
}

.sxm-chart-line {
  fill: none;
  stroke: var(--sxm-series-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sxm-chart-point {
  fill: #fff;
  stroke: var(--sxm-series-color);
  stroke-width: 2.5;
}

.sxm-donut-slice {
  fill: var(--sxm-series-color);
  stroke: #fff;
  stroke-width: 1.5;
}

.sxm-donut-total {
  fill: var(--ink);
  stroke: none;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.sxm-donut-caption {
  fill: var(--muted);
  stroke: none;
  font-family: var(--font);
  font-size: 8.5px;
  font-weight: 600;
}

.sxm-chart-legend {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 15px;
  padding: 2px 12px 10px;
}

.sxm-chart-legend-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.sxm-legend-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--sxm-series-color);
  border-radius: 50%;
}

.sxm-donut-legend {
  display: grid;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 2px 10px 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
}

.sxm-donut-legend-item {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  color: var(--muted);
  font-size: 8.8px;
}

.sxm-donut-legend-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxm-donut-legend-item b {
  color: var(--ink-soft);
  font-size: 8.8px;
  font-weight: 600;
  white-space: nowrap;
}

.sxm-mindmap-svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.sxm-mindmap-link {
  fill: none;
  stroke: var(--sxm-series-color);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-opacity: .52;
}

.sxm-mindmap-node {
  fill: #fff;
  stroke: #e2d0c7;
  stroke-width: 1;
}

.sxm-mindmap-node:not(.is-root) {
  stroke: color-mix(in srgb, var(--sxm-series-color) 36%, #eadbd4);
}

.sxm-mindmap-node.is-root {
  fill: var(--accent);
  stroke: var(--accent);
}

.sxm-mindmap-label {
  fill: var(--ink-soft);
  stroke: none;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.sxm-mindmap-label.is-root {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.sxm-viz-source {
  padding: 0 12px 12px;
  background: rgba(255, 250, 247, .78);
  border-top: 1px solid var(--line);
}

.sxm-viz-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 1px 7px;
  color: var(--muted);
  font-size: 9px;
}

.sxm-viz-source-head span {
  color: var(--ink-soft);
  font-weight: 650;
}

.sxm-viz-source-head small {
  color: var(--faint);
  font-size: 8.5px;
}

.markdown-body pre.sxm-viz-source-code {
  max-height: 240px;
  margin: 0;
  padding: 12px 13px;
  overflow: auto;
  background: #2e312e;
}

.sxm-code-shell {
  margin: 12px 0;
  overflow: hidden;
  background: #2e312e;
  border: 1px solid #393d39;
  border-radius: 12px;
}

.sxm-code-head {
  display: flex;
  min-height: 35px;
  padding: 4px 7px 4px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #252825;
  border-bottom: 1px solid #3a3e3a;
}

.sxm-code-language {
  overflow: hidden;
  color: #aeb5ae;
  font: 650 9px/1.3 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxm-code-head .sxm-block-action {
  min-height: 24px;
  color: #d7dbd7;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .1);
}

.sxm-code-head .sxm-block-action:hover,
.sxm-code-head .sxm-block-action.is-copied {
  color: #fff;
  background: rgba(229, 108, 61, .18);
  border-color: rgba(229, 108, 61, .36);
}

.markdown-body pre.sxm-code-pre {
  margin: 0;
  padding: 14px 15px;
  background: transparent;
  border-radius: 0;
}

.markdown-body pre.sxm-code-pre::before {
  content: none;
}

.markdown-body pre.sxm-code-pre.is-empty {
  min-height: 24px;
}

.message-images {
  display: grid;
  width: min(560px, 100%);
  margin: 3px 0 10px;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.generated-image-card {
  margin: 0;
  overflow: hidden;
  background: #f4f3ee;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(37, 39, 37, .06);
}

.generated-image-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.generated-image-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #efeee9;
}

.generated-image-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  padding: 7px 10px;
  color: var(--faint);
  font-size: 8.5px;
}

.generated-image-card figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-image-card figcaption a {
  flex: none;
  padding: 3px 7px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 8.5px;
  text-decoration: none;
}

.generated-image-card figcaption a:hover {
  color: var(--accent-deep);
  border-color: rgba(244, 121, 74, .24);
}

.skillhub-results {
  display: grid;
  width: min(650px, 100%);
  margin: 4px 0 12px;
  gap: 8px;
}

.skillhub-result {
  padding: 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.skillhub-result-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.skillhub-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent-deep);
  background: #f0edf8;
  border-radius: 9px;
}

.skillhub-result-icon svg {
  width: 15px;
  height: 15px;
}

.skillhub-result-title {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.skillhub-result-title b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skillhub-result-title small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--faint);
  font: 8.5px/1.5 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skillhub-source-badge {
  flex: none;
  padding: 2px 7px;
  color: var(--accent-deep);
  background: #f1eef8;
  border-radius: 999px;
  font-size: 8.5px;
}

.skillhub-result > p {
  margin: 8px 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.skillhub-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skillhub-meta span {
  padding: 2px 6px;
  color: var(--faint);
  background: #f7f7f3;
  border-radius: 5px;
  font-size: 8px;
}

.skillhub-result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.skillhub-result-actions a {
  color: var(--muted);
  font-size: 9px;
  text-decoration: none;
}

.skillhub-result-actions a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.skillhub-result-actions button {
  min-height: 29px;
  padding: 0 10px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.skillhub-result-actions button:hover:not(:disabled) {
  background: #3b3e3a;
}

.skillhub-result-actions button:disabled {
  color: var(--sage);
  background: var(--sage-soft);
  border-color: rgba(207, 66, 40, .18);
}

.skillhub-result-note {
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.55;
}

.skill-guidance-card {
  width: min(650px, 100%);
  margin: 7px 0 12px;
  padding: 12px;
  background:
    radial-gradient(220px 120px at 0% 0%, rgba(244, 121, 74, .09), transparent 72%),
    #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.skill-guidance-card > header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.skill-guidance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 9px;
}

.skill-guidance-icon svg {
  width: 15px;
  height: 15px;
}

.skill-guidance-card > header > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.skill-guidance-card > header b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.skill-guidance-card > header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.skill-guidance-card > p {
  margin: 8px 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
}

.skill-template-bubbles,
.skillhub-template-bubbles {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.skill-template-bubbles button,
.skillhub-template-bubbles button {
  min-height: 26px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8.5px;
  cursor: pointer;
}

.skill-template-bubbles button:hover,
.skillhub-template-bubbles button:hover {
  color: var(--accent-deep);
  border-color: rgba(244, 121, 74, .3);
  background: var(--accent-pale);
}

.skill-guidance-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.skill-guidance-actions button {
  height: 29px;
  padding: 0 10px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.skill-origin {
  margin-top: 7px;
  overflow: hidden;
  color: var(--faint);
  font: 8px/1.5 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skillhub-guide {
  display: grid;
  margin-top: 14px;
  padding: 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  background: rgba(247, 247, 243, .82);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.skillhub-guide-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--accent-deep);
  background: #efedf8;
  border-radius: 9px;
}

.skillhub-guide-mark svg {
  width: 15px;
  height: 15px;
}

.skillhub-guide > div:nth-child(2) {
  min-width: 0;
}

.skillhub-guide b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.skillhub-guide p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.55;
}

.skillhub-guide .skillhub-template-bubbles {
  margin-top: 9px;
  grid-column: 1 / -1;
}

.software-build-card {
  width: min(760px, 100%);
  margin: 16px 0 2px;
  overflow: hidden;
  border: 1px solid rgba(161, 91, 55, .2);
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 16px 44px rgba(79, 45, 29, .08);
}

.software-build-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 17px 12px;
}

.software-build-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: #f8e7dd;
  color: var(--accent-deep);
}

.software-build-mark svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.software-build-title {
  display: grid;
  min-width: 0;
  gap: 3px;
  flex: 1;
}

.software-build-title b {
  overflow: hidden;
  color: #2e2420;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.software-build-title small {
  color: var(--faint);
  font-size: 9.5px;
}

.software-build-state {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.software-build-state.is-ready {
  background: #e9f4ec;
  color: #2f7044;
}

.software-build-state.is-warning {
  background: #fff1df;
  color: #9b5a17;
}

.software-build-summary {
  margin: 0;
  padding: 0 17px 12px;
  color: #66554b;
  font-size: 10.5px;
  line-height: 1.65;
}

.software-build-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 17px 14px;
}

.software-build-features span {
  padding: 4px 8px;
  border: 1px solid #eadbd1;
  border-radius: 999px;
  background: #fbf7f3;
  color: #785e50;
  font-size: 8.5px;
}

.software-build-preview {
  height: min(430px, 52vh);
  min-height: 280px;
  padding: 9px;
  border-block: 1px solid #ecdfd7;
  background: #f2eee9;
}

.software-build-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.software-build-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 17px;
}

.software-build-files,
.software-build-checks {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.software-build-files > b,
.software-build-checks > b {
  margin-bottom: 2px;
  color: #4c4039;
  font-size: 9.5px;
}

.software-build-files span,
.software-build-checks span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 8.5px;
}

.software-build-files code {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  color: #56483f;
  font: 8.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.software-build-files small {
  color: var(--faint);
  white-space: nowrap;
}

.software-build-checks i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #c7b8ae;
}

.software-build-checks .is-ok i {
  background: #4b9a67;
}

.software-build-checks .is-error i {
  background: #c44a34;
}

.software-build-card > footer {
  display: flex;
  gap: 8px;
  padding: 0 17px 16px;
}

.software-build-card > footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #e5d6cd;
  border-radius: 9px;
  color: #5b4538;
  font-size: 9.5px;
  font-weight: 650;
  text-decoration: none;
}

.software-build-card > footer a:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .software-build-details {
    grid-template-columns: 1fr;
  }

  .software-build-preview {
    height: 360px;
  }
}

.local-edit-card {
  width: min(680px, 100%);
  margin: 12px 0 3px;
  overflow: hidden;
  background: rgba(249, 249, 246, .92);
  border: 1px solid rgba(207, 66, 40, .2);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(77, 44, 31, .055);
}

.local-edit-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-bottom: 1px solid rgba(207, 66, 40, .1);
}

.local-edit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent-deep);
  background: #e8f1e9;
  border-radius: 9px;
}

.local-edit-mark svg {
  width: 15px;
  height: 15px;
}

.local-edit-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.local-edit-heading b {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-edit-heading small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 8.5px;
}

.local-edit-files {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  flex-wrap: wrap;
}

.local-edit-files > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.local-edit-files code {
  overflow: hidden;
  max-width: 330px;
  color: var(--ink-soft);
  font: 9px/1.4 Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-edit-files small {
  color: var(--faint);
  font-size: 8px;
}

.local-edit-diff {
  margin: 0 10px 9px;
  overflow: hidden;
  background: #f5f5f1;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.local-edit-diff summary {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.local-edit-diff pre {
  max-height: 620px;
  margin: 0;
  padding: 10px 11px;
  overflow: auto;
  color: #dde4dc;
  background: #252925;
  font: 9.5px/1.55 Consolas, monospace;
  white-space: pre;
}

.local-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 10px 10px;
}

.local-edit-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 620;
  cursor: pointer;
}

.local-edit-actions button:disabled {
  opacity: .55;
  cursor: wait;
}

.local-edit-discard {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.local-edit-apply {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.local-edit-apply:hover {
  background: var(--accent-deep);
}

.local-edit-apply svg {
  width: 12px;
  height: 12px;
}

.local-edit-card.is-applied {
  border-color: rgba(207, 66, 40, .3);
}

.local-edit-card.is-discarded,
.local-edit-card.is-expired {
  opacity: .78;
}

.local-edit-verification {
  display: grid;
  gap: 5px;
  margin: 0 10px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 111, 87, .2);
  border-radius: 9px;
  background: rgba(239, 247, 241, .82);
  color: #315941;
  font-size: 10px;
}

.local-edit-verification.is-error {
  border-color: rgba(177, 60, 42, .22);
  background: rgba(253, 241, 238, .9);
  color: #8a3023;
}

.local-edit-verification b {
  font-size: 10.5px;
}

.local-edit-verification span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.55;
}

.local-edit-verification code {
  color: inherit;
  font: 9px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.local-edit-backup {
  margin: 0;
  padding: 0 10px 10px;
  color: var(--faint);
  font-size: 8.5px;
  overflow-wrap: anywhere;
}

.local-edit-backup code {
  color: var(--muted);
  font: inherit;
}

.thinking-trace {
  width: min(680px, 100%);
  margin: -1px 0 13px;
}

.thinking-trace summary {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 5px 4px 2px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border-radius: 7px;
  outline: 0;
  transition: color .16s var(--ease), background .16s var(--ease);
}

.thinking-trace summary::-webkit-details-marker {
  display: none;
}

.thinking-trace summary:hover {
  color: var(--ink);
  background: rgba(255, 237, 229, .54);
}

.thinking-trace summary:focus-visible {
  outline: 2px solid rgba(207, 66, 40, .45);
  outline-offset: 2px;
}

.thinking-summary-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.5;
}

.thinking-trace.is-live .thinking-summary-label {
  color: var(--ink-soft);
}

.thinking-live-mark {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .09);
  animation: softPulse 1.2s infinite;
}

.thinking-chevron {
  width: 13px !important;
  height: 13px !important;
  flex: none;
  color: var(--faint);
  stroke-width: 1.8;
  transition: transform .18s var(--ease);
}

.thinking-trace[open] .thinking-chevron {
  transform: rotate(180deg);
}

.thinking-chain-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 1px 0 4px;
}

.thinking-note {
  max-width: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.78;
  letter-spacing: .005em;
  overflow-wrap: anywhere;
}

.thinking-note.is-active {
  color: var(--ink);
}

.thinking-note.is-error {
  color: var(--danger);
}

.thinking-inline-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -.16em;
  background: var(--accent);
  border-radius: 1px;
  animation: thinkingBlink .9s steps(1, end) infinite;
}

.thinking-action {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 3px 0 5px;
  padding: 4px 8px 4px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(220, 200, 191, .76);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.thinking-action.is-active {
  color: var(--ink-soft);
  background: var(--accent-pale);
  border-color: rgba(207, 66, 40, .22);
}

.thinking-action.is-error {
  border-color: rgba(169, 52, 34, .28);
}

.thinking-action-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent-deep);
}

.thinking-action-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thinking-action-copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  overflow-wrap: anywhere;
}

.thinking-action-verb {
  color: var(--ink-soft);
  font-weight: 620;
}

.thinking-action-object {
  color: var(--muted);
}

.thinking-action-separator {
  color: var(--faint);
}

.thinking-inline-spinner {
  width: 10px;
  height: 10px;
  flex: none;
  border: 1.5px solid rgba(207, 66, 40, .22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: thinkingOrbit .8s infinite linear;
}

.thinking-action-error {
  color: var(--danger);
  font-size: 9px;
  font-weight: 650;
}

.thinking-action-group {
  width: 100%;
  margin: 1px 0 5px;
}

.thinking-action-group > summary {
  display: inline-flex;
  min-height: 32px;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  list-style: none;
  color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

.thinking-action-group > summary::-webkit-details-marker {
  display: none;
}

.thinking-action-group > summary:hover {
  background: rgba(255, 237, 229, .5);
}

.thinking-action-group > summary:focus-visible {
  outline: 2px solid rgba(207, 66, 40, .42);
  outline-offset: 2px;
}

.thinking-action-group > summary .thinking-action-icon {
  color: var(--accent-deep);
}

.thinking-group-title {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 570;
}

.thinking-group-count {
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: var(--muted);
  background: rgba(255, 237, 229, .7);
  border: 1px solid rgba(207, 66, 40, .1);
  border-radius: 999px;
  font: 600 8.5px/1 "SFMono-Regular", Consolas, monospace;
}

.thinking-group-chevron {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--faint);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}

.thinking-action-group[open] .thinking-group-chevron {
  transform: rotate(180deg);
}

.thinking-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 1px 0 4px 22px;
}

.thinking-group-item {
  display: flex;
  min-width: 0;
  min-height: 26px;
  align-items: baseline;
  gap: 5px;
  padding: 3px 5px;
  color: var(--muted);
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.45;
}

.thinking-group-item:hover {
  background: rgba(255, 250, 247, .8);
}

.thinking-group-verb {
  flex: none;
  color: var(--muted);
}

.thinking-group-path {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  border-bottom: 1px dotted rgba(118, 105, 99, .48);
  font: 10.5px/1.45 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thinking-diff-stats {
  display: inline-flex;
  flex: none;
  gap: 4px;
  margin-left: 2px;
  font: 9.5px/1.4 "SFMono-Regular", Consolas, monospace;
}

.thinking-diff-add {
  color: var(--accent-deep);
}

.thinking-diff-delete {
  color: var(--danger);
}

.thinking-group-error-dot {
  width: 6px;
  height: 6px;
  flex: none;
  align-self: center;
  margin-left: 1px;
  background: var(--danger);
  border-radius: 50%;
}

@keyframes thinkingOrbit {
  to { transform: rotate(332deg); }
}

@keyframes thinkingBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
  .thinking-trace {
    width: 100%;
    margin-bottom: 11px;
  }

  .thinking-trace summary {
    min-height: 44px;
  }

  .thinking-note {
    font-size: 13px;
    line-height: 1.75;
  }

  .thinking-action {
    min-height: 31px;
    padding-right: 7px;
    font-size: 10.5px;
  }

  .thinking-action-group > summary {
    min-height: 44px;
  }

  .thinking-group-items {
    margin-left: 18px;
  }

  .thinking-group-item {
    flex-wrap: wrap;
    padding: 4px;
    font-size: 10.5px;
  }

  .thinking-group-path {
    max-width: calc(100vw - 185px);
  }
}

.markdown-body .markdown-table-shell {
  width: 100%;
  margin: 14px 0 19px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  outline: none;
  scrollbar-width: thin;
}

.markdown-body .markdown-table-shell:focus-visible {
  box-shadow: 0 0 0 3px rgba(244, 121, 74, .17);
}

.markdown-body table {
  width: 100%;
  min-width: 440px;
  margin: 0;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.markdown-body td,
.markdown-body th {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.markdown-body th {
  color: #6f625c;
  background: #f3f3ee;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
}

.markdown-body th[align="center"],
.markdown-body td[align="center"] {
  text-align: center;
}

.markdown-body th[align="right"],
.markdown-body td[align="right"] {
  text-align: right;
}

.markdown-body tbody tr:nth-child(even) {
  background: rgba(247, 247, 243, .72);
}

.markdown-body tbody tr:last-child td {
  border-bottom: 0;
}

.markdown-body td:first-child,
.markdown-body th:first-child {
  padding-left: 4px;
}

.markdown-body td:last-child,
.markdown-body th:last-child {
  padding-right: 4px;
}

.markdown-body.has-report-data > p:first-child {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.75;
}

.message-voices {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 8px 0 1px;
  font-family: var(--font);
  line-height: 1;
}

.sentence-voice {
  --voice-progress: 0;
  position: relative;
  display: inline-flex;
  min-width: 88px;
  height: 29px;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 3px;
  overflow: hidden;
  color: #77756f;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #e8e5df;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(45, 45, 39, .025);
  font: 600 9px/1 var(--font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    color .16s,
    background .16s,
    border-color .16s,
    transform .16s;
}

.sentence-voice::after {
  position: absolute;
  right: 9px;
  bottom: 1px;
  left: 9px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(var(--voice-progress));
  transform-origin: left center;
  transition: opacity .15s;
}

.sentence-voice:hover {
  color: var(--ink-soft);
  background: var(--paper);
  border-color: #ddd8d0;
  transform: translateY(-1px);
}

.sentence-voice:active {
  transform: translateY(0);
}

.sentence-voice.is-playing {
  color: #9d4e31;
  background: var(--accent-pale);
  border-color: #f3cfc0;
}

.sentence-voice.is-playing::after,
.sentence-voice.is-paused::after {
  opacity: .8;
}

.sentence-voice.is-loading {
  color: #8d7368;
  background: #fffaf7;
  border-color: #eeded5;
}

.voice-glyph {
  position: relative;
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 50%;
}

.voice-glyph svg {
  width: 10px;
  height: 10px;
}

.voice-play-icon {
  fill: currentColor;
  stroke: none;
}

.voice-pause-icon {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.sentence-voice.is-playing .voice-play-icon {
  display: none;
}

.sentence-voice.is-playing .voice-pause-icon {
  display: block;
}

.voice-wave {
  display: inline-flex;
  width: 38px;
  height: 15px;
  flex: none;
  align-items: center;
  gap: 2px;
  color: #bfa69a;
}

.voice-wave i {
  width: 2px;
  height: var(--bar);
  flex: none;
  background: currentColor;
  border-radius: 999px;
  opacity: .62;
  transform-origin: center;
}

.sentence-voice:hover .voice-wave i {
  color: #c17b5f;
  opacity: .78;
}

.sentence-voice.is-playing .voice-wave {
  color: var(--accent);
}

.sentence-voice.is-playing .voice-wave i {
  opacity: .9;
  animation: sentenceVoiceBar .66s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -80ms);
}

.sentence-voice.is-loading .voice-glyph::after {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(220, 94, 49, .22);
  border-top-color: var(--accent-deep);
  border-radius: 50%;
  content: "";
  animation: voiceSpin .8s linear infinite;
}

.sentence-voice.is-loading .voice-glyph svg {
  display: none;
}

.sentence-voice.is-loading .voice-wave i {
  animation: sentenceVoiceLoad 1.05s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -90ms);
}

.voice-time {
  min-width: 24px;
  color: #716f69;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: .01em;
  text-align: right;
  white-space: nowrap;
}

.sentence-voice.is-playing .voice-time,
.sentence-voice.is-paused .voice-time {
  min-width: 48px;
  color: #955038;
}

.sentence-voice.is-loading .voice-time {
  min-width: 32px;
  color: #9b8177;
  letter-spacing: .06em;
}

.voice-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 0;
  color: #8b817b;
  background: transparent;
  border: 1px solid #e7e1dc;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}

.voice-download svg {
  width: 14px;
  height: 14px;
}

.voice-download:hover {
  color: #955038;
  background: #fff4ee;
  border-color: #efd2c6;
}

.voice-download.is-downloading {
  color: #9b8177;
  background: #f6f1ed;
  cursor: wait;
}

.floating-voice {
  --floating-progress: 0;
  position: fixed;
  right: 24px;
  bottom: 118px;
  z-index: 42;
  display: grid;
  width: min(356px, calc(100vw - 28px));
  min-height: 70px;
  grid-template-columns: 40px minmax(0, 1fr) 36px 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 11px 11px 12px;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid rgba(225, 216, 207, .9);
  border-radius: 17px;
  box-shadow:
    0 20px 50px rgba(56, 48, 40, .15),
    0 2px 6px rgba(56, 48, 40, .05);
  contain: paint;
}

.floating-voice-avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2e8df;
  border: 1px solid #eadbd1;
  border-radius: 12px;
}

.floating-voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-voice-body {
  min-width: 0;
}

.floating-voice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.floating-voice-name {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.floating-voice-name b {
  flex: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.floating-voice-name span {
  overflow: hidden;
  color: #8b756b;
  font-size: 9.5px;
  text-overflow: ellipsis;
}

.floating-voice-time {
  flex: none;
  color: #715f56;
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.floating-voice-wave {
  display: flex;
  width: 100%;
  height: 18px;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  color: #d99a82;
}

.floating-voice-wave i {
  width: 3px;
  height: 5px;
  flex: none;
  background: currentColor;
  border-radius: 99px;
  opacity: .6;
  transform-origin: center;
}

.floating-voice-wave i:nth-child(1),
.floating-voice-wave i:nth-child(7) { height: 7px; }
.floating-voice-wave i:nth-child(2),
.floating-voice-wave i:nth-child(11) { height: 12px; }
.floating-voice-wave i:nth-child(3),
.floating-voice-wave i:nth-child(9) { height: 17px; }
.floating-voice-wave i:nth-child(4),
.floating-voice-wave i:nth-child(12) { height: 9px; }
.floating-voice-wave i:nth-child(5),
.floating-voice-wave i:nth-child(8) { height: 14px; }
.floating-voice-wave i:nth-child(6),
.floating-voice-wave i:nth-child(10) { height: 6px; }

.floating-voice.is-playing .floating-voice-wave {
  color: var(--accent);
}

.floating-voice.is-playing .floating-voice-wave i {
  opacity: .9;
  animation: sentenceVoiceBar .64s ease-in-out infinite alternate;
}

.floating-voice.is-playing .floating-voice-wave i:nth-child(2n) {
  animation-delay: -.18s;
}

.floating-voice.is-playing .floating-voice-wave i:nth-child(3n) {
  animation-delay: -.34s;
}

.floating-voice.is-loading .floating-voice-wave i {
  animation: sentenceVoiceLoad 1.05s ease-in-out infinite alternate;
}

.floating-voice.is-loading .floating-voice-wave i:nth-child(2n) {
  animation-delay: -.2s;
}

.floating-voice.is-paused .floating-voice-wave i {
  opacity: .3;
}

.floating-voice-toggle,
.floating-voice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.floating-voice-toggle {
  width: 36px;
  height: 36px;
  color: #fffaf7;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(35, 36, 33, .14);
  transition: transform .16s, background .16s;
}

.floating-voice-toggle:hover {
  transform: scale(1.04);
  background: var(--accent-deep);
}

.floating-voice-toggle svg {
  width: 15px;
  height: 15px;
}

.floating-voice-play {
  fill: currentColor;
  stroke: none;
}

.floating-voice-pause {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.floating-voice.is-playing .floating-voice-play {
  display: none;
}

.floating-voice.is-playing .floating-voice-pause {
  display: block;
}

.floating-voice-close {
  width: 28px;
  height: 28px;
  color: #9b938c;
  background: transparent;
  border-radius: 8px;
}

.floating-voice-close:hover {
  color: var(--ink);
  background: #f4eee9;
}

.floating-voice-close svg {
  width: 13px;
  height: 13px;
}

.floating-voice-progress {
  position: absolute;
  right: 14px;
  bottom: 1px;
  left: 62px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 99px;
  opacity: .8;
  transform: scaleX(var(--floating-progress));
  transform-origin: left center;
  transition: transform .1s linear;
}

.message-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  opacity: .55;
  transition: opacity .15s;
}

.message:hover .message-tools,
.message:focus-within .message-tools {
  opacity: 1;
}

@media (hover: none) {
  .message-tools {
    opacity: 1;
  }
}

.message-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 10.5px;
  cursor: pointer;
}

.message-tool:hover {
  color: var(--ink);
  background: rgba(37, 39, 37, .05);
}

.message-tool.message-favorite.is-active {
  color: #7b5726;
  background: rgba(183, 133, 63, .1);
}

.message-tool.message-favorite.is-active svg path {
  fill: currentColor;
}

.message-tool:disabled {
  opacity: .55;
  cursor: wait;
}

.message-tool svg {
  width: 13px;
  height: 13px;
}

.message-export {
  position: relative;
}

.message-export-trigger {
  list-style: none;
  cursor: pointer;
}

.message-export-trigger::-webkit-details-marker {
  display: none;
}

.message-export[open] .message-export-trigger {
  color: var(--ink);
  background: rgba(37, 39, 37, .06);
}

.message-export-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(300px, calc(100vw - 52px));
  padding: 10px;
  background: rgba(255, 253, 251, .98);
  border: 1px solid #e7ddd6;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(54, 38, 30, .14);
  backdrop-filter: blur(10px);
}

.message-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 3px 8px;
}

.message-export-head b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.message-export-head span {
  color: var(--faint);
  font-size: 9px;
}

.message-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.message-export-option {
  display: flex;
  min-width: 0;
  min-height: 42px;
  padding: 6px 7px;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.message-export-option:hover,
.message-export-option:focus-visible {
  color: var(--ink);
  background: #fff;
  border-color: #eadbd2;
  outline: none;
}

.message-export-option:disabled {
  cursor: wait;
  opacity: .55;
}

.message-export-mark {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 7px;
  font: 700 9px/1 var(--font);
  letter-spacing: -.02em;
}

.message-export-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.message-export-copy b {
  overflow: hidden;
  color: currentColor;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-export-copy small {
  color: var(--faint);
  font: 8.5px/1.25 "SFMono-Regular", Consolas, monospace;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.typing i {
  width: 5px;
  height: 5px;
  background: #a9aca6;
  border-radius: 50%;
  animation: typing 1.15s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: .14s;
}

.typing i:nth-child(3) {
  animation-delay: .28s;
}

.message-error {
  margin-top: 7px;
  color: var(--danger);
  font-size: 12px;
}

.message-interrupted {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.message-skill-tags {
  display: flex;
  margin-top: 6px;
  gap: 5px;
  flex-wrap: wrap;
}

.message.user .message-skill-tags {
  justify-content: flex-end;
}

.message-skill-tags span {
  padding: 2px 7px;
  color: var(--sage);
  background: rgba(237, 244, 238, .84);
  border: 1px solid rgba(207, 66, 40, .14);
  border-radius: 999px;
  font-size: 8.5px;
}

.composer-zone {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  padding: 28px max(28px, calc((100% - 820px) / 2)) 13px;
  pointer-events: none;
}

.composer-zone::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 248, 245, 0), rgba(248, 248, 245, .9) 26%, var(--canvas) 66%);
  content: "";
}

.composer-zone::after {
  position: absolute;
  inset: 8px max(22px, calc((100% - 840px) / 2)) 12px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: rgba(247, 252, 248, .94);
  border: 1.5px dashed rgba(207, 66, 40, .52);
  border-radius: 21px;
  box-shadow: 0 12px 38px rgba(77, 44, 31, .12);
  content: "松开即可加入图片或资料";
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .02em;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.composer-zone.is-file-drag::after {
  display: flex;
}

.file-tray,
.browser-context-bar,
.active-skills,
.prompt-guidance,
.composer,
.composer-note {
  position: relative;
  pointer-events: auto;
}

.prompt-guidance {
  z-index: 3;
}

.browser-context-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(820px, 100%);
  min-height: 48px;
  margin: 0 auto 8px;
  padding: 7px 8px 7px 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(207, 66, 40, .2);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(77, 44, 31, .055);
  backdrop-filter: blur(14px);
}

.browser-context-bar[hidden] {
  display: none;
}

.browser-context-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  color: var(--accent-deep);
  background: #edf4ee;
  border-radius: 10px;
}

.browser-context-icon svg {
  width: 16px;
  height: 16px;
}

.browser-context-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.browser-context-copy b,
.browser-context-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-context-copy b {
  font-size: 11.5px;
  font-weight: 650;
}

.browser-context-copy small {
  color: var(--faint);
  font-size: 9.5px;
}

.browser-context-action,
.browser-context-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  flex: none;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}

.browser-context-action {
  padding: 0 8px;
}

.browser-context-action:hover,
.browser-context-close:hover {
  background: rgba(207, 66, 40, .08);
}

.browser-context-close {
  width: 28px;
  padding: 0;
}

.browser-context-close svg {
  width: 13px;
  height: 13px;
}

.file-tray {
  display: flex;
  gap: 7px;
  max-height: 76px;
  margin: 0 auto 8px;
  padding: 0 3px;
  overflow-x: auto;
  overflow-y: hidden;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 265px;
  height: 32px;
  flex: none;
  padding: 0 4px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(36, 40, 35, .035);
  font-size: 10.5px;
}

.file-chip-open {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 5px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.file-chip-open:hover {
  background: rgba(244, 121, 74, .06);
}

.file-chip-open > svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

.file-chip-thumb {
  width: 21px;
  height: 21px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.file-chip-sequence {
  display: grid;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  place-items: center;
}

.file-chip-pending {
  border-color: rgba(214, 109, 69, .28);
  box-shadow: 0 4px 14px rgba(214, 109, 69, .06);
}

.file-chip-pending-label {
  flex: none;
  padding: 2px 5px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
}

.file-chip.analyzed {
  border-color: rgba(207, 66, 40, .28);
}

.file-chip.analyzed .file-chip-open > svg {
  color: var(--sage);
}

.file-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip-size {
  color: var(--faint);
  white-space: nowrap;
}

.file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: none;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.file-remove svg {
  width: 12px;
  height: 12px;
}

.file-remove:hover {
  color: var(--danger);
  background: rgba(199, 82, 66, .07);
}

.file-uploading {
  position: relative;
  overflow: hidden;
}

.file-uploading::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  transform-origin: left;
  background: var(--accent);
  animation: uploadWait 1.15s infinite ease-in-out;
  content: "";
}

/* ---------- 可安装技能 ---------- */
.skills-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 10px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .44);
  border: 1px solid rgba(217, 218, 211, .78);
  border-radius: 13px;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s var(--ease);
}

.skills-nav:hover {
  background: rgba(255, 255, 255, .78);
  border-color: var(--line-strong);
}

.skills-nav:active {
  transform: translateY(1px);
}

.skills-nav > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.skills-nav b {
  font-size: 12.5px;
  font-weight: 650;
}

.skills-nav small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 9.5px;
}

.skills-nav .workspace-icon {
  width: 31px;
  height: 31px;
}

.skill-nav-icon {
  color: #b2633e;
  background: #ffede3;
}

.model-nav-icon {
  color: var(--red-deep, #aa3321);
  background: var(--accent-soft);
}

.model-nav small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-nav {
  margin-top: 8px;
  background:
    radial-gradient(180px 100px at 8% 0%, rgba(83, 116, 102, .16), transparent 78%),
    linear-gradient(135deg, rgba(28, 41, 36, .055), rgba(255, 255, 255, .55));
  border-color: rgba(73, 102, 89, .2);
}

.canvas-nav:hover {
  background:
    radial-gradient(180px 100px at 8% 0%, rgba(83, 116, 102, .2), transparent 78%),
    rgba(255, 255, 255, .82);
  border-color: rgba(73, 102, 89, .34);
}

.canvas-nav-icon {
  color: #486b5b;
  background: #e2ece6;
  box-shadow: inset 0 0 0 1px rgba(62, 96, 80, .06);
}

.toolchain-nav {
  background: linear-gradient(135deg, rgba(207, 66, 40, .09), rgba(255, 255, 255, .55));
  border-color: rgba(207, 66, 40, .2);
}

.toolchain-nav:hover {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(207, 66, 40, .34);
}

.toolchain-nav-icon {
  color: var(--accent-deep);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .06);
}

.material-nav {
  background: linear-gradient(135deg, rgba(158, 91, 65, .075), rgba(255, 255, 255, .55));
  border-color: rgba(151, 91, 67, .18);
}

.material-nav:hover {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(151, 91, 67, .3);
}

.material-nav-icon {
  color: #98614d;
  background: #f3e2d8;
}

.business-nav {
  margin-bottom: 2px;
  background: linear-gradient(135deg, rgba(181, 54, 58, .07), rgba(255, 255, 255, .52));
  border-color: rgba(181, 54, 58, .18);
}

.business-nav-icon {
  color: #a93439;
  background: #fae9e7;
}

.digital-employees-nav {
  margin-top: 8px;
  border-color: rgba(207, 66, 40, 0.18);
  background:
    radial-gradient(160px 90px at 0% 0%, rgba(207, 66, 40, 0.1), transparent 80%),
    rgba(255, 255, 255, 0.55);
}

.digital-employees-nav:hover {
  border-color: rgba(207, 66, 40, 0.3);
  background: rgba(255, 255, 255, 0.82);
}

.digital-employees-nav-icon {
  color: var(--red-deep, #aa3321);
  background: var(--accent-soft);
}

.oversight-nav {
  margin-top: 8px;
  background:
    radial-gradient(160px 90px at 0% 0%, rgba(210, 153, 74, .14), transparent 80%),
    rgba(255, 255, 255, .55);
  border-color: rgba(121, 104, 67, .2);
}

.oversight-nav:hover {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(121, 104, 67, .34);
}

.oversight-nav-icon {
  color: #795f2f;
  background: #f6eddd;
}

.publish-nav {
  margin-top: 8px;
  background:
    radial-gradient(160px 90px at 0% 0%, rgba(207, 66, 40, .09), transparent 80%),
    rgba(255, 255, 255, .55);
  border-color: rgba(207, 66, 40, .18);
}

.publish-nav:hover {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(207, 66, 40, .3);
}

.publish-nav-icon {
  color: var(--red-deep, #aa3321);
  background: var(--accent-soft);
}

.top-observatory {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  color: #6f572c;
  background: rgba(246, 237, 221, .82);
  border: 1px solid rgba(146, 113, 56, .18);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s, border-color .16s, transform .16s;
}

.top-observatory:hover {
  background: #f6eddd;
  border-color: rgba(146, 113, 56, .32);
}

.top-observatory:active {
  transform: scale(.98);
}

.top-canvas {
  color: #426353;
  background: rgba(229, 238, 232, .86);
  border-color: rgba(66, 99, 83, .18);
}

.top-canvas:hover {
  color: #324f40;
  background: #e5eee8;
  border-color: rgba(66, 99, 83, .32);
}

.top-observatory svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-entry {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: #efcabd;
}

.network-entry:hover {
  background: #ffe4d8;
  border-color: #e6b19f;
}

.top-skills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  color: var(--red-deep, #aa3321);
  background: rgba(255, 237, 229, .8);
  border: 1px solid rgba(207, 66, 40, .16);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 620;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}

.top-skills:hover {
  background: var(--sage-soft);
  border-color: rgba(207, 66, 40, .28);
}

.top-skills:active {
  transform: scale(.98);
}

.top-skills svg {
  width: 15px;
  height: 15px;
}

.top-article {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  color: #fffdf9;
  background: #2f5548;
  border: 1px solid #2f5548;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(47, 85, 72, .14);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s, box-shadow .16s;
}

.top-article:hover {
  background: #26493d;
  border-color: #26493d;
  box-shadow: 0 9px 22px rgba(47, 85, 72, .2);
}

.top-article:active {
  transform: scale(.98);
}

.top-article.active {
  background: #223f35;
  border-color: #d9a77f;
  box-shadow:
    0 0 0 3px rgba(207, 66, 40, .11),
    0 9px 22px rgba(47, 85, 72, .18);
}

.top-article svg {
  width: 15px;
  height: 15px;
}

.skill-shelf {
  position: relative;
  width: 100%;
  margin-top: 26px;
  text-align: left;
  animation: heroIn .72s .18s var(--ease) both;
}

.skill-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.skill-shelf-copy p {
  margin: 0 0 2px;
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 620;
}

.skill-shelf-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -.025em;
}

.skill-shelf-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
}

.skill-shelf-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.skill-quiet-button,
.skill-manage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.skill-quiet-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.skill-quiet-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
}

.skill-manage-button {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
}

.skill-manage-button:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.skill-quiet-button svg,
.skill-manage-button svg {
  width: 13px;
  height: 13px;
}

.featured-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(48, 52, 45, .035);
}

.featured-skill {
  --skill-color: #c76a44;
  --skill-soft: #fff0e7;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 74px;
  padding: 12px 13px;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s;
}

.featured-skill:nth-child(3n) {
  border-right: 0;
}

.featured-skill:nth-last-child(-n+3) {
  border-bottom: 0;
}

.featured-skill:hover {
  background: rgba(255, 255, 255, .9);
}

.featured-skill.is-active {
  background: color-mix(in srgb, var(--skill-soft) 42%, #fff);
}

.featured-skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--skill-color);
  background: var(--skill-soft);
  border-radius: 10px;
}

.featured-skill-icon svg {
  width: 16px;
  height: 16px;
}

.featured-skill-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.featured-skill-copy b {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-skill-copy small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-skill-state {
  width: 7px;
  height: 7px;
  justify-self: center;
  background: #d4d5cf;
  border-radius: 50%;
}

.featured-skill.is-active .featured-skill-state {
  background: var(--skill-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--skill-color) 12%, transparent);
}

.featured-skill.skill-more {
  --skill-color: var(--accent-deep);
  --skill-soft: var(--accent-soft);
  background:
    linear-gradient(135deg, rgba(255, 247, 241, .75), rgba(255, 255, 255, .7));
}

.featured-skill.skill-more .featured-skill-icon {
  color: #fff;
  background: var(--accent);
}

.skill-skeleton {
  display: block;
  min-height: 80px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent) -160px 0 / 160px 100% no-repeat,
    #f5f5f1;
  border-right: 1px solid var(--line);
  animation: skillLoading 1.2s infinite linear;
}

.skill-color-clay {
  --skill-color: #cf4228;
  --skill-soft: #ffede5;
}

.skill-color-sage {
  --skill-color: #b84a32;
  --skill-soft: #ffede7;
}

.skill-color-rose {
  --skill-color: #c23b2b;
  --skill-soft: #fde9e5;
}

.skill-color-sky {
  --skill-color: #ad5a3c;
  --skill-soft: #fff0e9;
}

.skill-color-amber {
  --skill-color: #b64d26;
  --skill-soft: #fff0e6;
}

.skill-color-lilac {
  --skill-color: #9d3b2c;
  --skill-soft: #fbe8e2;
}

.skill-color-teal {
  --skill-color: #c65b35;
  --skill-soft: #fff0e8;
}

.skill-color-custom {
  --skill-color: #aa4a2c;
  --skill-soft: #fcedE6;
}

.active-skills {
  position: relative;
  display: flex;
  width: min(820px, 100%);
  margin: 0 auto 8px;
  padding: 0 3px;
  gap: 6px;
  overflow-x: auto;
  pointer-events: auto;
}

.active-skill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  flex: none;
  padding: 0 5px 0 8px;
  color: var(--muted);
  background: rgba(237, 244, 238, .94);
  border: 1px solid rgba(207, 66, 40, .17);
  border-radius: 999px;
  font-size: 9.5px;
  white-space: nowrap;
}

.active-skill::before {
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
  content: "";
}

.active-skill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #8b7c74;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.active-skill button:hover {
  color: var(--ink);
  background: rgba(207, 66, 40, .1);
}

.active-skill button svg {
  width: 10px;
  height: 10px;
}

/* ---------- 技能库 ---------- */
.skill-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.skill-modal-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(31, 34, 30, .3);
  border: 0;
  backdrop-filter: blur(6px);
}

.skill-dialog {
  position: relative;
  display: flex;
  width: min(1020px, calc(100vw - 34px));
  height: min(760px, calc(100dvh - 42px));
  flex-direction: column;
  overflow: hidden;
  background: #fbfbf8;
  border: 1px solid rgba(82, 86, 78, .14);
  border-radius: 24px;
  box-shadow: 0 34px 110px rgba(39, 42, 36, .22), 0 3px 10px rgba(39, 42, 36, .05);
  animation: skillDialogIn .24s var(--ease);
}

.skill-dialog-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  padding: 20px 22px 17px;
  background:
    radial-gradient(320px 150px at 4% -20%, rgba(244, 121, 74, .12), transparent 72%),
    radial-gradient(300px 160px at 96% -30%, rgba(207, 66, 40, .12), transparent 72%),
    #fbfbf8;
  border-bottom: 1px solid var(--line);
}

.skill-dialog-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(37, 39, 37, .13);
}

.skill-dialog-mark svg {
  width: 22px;
  height: 22px;
}

.skill-dialog-head p {
  margin: 0 0 1px;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 650;
}

.skill-dialog-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.skill-dialog-head > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.skill-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.skill-dialog-close:hover {
  color: var(--ink);
  background: #fff;
}

.skill-dialog-close svg {
  width: 17px;
  height: 17px;
}

.skill-dialog-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 292px;
}

.skill-library {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 18px 20px 20px;
  flex-direction: column;
}

.skill-library-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-search {
  display: flex;
  min-width: 0;
  height: 38px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.skill-search:focus-within {
  border-color: rgba(244, 121, 74, .36);
  box-shadow: 0 0 0 3px rgba(244, 121, 74, .08);
}

.skill-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.skill-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.skill-filters {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #f0f0eb;
  border-radius: 11px;
}

.skill-filters button {
  height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.skill-filters button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(37, 39, 37, .08);
}

.skill-dialog-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 10px;
  color: var(--faint);
  font-size: 9.5px;
}

.skill-library-grid {
  display: grid;
  min-height: 0;
  padding: 1px 1px 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow-y: auto;
}

.skill-item {
  --skill-color: #c76a44;
  --skill-soft: #fff0e7;
  position: relative;
  display: flex;
  min-height: 156px;
  padding: 13px;
  flex-direction: column;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color .16s, background .16s, transform .16s var(--ease);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(37, 39, 37, .055);
}

.skill-item.is-active {
  background: color-mix(in srgb, var(--skill-soft) 34%, #fff);
  border-color: color-mix(in srgb, var(--skill-color) 28%, var(--line));
  box-shadow: inset 3px 0 0 var(--skill-color);
}

.skill-item.is-at-limit:not(.is-active):hover {
  border-color: var(--line);
}

.skill-item:focus-within {
  border-color: color-mix(in srgb, var(--skill-color) 38%, var(--line));
  outline: 3px solid color-mix(in srgb, var(--skill-color) 10%, transparent);
  outline-offset: 2px;
}

.skill-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skill-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: var(--skill-color);
  background: var(--skill-soft);
  border-radius: 9px;
}

.skill-item-icon svg {
  width: 16px;
  height: 16px;
}

.skill-source {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  color: var(--faint);
  background: rgba(248, 248, 245, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8.5px;
}

.skill-item-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.skill-selected-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  color: var(--skill-color);
  background: var(--skill-soft);
  border: 1px solid color-mix(in srgb, var(--skill-color) 18%, transparent);
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.skill-selected-mark svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-item h3 {
  margin: 9px 0 3px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.skill-item p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.skill-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
}

.skill-toggle,
.skill-use,
.skill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
}

.skill-toggle {
  min-width: 62px;
  color: #fff;
  background: var(--ink-soft);
  border: 1px solid var(--ink-soft);
  transition: color .16s, background .16s, border-color .16s;
}

.skill-toggle:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.skill-toggle.is-active {
  color: var(--skill-color);
  background: var(--skill-soft);
  border-color: color-mix(in srgb, var(--skill-color) 15%, transparent);
}

.skill-toggle.is-active:hover {
  color: #fff;
  background: var(--skill-color);
  border-color: var(--skill-color);
}

.skill-item.is-at-limit:not(.is-active) .skill-toggle {
  color: var(--muted);
  background: #f1f1ec;
  border-color: #e8e8e2;
}

.skill-item.is-at-limit:not(.is-active) .skill-toggle:hover {
  color: var(--ink-soft);
  background: #e9e9e3;
  border-color: var(--line-strong);
}

.skill-toggle svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-use {
  color: var(--accent-deep);
  background: transparent;
  border: 0;
}

.skill-use:hover {
  background: var(--accent-pale);
}

.skill-remove {
  width: 28px;
  margin-left: auto;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
}

.skill-remove:hover {
  color: var(--danger);
  background: rgba(199, 82, 66, .07);
}

.skill-remove svg {
  width: 13px;
  height: 13px;
  margin: auto;
}

.skill-library-empty {
  display: flex;
  min-height: 240px;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--faint);
  text-align: center;
}

.skill-library-empty b {
  color: var(--ink-soft);
  font-size: 13px;
}

.skill-library-empty span {
  margin-top: 4px;
  font-size: 10.5px;
}

.skill-installer {
  display: flex;
  min-height: 0;
  padding: 22px 20px;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(246, 245, 240, .88));
  border-left: 1px solid var(--line);
}

.skill-installer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #6d4b36;
  background: #f4e2d7;
  border-radius: 11px;
}

.skill-installer-icon svg {
  width: 19px;
  height: 19px;
}

.skill-installer-copy p {
  margin: 13px 0 2px;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 650;
}

.skill-installer-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.skill-installer-copy > span:last-child {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.skill-create-entry {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px;
  color: #fffaf5;
  text-decoration: none;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #2b1d18;
  background-size: 18px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}

.skill-create-entry > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #ffb49f;
  background: rgba(207, 66, 40, .2);
  border-radius: 8px 8px 8px 2px;
}

.skill-create-entry svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-create-entry > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.skill-create-entry b {
  font-size: 10px;
}

.skill-create-entry small {
  margin-top: 2px;
  color: rgba(255, 250, 245, .58);
  font-size: 8px;
  line-height: 1.5;
}

.skill-create-entry > svg {
  color: rgba(255, 250, 245, .5);
  transition: transform .16s;
}

.skill-create-entry:hover {
  border-color: rgba(255, 180, 159, .38);
}

.skill-create-entry:hover > svg {
  color: #ffb49f;
  transform: translateX(2px);
}

.skill-dropzone {
  display: flex;
  min-height: 128px;
  margin-top: 18px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  border: 1px dashed #cfd0c8;
  border-radius: 14px;
  cursor: pointer;
  transition: color .16s, background .16s, border-color .16s;
}

.skill-dropzone:hover,
.skill-dropzone.is-dragging {
  color: var(--accent-deep);
  background: var(--accent-pale);
  border-color: rgba(244, 121, 74, .48);
}

.skill-dropzone.is-busy {
  cursor: wait;
  opacity: .62;
}

.skill-dropzone svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--accent-deep);
}

.skill-dropzone b {
  color: var(--ink);
  font-size: 11.5px;
}

.skill-dropzone small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 8.5px;
}

.skill-install-status {
  min-height: 35px;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.skill-install-status.is-error {
  color: var(--danger);
}

.skill-install-status.is-success {
  color: var(--sage);
}

.skill-installer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.skill-installer-foot button {
  padding: 0;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
  font-size: 9.5px;
  cursor: pointer;
}

.skill-installer-foot span {
  color: var(--faint);
  font-size: 8.5px;
  text-align: right;
}

/* ---------- 模型接入 ---------- */
.model-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.model-modal-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(31, 34, 30, .3);
  border: 0;
  backdrop-filter: blur(6px);
}

.model-dialog {
  position: relative;
  display: flex;
  width: min(760px, calc(100vw - 34px));
  max-height: calc(100dvh - 42px);
  flex-direction: column;
  overflow: hidden;
  background: #fbfbf8;
  border: 1px solid rgba(82, 86, 78, .14);
  border-radius: 24px;
  box-shadow: 0 34px 110px rgba(39, 42, 36, .22), 0 3px 10px rgba(39, 42, 36, .05);
  animation: skillDialogIn .24s var(--ease);
}

.model-dialog-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  padding: 20px 22px 17px;
  background:
    radial-gradient(300px 150px at 5% -20%, rgba(207, 66, 40, .13), transparent 72%),
    radial-gradient(260px 150px at 95% -25%, rgba(239, 106, 63, .1), transparent 72%),
    #fbfbf8;
  border-bottom: 1px solid var(--line);
}

.model-dialog-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(207, 66, 40, .2);
}

.model-dialog-mark svg {
  width: 22px;
  height: 22px;
}

.model-dialog-head p {
  margin: 0 0 1px;
  color: var(--accent-deep);
  font-size: 9.5px;
  font-weight: 650;
}

.model-dialog-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.model-dialog-head > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.model-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, .54);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.model-dialog-close:hover {
  color: var(--ink);
  background: #fff;
}

.model-dialog-close svg {
  width: 17px;
  height: 17px;
}

.model-dialog-body {
  min-height: 0;
  padding: 18px 22px 14px;
  overflow-y: auto;
}

.model-provider-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.model-provider {
  display: grid;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.model-provider:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.model-provider:disabled {
  cursor: default;
  opacity: .72;
}

.model-provider:disabled:hover {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line);
}

.model-provider.active {
  background: var(--accent-pale);
  border-color: rgba(207, 66, 40, .36);
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .08);
}

.model-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.model-provider-icon.deepseek {
  color: #fff;
  background: var(--accent);
}

.model-provider-icon.custom {
  color: var(--accent-deep, #a93422);
  background: linear-gradient(135deg, #fff4e8, #f7dfc4);
  border: 1px solid rgba(207, 66, 40, .18);
  font-size: 18px;
  font-weight: 500;
}

.model-provider-icon.agnes {
  color: #fff;
  background: linear-gradient(135deg, #e87745, #bf3a28);
}

.model-provider-icon.local {
  color: var(--red-deep, #a93422);
  background: var(--sage-soft);
}

.model-provider > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.model-provider b {
  font-size: 12px;
  font-weight: 650;
}

.model-provider small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-provider-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: transparent;
  background: #f1f1ec;
  border-radius: 50%;
}

.model-provider-check svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.model-provider.active .model-provider-check {
  color: #fff;
  background: var(--accent);
}

.model-fields {
  margin-top: 15px;
}

.model-field {
  display: flex;
  flex-direction: column;
}

.model-field > span {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 620;
}

.model-field input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font-size: 11.5px;
}

.model-field input:focus {
  border-color: rgba(207, 66, 40, .4);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .08);
}

.model-field input:disabled {
  color: var(--muted);
  background: #f4f4ef;
  cursor: not-allowed;
}

.model-field small {
  margin-top: 5px;
  color: var(--faint);
  font-size: 8.5px;
}

.model-field-row {
  display: grid;
  margin-top: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.model-url-field {
  margin-top: 11px;
}

.model-context-budget {
  margin-top: 13px;
  padding: 11px;
  background: rgba(249, 249, 246, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.model-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.model-context-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
}

.model-context-head h3 span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.model-context-head p,
.model-context-note {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}

.model-context-head output {
  flex: none;
  padding: 3px 7px;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 1px solid rgba(207, 66, 40, .13);
  border-radius: 999px;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.model-context-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.model-context-row + .model-context-row {
  margin-top: 7px;
}

.model-context-row > label {
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 620;
}

.model-context-row > input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.model-context-row > input::-webkit-inner-spin-button,
.model-context-row > input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.model-context-row > input:focus {
  border-color: rgba(207, 66, 40, .4);
  box-shadow: 0 0 0 3px rgba(207, 66, 40, .08);
}

.model-token-presets {
  display: flex;
  align-items: center;
  gap: 2px;
}

.model-token-presets button {
  min-width: 35px;
  height: 27px;
  padding: 0 5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 8.5px;
  text-decoration: underline;
  text-decoration-color: rgba(94, 98, 90, .32);
  text-underline-offset: 2px;
  cursor: pointer;
}

.model-token-presets button:hover {
  color: var(--accent-deep);
  background: rgba(207, 66, 40, .06);
}

.model-token-presets button.active {
  color: var(--accent-deep);
  background: var(--accent-pale);
  text-decoration-color: transparent;
}

.model-token-presets button:focus-visible {
  outline: 2px solid rgba(207, 66, 40, .2);
  outline-offset: 1px;
}

.model-context-note {
  margin-top: 8px;
}

.model-fallback {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 11px;
  background: rgba(249, 249, 246, .82);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.model-fallback input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.model-fallback:has(input:disabled) {
  cursor: default;
  opacity: .68;
}

.model-switch {
  position: relative;
  width: 31px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  background: #d8d9d3;
  border-radius: 999px;
  transition: background .16s;
}

.model-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(37, 39, 37, .16);
  content: "";
  transition: transform .16s var(--ease);
}

.model-fallback input:checked + .model-switch {
  background: var(--accent);
}

.model-fallback input:checked + .model-switch::after {
  transform: translateX(13px);
}

.model-fallback input:focus-visible + .model-switch {
  outline: 3px solid rgba(207, 66, 40, .18);
  outline-offset: 2px;
}

.model-fallback > span:last-child {
  display: flex;
  flex-direction: column;
}

.model-fallback b {
  font-size: 10px;
  font-weight: 620;
}

.model-fallback small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 8.5px;
}

.model-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 10px;
  color: #8e6027;
  background: #fbf4e7;
  border: 1px solid #f1e2c6;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.55;
}

.model-privacy-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

.model-local-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding: 22px;
  background:
    radial-gradient(180px 120px at 6% 0%, rgba(207, 66, 40, .11), transparent 74%),
    rgba(255, 255, 255, .74);
  border: 1px solid rgba(207, 66, 40, .18);
  border-radius: 15px;
}

.model-local-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 14px;
}

.model-local-orb svg {
  width: 24px;
  height: 24px;
}

.model-local-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.02em;
}

.model-local-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.model-settings-status {
  min-height: 34px;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.model-settings-status.is-success {
  color: var(--sage);
}

.model-settings-status.is-error {
  color: var(--danger);
}

.model-settings-status.is-loading {
  color: var(--accent-deep);
}

.model-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px 17px;
  border-top: 1px solid var(--line);
}

.model-dialog-foot > div {
  display: flex;
  gap: 7px;
}

.model-test-button,
.model-cancel-button,
.model-save-button {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 620;
  cursor: pointer;
}

.model-test-button,
.model-cancel-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.model-test-button:hover,
.model-cancel-button:hover {
  color: var(--ink);
  background: #fff;
}

.model-save-button {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 6px 16px rgba(207, 66, 40, .2);
}

.model-save-button:hover:not(:disabled) {
  background: var(--accent-deep);
}

.model-save-button:disabled,
.model-test-button:disabled {
  opacity: .58;
  cursor: wait;
}

/* ---------- MCP 连接 ---------- */
.mcp-nav-icon {
  color: #2e7768;
  background: #e7f4ef;
}

.mcp-dialog {
  width: min(820px, calc(100vw - 34px));
}

.mcp-dialog-mark {
  background: #2e7768;
  box-shadow: 0 8px 22px rgba(46, 119, 104, .2);
}

.mcp-dialog-body {
  padding-bottom: 18px;
}

.mcp-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background:
    radial-gradient(220px 120px at 0 0, rgba(46, 119, 104, .1), transparent 72%),
    rgba(255, 255, 255, .76);
  border: 1px solid rgba(46, 119, 104, .17);
  border-radius: 14px;
}

.mcp-overview > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mcp-overview b {
  font-size: 11.5px;
  font-weight: 650;
}

.mcp-overview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.mcp-refresh-button,
.mcp-server-action,
.mcp-server-toggle {
  height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 620;
  cursor: pointer;
}

.mcp-refresh-button {
  flex: none;
}

.mcp-refresh-button:hover:not(:disabled),
.mcp-server-action:hover:not(:disabled) {
  color: var(--ink);
  background: #fff;
}

.mcp-refresh-button:disabled,
.mcp-server-action:disabled,
.mcp-server-toggle:disabled {
  opacity: .55;
  cursor: wait;
}

.mcp-server-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mcp-server-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.mcp-server-card.is-disabled {
  opacity: .72;
  background: rgba(247, 247, 242, .74);
}

.mcp-server-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #2e7768;
  background: #e7f4ef;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: -.03em;
}

.mcp-server-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mcp-server-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mcp-server-title b {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-server-transport,
.mcp-server-state {
  flex: none;
  padding: 2px 6px;
  color: var(--muted);
  background: #f1f2ed;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 640;
  text-transform: uppercase;
}

.mcp-server-state.ok {
  color: #246557;
  background: #e6f4ee;
}

.mcp-server-state.error {
  color: #ad3e2d;
  background: #fdebe6;
}

.mcp-server-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcp-server-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mcp-server-toggle.is-on {
  color: #246557;
  background: #e6f4ee;
  border-color: rgba(46, 119, 104, .18);
}

.mcp-server-toggle:hover:not(:disabled) {
  color: var(--ink);
}

.mcp-empty {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(249, 249, 246, .72);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
}

.mcp-empty b {
  color: var(--ink);
  font-size: 11px;
}

.mcp-empty span {
  margin-top: 4px;
  font-size: 9px;
}

.mcp-editor {
  margin-top: 14px;
  padding: 13px;
  background: rgba(249, 249, 246, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mcp-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mcp-editor-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
}

.mcp-editor-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8.7px;
}

.mcp-editor-head a {
  flex: none;
  color: #2e7768;
  font-size: 8.8px;
  text-decoration: none;
}

.mcp-editor code {
  padding: 1px 4px;
  color: #315d55;
  background: #eaf2ef;
  border-radius: 4px;
  font-size: .94em;
}

.mcp-config-field {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.mcp-config-field > span {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 620;
}

.mcp-config-field textarea {
  width: 100%;
  min-height: 154px;
  padding: 10px 11px;
  color: #253b36;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
  resize: vertical;
}

.mcp-config-field textarea:focus {
  border-color: rgba(46, 119, 104, .4);
  box-shadow: 0 0 0 3px rgba(46, 119, 104, .08);
}

.mcp-editor-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.5;
}

.mcp-editor-notes label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  cursor: pointer;
}

.mcp-editor-notes input {
  accent-color: #2e7768;
}

.mcp-editor-status {
  min-height: 24px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.mcp-editor-status.is-success {
  color: #246557;
}

.mcp-editor-status.is-error {
  color: var(--danger);
}

.mcp-editor-status.is-loading {
  color: #2e7768;
}

.mcp-modal .model-save-button {
  background: #2e7768;
  border-color: #2e7768;
  box-shadow: 0 6px 16px rgba(46, 119, 104, .2);
}

.mcp-modal .model-save-button:hover:not(:disabled) {
  background: #246557;
}

@media (max-width: 680px) {
  .mcp-dialog-body {
    padding: 13px 14px 15px;
  }

  .mcp-server-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .mcp-server-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .mcp-editor-notes {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- 文件详情与单文件分析 ---------- */
.file-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.file-modal-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(31, 34, 30, .28);
  border: 0;
  backdrop-filter: blur(5px);
}

.file-dialog {
  position: relative;
  display: flex;
  width: min(790px, calc(100vw - 30px));
  max-height: calc(100dvh - 40px);
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(82, 86, 78, .13);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(39, 42, 36, .18), 0 2px 8px rgba(39, 42, 36, .05);
  animation: fileDialogIn .2s var(--ease);
}

.file-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.file-dialog-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid rgba(244, 121, 74, .18);
  border-radius: 11px;
}

.file-dialog-icon svg {
  width: 19px;
  height: 19px;
}

.file-dialog-title {
  min-width: 0;
  flex: 1;
}

.file-dialog-title h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-dialog-title p {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.file-dialog-close svg {
  width: 14px;
  height: 14px;
}

.file-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 0;
}

.file-dialog-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.file-dialog-tab {
  height: 27px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.file-dialog-tab.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(39, 42, 36, .08);
}

.file-dialog-state {
  color: var(--faint);
  font-size: 10.5px;
}

.file-dialog-state.done { color: var(--sage); }
.file-dialog-state.analyzing { color: #a57520; }
.file-dialog-state.error { color: var(--danger); }

.file-dialog-actions {
  display: flex;
  gap: 7px;
  padding: 11px 20px;
}

.file-dialog-action {
  display: inline-flex;
  height: 31px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.file-dialog-action:hover {
  color: var(--ink);
  border-color: #c7c9c0;
  background: var(--paper);
}

.file-dialog-action.primary {
  margin-left: auto;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.file-dialog-action.primary:hover {
  color: #fff;
  background: var(--accent-deep);
}

.file-dialog-action.disabled {
  opacity: .4;
  pointer-events: none;
}

.file-dialog-action:disabled {
  cursor: default;
  opacity: .62;
}

.file-dialog-link {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  margin: 0 20px 11px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10.5px;
}

.file-dialog-link a {
  margin-left: auto;
  color: var(--accent-deep);
  font-weight: 550;
}

.file-dialog-associate {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 20px 11px;
}

.file-dialog-associate label {
  flex: none;
  color: var(--faint);
  font-size: 10.5px;
}

.file-dialog-associate select {
  min-width: 0;
  height: 30px;
  flex: 1;
  padding: 0 9px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 10.5px;
}

.file-dialog-associate button {
  height: 30px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 10.5px;
  cursor: pointer;
}

.file-dialog-notice {
  margin: 0 20px 10px;
  padding: 8px 10px;
  color: #886320;
  background: #fff8e8;
  border: 1px solid #f1dfb2;
  border-radius: 8px;
  font-size: 10.5px;
}

.file-dialog-pane {
  min-height: 220px;
  max-height: min(72vh, 780px);
  overflow: auto;
  border-top: 1px solid var(--line);
}

.file-dialog-pane > pre {
  min-height: 220px;
  margin: 0;
  padding: 19px 23px 30px;
  color: var(--ink-soft);
  background: transparent;
  font: 12.5px/1.85 var(--font);
  white-space: pre-wrap;
  word-break: break-word;
}

.file-image-preview {
  display: grid;
  min-height: 240px;
  padding: 18px;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(44, 47, 42, .025) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, rgba(44, 47, 42, .025) 25%, transparent 25%) 0 9px / 18px 18px,
    #fbfaf7;
  border-bottom: 1px solid var(--line);
}

.file-image-preview[hidden] {
  display: none;
}

.file-image-preview a {
  display: block;
  max-width: min(760px, 100%);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 14px 40px rgba(50, 43, 37, .12);
}

.file-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.file-analysis-empty {
  padding: 45px 26px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
  text-align: center;
}

#fileAnalysis {
  padding: 18px 23px 30px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.78;
}

#fileAnalysis:empty {
  display: none;
}

#fileAnalysis h1,
#fileAnalysis h2,
#fileAnalysis h3 {
  color: var(--ink);
}

#fileAnalysis h2 {
  margin: 19px 0 7px;
  font-size: 14px;
}

#fileAnalysis h2:first-child {
  margin-top: 0;
}

#fileAnalysis ul,
#fileAnalysis ol {
  padding-left: 21px;
}

#fileAnalysis li {
  margin: 5px 0;
}

@keyframes fileDialogIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.composer {
  width: 100%;
  margin: 0 auto;
  padding: 15px 15px 9px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 17px 45px rgba(77, 44, 31, .095), 0 2px 7px rgba(77, 44, 31, .03);
  transition: border-color .18s, box-shadow .18s;
}

.composer:focus-within {
  border-color: #dfc3b5;
  box-shadow: 0 19px 50px rgba(77, 44, 31, .12), 0 0 0 3px rgba(207, 66, 40, .065);
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 31px;
  max-height: 150px;
  padding: 0 2px 9px;
  overflow-y: auto;
  resize: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  line-height: 1.65;
}

.composer textarea::placeholder {
  color: #9da09b;
}

.image-mode-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 8px;
  padding: 7px 8px;
  background:
    linear-gradient(120deg, rgba(255, 241, 232, .82), rgba(243, 238, 250, .78));
  border: 1px solid rgba(205, 184, 175, .28);
  border-radius: 12px;
}

.image-mode-label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
}

.image-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  flex: none;
  color: #9d6548;
  background: rgba(255, 255, 255, .74);
  border-radius: 8px;
}

.image-mode-icon svg {
  width: 15px;
  height: 15px;
}

.image-mode-label > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.image-mode-label b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.image-mode-label small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-mode-bar select {
  height: 29px;
  max-width: 132px;
  padding: 0 22px 0 8px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(203, 190, 183, .5);
  border-radius: 8px;
  outline: 0;
  font-size: 9px;
}

.image-mode-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.image-mode-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
}

.image-mode-close svg {
  width: 12px;
  height: 12px;
}

.local-file-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  padding: 8px 9px;
  background:
    linear-gradient(120deg, rgba(238, 246, 239, .9), rgba(245, 245, 240, .82));
  border: 1px solid rgba(207, 66, 40, .22);
  border-radius: 12px;
}

.local-file-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, .76);
  border-radius: 9px;
}

.local-file-mode-icon svg {
  width: 16px;
  height: 16px;
}

.local-file-mode-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.local-file-mode-copy b {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.local-file-mode-copy small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-file-mode-safety {
  max-width: 235px;
  padding: 3px 7px;
  color: var(--accent-deep);
  background: rgba(232, 244, 234, .82);
  border: 1px solid rgba(207, 66, 40, .14);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 620;
  text-align: right;
}

.local-file-mode-safety.external {
  color: #9a652c;
  background: #fbf2df;
  border-color: #efdfbd;
}

.local-file-mode-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: none;
  padding: 0;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.local-file-mode-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .67);
}

.local-file-change {
  min-height: 25px;
  flex: none;
  padding: 4px 7px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(207, 66, 40, .18);
  border-radius: 8px;
  font: inherit;
  font-size: 8.5px;
  cursor: pointer;
}

.local-file-change:disabled {
  opacity: .55;
  cursor: wait;
}

.local-file-change:hover {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .92);
}

.local-file-mode-close svg {
  width: 12px;
  height: 12px;
}

.composer-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.composer-tools {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.composer-actions {
  display: flex;
  min-width: max-content;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.tool-button,
.round-tool,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}

.tool-button {
  flex: 0 0 auto;
  gap: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: #f5f5f1;
  border-radius: 10px;
  font-size: 11.5px;
  white-space: nowrap;
}

.tool-button:hover {
  color: var(--ink);
  background: #eeeeea;
}

.image-tool-button.active {
  color: #a55e3f;
  background: #ffede3;
  box-shadow: inset 0 0 0 1px rgba(201, 108, 73, .12);
}

.article-tool-button {
  color: #93452f;
  background: #fff1ea;
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .08);
}

.article-tool-button:hover,
.article-tool-button.active {
  color: #fffdf9;
  background: #2f5548;
  box-shadow: inset 0 0 0 1px rgba(47, 85, 72, .12);
}

.local-file-tool.active {
  color: var(--accent-deep);
  background: #e8f1e9;
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .14);
}

.tool-button svg {
  width: 16px;
  height: 16px;
}

.composer-hint {
  display: block;
  margin: 8px 3px 0;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.45;
  text-align: right;
}

.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 8px;
  color: var(--faint);
  background: #f7f7f3;
  border: 1px solid #ededE7;
  border-radius: 999px;
  font-size: 9.5px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.local-pill b {
  font-weight: 500;
}

.local-pill.external {
  color: #9d6b2e;
  background: #fbf2df;
  border-color: #f0dfbd;
}

.local-pill.external span {
  background: #d69a47;
}

.local-pill span {
  width: 5px;
  height: 5px;
}

.round-tool {
  width: 34px;
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
}

.round-tool:hover {
  color: var(--ink);
  background: #f2f2ee;
}

.round-tool svg {
  width: 18px;
  height: 18px;
}

.send-button {
  width: 36px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.send-button:hover:not(:disabled) {
  background: var(--accent-deep);
  transform: scale(1.03);
}

.send-button:disabled {
  color: #b7b9b4;
  background: #ededE9;
}

.send-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.composer-note {
  margin: 8px 0 0;
  color: #a2a49f;
  text-align: center;
  font-size: 9.5px;
}

.toast {
  position: fixed;
  top: 78px;
  left: 50%;
  z-index: 120;
  max-width: min(440px, calc(100vw - 32px));
  padding: 9px 14px;
  transform: translate(-50%, -8px);
  color: #fff;
  background: rgba(37, 39, 37, .92);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------------- 实时对话页 ---------------- */
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(620px 520px at 50% 39%, rgba(255, 221, 199, .41), transparent 67%),
    radial-gradient(460px 380px at 20% 10%, rgba(216, 233, 219, .33), transparent 72%),
    radial-gradient(520px 360px at 90% 80%, rgba(216, 230, 239, .28), transparent 72%),
    #fbf8f4;
  animation: callIn .45s var(--ease) both;
}

.call-screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(80, 72, 62, .085) .65px, transparent .65px);
  background-size: 13px 13px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  opacity: .26;
  content: "";
}

.call-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  flex: none;
  padding: 0 30px;
}

.call-head .icon-button {
  justify-self: end;
}

.call-head-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.call-private {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  color: inherit;
  background: rgba(255, 255, 255, .59);
  border: 1px solid rgba(231, 231, 225, .9);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}

.call-private:hover {
  background: rgba(255, 255, 255, .88);
}

.call-private i {
  width: 5px;
  height: 5px;
}

.call-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 3vh 24px 24px;
  flex-direction: column;
  align-items: center;
}

.screen-share-stage {
  position: relative;
  display: none;
  width: min(980px, 96%);
  min-height: 180px;
  flex: 1 1 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .055), transparent 44%),
    #161817;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(22, 24, 23, .28);
}

.screen-share-stage[hidden] {
  display: none;
}

.screen-share-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111312;
}

.screen-share-banner {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 6px 7px 6px 12px;
  color: rgba(255, 255, 255, .86);
  background: rgba(23, 25, 24, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  font-size: 10.5px;
  backdrop-filter: blur(14px);
}

.screen-share-banner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.screen-share-banner i {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(207, 66, 40, .12);
  animation: softPulse 1.8s infinite;
}

.screen-share-banner button {
  height: 28px;
  flex: none;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}

.screen-share-banner button:hover {
  background: rgba(255, 255, 255, .19);
}

.call-screen.is-sharing {
  background:
    radial-gradient(700px 520px at 50% 38%, rgba(255, 204, 174, .16), transparent 66%),
    radial-gradient(500px 380px at 15% 5%, rgba(239, 170, 137, .11), transparent 72%),
    #111312;
}

.call-screen.is-sharing::before {
  opacity: .1;
}

.call-screen.is-sharing .call-head {
  color: #f7f3ec;
}

.call-screen.is-sharing .call-head .brand,
.call-screen.is-sharing .call-head .brand-name,
.call-screen.is-sharing .call-head-meta,
.call-screen.is-sharing .call-head .icon-button {
  color: rgba(255, 255, 255, .86);
}

.call-screen.is-sharing .call-private {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .13);
}

.call-screen.is-sharing .call-private:hover {
  background: rgba(255, 255, 255, .15);
}

.call-screen.is-sharing .call-private i {
  background: var(--accent);
}

.call-screen.is-sharing .call-body {
  padding: 4px 22px 12px;
}

.call-screen.is-sharing .screen-share-stage {
  display: flex;
}

.call-screen.is-sharing .call-copy {
  display: none;
}

.call-screen.is-sharing .voice-stage,
.call-screen.is-sharing .voice-stage.has-3d {
  position: absolute;
  top: clamp(78px, 10vh, 108px);
  right: clamp(34px, 4vw, 62px);
  z-index: 7;
  width: clamp(112px, 14vw, 168px);
  height: clamp(112px, 14vw, 168px);
  min-height: 0;
  flex: none;
  margin: 0;
  overflow: hidden;
  background: rgba(17, 19, 18, .74);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.call-screen.is-sharing .voice-stage .voice-core,
.call-screen.is-sharing .voice-stage .call-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.call-screen.is-sharing .voice-ring {
  display: none;
}

.call-screen.is-sharing .voice-bars {
  display: none;
  position: absolute;
  right: clamp(34px, 4vw, 62px);
  bottom: 82px;
  z-index: 8;
  width: clamp(112px, 14vw, 168px);
  height: 24px;
  margin: 0;
  pointer-events: none;
}

.call-screen.is-sharing .voice-bars i {
  background: rgba(255, 255, 255, .72);
}

.call-screen.is-sharing .live-caption {
  width: min(900px, 94%);
  max-height: clamp(72px, 17vh, 160px);
  min-height: 38px;
  margin-top: 9px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  backdrop-filter: blur(14px);
}

.call-screen.is-sharing .caption-turn {
  color: rgba(255, 255, 255, .86);
}

.call-screen.is-sharing .caption-question {
  color: rgba(255, 255, 255, .56);
}

.call-screen.is-sharing .caption-answer,
.call-screen.is-sharing .caption-body strong,
.call-screen.is-sharing .caption-body h1,
.call-screen.is-sharing .caption-body h2,
.call-screen.is-sharing .caption-body h3 {
  color: #fff;
}

.call-copy {
  text-align: center;
}

.call-kicker {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .12em;
}

.call-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 3.3vw, 38px);
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: -.045em;
}

.call-copy > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.call-retry {
  height: 36px;
  margin-top: 13px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.call-retry:hover {
  background: #3b3e3a;
}

.voice-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(230px, 30vh, 330px);
  height: clamp(230px, 30vh, 330px);
  margin: clamp(30px, 6vh, 68px) 0 0;
}

.voice-core {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  height: 146px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow:
    0 16px 50px rgba(166, 107, 76, .15),
    0 0 0 10px rgba(255, 255, 255, .23),
    inset 0 0 0 1px rgba(229, 209, 196, .28);
  backdrop-filter: blur(12px);
}

.call-avatar {
  width: 108px;
  height: 108px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 12px 34px rgba(90, 60, 43, .17),
    0 0 0 1px rgba(147, 104, 79, .1);
}

.call-avatar-3d {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.voice-stage.has-3d {
  width: min(760px, 92vw);
  height: auto;
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0;
}

.call-screen.has-avatar-3d .call-body {
  padding: clamp(4px, 1vh, 12px) 16px 6px;
}

.call-screen.has-avatar-3d .call-copy {
  position: relative;
  z-index: 4;
  flex: none;
  pointer-events: none;
}

.call-screen.has-avatar-3d .voice-ring {
  width: min(54vh, 430px);
  height: min(54vh, 430px);
}

.voice-stage.has-3d .voice-core,
.voice-stage.has-3d .call-avatar {
  width: 100%;
  height: 100%;
}

.voice-stage.has-3d .voice-core {
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  backdrop-filter: none;
}

.voice-stage.has-3d .call-avatar {
  overflow: visible;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  background: transparent;
}

.voice-stage.has-render-avatar .call-avatar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  background: #e3e2df;
  box-shadow:
    0 24px 80px rgba(102, 78, 61, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .38);
}

.voice-stage.has-render-avatar .call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.035) contrast(1.025);
  transform: scale(1.012);
}

.voice-stage.has-render-avatar .call-avatar::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 28px 46px rgba(255, 255, 255, .06),
    inset 0 -34px 58px rgba(114, 78, 56, .1);
  content: "";
}

.voice-stage.has-render-avatar .voice-ring {
  display: none;
}

.voice-stage.has-render-avatar.speaking .call-avatar img {
  filter: saturate(1.07) contrast(1.035) brightness(1.015);
}

@media (max-aspect-ratio: 3/4) {
  .voice-stage.has-render-avatar .call-avatar img {
    object-fit: contain;
  }
}

.voice-stage.has-3d .voice-ring {
  width: 82%;
  height: 82%;
}

.voice-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(236, 173, 143, .3);
  border-radius: 50%;
  opacity: 0;
}

.voice-ring.ring-a {
  animation: voiceRing 3.4s infinite var(--ease);
}

.voice-ring.ring-b {
  animation: voiceRing 3.4s .9s infinite var(--ease);
}

.voice-ring.ring-c {
  animation: voiceRing 3.4s 1.8s infinite var(--ease);
}

.voice-stage.speaking .voice-core {
  box-shadow:
    0 16px 54px rgba(166, 107, 76, .2),
    0 0 0 13px rgba(255, 255, 255, .3),
    inset 0 0 0 1px rgba(229, 176, 147, .38);
}

.voice-stage.speaking .voice-ring {
  border-color: rgba(232, 151, 114, .45);
  animation-duration: 1.7s;
}

.voice-stage.thinking .call-avatar {
  animation: markBreathe 1.3s infinite ease-in-out;
}

.voice-stage.muted .voice-core {
  filter: saturate(.45);
  opacity: .82;
}

.voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 31px;
  margin-top: 2px;
}

.voice-bars i {
  width: 3px;
  height: 5px;
  background: #d8a187;
  border-radius: 999px;
  opacity: .48;
  transition: height .14s, opacity .14s;
}

.voice-bars.active i {
  opacity: .9;
  animation: voiceBar 1.1s infinite ease-in-out;
}

.voice-bars.active i:nth-child(2),
.voice-bars.active i:nth-child(8) {
  animation-delay: -.32s;
}

.voice-bars.active i:nth-child(3),
.voice-bars.active i:nth-child(9) {
  animation-delay: -.54s;
}

.voice-bars.active i:nth-child(4),
.voice-bars.active i:nth-child(10) {
  animation-delay: -.18s;
}

.voice-bars.active i:nth-child(5),
.voice-bars.active i:nth-child(11) {
  animation-delay: -.66s;
}

.voice-bars.active i:nth-child(6),
.voice-bars.active i:nth-child(12) {
  animation-delay: -.42s;
}

.voice-bars.active i:nth-child(7),
.voice-bars.active i:nth-child(13) {
  animation-delay: -.77s;
}

.live-caption {
  width: min(630px, 88vw);
  max-height: clamp(92px, 24vh, 230px);
  min-height: 45px;
  margin-top: 18px;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: thin;
}

.caption-label {
  color: var(--faint);
  font-size: 11px;
}

.caption-turn {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.caption-question {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
}

.caption-answer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
}

.caption-who {
  flex: none;
  padding-top: 2px;
  font-size: 11px;
  font-weight: 650;
}

.caption-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.caption-body > :first-child {
  margin-top: 0;
}

.caption-body > :last-child {
  margin-bottom: 0;
}

.caption-body p {
  margin: 0 0 5px;
}

.caption-body ul,
.caption-body ol {
  margin: 3px 0 6px;
  padding-left: 1.25em;
}

.caption-body li {
  margin: 2px 0;
}

.caption-body h1,
.caption-body h2,
.caption-body h3 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.caption-body strong {
  color: var(--ink);
  font-weight: 650;
}

.caption-body code {
  padding: 1px 4px;
  color: #8b4e38;
  background: #f7eee9;
  border-radius: 4px;
  font: 11.5px/1.6 "SFMono-Regular", Consolas, monospace;
}

.caption-body pre {
  margin: 6px 0;
  padding: 9px 11px;
  overflow: auto;
  color: #e8eae5;
  background: #2e312e;
  border-radius: 10px;
}

.caption-body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.caption-body blockquote {
  margin: 5px 0;
  padding: 1px 0 1px 10px;
  color: var(--muted);
  border-left: 2px solid #e8cdbf;
}

.caption-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.call-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 76px 1fr 1fr;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  flex: none;
  margin: 0 auto;
  padding: 8px 22px 30px;
}

.call-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  flex-direction: column;
  font-size: 10px;
  cursor: pointer;
}

.call-action:hover {
  color: var(--ink);
}

.call-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .67);
  border: 1px solid rgba(231, 231, 225, .92);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(55, 51, 46, .045);
  transition: background .15s, transform .15s;
}

.call-action:hover .call-action-icon {
  background: #fff;
}

.call-action:active .call-action-icon {
  transform: scale(.96);
}

.call-action-icon svg {
  width: 18px;
  height: 18px;
}

.call-action:nth-child(1) {
  justify-self: center;
}

.call-action:nth-child(2) {
  justify-self: center;
}

.hangup {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  transform: none;
  color: #fff;
  background: #cf5d4c;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(185, 74, 58, .26);
  cursor: pointer;
  grid-column: 3;
  justify-self: center;
  transition: transform .16s, background .16s;
}

.hangup:hover {
  transform: scale(1.04);
  background: #bd4d3d;
}

.hangup svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

.call-action:nth-child(4) {
  justify-self: center;
}

.call-action:nth-child(5) {
  justify-self: center;
}

.call-screen.is-sharing .call-action,
.call-screen.is-sharing .hangup {
  color: rgba(255, 255, 255, .62);
}

.call-screen.is-sharing .call-action:hover {
  color: #fff;
}

.call-screen.is-sharing .call-action-icon {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

.call-screen.is-sharing .call-action:hover .call-action-icon {
  background: rgba(255, 255, 255, .14);
}

.call-screen.is-sharing #screenShareButton .call-action-icon {
  color: #ffd7c4;
  background: rgba(207, 66, 40, .16);
  border-color: rgba(207, 66, 40, .24);
}

@keyframes heroIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes skillDialogIn {
  from {
    transform: translateY(12px) scale(.985);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes skillLoading {
  from {
    background-position: -160px 0, 0 0;
  }
  to {
    background-position: calc(100% + 160px) 0, 0 0;
  }
}

@keyframes messageIn {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes sentenceVoiceBar {
  from {
    transform: scaleY(.42);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes sentenceVoiceLoad {
  from {
    transform: scaleY(.3);
    opacity: .32;
  }
  to {
    transform: scaleY(.8);
    opacity: .7;
  }
}

@keyframes floatingVoiceIn {
  from {
    transform: translateY(10px) scale(.98);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes voiceSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes callIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes typing {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: .45;
  }
  35% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes thinkingSpark {
  0%,
  100% {
    transform: rotate(0) scale(.92);
    opacity: .68;
  }
  50% {
    transform: rotate(16deg) scale(1.06);
    opacity: 1;
  }
}

@keyframes softPulse {
  50% {
    opacity: .35;
  }
}

@keyframes uploadWait {
  0% {
    transform: scaleX(.05);
  }
  45% {
    transform: scaleX(.7);
  }
  100% {
    transform: translateX(100%) scaleX(1);
  }
}

@keyframes voiceRing {
  0% {
    transform: translate(-50%, -50%) scale(.62);
    opacity: 0;
  }
  24% {
    opacity: .8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.32);
    opacity: 0;
  }
}

@keyframes voiceBar {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 23px;
  }
}

@keyframes markBreathe {
  50% {
    transform: scale(.92);
    opacity: .74;
  }
}

@media (max-width: 1240px) {
  .model-status {
    display: none;
  }

  .top-observatory,
  .top-skills,
  .top-article,
  .top-call {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .top-observatory span,
  .top-skills span,
  .top-article span,
  .top-call span {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .starter-list {
    grid-template-columns: 1fr;
    gap: 7px;
    max-width: 430px;
  }

  .starter {
    min-height: 57px;
  }

  .welcome {
    padding-top: 64px;
  }

  .featured-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-skill:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .featured-skill:nth-child(even) {
    border-right: 0;
  }

  .featured-skill:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .featured-skill:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .skill-dialog-body {
    grid-template-columns: minmax(0, 1fr) 258px;
  }

  .skill-library {
    padding-right: 15px;
    padding-left: 15px;
  }

  .skill-installer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .composer-hint {
    display: none;
  }

  .top-article {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .top-article span {
    display: none;
  }
}

@media (max-width: 720px) {
  .top-article {
    display: none;
  }

  .model-modal {
    padding: 0;
  }

  .model-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .model-dialog-head {
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 13px 14px 12px;
  }

  .model-dialog-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .model-dialog-mark svg {
    width: 19px;
    height: 19px;
  }

  .model-dialog-head h2 {
    font-size: 20px;
  }

  .model-dialog-head > div > span {
    display: none;
  }

  .model-dialog-body {
    padding: 14px 13px 10px;
  }

  .model-provider-picker {
    grid-template-columns: 1fr;
  }

  .model-provider {
    min-height: 65px;
  }

  .model-field-row {
    grid-template-columns: 1fr;
  }

  .model-context-row {
    grid-template-columns: 38px minmax(88px, 1fr) auto;
    gap: 6px;
  }

  .model-token-presets button {
    min-width: 29px;
    padding: 0 3px;
  }

  .model-local-panel {
    align-items: flex-start;
    padding: 17px;
  }

  .model-dialog-foot {
    padding: 11px 13px calc(12px + env(safe-area-inset-bottom));
  }

  .model-dialog-foot > div {
    flex: 1;
    justify-content: flex-end;
  }

  .model-test-button {
    padding: 0 10px;
  }

  .file-modal {
    padding: 0;
  }

  .file-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .file-dialog-head {
    padding: 14px 15px 12px;
  }

  .file-dialog-toolbar,
  .file-dialog-actions {
    padding-right: 15px;
    padding-left: 15px;
  }

  .file-dialog-link,
  .file-dialog-associate,
  .file-dialog-notice {
    margin-right: 15px;
    margin-left: 15px;
  }

  .file-dialog-associate {
    flex-wrap: wrap;
  }

  .file-dialog-associate select {
    width: 100%;
    flex-basis: 100%;
  }

  .file-dialog-pane {
    max-height: none;
    flex: 1;
  }

  .file-dialog-actions {
    flex-wrap: wrap;
  }

  .file-dialog-action.primary {
    margin-left: 0;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 310px);
    transform: translateX(-102%);
    box-shadow: 24px 0 65px rgba(38, 39, 34, .18);
    transition: transform .25s var(--ease);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

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

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(35, 36, 32, .24);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .sidebar-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    width: 100%;
    height: 100dvh;
  }

  .mobile-menu {
    position: fixed;
    top: 17px;
    left: 14px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 9px;
  }

  .mobile-menu svg {
    width: 20px;
    height: 20px;
  }

  .topbar {
    height: 62px;
    padding: 0 14px 0 57px;
  }

  .topbar::after {
    right: 14px;
    left: 14px;
  }

  .mobile-brand-mark {
    display: none;
  }

  .topbar-kicker {
    display: none;
  }

  .topbar-name {
    max-width: 37vw;
    font-size: 14px;
  }

  .model-status {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .top-skills {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .top-observatory {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .top-observatory span {
    display: none;
  }

  .top-skills span {
    display: none;
  }

  .top-call {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .top-call span {
    display: none;
  }

  .top-login {
    width: 36px;
    padding: 0;
  }

  .top-login span {
    display: none;
  }

  .welcome {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 62px 0 280px;
  }

  .hero-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .welcome h1 {
    font-size: 35px;
  }

  .welcome-lead {
    max-width: 260px;
    line-height: 1.7;
  }

  .starter-list {
    width: 100%;
    margin-top: 28px;
  }

  .skill-shelf {
    margin-top: 25px;
  }

  .skill-shelf-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .skill-shelf-actions {
    width: 100%;
  }

  .skill-quiet-button,
  .skill-manage-button {
    flex: 1;
  }

  .featured-skill {
    min-height: 72px;
    padding: 10px;
    grid-template-columns: 31px minmax(0, 1fr) 8px;
    gap: 8px;
  }

  .featured-skill-copy small {
    -webkit-line-clamp: 1;
  }

  .featured-skill-state {
    width: 6px;
    height: 6px;
  }

  .skill-modal {
    padding: 0;
  }

  .skill-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .skill-dialog-head {
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 13px 14px 12px;
  }

  .skill-dialog-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .skill-dialog-mark svg {
    width: 19px;
    height: 19px;
  }

  .skill-dialog-head h2 {
    font-size: 20px;
  }

  .skill-dialog-head > div > span {
    display: none;
  }

  .skill-dialog-body {
    display: block;
    overflow-y: auto;
  }

  .skill-library {
    min-height: auto;
    padding: 14px 13px;
  }

  .skill-library-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .skill-filters {
    align-self: flex-start;
  }

  .skill-library-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .skill-item {
    min-height: 146px;
  }

  .skill-installer {
    min-height: 340px;
    padding: 18px 15px 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .skill-installer-foot {
    margin-top: 8px;
  }

  .chat-view {
    width: calc(100% - 28px);
    padding-top: 21px;
    padding-bottom: 230px;
  }

  .conversation-title {
    padding-bottom: 20px;
  }

  .conversation-title h1 {
    font-size: 22px;
  }

  .message-list {
    gap: 23px;
    padding-top: 21px;
  }

  .message {
    gap: 9px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .message.user {
    padding-left: 32px;
  }

  .message.user .message-body {
    max-width: 88%;
  }

  .message.user .message-content.has-attachments {
    width: 100%;
  }

  .message-image-card img {
    max-height: 210px;
  }

  .message-image-grid:not(.single) .message-image-card img {
    height: 104px;
  }

  .message.assistant .message-content {
    font-size: 13.5px;
  }

  .markdown-body .markdown-table-shell {
    margin: 12px 0 17px;
  }

  .markdown-body table {
    min-width: 390px;
    font-size: 11.5px;
  }

  .markdown-body td,
  .markdown-body th {
    padding: 8px 7px;
  }

  .markdown-body .markdown-callout {
    padding: 10px 12px 10px 14px;
  }

  .markdown-body .markdown-figure {
    margin: 14px 0 18px;
  }

  .markdown-body .markdown-figure img {
    max-height: none;
  }

  .floating-voice {
    right: 12px;
    bottom: calc(108px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) 36px 28px;
    gap: 9px;
    padding: 10px 10px 10px 11px;
    border-radius: 16px;
  }

  .floating-voice-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .composer-zone {
    padding: 24px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .composer-zone::after {
    inset: 6px 11px 8px;
    border-radius: 17px;
    font-size: 12px;
  }

  .active-skills {
    width: 100%;
  }

  .composer {
    padding: 12px 12px 8px;
    border-radius: 19px;
  }

  .image-mode-bar {
    flex-wrap: wrap;
  }

  .image-mode-label {
    flex-basis: calc(100% - 32px);
  }

  .image-mode-bar select {
    max-width: none;
    flex: 1;
  }

  .local-file-mode-bar {
    flex-wrap: wrap;
  }

  .local-file-mode-copy {
    flex-basis: calc(100% - 75px);
  }

  .local-file-mode-safety {
    order: 3;
    width: auto;
    max-width: none;
    flex: 1 1 170px;
    text-align: left;
  }

  .local-file-change {
    order: 3;
  }

  .local-edit-files code {
    max-width: 230px;
  }

  .generated-image-card img {
    max-height: 430px;
  }

  .composer textarea {
    padding-bottom: 8px;
    font-size: 16px;
  }

  .composer-hint,
  .local-pill {
    display: none;
  }

  .local-pill.external {
    display: inline-flex;
  }

  .tool-button {
    padding: 0 9px;
  }

  .composer-note {
    margin-top: 6px;
  }

  .call-head {
    height: 66px;
    padding: 0 16px;
  }

  .call-head .brand-name {
    font-size: 16px;
  }

  .call-head-meta {
    gap: 7px;
  }

  .call-private {
    display: none;
  }

  .call-screen.is-sharing .call-private {
    display: inline-flex;
    padding: 3px 7px;
  }

  .call-screen.is-sharing .call-private span {
    display: none;
  }

  .call-body {
    padding-top: 1vh;
  }

  .call-copy h2 {
    font-size: 27px;
  }

  .voice-stage {
    width: min(270px, 72vw);
    height: min(270px, 72vw);
    margin-top: 20px;
  }

  .voice-stage.has-3d {
    width: min(430px, 100vw);
    height: auto;
    margin-top: 0;
  }

  .voice-core {
    width: 118px;
    height: 118px;
  }

  .call-avatar {
    width: 88px;
    height: 88px;
  }

  .live-caption {
    margin-top: 9px;
  }

  .call-screen.is-sharing .call-body {
    padding: 4px 9px 8px;
  }

  .call-screen.is-sharing .screen-share-stage {
    width: 100%;
    min-height: 130px;
    border-radius: 16px;
  }

  .call-screen.is-sharing .voice-stage,
  .call-screen.is-sharing .voice-stage.has-3d {
    top: 72px;
    right: 19px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
  }

  .call-screen.is-sharing .voice-stage .voice-core,
  .call-screen.is-sharing .voice-stage .call-avatar {
    border-radius: 50%;
  }

  .call-screen.is-sharing .voice-bars {
    right: 19px;
    bottom: 68px;
    width: 96px;
  }

  .call-screen.is-sharing .live-caption {
    width: 100%;
    max-height: 13vh;
  }

  .screen-share-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .screen-share-banner span {
    font-size: 9px;
  }

  .call-controls {
    grid-template-columns: repeat(5, 1fr);
    width: calc(100% - 14px);
    padding: 4px 8px calc(15px + env(safe-area-inset-bottom));
  }

  .call-action:nth-child(1),
  .call-action:nth-child(2),
  .call-action:nth-child(4),
  .call-action:nth-child(5) {
    justify-self: center;
    margin: 0;
  }

  .hangup {
    position: static;
    width: 52px;
    height: 52px;
    transform: none;
    grid-column: 3;
    grid-row: 1;
  }

  .hangup:hover {
    transform: scale(1.03);
  }

  .call-action-icon {
    width: 41px;
    height: 41px;
  }
}

/* Doubao-class capability surface: one composer, explicit intent, visible results. */
.welcome-capabilities {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  animation: heroIn .72s .12s var(--ease) both;
}

.welcome-capability {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(220, 200, 191, .72);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(77, 44, 31, .025);
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s, background .18s, box-shadow .18s;
}

.welcome-capability:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(207, 66, 40, .24);
  box-shadow: 0 9px 24px rgba(77, 44, 31, .07);
}

.welcome-capability > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.welcome-capability b {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-capability small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-capability-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 9px;
}

.welcome-capability-icon svg {
  width: 15px;
  height: 15px;
}

.welcome-capability-icon.search {
  color: #ae432b;
  background: #ffebe4;
}

.welcome-capability-icon.deep {
  color: #76559b;
  background: #f1ebfa;
}

.welcome-capability-icon.writing {
  color: #4f7862;
  background: #eaf4ed;
}

.welcome-capability-icon.data {
  color: #9a6b28;
  background: #fbf1dc;
}

.welcome-capability-icon.slides {
  color: #4d6f95;
  background: #eaf1f8;
}

.welcome-capability-icon.more {
  color: #6f625c;
  background: #f2eeeb;
}

.welcome-capability.more {
  background: rgba(255, 250, 247, .78);
  border-style: dashed;
}

.capability-mode-bar,
.capability-popover {
  position: relative;
  z-index: 4;
  width: min(820px, 100%);
  margin: 0 auto 8px;
  pointer-events: auto;
}

.capability-mode-bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 10px;
  color: var(--ink-soft);
  background:
    linear-gradient(115deg, rgba(255, 244, 238, .96), rgba(249, 246, 255, .94));
  border: 1px solid rgba(207, 66, 40, .2);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(77, 44, 31, .055);
  backdrop-filter: blur(14px);
}

.capability-mode-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, .78);
  border-radius: 9px;
}

.capability-mode-icon svg {
  width: 16px;
  height: 16px;
}

.capability-mode-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.capability-mode-copy b {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 680;
}

.capability-mode-copy small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-mode-close {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  color: var(--faint);
  background: rgba(255, 255, 255, .58);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.capability-mode-close:hover {
  color: var(--ink);
  background: #fff;
}

.capability-mode-close svg {
  width: 12px;
  height: 12px;
}

.capability-tool {
  color: #8f3d29;
  background: #fff0e9;
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .09);
}

.capability-tool:hover,
.capability-tool.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(207, 66, 40, .18);
}

.capability-popover {
  max-height: min(72vh, 650px);
  overflow: auto;
  padding: 14px;
  opacity: 0;
  background:
    radial-gradient(520px 240px at 100% 0, rgba(255, 226, 212, .34), transparent 72%),
    rgba(255, 253, 251, .985);
  border: 1px solid rgba(220, 200, 191, .9);
  border-radius: 21px;
  box-shadow: 0 28px 75px rgba(61, 38, 29, .18), 0 3px 10px rgba(61, 38, 29, .05);
  transform: translateY(8px) scale(.995);
  transform-origin: bottom center;
  transition: opacity .15s ease, transform .18s var(--ease);
  overscroll-behavior: contain;
  backdrop-filter: blur(18px);
}

.capability-popover.is-open {
  opacity: 1;
  transform: none;
}

.capability-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 8px;
}

.capability-popover-head > span {
  display: flex;
  flex-direction: column;
}

.capability-popover-head small {
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
}

.capability-popover-head b {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.capability-popover-head .icon-button {
  width: 31px;
  height: 31px;
}

.capability-popover-head .icon-button svg {
  width: 15px;
  height: 15px;
}

.capability-popover-lead {
  margin: 0 2px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.capability-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capability-group {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.capability-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 7px;
  padding: 0 2px;
}

.capability-group-title span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 680;
}

.capability-group-title small {
  overflow: hidden;
  color: var(--faint);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-grid {
  display: grid;
  gap: 5px;
}

.capability-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}

.capability-card:hover {
  background: #fff9f5;
  border-color: rgba(207, 66, 40, .15);
  transform: translateX(2px);
}

.capability-card.accent {
  background: linear-gradient(120deg, #fff2eb, #fff9f5);
  border-color: rgba(207, 66, 40, .15);
}

.capability-card.is-active,
.capability-card.is-active:hover {
  background: #fff1e9;
  border-color: rgba(207, 66, 40, .28);
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .07);
}

.welcome-capability.is-active {
  background: #fff;
  border-color: rgba(207, 66, 40, .3);
  box-shadow: inset 0 0 0 1px rgba(207, 66, 40, .06);
}

.capability-card.is-active .capability-card-icon {
  color: var(--accent-deep);
  background: #ffe3d7;
}

.capability-card-icon {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #816258;
  background: #f4efeb;
  border-radius: 9px;
}

.capability-card.accent .capability-card-icon {
  color: var(--accent-deep);
  background: #ffe3d7;
}

.capability-card-icon svg {
  width: 15px;
  height: 15px;
}

.capability-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.capability-card b {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-card small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capability-card em {
  align-self: flex-start;
  padding: 1px 5px;
  color: var(--accent-deep);
  background: #fff;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 650;
}

.capability-popover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 9px 4px 1px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 8.5px;
}

.capability-popover-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.capability-popover-foot i {
  width: 6px;
  height: 6px;
  background: #6f9a7b;
  border-radius: 50%;
}

.capability-popover-foot a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-deep);
  font-weight: 620;
  text-decoration: none;
}

.capability-popover-foot a:hover {
  text-decoration: underline;
}

.capability-popover-foot svg {
  width: 11px;
  height: 11px;
}

.message-capability-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 7px;
  color: #8d4632;
  background: #fff1ea;
  border: 1px solid rgba(207, 66, 40, .12);
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 620;
}

.message.user .message-capability-tag {
  align-self: flex-end;
}

.message-capability-tag svg {
  width: 11px;
  height: 11px;
}

.message-sources {
  margin-top: 14px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(255, 249, 245, .95), rgba(249, 250, 247, .95));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.message-sources > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.message-sources > header > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
}

.message-sources > header svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.message-sources > header b {
  font-size: 10px;
  font-weight: 680;
}

.message-sources > header small {
  color: var(--faint);
  font-size: 8px;
}

.message-sources ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.message-sources li {
  min-width: 0;
}

.message-sources li > a {
  display: flex;
  height: 100%;
  min-height: 58px;
  align-items: flex-start;
  gap: 7px;
  padding: 8px;
  color: inherit;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(230, 216, 208, .72);
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}

.message-sources li > a:hover {
  background: #fff;
  border-color: rgba(207, 66, 40, .2);
  transform: translateY(-1px);
}

.message-source-index {
  display: inline-flex;
  min-width: 22px;
  height: 19px;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent-deep);
  background: #ffede5;
  border-radius: 6px;
  font-size: 7.5px;
  font-weight: 700;
}

.message-source-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.message-source-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 620;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-source-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--faint);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-source-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.message-sources li > a > svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--faint);
}

.message-sources > p {
  margin: 8px 1px 0;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
}

.main-feature-showcase {
  width: 100%;
  margin-top: 30px;
  text-align: left;
  animation: heroIn .72s .13s var(--ease) both;
}

.main-feature-showcase-head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3px;
}

.main-feature-showcase-head > div > span {
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
}

.main-feature-showcase-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.main-feature-showcase-head > a {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(207, 66, 40, .28);
  font-size: 10px;
  font-weight: 620;
}

.main-feature-showcase-head > a:hover {
  border-bottom-color: var(--accent-deep);
}

.main-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.main-feature-card {
  display: flex;
  min-width: 0;
  min-height: 126px;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}

.main-feature-card:hover {
  background: rgba(255, 255, 255, .94);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.main-feature-card:focus-visible {
  outline: 3px solid rgba(207, 66, 40, .2);
  outline-offset: 2px;
}

.main-feature-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 10px;
}

.main-feature-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.main-feature-icon.canvas {
  color: #486b5b;
  background: #e5eee8;
}

.main-feature-icon.material {
  color: #79643b;
  background: #f2ead3;
}

.main-feature-icon.publish {
  color: #835745;
  background: #f4e4d9;
}

.main-feature-icon.meeting {
  color: #4e6873;
  background: #e5edf0;
}

.main-feature-icon.growth {
  color: #1b6f5a;
  background: #ddf1e9;
}

.main-feature-icon.workspace {
  color: #83504a;
  background: #f1dfdc;
}

.main-feature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.main-feature-copy small {
  color: var(--faint);
  font-size: 8.5px;
}

.main-feature-copy b {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.main-feature-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.main-feature-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 250px;
  min-height: 150px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(105deg, rgba(255, 237, 229, .82), rgba(255, 255, 255, .72) 64%),
    rgba(255, 255, 255, .72);
  border-color: rgba(207, 66, 40, .2);
}

.main-feature-primary .main-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.main-feature-primary .main-feature-copy b {
  font-size: 20px;
}

.main-feature-primary .main-feature-copy p {
  max-width: 360px;
}

.main-feature-flow {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid rgba(207, 66, 40, .16);
}

.main-feature-flow i {
  position: relative;
  display: grid;
  min-height: 35px;
  padding-left: 24px;
  font-style: normal;
}

.main-feature-flow i::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.main-feature-flow i:not(:last-child)::after {
  position: absolute;
  top: 17px;
  bottom: -7px;
  left: 4px;
  width: 1px;
  content: "";
  background: rgba(207, 66, 40, .22);
}

.main-feature-flow i b,
.main-feature-flow i small {
  display: block;
}

.main-feature-flow i b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.main-feature-flow i small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 8.5px;
}

@media (max-width: 760px) {
  .main-feature-showcase-head {
    align-items: flex-start;
  }

  .main-feature-primary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .main-feature-flow {
    grid-column: 1 / -1;
    padding: 13px 0 0;
    border-top: 1px solid rgba(207, 66, 40, .16);
    border-left: 0;
  }

  .welcome-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-popover {
    max-height: min(66vh, 580px);
    padding: 11px;
    border-radius: 17px;
  }

  .capability-groups {
    grid-template-columns: 1fr;
  }

  .capability-group {
    padding: 8px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card {
    min-height: 45px;
  }

  .capability-popover-foot > span {
    display: none;
  }
}

@media (max-width: 520px) {
  .main-feature-showcase {
    margin-top: 24px;
  }

  .main-feature-showcase-head {
    display: block;
  }

  .main-feature-showcase-head h2 {
    font-size: 20px;
  }

  .main-feature-showcase-head > a {
    display: inline-block;
    margin-top: 8px;
  }

  .main-feature-grid {
    grid-template-columns: 1fr;
  }

  .main-feature-primary {
    grid-column: auto;
    min-height: 0;
  }

  .main-feature-card {
    min-height: 108px;
  }

  .welcome-capabilities {
    gap: 6px;
    margin-top: 18px;
  }

  .welcome-capability {
    min-height: 48px;
    padding: 7px 8px;
  }

  .welcome-capability small {
    display: none;
  }

  .capability-popover {
    width: 100%;
    max-height: 62vh;
  }

  .capability-popover-head b {
    font-size: 17px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card small {
    white-space: normal;
  }

  .message-sources ol {
    grid-template-columns: 1fr;
  }

  .message-sources > header {
    align-items: flex-start;
  }
}

.home-recruit-banner {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-align: left;
  animation: heroIn .72s .12s var(--ease) both;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.home-recruit-banner::after {
  position: absolute;
  top: -70px;
  right: -34px;
  width: 180px;
  height: 180px;
  border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-recruit-banner:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
  box-shadow: 0 10px 30px rgba(77, 44, 31, .09);
}

.home-recruit-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
  white-space: nowrap;
}

.home-recruit-main {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-recruit-main small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
}

.home-recruit-main > b {
  margin-top: 1px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.35;
}

.home-recruit-main > span {
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recruit-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.home-recruit-cta > b {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.home-recruit-cta > small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 650;
}

.home-recruit-cta i {
  font-size: 14px;
  font-style: normal;
  transition: transform .2s var(--ease);
}

.home-recruit-banner:hover .home-recruit-cta i {
  transform: translateX(3px);
}

.opc-recruit-nav .workspace-icon {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  .home-recruit-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
  }

  .home-recruit-cta {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 3px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .home-recruit-banner {
    margin-top: 18px;
  }

  .home-recruit-main > span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capability-popover,
  .welcome-capability,
  .capability-card,
  .main-feature-card {
    transition: none;
  }

  .main-feature-showcase {
    animation: none;
  }
}

/* ---------- 自主工作台与 Skill 定制主入口 ---------- */
.skills-nav.autonomy-nav {
  margin-top: 0;
  color: #fff7ed;
  background:
    radial-gradient(190px 110px at 6% -15%, rgba(222, 99, 58, .34), transparent 76%),
    linear-gradient(135deg, #2c211c, #423129);
  border-color: rgba(201, 64, 39, .35);
  box-shadow: 0 10px 24px rgba(55, 37, 28, .11);
}

.skills-nav.autonomy-nav:hover {
  color: #fffaf2;
  background:
    radial-gradient(190px 110px at 6% -15%, rgba(222, 99, 58, .42), transparent 76%),
    linear-gradient(135deg, #35261f, #4b372e);
  border-color: rgba(222, 99, 58, .56);
}

.skills-nav.autonomy-nav small {
  color: rgba(255, 247, 237, .56);
}

.autonomy-nav-icon {
  color: #fff2df;
  background: rgba(201, 64, 39, .74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.custom-skill-nav {
  background:
    radial-gradient(150px 90px at 0% 0%, rgba(190, 136, 57, .16), transparent 80%),
    rgba(255, 249, 237, .68);
  border-color: rgba(158, 112, 48, .24);
}

.custom-skill-nav:hover {
  background: rgba(255, 250, 240, .96);
  border-color: rgba(158, 112, 48, .42);
}

.custom-skill-nav-icon {
  color: #8d6227;
  background: #f4e7cc;
}

.feedback-nav {
  background:
    radial-gradient(150px 90px at 0% 0%, rgba(83, 116, 102, .13), transparent 80%),
    rgba(246, 250, 244, .62);
  border-color: rgba(73, 102, 89, .18);
}

.feedback-nav:hover {
  background: rgba(247, 251, 245, .95);
  border-color: rgba(73, 102, 89, .34);
}

.feedback-nav-icon {
  color: #486b5b;
  background: #e3ece5;
}

.top-autonomy,
.top-custom-skill {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s, border-color .16s, transform .16s;
}

.top-autonomy {
  color: #fff8ef;
  background: #2f231e;
  border: 1px solid #2f231e;
  box-shadow: 0 7px 17px rgba(47, 35, 30, .1);
}

.top-autonomy:hover {
  color: #fff;
  background: #463128;
  border-color: #463128;
}

.top-custom-skill {
  color: #805a20;
  background: #f6ead1;
  border: 1px solid rgba(151, 104, 38, .2);
}

.top-custom-skill:hover {
  color: #674410;
  background: #f8e9c9;
  border-color: rgba(151, 104, 38, .38);
}

.top-autonomy svg,
.top-custom-skill svg {
  width: 15px;
  height: 15px;
}

.top-autonomy:active,
.top-custom-skill:active {
  transform: scale(.98);
}

.main-feature-primary.autonomy-feature-primary {
  color: #fff9ef;
  background:
    radial-gradient(430px 210px at 9% -40%, rgba(219, 82, 44, .38), transparent 66%),
    radial-gradient(260px 160px at 92% 120%, rgba(134, 151, 116, .2), transparent 72%),
    #2a342e;
  border-color: rgba(61, 77, 67, .7);
  box-shadow: 0 17px 38px rgba(49, 42, 34, .12);
}

.main-feature-primary.autonomy-feature-primary:hover {
  background:
    radial-gradient(430px 210px at 9% -40%, rgba(226, 96, 55, .44), transparent 66%),
    radial-gradient(260px 160px at 92% 120%, rgba(134, 151, 116, .26), transparent 72%),
    #303d35;
  border-color: rgba(73, 92, 80, .9);
}

.autonomy-feature-primary .main-feature-icon {
  color: #fff7ea;
  background: rgba(201, 64, 39, .75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
}

.autonomy-feature-primary .main-feature-copy small {
  color: #e2a687;
}

.autonomy-feature-primary .main-feature-copy b {
  color: #fff9ef;
}

.autonomy-feature-primary .main-feature-copy p {
  color: rgba(255, 248, 238, .62);
}

.autonomy-feature-primary .main-feature-flow {
  border-left-color: rgba(255, 255, 255, .12);
}

.autonomy-feature-primary .main-feature-flow b {
  color: #fff4e8;
}

.autonomy-feature-primary .main-feature-flow small {
  color: rgba(255, 248, 238, .45);
}

.skill-customize-button {
  color: #fff8ef;
  background: #2f231e;
  border-color: #2f231e;
  box-shadow: 0 7px 16px rgba(47, 35, 30, .1);
}

.skill-customize-button:hover {
  color: #fff;
  background: #49342b;
  border-color: #49342b;
}

@media (max-width: 1240px) {
  .top-autonomy,
  .top-custom-skill {
    width: 36px;
    justify-content: center;
    padding: 0;
  }

  .top-autonomy span,
  .top-custom-skill span {
    display: none;
  }
}

@media (max-width: 780px) {
  .top-custom-skill {
    display: none;
  }
}

@media (max-height: 720px) {
  .welcome {
    padding-top: 42px;
  }

  .hero-avatar {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
  }

  .starter-list {
    margin-top: 22px;
  }

  .voice-stage {
    width: min(230px, 31vh);
    height: min(230px, 31vh);
    margin-top: 18px;
  }

  .voice-stage.has-3d {
    width: min(620px, 86vw);
    height: auto;
    margin-top: 0;
  }

  .call-copy > p:last-child {
    margin-top: 5px;
  }
}

@media (max-width: 520px) {
  .composer-tools,
  .composer-actions {
    gap: 4px;
    min-width: 0;
  }

  .composer-hint {
    display: none;
  }

  .composer-tools .tool-button {
    width: 34px;
    flex: none;
    padding: 0;
    justify-content: center;
  }

  .composer-tools .tool-button span {
    display: none;
  }

  .message-deliverables {
    width: 100%;
    padding: 9px;
  }

  .delivery-file {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .delivery-file-type {
    width: 32px;
    height: 38px;
  }

  .delivery-download {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .delivery-download span {
    display: none;
  }

  .markdown-body .sxm-viz-head {
    flex-wrap: wrap;
    padding: 11px;
  }

  .sxm-viz-copy b,
  .sxm-viz-copy > span {
    white-space: normal;
  }

  .sxm-viz-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .sxm-viz-scroll-hint {
    display: block;
    padding: 7px 11px 0;
    color: var(--faint);
    font-size: 8.5px;
    line-height: 1.4;
    text-align: right;
  }

  .sxm-chart-svg {
    min-width: 470px;
  }

  .sxm-mindmap-svg {
    min-width: 540px;
  }

  .sxm-donut-svg {
    min-width: 0;
  }

  .sxm-donut-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .sxm-viz-canvas {
    padding: 8px 7px 2px;
  }

  .sxm-code-head {
    padding-left: 11px;
  }

  .markdown-body pre.sxm-code-pre {
    padding: 12px;
  }
}

.prompt-guidance {
  width: min(860px, 100%);
  margin: 0 auto 9px;
  padding: 11px;
  border: 1px solid rgba(190, 111, 76, .2);
  border-radius: 15px;
  background:
    radial-gradient(320px 90px at 0 0, rgba(229, 128, 85, .1), transparent 70%),
    rgba(255, 252, 249, .96);
  box-shadow: 0 12px 34px rgba(69, 42, 31, .08);
}

.prompt-guidance[hidden] {
  display: none;
}

.prompt-guidance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt-guidance-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.prompt-guidance-title > svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-guidance-title b {
  font-size: 10.5px;
}

.prompt-guidance-title small {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-guidance-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.prompt-guidance-actions button {
  min-height: 27px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8.5px;
  cursor: pointer;
}

.prompt-guidance-actions button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.prompt-guidance-actions button:last-child {
  display: grid;
  width: 27px;
  padding: 0;
  place-items: center;
}

.prompt-guidance-actions svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.prompt-guidance-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.prompt-guidance-item {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px 10px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(224, 207, 197, .9);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s, background .15s;
}

.prompt-guidance-item:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(205, 99, 62, .36);
}

.prompt-guidance-item > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.prompt-guidance-item b {
  font-size: 9.5px;
}

.prompt-guidance-item em {
  flex: none;
  padding: 2px 5px;
  color: #3c7353;
  background: #eaf5ed;
  border-radius: 999px;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 750;
}

.prompt-guidance-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-guidance-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-library-modal {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.prompt-library-open {
  overflow: hidden;
}

.prompt-library-modal[hidden] {
  display: none;
}

.prompt-library-scrim {
  position: absolute;
  inset: 0;
  background: rgba(38, 29, 25, .34);
  border: 0;
  backdrop-filter: blur(8px);
}

.prompt-library-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(224, 208, 198, .9);
  border-radius: 22px;
  background: #fbf8f5;
  box-shadow: 0 30px 90px rgba(43, 28, 21, .2);
}

.prompt-library-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 19px 13px;
  border-bottom: 1px solid rgba(226, 211, 201, .75);
}

.prompt-library-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  color: var(--accent-deep);
  background: #f9e7dd;
  border-radius: 12px;
}

.prompt-library-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-library-title {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.prompt-library-title small {
  color: var(--accent-deep);
  font-size: 8.5px;
  font-weight: 700;
}

.prompt-library-title h2 {
  margin: 0;
  font-size: 17px;
}

.prompt-library-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #467156;
  font-size: 8.5px;
  font-weight: 650;
}

.prompt-library-auto i,
.prompt-library-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53a16d;
}

.prompt-library-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 19px 7px;
}

.prompt-library-search {
  display: flex;
  height: 36px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prompt-library-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.8;
}

.prompt-library-search input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.prompt-library-total {
  flex: none;
  color: var(--faint);
  font-size: 9px;
}

.prompt-library-filters {
  display: flex;
  gap: 6px;
  padding: 5px 19px 9px;
  overflow-x: auto;
}

.prompt-library-views {
  display: flex;
  gap: 5px;
  padding: 0 19px 4px;
}

.prompt-library-views button {
  display: inline-flex;
  min-height: 30px;
  padding: 0 11px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.prompt-library-views button span {
  min-width: 17px;
  padding: 1px 5px;
  color: var(--faint);
  background: rgba(90, 77, 66, .07);
  border-radius: 999px;
  font-size: 8px;
  text-align: center;
}

.prompt-library-views button:hover {
  color: var(--ink);
  background: rgba(90, 77, 66, .05);
}

.prompt-library-views button.is-active {
  color: #5f4224;
  background: #f4eadb;
  border-color: #e4d3bc;
}

.prompt-library-views button.is-active span {
  color: #7b5726;
  background: rgba(183, 133, 63, .14);
}

.prompt-library-filters button {
  flex: none;
  min-height: 27px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8.5px;
  cursor: pointer;
}

.prompt-library-filters button.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.prompt-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 19px 20px;
  overflow-y: auto;
}

.prompt-library-card {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(226, 211, 201, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
}

.prompt-library-score {
  display: grid;
  width: 47px;
  height: 47px;
  place-content: center;
  text-align: center;
  border: 1px solid #d9e8dc;
  border-radius: 50%;
  background: #f0f8f2;
  color: #346747;
}

.prompt-library-score b {
  font-size: 14px;
  line-height: 1;
}

.prompt-library-score small {
  margin-top: 3px;
  font-size: 7px;
}

.prompt-library-score.answer {
  color: #7b5726;
  background: #f6ead7;
}

.prompt-library-card-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.prompt-library-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.prompt-library-card-head b {
  overflow: hidden;
  flex: 1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-library-card-head small {
  flex: none;
  color: var(--faint);
  font-size: 7.5px;
}

.prompt-library-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #64544b;
  font-size: 9.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.prompt-library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.prompt-library-tags span {
  padding: 2px 6px;
  color: #80675a;
  background: #f7efe9;
  border-radius: 999px;
  font-size: 7.5px;
}

.prompt-library-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.prompt-library-card-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 8.5px;
  cursor: pointer;
}

.prompt-library-card-actions button:first-child {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.prompt-library-card-actions button.prompt-library-favorite.is-active {
  color: #7b5726;
  background: #f7ecdb;
  border-color: #e5d3b6;
}

.prompt-library-answer-card .prompt-library-card-body > p {
  -webkit-line-clamp: 5;
}

.prompt-library-answer-details {
  margin-top: 2px;
}

.prompt-library-answer-details summary {
  width: max-content;
  color: #7b5726;
  font-size: 8.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.prompt-library-answer-details summary::-webkit-details-marker {
  display: none;
}

.prompt-library-answer-details summary::after {
  content: " +";
}

.prompt-library-answer-details[open] summary::after {
  content: " −";
}

.prompt-library-answer-full {
  max-height: 320px;
  margin-top: 7px;
  padding: 9px 10px;
  overflow: auto;
  color: var(--ink-soft);
  background: rgba(255, 252, 244, .72);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.75;
}

.prompt-library-answer-full > :first-child {
  margin-top: 0;
}

.prompt-library-answer-full > :last-child {
  margin-bottom: 0;
}

.prompt-library-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4e775d;
  font-size: 7.5px;
}

.prompt-library-empty {
  grid-row: 5;
  grid-column: 1;
  align-self: stretch;
  place-self: center;
  max-width: 360px;
  padding: 40px 20px;
  text-align: center;
}

.prompt-library-loading {
  grid-column: 1 / -1;
  padding: 54px 20px;
  color: var(--faint);
  text-align: center;
  font-size: 10px;
}

.prompt-library-empty > span {
  display: grid;
  width: 45px;
  height: 45px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-deep);
  background: #f9e8df;
  font-weight: 750;
}

.prompt-library-empty b {
  font-size: 13px;
}

.prompt-library-empty p {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

.prompt-optimize-button {
  display: inline-flex;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--accent-deep);
  background: #fff7f2;
  border: 1px solid rgba(207, 66, 40, .18);
  border-radius: 999px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}

.prompt-optimize-button:hover:not(:disabled) {
  background: #ffede6;
  border-color: rgba(207, 66, 40, .3);
  transform: translateY(-1px);
}

.prompt-optimize-button:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}

.prompt-optimize-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prompt-optimize-button:disabled {
  opacity: .48;
  cursor: default;
  transform: none;
}

.prompt-optimize-button svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-optimize-button.is-loading svg {
  animation: promptOptimizePulse 900ms ease-in-out infinite;
}

.message.is-prompt-suggestion {
  align-items: flex-start;
}

.prompt-suggestion-bubble {
  width: min(680px, 100%);
  padding: 15px 16px 12px 17px;
  color: var(--ink-soft);
  background: #fffaf7;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px 17px 17px 17px;
  box-shadow: 0 9px 28px rgba(77, 44, 31, .06);
  animation: promptBubbleIn 340ms var(--ease) both;
}

.prompt-suggestion-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.prompt-suggestion-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  color: var(--accent-deep);
  background: #ffede7;
  border-radius: 9px;
}

.prompt-suggestion-mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prompt-suggestion-head > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.prompt-suggestion-head b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.prompt-suggestion-head small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.prompt-suggestion-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.prompt-suggestion-options button {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}

.prompt-suggestion-options button:hover {
  background: #fff;
  border-color: #dfb6a6;
  transform: translateY(-1px);
}

.prompt-suggestion-options button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prompt-suggestion-options button.is-used {
  color: var(--accent-deep);
  background: #fff0e9;
  border-color: rgba(207, 66, 40, .28);
}

.prompt-suggestion-label {
  color: inherit;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.45;
}

.prompt-suggestion-hint {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.prompt-suggestion-note {
  margin: 9px 0 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.4;
}

@keyframes promptBubbleIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes promptOptimizePulse {
  50% {
    transform: rotate(12deg) scale(.84);
    opacity: .58;
  }
}

@media (max-width: 760px) {
  .prompt-suggestion-options {
    grid-template-columns: 1fr;
  }

  .prompt-suggestion-options button {
    min-height: 0;
    padding: 9px 10px;
  }
}

@media (max-width: 520px) {
  .prompt-optimize-button {
    width: 44px;
    height: 44px;
    flex: none;
    padding: 0;
  }

  .prompt-optimize-button span {
    display: none;
  }

  .prompt-suggestion-bubble {
    padding: 13px 12px 11px 14px;
    border-radius: 5px 15px 15px 15px;
  }

  .prompt-suggestion-head small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Agnes × DeepSeek dual-board answer ---------- */
.message-content.has-dual-boards {
  width: min(1040px, 100%);
}

.dual-answer-shell {
  width: 100%;
}

.dual-answer-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  padding: 0 2px;
}

.dual-answer-intro > span {
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.dual-answer-intro > small {
  color: var(--faint);
  font-size: 9px;
}

.dual-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.dual-board {
  --dual-color: #ad4d35;
  --dual-soft: #fff2eb;
  display: flex;
  min-width: 0;
  min-height: 168px;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--dual-color) 8%, transparent), transparent 34%),
    rgba(255, 253, 251, .9);
  border: 1px solid color-mix(in srgb, var(--dual-color) 20%, var(--line));
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(77, 44, 31, .04);
}

.dual-board.deepseek {
  --dual-color: #376b8d;
  --dual-soft: #edf5f9;
}

.dual-board-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: color-mix(in srgb, var(--dual-soft) 64%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--dual-color) 12%, var(--line));
}

.dual-board-mark {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  color: var(--dual-color);
  background: rgba(255, 255, 255, .82);
  border: 1px solid color-mix(in srgb, var(--dual-color) 18%, transparent);
  border-radius: 9px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 760;
}

.dual-board-identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.dual-board-identity b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
}

.dual-board-identity small {
  color: var(--faint);
  font-size: 8.5px;
}

.dual-board-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #39745b;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(72, 128, 99, .13);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.dual-board-status i {
  width: 5px;
  height: 5px;
  flex: none;
  background: #3e9a70;
  border-radius: 50%;
}

.dual-board-status.pending {
  color: var(--dual-color);
  border-color: color-mix(in srgb, var(--dual-color) 16%, transparent);
}

.dual-board-status.pending i {
  background: var(--dual-color);
  animation: dualBoardPulse 1.25s ease-in-out infinite;
}

.dual-board-status.partial {
  color: #976b2e;
}

.dual-board-status.partial i {
  background: #c68a37;
}

.dual-board-status.error {
  color: #a64b38;
}

.dual-board-status.error i {
  background: #c55c45;
}

.dual-board-content {
  min-width: 0;
  flex: 1;
  padding: 13px 13px 15px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.dual-board-content h1 {
  font-size: 18px;
}

.dual-board-content h2 {
  font-size: 16px;
}

.dual-board-content h3 {
  font-size: 14px;
}

.dual-board-content p {
  margin-bottom: 10px;
}

.dual-board-content pre {
  font-size: 11px;
}

.dual-board-waiting {
  display: flex;
  min-height: 108px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: var(--muted);
  font-size: 9.5px;
}

.dual-board-waiting .typing {
  margin: 0;
}

.dual-board-error {
  margin: 0 11px 11px;
  padding: 8px 9px;
  color: #8e4c3b;
  background: #fff3ed;
  border: 1px solid rgba(207, 66, 40, .12);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.55;
}

.capability-card.dual-answer-card {
  border-color: rgba(75, 111, 113, .2);
  background:
    linear-gradient(125deg, rgba(255, 242, 235, .7), rgba(238, 247, 249, .72));
}

.capability-card.dual-answer-card .capability-card-icon {
  color: #416f76;
  background: rgba(255, 255, 255, .72);
}

@keyframes dualBoardPulse {
  50% {
    opacity: .4;
    transform: scale(.72);
  }
}

@media (max-width: 980px) {
  .dual-answer-grid {
    grid-template-columns: 1fr;
  }

  .dual-board {
    min-height: 142px;
  }
}

@media (max-width: 520px) {
  .dual-answer-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .dual-board-head {
    min-height: 50px;
    padding: 8px 9px;
  }

  .dual-board-content {
    padding: 11px 11px 13px;
    font-size: 12px;
  }
}

@media (max-width: 780px) {
  .prompt-guidance-list {
    grid-template-columns: 1fr;
    max-height: 210px;
    overflow-y: auto;
  }

  .prompt-guidance-title small {
    display: none;
  }

  .prompt-library-modal {
    padding: 8px;
  }

  .prompt-library-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .prompt-library-auto {
    display: none;
  }

  .prompt-library-grid {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .prompt-library-head,
  .prompt-library-toolbar,
  .prompt-library-views {
    padding-inline: 12px;
  }

  .prompt-library-filters {
    padding-inline: 12px;
  }
}
