:root {
  --qitan-ink: #17233f;
  --qitan-muted: #4d5d7d;
  --qitan-blue: #2f80ed;
  --qitan-sky: #76c7ff;
  --qitan-cyan: #22c7d6;
  --qitan-teal: #18a999;
  --qitan-yellow: #ffd166;
  --qitan-cream: #fff7d6;
  --qitan-coral: #ff6b6b;
  --qitan-pink: #ff8ba7;
  --qitan-purple: #6e7ff3;
  --qitan-green: #35b88a;
  --qitan-cloud: #f4fbff;
  --qitan-border: #17233f;
  --qitan-pop-shadow: 8px 8px 0 rgba(23, 35, 63, 0.12);
  --qitan-shadow: var(--qitan-pop-shadow);
  --qitan-soft-shadow: 0 18px 36px rgba(23, 35, 63, 0.13);
  --qitan-openhands-header-height: 76px;
  --qitan-sidebar-width: 104px;
}

html,
body {
  min-height: 100%;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif !important;
  color: var(--qitan-ink);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(244, 251, 255, 0.96) 48%, rgba(255, 249, 231, 0.94) 100%),
    url("/qitan-assets/qitan-agent-workshop-bg-v2.png") center top / cover no-repeat fixed !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.055) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(23, 35, 63, 0.04) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
  opacity: 0.55;
}

body.qitan-openhands-ready {
  padding-top: 76px;
}

body.qitan-openhands-ready > div:not(#qitan-openhands-header):not([data-hot-toast]) {
  position: relative;
  z-index: 1;
}

#qitan-openhands-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 8px 18px;
  color: var(--qitan-ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid rgba(23, 35, 63, 0.14);
  box-shadow: 0 8px 18px rgba(23, 35, 63, 0.08);
  backdrop-filter: blur(10px);
}

.qitan-openhands-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  flex: 1 1 auto;
  color: var(--qitan-ink);
  text-decoration: none;
}

.qitan-openhands-brand-mark {
  display: grid !important;
  width: 50px;
  height: 50px;
  min-width: 50px;
  place-items: center;
  color: var(--qitan-ink) !important;
  background: var(--qitan-yellow);
  border: 3px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.13);
  font-size: 25px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.qitan-openhands-brand span {
  display: block;
  color: var(--qitan-coral);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.qitan-openhands-brand strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.qitan-openhands-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: auto;
  gap: 8px;
}

.qitan-openhands-nav a,
.qitan-openhands-status,
.qitan-role-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.qitan-role-toggle {
  gap: 4px;
  padding: 4px;
  background: #f7fbff;
}

.qitan-role-toggle button {
  min-height: 28px;
  padding: 5px 8px;
  color: var(--qitan-muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.qitan-role-toggle button.qitan-role-active {
  color: #fff;
  background: var(--qitan-blue);
}

.qitan-openhands-nav a:hover,
.qitan-openhands-nav a:focus {
  color: var(--qitan-ink);
  background: var(--qitan-yellow);
}

.qitan-openhands-status {
  gap: 8px;
  background: #effbf7;
}

.qitan-openhands-status span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid var(--qitan-border);
  border-radius: 999px;
  background: var(--qitan-teal);
}

body.qitan-student-mode .qitan-teacher-only,
body.qitan-student-mode .qitan-teacher-only-control,
body.qitan-student-mode [data-testid="settings-navbar"] a.qitan-teacher-only-control,
body.qitan-student-mode [data-testid="settings-navbar"] button.qitan-teacher-only-control {
  display: none !important;
}

body.qitan-student-mode.qitan-settings-path .qitan-settings-page-guide,
body.qitan-student-mode.qitan-settings-path #qitan-llm-plan-guide,
body.qitan-student-mode.qitan-settings-path [data-testid="settings-screen"],
body.qitan-student-mode.qitan-settings-path [data-testid="llm-settings-screen"],
body.qitan-student-mode.qitan-settings-path .qitan-llm-profiles-manager,
body.qitan-student-mode.qitan-settings-path [data-testid="settings-navbar"] {
  display: none !important;
}

body.qitan-student-mode.qitan-settings-path #root-outlet::before {
  content: "当前为学生模式。模型、集成、密钥和高级设置由老师在教师模式中配置。";
  display: block;
  width: min(760px, calc(100% - 40px));
  margin: 28px auto;
  padding: 18px;
  color: var(--qitan-ink);
  background: #fff7dc;
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

.qitan-lesson-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(390px, calc(100vw - 28px));
  color: var(--qitan-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif;
}

.qitan-lesson-toggle {
  display: none;
  width: 128px;
  min-height: 44px;
  margin-left: auto;
  color: var(--qitan-ink);
  background: var(--qitan-yellow);
  border: 3px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(23, 35, 63, 0.16);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.qitan-lesson-panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 3px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow);
}

.qitan-lesson-header-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 16px 12px;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(255, 247, 220, 0.9), rgba(239, 251, 247, 0.92));
  border-bottom: 2px solid rgba(23, 35, 63, 0.18);
}

.qitan-lesson-header span,
.qitan-lesson-prompt span {
  display: block;
  color: var(--qitan-muted);
  font-size: 12px;
  font-weight: 800;
}

.qitan-lesson-header strong {
  display: block;
  margin-top: 4px;
  color: var(--qitan-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.qitan-lesson-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.12);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.qitan-lesson-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  counter-reset: qitan-step;
}

.qitan-lesson-steps li {
  counter-increment: qitan-step;
  min-height: 62px;
  padding: 9px 8px;
  color: var(--qitan-ink);
  background: #f7fbff;
  border: 2px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.38;
}

.qitan-lesson-steps li::before {
  content: counter(qitan-step);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  color: #fff;
  background: var(--qitan-blue);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.qitan-lesson-prompts {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding: 0 14px 12px;
}

.qitan-lesson-prompt {
  padding: 11px;
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
}

.qitan-lesson-prompt:nth-child(1) {
  background: #fff7dc;
}

.qitan-lesson-prompt:nth-child(2) {
  background: #eef8ff;
}

.qitan-lesson-prompt:nth-child(3) {
  background: #effbf7;
}

.qitan-lesson-prompt:nth-child(4) {
  background: #fff1ed;
}

.qitan-lesson-prompt strong {
  display: block;
  margin-bottom: 3px;
  color: var(--qitan-ink);
  font-size: 14px;
  font-weight: 900;
}

.qitan-lesson-actions,
.qitan-lesson-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.qitan-lesson-actions button,
.qitan-lesson-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.qitan-lesson-actions button:first-child {
  color: #fff;
  background: var(--qitan-blue);
}

.qitan-lesson-links {
  margin: 0;
  padding: 12px 14px 14px;
  border-top: 2px solid rgba(23, 35, 63, 0.12);
}

.qitan-lesson-collapsed .qitan-lesson-panel {
  display: none;
}

.qitan-lesson-collapsed .qitan-lesson-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-testid="root-layout"] {
  background: transparent !important;
}

[data-testid="home-screen"] {
  padding-top: 8px !important;
  padding-bottom: 52px !important;
}

#qitan-openhands-course-guide {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 18px;
}

#qitan-classroom-start {
  width: min(1120px, calc(100% - 40px));
  margin: -2px auto 18px;
}

.qitan-openhands-course {
  display: grid;
  gap: 16px;
  color: var(--qitan-ink);
}

.qitan-classroom-start {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
  gap: 14px;
  color: var(--qitan-ink);
}

.qitan-classroom-start-copy,
.qitan-classroom-action {
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  box-shadow: none;
}

.qitan-classroom-start-copy {
  min-height: 180px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #effbf7;
}

.qitan-classroom-start-copy span {
  display: inline-flex;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--qitan-coral);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.qitan-classroom-start-copy strong {
  display: block;
  color: var(--qitan-ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.28;
}

.qitan-classroom-start-copy p,
.qitan-classroom-action p {
  margin: 10px 0 0;
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.62;
}

.qitan-classroom-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qitan-classroom-action {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 15px;
  background: rgba(255, 255, 255, 0.94);
}

.qitan-classroom-action-1 {
  background: #eef8ff;
}

.qitan-classroom-action-2 {
  background: #fff7dc;
}

.qitan-classroom-action-3 {
  background: #effbf7;
}

.qitan-classroom-action-4 {
  background: #fff1ed;
}

.qitan-classroom-action strong {
  display: block;
  color: var(--qitan-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.qitan-classroom-action p {
  flex: 1;
}

.qitan-classroom-action button {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 12px;
  padding: 7px 11px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.qitan-classroom-action-2 button,
.qitan-classroom-action-4 button {
  color: #fff;
  background: var(--qitan-blue);
}

.qitan-course-hero,
.qitan-course-card,
.qitan-course-note {
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  box-shadow: none;
}

.qitan-course-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 28px;
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 247, 220, 0.34) 100%),
    linear-gradient(90deg, rgba(23, 35, 63, 0.08) 12px, transparent 12px) 0 0 / 24px 24px,
    url("/qitan-assets/qitan-ai-coding-camp-hero.png") center / cover no-repeat;
}

.qitan-course-hero::after {
  display: none;
}

.qitan-course-hero > * {
  position: relative;
  z-index: 1;
}

.qitan-course-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: var(--qitan-coral);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.qitan-course-hero h2 {
  max-width: 760px;
  margin: 0;
  color: var(--qitan-ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.qitan-course-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #34425f;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.72;
}

.qitan-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.qitan-course-actions a,
.qitan-course-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.qitan-course-actions a:first-child,
.qitan-course-card button {
  color: #fff;
  background: var(--qitan-blue);
}

.qitan-course-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.qitan-course-card {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  padding: 18px;
  background: #fff;
}

.qitan-course-card-1 {
  background: #fff7dc;
}

.qitan-course-card-2 {
  background: #eef8ff;
}

.qitan-course-card-3 {
  background: #effbf7;
}

.qitan-course-card-4 {
  background: #fff1ed;
}

.qitan-course-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--qitan-ink);
  background: var(--qitan-yellow);
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.16);
  font-weight: 900;
}

.qitan-course-card h3 {
  margin: 0 0 8px;
  color: var(--qitan-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.qitan-course-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.62;
}

.qitan-course-card button {
  align-self: flex-start;
  cursor: pointer;
}

.qitan-course-card button:hover,
.qitan-course-card button:focus,
.qitan-course-actions a:hover,
.qitan-course-actions a:focus {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.qitan-course-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.qitan-course-note strong {
  flex: 0 0 auto;
  color: var(--qitan-coral);
  font-weight: 900;
}

.qitan-course-note span {
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.56;
}

[data-testid="root-layout"] aside[aria-label] {
  background: rgba(255, 255, 255, 0.42) !important;
  border-right: 2px solid rgba(23, 35, 63, 0.12) !important;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

aside.qitan-sidebar-nav {
  width: 76px !important;
  min-width: 76px !important;
  height: calc(100vh - 76px) !important;
  min-height: calc(100vh - 76px) !important;
  gap: 10px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-right: 1px solid rgba(23, 35, 63, 0.14) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
  z-index: 2147482000 !important;
}

aside.qitan-sidebar-nav nav {
  height: 100% !important;
  min-height: 0 !important;
  gap: 12px !important;
  overflow: visible !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo,
aside.qitan-sidebar-nav .qitan-sidebar-item {
  position: relative;
  width: 56px !important;
  min-width: 56px !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 auto !important;
  padding: 6px 4px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(23, 35, 63, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo:hover,
aside.qitan-sidebar-nav .qitan-sidebar-item:hover,
aside.qitan-sidebar-nav .qitan-sidebar-logo:focus,
aside.qitan-sidebar-nav .qitan-sidebar-item:focus {
  color: var(--qitan-ink) !important;
  background: #fff7dc !important;
  border-color: rgba(23, 35, 63, 0.28) !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo svg,
aside.qitan-sidebar-nav .qitan-sidebar-logo img,
aside.qitan-sidebar-nav .qitan-sidebar-item svg,
aside.qitan-sidebar-nav .qitan-sidebar-item img {
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
}

aside.qitan-sidebar-nav [data-qitan-label]::after {
  content: attr(data-qitan-label);
  position: absolute;
  right: 2px;
  bottom: 3px;
  left: 2px;
  overflow: hidden;
  color: var(--qitan-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo {
  background: rgba(239, 251, 247, 0.96) !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo::before {
  content: "AI";
  display: grid;
  width: 24px;
  height: 24px;
  margin: 0 auto 12px;
  place-items: center;
  color: #fff;
  background: var(--qitan-blue);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo img,
aside.qitan-sidebar-nav .qitan-sidebar-logo svg {
  display: none !important;
}

.qitan-floating-user-context-menu,
.qitan-floating-agent-context-menu {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
  overflow: visible !important;
  z-index: 2147482500 !important;
}

#root-outlet {
  min-height: calc(100vh - 76px);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-testid="home-screen-new-conversation-section"] > *,
[data-testid="home-screen-recent-conversations-section"] > *,
[data-testid="repo-connector"],
[data-testid="task-suggestions"],
[data-testid="recent-conversations"],
[data-testid="home-screen"] [class*="bg-[#26282D]"],
[data-testid="home-screen"] [class*="bg-\\[\\#26282D\\]"] {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow) !important;
}

[data-testid="home-screen-new-conversation-section"],
[data-testid="home-screen-recent-conversations-section"] {
  position: relative;
  opacity: 1;
}

[data-testid="home-screen-new-conversation-section"]::before,
[data-testid="home-screen-recent-conversations-section"]::before {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  color: var(--qitan-muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

[data-testid="home-screen-new-conversation-section"]::before {
  content: none;
  display: none;
}

[data-testid="home-screen-recent-conversations-section"]::before {
  content: none;
  display: none;
}

[data-testid="home-screen-new-conversation-section"] > *:nth-child(1),
[data-testid="repo-connector"] {
  background: #eef8ff !important;
}

[data-testid="home-screen-new-conversation-section"] > *:nth-child(2) {
  background: #effbf7 !important;
}

[data-testid="home-screen-recent-conversations-section"] > *:nth-child(1) {
  background: #fff7dc !important;
}

[data-testid="home-screen-recent-conversations-section"] > *:nth-child(2),
[data-testid="task-suggestions"] {
  background: #fff1ed !important;
}

[data-testid="home-screen"] h1,
[data-testid="home-screen"] h2,
[data-testid="home-screen"] h3,
[data-testid="home-screen"] p,
[data-testid="home-screen"] span,
[data-testid="home-screen"] label,
[data-testid="home-screen"] .text-white,
[data-testid="home-screen"] .text-\\[\\#FAFAFA\\],
[data-testid="home-screen"] .text-\\[\\#C9C9C9\\] {
  color: var(--qitan-ink) !important;
}

[data-testid="home-screen"] p,
[data-testid="home-screen"] .text-\\[\\#C9C9C9\\] {
  color: var(--qitan-muted) !important;
}

[data-testid="home-screen"] button,
[data-testid="home-screen"] a[role="button"],
[data-testid="home-screen"] a[href] {
  border-radius: 8px !important;
}

[data-testid="home-screen"] button:not(.qitan-course-card button),
[data-testid="home-screen"] a[role="button"] {
  border: 2px solid var(--qitan-border) !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
  font-weight: 900 !important;
}

[data-testid="home-screen"] [data-testid="repo-connector"],
[data-testid="home-screen-new-conversation-section"] > *,
[data-testid="home-screen-recent-conversations-section"] > * {
  color: var(--qitan-ink) !important;
}

[data-testid="home-screen"] [data-testid="repo-connector"] h1,
[data-testid="home-screen"] [data-testid="repo-connector"] h2,
[data-testid="home-screen"] [data-testid="repo-connector"] h3,
[data-testid="home-screen"] [data-testid="repo-connector"] p,
[data-testid="home-screen"] [data-testid="repo-connector"] span,
[data-testid="home-screen"] [data-testid="repo-connector"] label,
[data-testid="home-screen"] [data-testid="repo-connector"] svg,
[data-testid="home-screen-new-conversation-section"] > * h1,
[data-testid="home-screen-new-conversation-section"] > * h2,
[data-testid="home-screen-new-conversation-section"] > * h3,
[data-testid="home-screen-new-conversation-section"] > * p,
[data-testid="home-screen-new-conversation-section"] > * span,
[data-testid="home-screen-new-conversation-section"] > * label,
[data-testid="home-screen-new-conversation-section"] > * svg {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

[data-testid="home-screen"] [data-testid="repo-connector"] p,
[data-testid="home-screen-new-conversation-section"] > * p {
  color: var(--qitan-muted) !important;
  font-weight: 750 !important;
}

[data-testid="home-screen-recent-conversations-section"] h1,
[data-testid="home-screen-recent-conversations-section"] h2,
[data-testid="home-screen-recent-conversations-section"] h3,
[data-testid="home-screen-recent-conversations-section"] p,
[data-testid="home-screen-recent-conversations-section"] span,
[data-testid="home-screen-recent-conversations-section"] a,
[data-testid="home-screen-recent-conversations-section"] div,
[data-testid="home-screen-recent-conversations-section"] svg {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

[data-testid="home-screen-recent-conversations-section"] p,
[data-testid="home-screen-recent-conversations-section"] span:not([class*="rounded"]) {
  color: var(--qitan-muted) !important;
}

[data-testid="home-screen-recent-conversations-section"] a,
[data-testid="home-screen-recent-conversations-section"] h1,
[data-testid="home-screen-recent-conversations-section"] h2,
[data-testid="home-screen-recent-conversations-section"] h3,
[data-testid="home-screen-recent-conversations-section"] strong {
  color: var(--qitan-ink) !important;
}

[data-testid="home-screen-recent-conversations-section"] button {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid rgba(23, 35, 63, 0.2) !important;
}

[data-testid="home-screen"] [data-testid="navigate-to-settings-button"] button,
[data-testid="home-screen"] [data-testid="launch-new-conversation-button"],
[data-testid="home-screen"] [data-testid="repo-launch-button"] {
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border-color: var(--qitan-border) !important;
}

[data-testid="home-screen"] [data-testid="repo-launch-button"]:disabled,
[data-testid="home-screen"] [data-testid="launch-new-conversation-button"]:disabled {
  color: #56627a !important;
  background: #e9eef6 !important;
  border-color: rgba(23, 35, 63, 0.2) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* Product polish for the classroom workbench and conversation drawer. */
[data-testid="conversation-panel"] {
  width: min(420px, calc(100vw - 112px)) !important;
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.96)) !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow) !important;
  padding: 10px !important;
}

[data-testid="conversation-panel"]::before {
  content: "课堂记录";
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 0 12px;
  color: var(--qitan-ink);
  background: #fff7dc;
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.qitan-conversation-card,
[data-testid="conversation-panel"] [data-testid="conversation-card"] {
  margin-bottom: 8px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.08) !important;
}

.qitan-conversation-card:hover,
.qitan-conversation-card[data-context-menu-open="true"] {
  background: #effbf7 !important;
  border-color: var(--qitan-border) !important;
}

.qitan-conversation-card h1,
.qitan-conversation-card h2,
.qitan-conversation-card h3,
.qitan-conversation-card p,
.qitan-conversation-card span,
.qitan-conversation-card svg,
[data-testid="conversation-panel"] p,
[data-testid="conversation-panel"] span,
[data-testid="conversation-panel"] svg {
  color: var(--qitan-ink) !important;
}

.qitan-conversation-card [data-testid="conversation-card-selected-repository"],
.qitan-conversation-card [data-testid="conversation-card-selected-branch"],
.qitan-conversation-card [data-testid="conversation-card-llm-model"],
.qitan-conversation-card time {
  color: var(--qitan-muted) !important;
  font-weight: 800 !important;
}

[data-testid="context-menu"] {
  min-width: 178px !important;
  padding: 8px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow) !important;
}

[data-testid="context-menu"] button,
[data-testid="context-menu"] li {
  color: var(--qitan-ink) !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
}

[data-testid="context-menu"] button:hover,
[data-testid="context-menu"] li:hover {
  background: #eef8ff !important;
}

.qitan-chat-send-button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.16) !important;
}

.qitan-chat-send-button:disabled {
  color: #6c768c !important;
  background: #edf2f7 !important;
  border-color: rgba(23, 35, 63, 0.18) !important;
  box-shadow: none !important;
}

[data-testid="chat-input"] {
  color: var(--qitan-ink) !important;
}

[data-testid="chat-input"][data-placeholder]::before {
  color: #9aa6ba !important;
}

.qitan-conversation-path [data-testid="chat-input"] {
  color: var(--qitan-ink) !important;
}

.qitan-conversation-path [class*="border-[#4B505F]"],
.qitan-conversation-path [class*="border-\\[\\#4B505F\\]"] {
  border-color: rgba(23, 35, 63, 0.22) !important;
}

.qitan-conversation-path [data-testid="workspace-panel"] {
  border-radius: 8px !important;
}

.qitan-workspace-loading {
  color: var(--qitan-ink) !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 216, 90, 0.34), transparent 24%),
    linear-gradient(135deg, #f7fbff 0%, #eef7ff 52%, #fff8da 100%) !important;
}

.qitan-workspace-loading-card {
  display: flex;
  width: min(360px, calc(100% - 48px));
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 35, 63, 0.1);
}

.qitan-workspace-loading-card strong {
  color: var(--qitan-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.qitan-workspace-loading-card span {
  max-width: 260px;
  color: #40506f;
  font-size: 14px;
  line-height: 1.7;
}

[data-testid="repo-connector"].qitan-focus-target {
  animation: qitan-focus-pulse 1.1s ease-in-out 2;
  outline: 4px solid rgba(35, 136, 255, 0.32) !important;
  outline-offset: 4px;
}

@keyframes qitan-focus-pulse {
  0%,
  100% {
    box-shadow: 0 18px 38px rgba(23, 35, 63, 0.08) !important;
  }

  50% {
    box-shadow: 0 0 0 8px rgba(35, 136, 255, 0.14), 0 18px 38px rgba(23, 35, 63, 0.12) !important;
  }
}

/* Qitan home cleanup: keep the first screen focused and readable. */
body:not(.qitan-conversation-path) [data-testid="root-layout"],
body:not(.qitan-conversation-path) #root-outlet,
body:not(.qitan-conversation-path) [data-testid="home-screen"] {
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body:not(.qitan-conversation-path) #root-outlet {
  height: calc(100vh - 76px) !important;
  min-height: calc(100vh - 76px) !important;
  overflow: auto !important;
}

body:not(.qitan-conversation-path) [data-testid="home-screen"] {
  height: auto !important;
  min-height: calc(100vh - 76px) !important;
  padding-top: 12px !important;
  padding-bottom: 34px !important;
  overflow-y: auto !important;
}

body:not(.qitan-conversation-path) #qitan-openhands-course-guide,
body:not(.qitan-conversation-path) #qitan-classroom-start {
  width: min(1128px, calc(100% - 44px));
  margin-top: 0 !important;
}

body:not(.qitan-conversation-path) .qitan-openhands-course {
  gap: 10px;
}

body:not(.qitan-conversation-path) .qitan-course-hero {
  min-height: 216px;
  padding: 24px 408px 24px 30px;
  border: 3px solid rgba(23, 35, 63, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(239, 248, 255, 0.92) 100%),
    linear-gradient(90deg, rgba(35, 136, 255, 0.08) 1px, transparent 1px) 0 0 / 26px 26px,
    #fff !important;
  box-shadow: 0 18px 38px rgba(23, 35, 63, 0.08);
}

body:not(.qitan-conversation-path) .qitan-course-hero::after {
  content: "";
  position: absolute;
  display: block;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 360px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    url("/qitan-assets/qitan-ai-coding-camp-hero.png") center / cover no-repeat;
  border: 3px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(255, 212, 90, 0.72);
  opacity: 0.96;
}

body:not(.qitan-conversation-path) .qitan-course-eyebrow {
  min-height: 28px;
  margin-bottom: 10px;
  color: #df3f2f;
  background: #fff7dc;
}

body:not(.qitan-conversation-path) .qitan-course-hero h2 {
  max-width: 650px;
  font-size: 28px;
  line-height: 1.16;
}

body:not(.qitan-conversation-path) .qitan-course-hero p {
  max-width: 670px;
  color: #263856;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

body:not(.qitan-conversation-path) .qitan-course-actions {
  margin-top: 14px;
}

body:not(.qitan-conversation-path) .qitan-course-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.qitan-conversation-path) .qitan-course-card {
  min-height: 132px;
  padding: 14px 14px 13px;
  border: 2px solid rgba(23, 35, 63, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

body:not(.qitan-conversation-path) .qitan-course-card-1 {
  border-left: 6px solid #ffd45a;
}

body:not(.qitan-conversation-path) .qitan-course-card-2 {
  border-left: 6px solid #74c8ff;
}

body:not(.qitan-conversation-path) .qitan-course-card-3 {
  border-left: 6px solid #62d5c7;
}

body:not(.qitan-conversation-path) .qitan-course-card-4 {
  border-left: 6px solid #ff9a86;
}

body:not(.qitan-conversation-path) .qitan-course-number {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: none;
}

body:not(.qitan-conversation-path) .qitan-course-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

body:not(.qitan-conversation-path) .qitan-course-card p {
  margin: 0;
  color: #3f506f;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

body:not(.qitan-conversation-path) .qitan-course-note {
  min-height: 42px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(23, 35, 63, 0.14);
}

body:not(.qitan-conversation-path) .qitan-course-note span {
  color: #3f506f;
  font-weight: 800;
}

body:not(.qitan-conversation-path) #qitan-classroom-start {
  margin: 0 auto 10px;
}

body:not(.qitan-conversation-path) .qitan-classroom-start {
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.74fr);
  gap: 12px;
}

body:not(.qitan-conversation-path) .qitan-classroom-start-copy,
body:not(.qitan-conversation-path) .qitan-classroom-action {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(23, 35, 63, 0.16);
}

body:not(.qitan-conversation-path) .qitan-classroom-start-copy {
  min-height: 126px;
  padding: 15px;
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    #effbf7;
}

body:not(.qitan-conversation-path) .qitan-classroom-start-copy span {
  margin-bottom: 8px;
}

body:not(.qitan-conversation-path) .qitan-classroom-start-copy strong {
  font-size: 18px;
  line-height: 1.24;
}

body:not(.qitan-conversation-path) .qitan-classroom-start-copy p,
body:not(.qitan-conversation-path) .qitan-classroom-action p {
  color: #3f506f;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.52;
}

body:not(.qitan-conversation-path) .qitan-classroom-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.qitan-student-mode:not(.qitan-conversation-path) .qitan-classroom-actions {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

body:not(.qitan-conversation-path) .qitan-classroom-action {
  min-height: 126px;
  padding: 13px;
}

body:not(.qitan-conversation-path) .qitan-classroom-action strong {
  font-size: 14px;
}

body:not(.qitan-conversation-path) .qitan-classroom-action button {
  min-height: 32px;
  margin-top: 10px;
  padding: 6px 10px;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(214px, 1fr));
  gap: 14px;
  width: min(1128px, calc(100% - 44px));
  margin: 0 auto 28px;
}

body:not(.qitan-conversation-path) [data-testid="home-screen-new-conversation-section"],
body:not(.qitan-conversation-path) [data-testid="repo-connector"],
body:not(.qitan-conversation-path) [data-testid="task-suggestions"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body:not(.qitan-conversation-path) [data-testid="home-screen-recent-conversations-section"] {
  width: min(1128px, calc(100% - 44px)) !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 4px auto 28px !important;
  padding: 0 !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid > section,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid > div {
  min-width: 0 !important;
  min-height: 242px !important;
  max-height: 342px;
  overflow: hidden;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 2px solid rgba(23, 35, 63, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.08) !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid h3,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid h4,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid p,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid span,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid label {
  color: var(--qitan-ink) !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid h3 {
  padding: 12px 14px 8px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="repo-connector"],
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="recent-conversations"],
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="task-suggestions"] {
  padding: 0 !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="repo-connector"] > *,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="task-suggestions"] > div,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="recent-conversations"] > div {
  min-width: 0;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="repo-connector"] {
  padding: 18px !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="repo-connector"] button,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="repo-connector"] a,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="task-suggestions"] button,
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="recent-conversations"] button {
  color: var(--qitan-ink) !important;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="recent-conversations"],
body:not(.qitan-conversation-path) .qitan-home-workspace-grid [data-testid="task-suggestions"] {
  padding-bottom: 10px !important;
}

.qitan-recent-conversation-card {
  position: relative;
  margin: 0 10px 8px;
  color: var(--qitan-ink);
  background: #f8fbff;
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
}

.qitan-recent-conversation-link:hover {
  background: #fff7dc !important;
}

.qitan-recent-conversation-card span,
.qitan-recent-conversation-card p {
  color: var(--qitan-ink) !important;
}

.qitan-recent-delete-button {
  position: absolute;
  top: 10px;
  right: 8px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 28px;
  padding: 5px 7px;
  color: #9f2b22 !important;
  background: #fff !important;
  border: 1px solid rgba(159, 43, 34, 0.26) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1;
  opacity: 0.72;
}

.qitan-recent-delete-button:hover,
.qitan-recent-delete-button:focus-visible {
  opacity: 1;
  background: #fff1ee !important;
}

.qitan-recent-delete-button:disabled {
  cursor: wait;
  opacity: 0.52;
}

[data-testid="ai-config-modal"],
[data-testid="user-capture-consent-form"] > div,
[data-testid="confirm-new-conversation-modal"],
[data-testid="conversation-panel"] {
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow) !important;
}

[data-testid="ai-config-modal"] {
  max-width: 620px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

[data-testid="advanced-settings-link"] {
  margin-top: -6px;
  padding: 8px 10px;
  color: var(--qitan-muted) !important;
  background: #f7fbff;
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

[data-testid="advanced-settings-link"] *,
[data-testid="advanced-settings-link"] a {
  color: var(--qitan-muted) !important;
}

[data-testid="advanced-settings-link"] a {
  font-weight: 900 !important;
  text-decoration: none !important;
}

[data-testid="ai-config-modal"] > span,
[data-testid="ai-config-modal"] label,
[data-testid="ai-config-modal"] p,
[data-testid="ai-config-modal"] a,
[data-testid="settings-form"] label,
[data-testid="settings-form"] span {
  color: var(--qitan-ink) !important;
}

.qitan-settings-guide {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--qitan-ink);
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(255, 247, 220, 0.98), rgba(239, 251, 247, 0.96));
  border: 3px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(23, 35, 63, 0.12);
}

.qitan-settings-guide span {
  color: var(--qitan-coral) !important;
  font-size: 12px;
  font-weight: 900;
}

.qitan-settings-guide strong {
  color: var(--qitan-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
}

.qitan-settings-guide p {
  margin: 0;
  color: var(--qitan-muted) !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.68;
}

.qitan-settings-guide div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qitan-settings-guide em {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.qitan-settings-page-guide {
  width: 100%;
  margin: 0 0 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.qitan-llm-plan-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 18px;
  color: var(--qitan-ink);
}

.qitan-llm-plan-copy,
.qitan-llm-plan-grid article {
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  box-shadow: none;
}

.qitan-llm-plan-copy {
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff7dc;
}

.qitan-llm-plan-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--qitan-coral);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.qitan-llm-plan-copy strong {
  display: block;
  color: var(--qitan-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.28;
}

.qitan-llm-plan-copy p,
.qitan-llm-plan-grid article p {
  margin: 10px 0 0;
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.62;
}

.qitan-llm-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qitan-llm-plan-grid article {
  min-height: 134px;
  padding: 15px;
  background: #fff;
}

.qitan-llm-plan-grid article:nth-child(1) {
  background: #eef8ff;
}

.qitan-llm-plan-grid article:nth-child(2) {
  background: #effbf7;
}

.qitan-llm-plan-grid article:nth-child(3) {
  background: #fff7dc;
}

.qitan-llm-plan-grid article:nth-child(4) {
  background: #fff1ed;
}

.qitan-llm-plan-grid b {
  display: block;
  color: var(--qitan-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.qitan-llm-plan-grid em {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

[data-testid="settings-navbar"] {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 0 !important;
  border-right: 2px solid rgba(23, 35, 63, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 18px 12px 0 !important;
  backdrop-filter: blur(8px);
}

[data-testid="settings-navbar"] *,
[data-testid="settings-navbar"] .text-white,
[data-testid="settings-navbar"] .text-gray-300,
[data-testid="settings-navbar"] .text-gray-400 {
  color: var(--qitan-ink) !important;
}

[data-testid="settings-navbar"] a,
[data-testid="settings-navbar"] button {
  border-radius: 8px !important;
}

body.qitan-settings-path main,
body.qitan-settings-path #root-outlet,
body.qitan-settings-path [data-testid="settings-screen"],
body.qitan-settings-path [data-testid="llm-settings-screen"] {
  color: var(--qitan-ink) !important;
}

body.qitan-settings-path main h1,
body.qitan-settings-path main h2,
body.qitan-settings-path main h3,
body.qitan-settings-path main p,
body.qitan-settings-path main span,
body.qitan-settings-path main label,
body.qitan-settings-path main button,
body.qitan-settings-path main a,
body.qitan-settings-path main .text-white,
body.qitan-settings-path main .text-gray-300,
body.qitan-settings-path main .text-gray-400,
body.qitan-settings-path main .text-tertiary-alt,
body.qitan-settings-path [data-testid="settings-screen"] .text-white,
body.qitan-settings-path [data-testid="settings-screen"] .text-gray-300,
body.qitan-settings-path [data-testid="settings-screen"] .text-gray-400 {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-settings-path main > div {
  color: var(--qitan-ink) !important;
}

body.qitan-settings-path main [class*="bg-[#050505]"],
body.qitan-settings-path main [class*="bg-\\[\\#050505\\]"],
body.qitan-settings-path main [class*="bg-[#26282D]"],
body.qitan-settings-path main [class*="bg-\\[\\#26282D\\]"] {
  background: transparent !important;
}

[data-testid="llm-settings-screen"],
.qitan-llm-profiles-manager {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 0;
  color: var(--qitan-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.qitan-llm-profiles-manager h2,
[data-testid="llm-settings-screen"] h1,
[data-testid="llm-settings-screen"] h2,
[data-testid="llm-settings-screen"] label,
[data-testid="llm-settings-screen"] p,
[data-testid="llm-settings-screen"] span,
[data-testid="llm-settings-screen"] .text-white,
[data-testid="llm-settings-screen"] .text-gray-300,
[data-testid="llm-settings-screen"] .text-gray-400,
.qitan-llm-profiles-manager .text-white,
.qitan-llm-profiles-manager .text-gray-300,
.qitan-llm-profiles-manager .text-gray-400 {
  color: var(--qitan-ink) !important;
}

[data-testid="llm-profiles-list"] {
  overflow: hidden;
  background: #fff !important;
  border: 2px solid rgba(23, 35, 63, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

[data-testid="profile-row"] {
  color: var(--qitan-ink) !important;
  background: #f7fbff !important;
  border-color: rgba(23, 35, 63, 0.16) !important;
}

[data-testid="profile-row"]:nth-child(even) {
  background: #fff7dc !important;
}

[data-testid="profile-row"] * {
  color: var(--qitan-ink) !important;
}

[data-testid="profile-active-badge"] {
  color: #fff !important;
  background: var(--qitan-teal) !important;
  border: 2px solid var(--qitan-border);
  border-radius: 8px !important;
}

[data-testid="add-llm-profile"],
[data-testid="llm-back-to-profiles"],
[data-testid="profile-menu-trigger"] {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
}

[data-testid="add-llm-profile"] {
  color: #fff !important;
  background: var(--qitan-blue) !important;
}

[data-testid="profile-actions-menu"] {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow) !important;
}

[data-testid="profile-actions-menu"] * {
  color: var(--qitan-ink) !important;
}

[data-testid="settings-form"] input,
[data-testid="settings-form"] [role="button"],
[data-testid="settings-form"] [data-slot="input-wrapper"],
[data-testid="llm-provider-input"],
[data-testid="llm-model-input"],
[data-testid="llm-base-url-input"],
[data-testid="llm-api-key-input"] {
  color: var(--qitan-ink) !important;
  background: #ffffff !important;
  border-color: rgba(23, 35, 63, 0.24) !important;
  border-radius: 8px !important;
}

[data-testid="save-settings-button"] {
  min-height: 44px !important;
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.16) !important;
}

[data-testid="conversation-panel"] {
  width: min(460px, calc(100vw - 112px)) !important;
  height: calc(100vh - 100px) !important;
  max-height: calc(100vh - 100px) !important;
  padding: 8px 10px 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--qitan-ink) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

[data-testid="conversation-card"],
[data-testid="conversation-card-skeleton"] {
  margin: 8px !important;
  color: var(--qitan-ink) !important;
  background: #f7fbff !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
}

[data-testid="conversation-card"] * {
  color: var(--qitan-ink) !important;
}

[data-testid="interactive-chat-box"] > div,
[data-testid="interactive-chat-box"] [class*="bg-[#25272D]"],
[data-testid="interactive-chat-box"] [class*="bg-\\[\\#25272D\\]"] {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow) !important;
}

[data-testid="chat-input"] {
  min-height: 48px !important;
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(23, 35, 63, 0.03) 1px, transparent 1px) 0 0 / 22px 22px,
    #ffffff !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif !important;
}

[data-testid="chat-input"]:empty::before {
  content: "用中文描述你想让 AI 完成的编程任务...";
  color: var(--qitan-muted);
}

[data-testid="user-message"],
[data-testid="agent-message"] {
  color: var(--qitan-ink) !important;
}

[data-testid="user-message"] [data-message-body="true"],
[data-testid="agent-message"] [data-message-body="true"],
[data-testid="chat-status-indicator"],
[data-testid="error-message-banner"] {
  border-radius: 8px !important;
}

[data-testid="slash-command-menu"] {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow) !important;
}

[data-testid="slash-command-menu"] * {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path {
  overflow: hidden;
}

body.qitan-conversation-path #root-outlet {
  height: calc(100vh - 76px);
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

body.qitan-conversation-path [data-testid="app-route"] {
  width: min(1440px, calc(100% - 24px));
  height: calc(100vh - 88px);
  min-height: 0;
  margin: 0 auto;
  padding: 10px 0 12px !important;
  gap: 10px !important;
  color: var(--qitan-ink);
}

body.qitan-conversation-path [data-testid="app-route"] > div:first-child {
  min-height: 52px;
  padding: 8px 12px;
  color: var(--qitan-ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.qitan-conversation-path [data-testid="app-route"] > div:first-child h1,
body.qitan-conversation-path [data-testid="app-route"] > div:first-child h2,
body.qitan-conversation-path [data-testid="app-route"] > div:first-child span,
body.qitan-conversation-path [data-testid="app-route"] > div:first-child p,
body.qitan-conversation-path [data-testid="app-route"] > div:first-child button {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid^="conversation-tab-"],
body.qitan-conversation-path button[aria-label="更多"],
body.qitan-conversation-path button[aria-label="More options"],
body.qitan-conversation-path button[aria-label="更多选项"] {
  min-height: 36px;
  padding: 7px 10px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(23, 35, 63, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid^="conversation-tab-"]:hover,
body.qitan-conversation-path button[aria-label="更多"]:hover,
body.qitan-conversation-path button[aria-label="More options"]:hover,
body.qitan-conversation-path button[aria-label="更多选项"]:hover {
  background: #fff7dc !important;
}

body.qitan-conversation-path [data-testid^="conversation-tab-"][class*="bg-[#25272D]"],
body.qitan-conversation-path [data-testid^="conversation-tab-"][class*="bg-\\[\\#25272D\\]"] {
  color: #fff !important;
  background: var(--qitan-ink) !important;
  border-color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid^="conversation-tab-"] svg,
body.qitan-conversation-path button[aria-label="更多"] svg,
body.qitan-conversation-path button[aria-label="More options"] svg,
body.qitan-conversation-path button[aria-label="更多选项"] svg {
  color: currentColor !important;
}

body.qitan-conversation-path [data-testid="app-route"] > div:last-child,
body.qitan-conversation-path [data-testid="app-route"] > div:last-child > div,
body.qitan-conversation-path [data-testid="app-route"] > div:last-child > div > div {
  min-height: 0;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"] {
  position: relative;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"]::before {
  content: "AI 助教对话区";
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--qitan-coral);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 35, 63, 0.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"] > div {
  padding-top: 28px;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] {
  padding: 0 14px 14px;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] > div,
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="bg-[#25272D]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="bg-\\[\\#25272D\\]"] {
  border: 1px solid rgba(23, 35, 63, 0.18) !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid="chat-input"] {
  min-height: 58px !important;
  border-color: rgba(23, 35, 63, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(35, 136, 255, 0.05);
}

body.qitan-conversation-path [data-testid="user-message"] [data-message-body="true"] {
  color: #fff !important;
}

body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(23, 35, 63, 0.12);
}

body.qitan-conversation-path [data-testid="app-route"] [class*="cursor-ew-resize"] {
  width: 10px !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="cursor-ew-resize"] > div:first-child {
  width: 2px !important;
  background: rgba(23, 35, 63, 0.16) !important;
  border-radius: 999px;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"],
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"] {
  overflow: hidden;
  color: #eef4ff !important;
  background: #151b2b !important;
  border: 1px solid rgba(23, 35, 63, 0.28) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-[#474A54]"],
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-\\[\\#474A54\\]"] {
  min-height: 42px;
  padding: 9px 12px !important;
  background: #1e2638 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-[#474A54]"] span,
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-\\[\\#474A54\\]"] span {
  color: #fff !important;
  font-weight: 900 !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-title,
body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-empty-text,
body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-tip h4 {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-panel {
  color: var(--qitan-ink) !important;
  background: #f4fbff !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-tip-body {
  color: var(--qitan-muted) !important;
}

body.qitan-conversation-path [data-testid="planner-tab-build-button"] {
  min-height: 28px !important;
  color: var(--qitan-ink) !important;
  background: var(--qitan-yellow) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 8px !important;
}

body.qitan-conversation-path [data-testid="planner-tab-build-button"] * {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path .qitan-lesson-dock {
  right: 14px;
  bottom: 14px;
  width: min(330px, calc(100vw - 28px));
}

body.qitan-conversation-path .qitan-lesson-panel {
  border: 1px solid rgba(23, 35, 63, 0.2);
  box-shadow: 0 14px 34px rgba(23, 35, 63, 0.14);
}

body.qitan-conversation-path .qitan-lesson-header-row {
  padding: 12px;
  background: rgba(255, 247, 220, 0.96);
  border-bottom: 1px solid rgba(23, 35, 63, 0.14);
}

body.qitan-conversation-path .qitan-lesson-header strong {
  font-size: 15px;
}

body.qitan-conversation-path .qitan-lesson-steps {
  grid-template-columns: 1fr;
  padding: 10px 12px;
}

body.qitan-conversation-path .qitan-lesson-steps li {
  min-height: 0;
}

body.qitan-conversation-path .qitan-lesson-prompts {
  max-height: 220px;
  padding: 0 12px 10px;
}

body.qitan-conversation-path .qitan-lesson-links {
  padding: 10px 12px 12px;
}

body.qitan-conversation-path #root-outlet {
  height: calc(100vh - 68px);
  min-height: calc(100vh - 68px);
  background: rgba(244, 251, 255, 0.5) !important;
}

body.qitan-conversation-path [data-testid="app-route"] {
  width: 100%;
  max-width: none;
  height: calc(100vh - 76px);
  margin: 0;
  padding: 0 10px 10px !important;
  gap: 8px !important;
}

body.qitan-conversation-path [data-testid="app-route"] > div:first-child {
  display: none !important;
}

body.qitan-conversation-path [data-testid="app-route"] > div:last-child {
  height: 100%;
  min-height: 0;
  padding-top: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(244, 251, 255, 0.72)),
    linear-gradient(90deg, rgba(23, 35, 63, 0.04) 1px, transparent 1px) 0 0 / 28px 28px;
  border-top: 1px solid rgba(23, 35, 63, 0.12);
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"] {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(23, 35, 63, 0.18) !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.08);
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"]::before {
  top: 8px;
  left: 10px;
  color: #fff;
  background: var(--qitan-blue);
  border: 0;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] {
  padding: 0 12px 12px;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] > div {
  color: var(--qitan-ink) !important;
  background: #f8fbff !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] > div *,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button,
body.qitan-conversation-path [data-testid="interactive-chat-box"] svg {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button:disabled,
body.qitan-conversation-path [data-testid="interactive-chat-box"] [aria-disabled="true"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="text-[#A3A3A3]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="text-\\[\\#A3A3A3\\]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="text-[#DEDFE0]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="text-\\[\\#DEDFE0\\]"] {
  color: #52627e !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button:disabled *,
body.qitan-conversation-path [data-testid="interactive-chat-box"] [aria-disabled="true"] * {
  color: #52627e !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="chat-input"] textarea,
body.qitan-conversation-path [data-testid="chat-input"] input,
body.qitan-conversation-path [data-testid="chat-input"] [contenteditable="true"] {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="chat-input"] textarea::placeholder,
body.qitan-conversation-path [data-testid="chat-input"] input::placeholder {
  color: #65748f !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button {
  background: #fff !important;
  border-color: rgba(23, 35, 63, 0.2) !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button:hover {
  background: #fff7dc !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="h-[55px]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="h-\\[55px\\]"] {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border-color: rgba(23, 35, 63, 0.36) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="h-[55px]"] *,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="h-\\[55px\\]"] * {
  color: var(--qitan-ink) !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="rounded-[100px]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="rounded-\\[100px\\]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="rounded-[100px]"] *,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button[class*="rounded-\\[100px\\]"] * {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] button .text-\[\#DEDFE0\],
body.qitan-conversation-path [data-testid="interactive-chat-box"] button .text-\[\#FAFAFA\],
body.qitan-conversation-path [data-testid="interactive-chat-box"] button .text-white {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] button .text-\[\#DEDFE0\],
body.qitan-conversation-path [data-testid="app-route"] button .text-\[\#FAFAFA\],
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-[100px]"],
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-\\[100px\\]"],
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-[100px]"] *,
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-\\[100px\\]"] *,
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-[100px]"] .text-white,
body.qitan-conversation-path [data-testid="app-route"] button[class*="rounded-\\[100px\\]"] .text-white {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] button[class*="hover:opacity-80"],
body.qitan-conversation-path [data-testid="app-route"] button[class*="hover:opacity-80"] * {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] button[class="flex items-center border border-[#4B505F] rounded-[100px] transition-opacity cursor-pointer hover:opacity-80"],
body.qitan-conversation-path [data-testid="app-route"] button[class="flex items-center border border-[#4B505F] rounded-[100px] transition-opacity cursor-pointer hover:opacity-80"] * {
  color: var(--qitan-ink) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="chat-input"] {
  min-height: 64px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid rgba(35, 136, 255, 0.28) !important;
}

body.qitan-conversation-path [data-testid="chat-input"]:focus-within {
  border-color: var(--qitan-blue) !important;
  box-shadow: 0 0 0 3px rgba(35, 136, 255, 0.12) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="cursor-ew-resize"] {
  width: 8px !important;
  background: transparent !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="cursor-ew-resize"] > div:first-child {
  width: 1px !important;
  background: rgba(23, 35, 63, 0.12) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"],
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"] {
  border-color: rgba(23, 35, 63, 0.2) !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.1) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-[#474A54]"],
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-\\[\\#474A54\\]"] {
  min-height: 38px;
  background: #17233f !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) span,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) p,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) button,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) span,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) p,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"]:not(:has(.qitan-workspace-switch)):not(:has(.qitan-preview-panel)):not(:has(.qitan-native-files)):not(:has(.qitan-code-workspace)) button {
  color: #f4f7ff !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-title,
body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-empty-text,
body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-tip h4 {
  color: var(--qitan-ink) !important;
  -webkit-text-fill-color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-changes-tip-body {
  color: var(--qitan-muted) !important;
  -webkit-text-fill-color: var(--qitan-muted) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="text-[#A3A3A3]"],
body.qitan-conversation-path [data-testid="app-route"] [class*="text-\\[\\#A3A3A3\\]"],
body.qitan-conversation-path [data-testid="app-route"] [class*="text-neutral"] {
  color: #d8e1f4 !important;
}

body.qitan-conversation-path [data-testid="app-route"] [role="status"],
body.qitan-conversation-path [data-testid="app-route"] [aria-live] {
  color: #f4f7ff !important;
  background: #17233f !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

body.qitan-conversation-path [data-testid="planner-tab-build-button"] {
  background: var(--qitan-yellow) !important;
  border-color: rgba(23, 35, 63, 0.24) !important;
}

body.qitan-conversation-path .qitan-lesson-dock {
  right: 16px;
  bottom: 18px;
  width: min(340px, calc(100vw - 32px));
}

body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed {
  top: 50%;
  right: 8px;
  bottom: auto;
  width: 42px;
  opacity: 0.72;
  transform: translateY(-50%);
}

body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed .qitan-lesson-toggle {
  margin-left: 0;
  width: 42px;
  min-height: 96px;
  padding: 8px 5px;
  font-size: 12px;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.12);
}

body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed:hover,
body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed:focus-within {
  opacity: 1;
}

body.qitan-conversation-path [data-testid="app-route"] > div:last-child {
  padding-right: 0;
  padding-bottom: 0;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="bg-[#25272D]"],
body.qitan-conversation-path [data-testid="interactive-chat-box"] [class*="bg-\\[\\#25272D\\]"] {
  color: var(--qitan-ink) !important;
  background: #f8fbff !important;
  border-color: rgba(23, 35, 63, 0.16) !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [data-testid="interactive-chat-box"] [class*="bg-[#25272D]"][class*="border"],
body.qitan-conversation-path [data-testid="app-route"] [data-testid="interactive-chat-box"] [class*="bg-\\[\\#25272D\\]"][class*="border"] {
  color: var(--qitan-ink) !important;
  background: #f8fbff !important;
  border-color: rgba(23, 35, 63, 0.16) !important;
  box-shadow: 0 10px 24px rgba(23, 35, 63, 0.08) !important;
}

body.qitan-openhands-ready.qitan-conversation-path {
  padding-top: 0;
}

body.qitan-conversation-path #qitan-openhands-header {
  display: none !important;
}

body.qitan-conversation-path aside.qitan-sidebar-nav {
  height: 100vh !important;
  min-height: 100vh !important;
}

body.qitan-conversation-path #root-outlet {
  height: 100vh;
  min-height: 100vh;
}

body.qitan-conversation-path [data-testid="app-route"] {
  height: 100vh;
  padding-top: 0 !important;
}

body.qitan-conversation-path [data-testid="app-route"] > div:last-child {
  padding-top: 0;
  border-top: 0;
}

body.qitan-conversation-path [data-testid="app-route"] button .text-\[\#17233f\] {
  color: #17233f !important;
}

@media (max-width: 1240px) {
  body:not(.qitan-conversation-path) .qitan-home-workspace-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 680px) {
  body:not(.qitan-conversation-path) .qitan-home-workspace-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  body:not(.qitan-conversation-path) .qitan-home-workspace-grid > section,
  body:not(.qitan-conversation-path) .qitan-home-workspace-grid > div {
    min-height: 0 !important;
    max-height: none;
  }

  .qitan-recent-delete-button span {
    display: none;
  }
}

button,
[role="button"],
a {
  letter-spacing: 0 !important;
}

button,
[data-testid$="button"],
[data-testid="save-settings-button"],
[data-testid="new-project-button"],
[data-testid="confirm-preferences"] {
  border-radius: 8px !important;
  font-weight: 900 !important;
}

input,
textarea,
select,
[role="combobox"] {
  border-radius: 8px !important;
}

.markdown-body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif !important;
}

@media (max-width: 880px) {
  body.qitan-openhands-ready {
    padding-top: 124px;
  }

  #qitan-openhands-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
  }

  .qitan-openhands-brand {
    min-width: 0;
  }

  .qitan-openhands-brand strong {
    font-size: 16px;
  }

  .qitan-openhands-nav {
    justify-content: flex-start;
  }

  .qitan-openhands-status {
    display: none;
  }

  #qitan-openhands-course-guide {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  #qitan-classroom-start {
    width: calc(100% - 24px);
  }

  .qitan-classroom-start,
  .qitan-classroom-actions {
    grid-template-columns: 1fr;
  }

  .qitan-classroom-action,
  .qitan-classroom-start-copy {
    min-height: 0;
  }

  .qitan-course-hero {
    padding: 20px;
  }

  .qitan-course-hero h2 {
    font-size: 23px;
  }

  .qitan-course-track {
    grid-template-columns: 1fr;
  }

  .qitan-course-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .qitan-llm-plan-guide {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .qitan-llm-plan-grid {
    grid-template-columns: 1fr;
  }

  [data-testid="llm-settings-screen"],
  .qitan-llm-profiles-manager {
    width: calc(100% - 24px);
    padding: 14px;
  }

  .qitan-lesson-dock {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .qitan-lesson-steps {
    grid-template-columns: 1fr;
  }

  .qitan-lesson-prompts {
    max-height: 260px;
  }

  body.qitan-conversation-path {
    overflow: auto;
  }

  body.qitan-conversation-path #root-outlet,
  body.qitan-conversation-path [data-testid="app-route"] {
    height: auto;
    min-height: calc(100vh - 124px);
    overflow: visible;
  }

  body.qitan-conversation-path [data-testid="app-route"] {
    width: calc(100% - 16px);
    padding-top: 8px !important;
  }

  body.qitan-conversation-path [data-testid="app-route"] > div:first-child {
    min-height: 0;
  }

  body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"]::before {
    position: static;
    width: fit-content;
    margin: 10px 10px 0;
  }

  body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"] > div {
    padding-top: 0;
  }

  body.qitan-conversation-path .qitan-lesson-dock {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (min-width: 881px) and (max-width: 1180px) {
  .qitan-course-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qitan-classroom-start {
    grid-template-columns: 1fr;
  }

  .qitan-classroom-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  body:not(.qitan-conversation-path) #qitan-openhands-course-guide,
  body:not(.qitan-conversation-path) #qitan-classroom-start {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  body:not(.qitan-conversation-path) .qitan-openhands-course {
    gap: 10px;
  }

  body:not(.qitan-conversation-path) .qitan-course-hero {
    min-height: 0;
    width: 100%;
    padding: 18px;
  }

  body:not(.qitan-conversation-path) .qitan-course-hero::after {
    display: none;
  }

  body:not(.qitan-conversation-path) .qitan-course-eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  body:not(.qitan-conversation-path) .qitan-course-hero h2 {
    max-width: 100%;
    font-size: 23px;
    line-height: 1.22;
  }

  body:not(.qitan-conversation-path) .qitan-course-hero p {
    max-width: 100%;
    font-size: 13px;
  }

  body:not(.qitan-conversation-path) .qitan-course-track,
  body:not(.qitan-conversation-path) .qitan-classroom-start,
  body:not(.qitan-conversation-path) .qitan-classroom-actions {
    grid-template-columns: 1fr;
  }

  body:not(.qitan-conversation-path) .qitan-course-card,
  body:not(.qitan-conversation-path) .qitan-classroom-start-copy,
  body:not(.qitan-conversation-path) .qitan-classroom-action {
    min-height: 0;
  }

  body:not(.qitan-conversation-path) .qitan-course-note {
    align-items: flex-start;
    flex-direction: column;
  }

  body:not(.qitan-conversation-path) .qitan-course-note span {
    width: 100%;
  }
}

/* Final product pass for the AI programming workbench home. */
aside.qitan-sidebar-nav {
  width: var(--qitan-sidebar-width) !important;
  min-width: var(--qitan-sidebar-width) !important;
  height: calc(100dvh - var(--qitan-openhands-header-height)) !important;
  min-height: 0 !important;
  padding: 14px 10px !important;
}

body.qitan-openhands-ready aside.qitan-sidebar-nav {
  position: fixed !important;
  left: 0 !important;
  top: var(--qitan-openhands-header-height) !important;
  bottom: 0 !important;
  z-index: 2147482500 !important;
  overflow: visible !important;
}

body.qitan-openhands-ready.qitan-conversation-path aside.qitan-sidebar-nav {
  top: 0 !important;
  height: 100dvh !important;
  min-height: 0 !important;
}

body.qitan-openhands-ready [data-testid="root-layout"] {
  padding-left: var(--qitan-sidebar-width) !important;
}

body.qitan-openhands-ready.qitan-conversation-path [data-testid="root-layout"] {
  padding-left: var(--qitan-sidebar-width) !important;
}

aside.qitan-sidebar-nav nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 14px !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo,
aside.qitan-sidebar-nav .qitan-sidebar-item {
  display: block !important;
  width: 76px !important;
  min-width: 76px !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 7px 6px 17px !important;
  text-align: center !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-main-group,
aside.qitan-sidebar-nav .qitan-sidebar-user-group {
  width: 76px !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-main-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-user-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: auto !important;
  gap: 10px !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-user-actions {
  position: relative !important;
  width: 76px !important;
  height: 64px !important;
  margin-top: 0 !important;
}

aside.qitan-sidebar-nav [data-testid="user-avatar"].qitan-sidebar-item {
  margin-top: 0 !important;
}

aside.qitan-sidebar-nav .qitan-sidebar-item > svg,
aside.qitan-sidebar-nav .qitan-sidebar-item > img {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
}

aside.qitan-sidebar-nav [data-qitan-label]::after {
  right: 4px;
  bottom: 6px;
  left: 4px;
  overflow: visible;
  color: #34425f;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: clip;
  white-space: normal;
}

aside.qitan-sidebar-nav .qitan-sidebar-logo::before {
  margin-bottom: 13px;
}

#qitan-classroom-start {
  display: none !important;
}

body:not(.qitan-conversation-path) #qitan-openhands-course-guide.qitan-workbench-home {
  width: min(1128px, calc(100% - 44px));
  margin: 0 auto 14px !important;
}

body:not(.qitan-conversation-path) .qitan-workbench-home {
  gap: 12px;
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero {
  min-height: 206px;
  padding: 26px 386px 24px 30px;
  border: 3px solid rgba(23, 35, 63, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(239, 248, 255, 0.9) 100%),
    linear-gradient(90deg, rgba(35, 136, 255, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    #fff !important;
  box-shadow: 0 16px 32px rgba(23, 35, 63, 0.08);
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero::after {
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: block;
  width: 330px;
  background-color: #f8fbff;
  background-image: url("/qitan-assets/qitan-ai-coding-camp-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 3px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: 7px 7px 0 rgba(255, 212, 90, 0.68);
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 21px;
  bottom: 21px;
  z-index: 1;
  width: 324px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  border-radius: 6px;
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-eyebrow {
  color: #df3f2f;
  background: #fff7dc;
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero h2 {
  max-width: 610px;
  font-size: 29px;
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero p {
  max-width: 650px;
  font-size: 14.5px;
}

.qitan-course-actions button,
.qitan-course-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.qitan-course-actions .qitan-primary-workbench-action,
.qitan-course-actions button:first-child {
  color: #fff;
  background: var(--qitan-blue);
}

body:not(.qitan-conversation-path) .qitan-workbench-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.qitan-conversation-path) .qitan-workbench-flow .qitan-course-card {
  min-height: 118px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 35, 63, 0.1);
  box-shadow: none;
}

body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-card-1,
body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-card-2,
body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-card-3 {
  background: rgba(255, 255, 255, 0.84);
}

body:not(.qitan-conversation-path) .qitan-workbench-next-task {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--qitan-ink);
  background: linear-gradient(90deg, rgba(255, 247, 220, 0.9), rgba(239, 251, 247, 0.86));
  border-left: 6px solid #ffd45a;
  border-radius: 8px;
}

body:not(.qitan-conversation-path) .qitan-workbench-next-task strong {
  flex: 0 0 auto;
  color: #df3f2f;
  font-size: 13px;
  font-weight: 900;
}

body:not(.qitan-conversation-path) .qitan-workbench-next-task span {
  min-width: 0;
  color: #3f506f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

body:not(.qitan-conversation-path) .qitan-course-actions button:disabled {
  color: #69758c;
  background: #f4f7fb;
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

body:not(.qitan-conversation-path) .qitan-home-workspace-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1.28fr);
  gap: 16px;
}

body:not(.qitan-conversation-path) .qitan-student-primary-card {
  order: 1;
}

body:not(.qitan-conversation-path) .qitan-student-history-card {
  order: 2;
}

body:not(.qitan-conversation-path) .qitan-home-teacher-panel {
  order: 3;
}

body.qitan-student-mode:not(.qitan-conversation-path) [data-testid="repo-connector"],
body.qitan-student-mode:not(.qitan-conversation-path) [data-testid="task-suggestions"],
body.qitan-student-mode:not(.qitan-conversation-path) .qitan-home-teacher-panel {
  display: none !important;
}

body.qitan-teacher-mode:not(.qitan-conversation-path) .qitan-home-workspace-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1.28fr);
}

.qitan-recent-empty {
  display: flex;
  min-height: 132px;
  margin: 4px 14px 14px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: var(--qitan-ink);
  background: #f7fbff;
  border: 2px dashed rgba(47, 128, 237, 0.28);
  border-radius: 8px;
}

.qitan-recent-empty strong {
  color: var(--qitan-ink);
  font-size: 15px;
  font-weight: 900;
}

.qitan-recent-empty span {
  color: var(--qitan-muted) !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

body:not(.qitan-conversation-path) [data-testid="recent-conversations-skeleton"] {
  display: none !important;
}

body:not(.qitan-conversation-path) [data-testid="recent-conversations"]:not(:has(.qitan-recent-conversation-card)):not(:has(.qitan-recent-empty))::after {
  content: "还没有最近对话\\A开始一个新任务后，会在这里看到课堂对话记录。";
  display: flex;
  min-height: 132px;
  margin: 4px 14px 14px;
  padding: 18px;
  white-space: pre-line;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: var(--qitan-muted);
  background: #f7fbff;
  border: 2px dashed rgba(47, 128, 237, 0.28);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

[data-testid="conversation-panel"] {
  width: min(420px, calc(100vw - 136px)) !important;
  max-width: min(420px, calc(100vw - 136px)) !important;
  overflow-wrap: anywhere;
  pointer-events: auto !important;
}

[data-testid="conversation-panel"] * {
  max-width: 100%;
}

body:not(.qitan-conversation-path) [data-testid="root-layout"] div:has(> [data-testid="conversation-panel"]) {
  width: min(428px, calc(100vw - 124px)) !important;
  max-width: min(428px, calc(100vw - 124px)) !important;
  height: min(680px, calc(100dvh - var(--qitan-openhands-header-height) - 174px)) !important;
  max-height: min(680px, calc(100dvh - var(--qitan-openhands-header-height) - 174px)) !important;
  left: 14px !important;
  top: 170px !important;
  right: 12px !important;
  bottom: auto !important;
  background: transparent !important;
  pointer-events: none !important;
}

body:not(.qitan-conversation-path) [data-testid="root-layout"] div:has(> [data-testid="conversation-panel"]) {
  right: auto !important;
}

body:not(.qitan-conversation-path) [data-testid="conversation-panel"] {
  position: relative !important;
  inset: auto !important;
  height: 100% !important;
  max-height: 100% !important;
}

.qitan-conversation-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.qitan-conversation-action-button,
.qitan-conversation-more-button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  color: var(--qitan-ink) !important;
  background: #fff7dc !important;
  border: 2px solid rgba(23, 35, 63, 0.22) !important;
  border-radius: 8px !important;
  box-shadow: 2px 2px 0 rgba(23, 35, 63, 0.12) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.qitan-conversation-action-button:hover,
.qitan-conversation-more-button:hover {
  background: #eaf5ff !important;
  border-color: rgba(47, 127, 232, 0.48) !important;
}

.qitan-conversation-action-danger {
  background: #fff1ee !important;
}

.qitan-conversation-action-button svg,
.qitan-conversation-more-button svg {
  width: 15px !important;
  height: 15px !important;
  color: currentColor !important;
}

.qitan-conversation-more-wrap {
  position: relative;
}

.qitan-conversation-card-menu [data-testid="context-menu"] {
  min-width: 154px !important;
  padding: 8px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow) !important;
}

.qitan-conversation-card-menu [data-testid="context-menu"] * {
  color: var(--qitan-ink) !important;
}

.qitan-conversation-card-menu [data-testid="context-menu"] [role="separator"],
.qitan-conversation-card-menu [data-testid="context-menu"] hr {
  border-color: rgba(23, 35, 63, 0.12) !important;
}

[data-testid="user-actions"] {
  z-index: 10020;
}

[data-testid="user-context-menu"] {
  width: min(320px, calc(100vw - 132px)) !important;
  max-height: min(560px, calc(100vh - 112px)) !important;
  padding: 14px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

aside.qitan-sidebar-nav [data-testid="user-context-menu"].qitan-user-context-menu {
  position: absolute !important;
  left: calc(100% + 12px) !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  width: 286px !important;
  max-width: 286px !important;
  max-height: min(420px, calc(100vh - 32px)) !important;
  padding: 12px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 3px solid var(--qitan-border) !important;
  border-radius: 10px !important;
  box-shadow: var(--qitan-shadow), var(--qitan-soft-shadow) !important;
  overflow: visible !important;
}

.qitan-user-menu-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.qitan-user-menu-head {
  display: grid;
  gap: 3px;
  padding: 8px 8px 10px;
  border-radius: 8px;
  background: #fff7dc;
  color: var(--qitan-ink);
}

.qitan-user-menu-head span {
  width: max-content;
  padding: 2px 8px;
  border: 2px solid var(--qitan-border);
  border-radius: 999px;
  background: var(--qitan-yellow);
  color: var(--qitan-ink);
  font-size: 11px;
  font-weight: 900;
}

.qitan-user-menu-head strong {
  font-size: 16px;
  line-height: 1.2;
}

.qitan-user-menu-head small {
  color: #52617c;
  font-size: 12px;
  line-height: 1.45;
}

.qitan-user-menu-links {
  display: grid;
  gap: 8px;
}

.qitan-user-menu-links a,
.qitan-user-menu-links button {
  display: flex !important;
  min-height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 10px !important;
  border: 2px solid rgba(23, 35, 63, 0.18) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--qitan-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.qitan-user-menu-links a:hover,
.qitan-user-menu-links button:hover {
  background: #eaf5ff !important;
  border-color: rgba(47, 127, 232, 0.45) !important;
}

[data-testid="user-context-menu"] > div {
  width: 100%;
  gap: 0 !important;
}

[data-testid="user-context-menu"] h3 {
  margin: 0 0 8px !important;
  color: var(--qitan-ink) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

[data-testid="user-context-menu"] a,
[data-testid="user-context-menu"] button,
[data-testid="user-context-menu"] [role="button"] {
  min-height: 34px !important;
  color: var(--qitan-ink) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

[data-testid="user-context-menu"] a:hover,
[data-testid="user-context-menu"] button:hover,
[data-testid="user-context-menu"] [role="button"]:hover {
  color: var(--qitan-ink) !important;
  background: #fff7dc !important;
}

[data-testid="user-context-menu"] svg,
[data-testid="user-context-menu"] img {
  flex: 0 0 auto;
  color: currentColor !important;
}

[data-testid="user-context-menu"] style,
[data-testid="user-context-menu"] defs {
  display: none !important;
}

@media (max-width: 980px) {
  body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero {
    min-height: 0;
    padding: 22px;
  }

  body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero::after {
    display: none;
  }

  body:not(.qitan-conversation-path) .qitan-workbench-flow,
  body:not(.qitan-conversation-path) .qitan-home-workspace-grid,
  body.qitan-teacher-mode:not(.qitan-conversation-path) .qitan-home-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Product pass for every AI programming child page. */
body.qitan-student-mode .qitan-product-teacher-control {
  display: none !important;
}

body.qitan-student-mode [data-testid="conversation-panel"] a.qitan-product-teacher-control,
body.qitan-student-mode [data-testid="conversation-panel"] .qitan-product-teacher-control {
  display: block !important;
}

body.qitan-student-mode a[href^="/settings"],
body.qitan-student-mode a[href*="/settings/"],
body.qitan-student-mode a[href*="/settings"],
body.qitan-student-mode button[data-testid*="settings"] {
  display: none !important;
}

body.qitan-settings-path #root-outlet,
body.qitan-settings-path main {
  width: 100% !important;
}

#qitan-student-settings-notice,
#qitan-settings-product-shell,
#qitan-launch-product-shell {
  width: min(1128px, calc(100% - 44px));
  margin: 0 auto 18px;
  color: var(--qitan-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif;
}

#qitan-student-settings-notice,
#qitan-launch-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 16px;
  padding-top: 12px;
}

#qitan-settings-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-top: 10px;
}

.qitan-product-copy {
  position: relative;
  min-height: 198px;
  padding: 28px 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.96)),
    linear-gradient(90deg, rgba(35, 136, 255, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    #fff;
  border: 3px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(23, 35, 63, 0.08);
}

.qitan-product-copy::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 160px;
  height: 120px;
  background:
    radial-gradient(circle at 50% 35%, #ffd45a 0 24px, transparent 25px),
    linear-gradient(#2388ff, #2388ff) 53px 52px / 74px 48px no-repeat,
    linear-gradient(#62d5c7, #62d5c7) 35px 92px / 110px 16px no-repeat;
  border: 3px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
  opacity: 0.72;
  pointer-events: none;
}

.qitan-product-copy > * {
  position: relative;
  z-index: 1;
}

.qitan-product-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: #df3f2f;
  background: #fff7dc;
  border: 2px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.qitan-product-copy h1 {
  max-width: 720px;
  margin: 12px 0 10px;
  color: var(--qitan-ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.18;
}

.qitan-product-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--qitan-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.qitan-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.qitan-product-actions a,
.qitan-product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid var(--qitan-border);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.qitan-product-actions .qitan-product-primary {
  color: #fff;
  background: var(--qitan-blue);
}

#qitan-student-settings-notice .qitan-product-actions a,
#qitan-settings-product-shell .qitan-product-actions a,
#qitan-settings-product-shell .qitan-product-actions button,
#qitan-launch-product-shell .qitan-product-actions a {
  min-height: 42px !important;
  padding: 9px 15px !important;
}

.qitan-product-actions a:hover,
.qitan-product-actions button:hover,
.qitan-product-actions a:focus,
.qitan-product-actions button:focus {
  transform: translateY(-1px);
  box-shadow: 5px 5px 0 rgba(23, 35, 63, 0.16);
}

.qitan-product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
}

.qitan-product-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--qitan-ink);
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.qitan-product-nav-link.qitan-product-nav-active {
  color: #fff;
  background: var(--qitan-blue);
  border-color: var(--qitan-border);
}

.qitan-product-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.qitan-product-steps article {
  min-height: 112px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.08);
}

.qitan-product-steps article:nth-child(1) {
  background: #fff7dc;
}

.qitan-product-steps article:nth-child(2) {
  background: #eef8ff;
}

.qitan-product-steps article:nth-child(3) {
  background: #effbf7;
}

.qitan-product-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: #fff;
  background: var(--qitan-blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.qitan-product-steps strong {
  color: var(--qitan-ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.qitan-product-steps p {
  margin: 8px 0 0;
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

body.qitan-settings-path [data-testid="settings-navbar"] {
  display: none !important;
}

body.qitan-settings-path aside.qitan-sidebar-nav a[href^="/settings"],
body.qitan-settings-path aside.qitan-sidebar-nav a[href*="/settings/"] {
  display: none !important;
}

body.qitan-utility-path aside.qitan-sidebar-nav a[href^="/settings"],
body.qitan-utility-path aside.qitan-sidebar-nav a[href*="/settings"],
body.qitan-utility-path aside.qitan-sidebar-nav [data-qitan-label="文档"] {
  display: none !important;
}

body.qitan-utility-path a[href^="/settings"],
body.qitan-utility-path a[href*="/settings"],
body.qitan-utility-path a[href*="docs"],
body.qitan-utility-path a[href*="documentation"] {
  display: none !important;
}

body.qitan-utility-path .qitan-utility-hidden-control {
  display: none !important;
}

aside.qitan-sidebar-nav [data-qitan-label="文档"],
aside.qitan-sidebar-nav a[href*="docs"],
aside.qitan-sidebar-nav a[href*="documentation"] {
  display: none !important;
}

body.qitan-student-mode.qitan-settings-path #root-outlet::before {
  content: none !important;
  display: none !important;
}

body.qitan-student-mode.qitan-settings-path #qitan-student-settings-notice {
  display: grid !important;
}

body.qitan-student-mode.qitan-settings-path #root-outlet > :not(#qitan-student-settings-notice),
body.qitan-student-mode.qitan-settings-path main > :not(#qitan-student-settings-notice) {
  display: none !important;
}

body.qitan-teacher-mode.qitan-settings-path #qitan-student-settings-notice {
  display: none !important;
}

body.qitan-product-advanced-route.qitan-teacher-mode:not(.qitan-show-advanced-settings) #root-outlet > :not(#qitan-settings-product-shell),
body.qitan-product-advanced-route.qitan-teacher-mode:not(.qitan-show-advanced-settings) main > :not(#qitan-settings-product-shell) {
  display: none !important;
}

body.qitan-product-advanced-route.qitan-teacher-mode:not([data-qitan-advanced-open="1"]) #root-outlet > :not(#qitan-settings-product-shell),
body.qitan-product-advanced-route.qitan-teacher-mode:not([data-qitan-advanced-open="1"]) main > :not(#qitan-settings-product-shell) {
  display: none !important;
}

body.qitan-product-advanced-route.qitan-show-advanced-settings #qitan-settings-product-shell {
  margin-bottom: 12px;
}

body.qitan-product-advanced-route[data-qitan-advanced-open="1"] #qitan-settings-product-shell {
  margin-bottom: 12px;
}

body.qitan-settings-path [data-testid="settings-screen"],
body.qitan-settings-path [data-testid="llm-settings-screen"],
body.qitan-settings-path .qitan-llm-profiles-manager,
body.qitan-settings-path form {
  width: min(960px, calc(100% - 44px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.qitan-teacher-mode.qitan-settings-path [data-testid="settings-screen"] {
  width: min(1232px, calc(100% - 44px)) !important;
}

body.qitan-settings-path [data-testid="settings-screen"],
body.qitan-settings-path [data-testid="llm-settings-screen"] {
  padding: 16px !important;
}

body.qitan-settings-path h1,
body.qitan-settings-path h2,
body.qitan-settings-path h3,
body.qitan-settings-path label,
body.qitan-settings-path p,
body.qitan-settings-path span {
  letter-spacing: 0 !important;
}

body.qitan-settings-path button,
body.qitan-settings-path a[role="button"],
body.qitan-settings-path [data-testid="save-settings-button"] {
  min-height: 40px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

#qitan-launch-product-shell {
  grid-template-columns: 1fr;
}

body.qitan-launch-path #root-outlet > :not(#qitan-launch-product-shell),
body.qitan-launch-path main > :not(#qitan-launch-product-shell) {
  display: none !important;
}

body.qitan-student-mode .qitan-recent-delete-button,
body.qitan-student-mode button[aria-label*="删除"] {
  display: none !important;
}

body.qitan-student-mode [data-testid="conversation-panel"] [data-testid="conversation-delete-button"],
body.qitan-student-mode [data-testid="conversation-panel"] button[aria-label*="删除"] {
  display: flex !important;
}

body.qitan-utility-path main,
body.qitan-utility-path [data-testid="information-request-page"] {
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(180deg, rgba(239, 248, 255, 0.88), rgba(255, 247, 220, 0.72)),
    url("/qitan-assets/qitan-ai-coding-camp-hero.png") center / cover fixed no-repeat !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif !important;
}

body.qitan-utility-path [data-testid="information-request-page"] > div,
body.qitan-utility-path .bg-base-secondary,
body.qitan-utility-path .bg-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 3px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 32px rgba(23, 35, 63, 0.1) !important;
}

#qitan-information-product-note {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto 14px;
  padding: 22px 26px;
  background: #fff;
  border: 3px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(23, 35, 63, 0.08);
}

#qitan-information-product-note span {
  display: inline-flex;
  min-height: 26px;
  padding: 3px 10px;
  color: #df3f2f;
  background: #fff7dc;
  border: 2px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

#qitan-information-product-note h1 {
  margin: 10px 0 8px;
  color: var(--qitan-ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.2;
}

#qitan-information-product-note p {
  margin: 0;
  color: var(--qitan-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
}

.qitan-deployment-helper {
  width: min(760px, calc(100% - 24px));
  margin: 8px auto 6px;
  color: #58677f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.qitan-deployment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(900px, 100%);
}

.qitan-deployment-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 24px;
  color: var(--qitan-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 3px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(23, 35, 63, 0.1);
}

.qitan-deployment-card-cloud {
  background:
    linear-gradient(180deg, rgba(238, 248, 255, 0.92), rgba(255, 255, 255, 0.96)),
    #fff;
}

.qitan-deployment-card-local {
  background:
    linear-gradient(180deg, rgba(255, 247, 220, 0.9), rgba(255, 255, 255, 0.96)),
    #fff;
}

.qitan-deployment-card-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--qitan-blue);
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.16);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.1);
}

.qitan-deployment-card-local .qitan-deployment-card-icon {
  color: #df3f2f;
}

.qitan-deployment-card-icon svg {
  width: 26px;
  height: 26px;
}

.qitan-deployment-card h2 {
  margin: 18px 0 10px;
  color: var(--qitan-ink);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.25;
}

.qitan-deployment-card p {
  margin: 0;
  color: #3f506f;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.68;
}

.qitan-deployment-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.qitan-deployment-card li {
  position: relative;
  padding-left: 20px;
  color: #4c5e78;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.qitan-deployment-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  background: #62d5c7;
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
}

.qitan-deployment-card button,
.qitan-deployment-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 42px;
  margin-top: auto;
  padding: 9px 16px;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.2;
  text-decoration: none;
}

.qitan-deployment-card button {
  align-self: flex-start;
  cursor: pointer;
}

.qitan-deployment-card-cloud button,
.qitan-deployment-back {
  color: #fff !important;
  background: var(--qitan-blue) !important;
}

.qitan-deployment-card button:hover,
.qitan-deployment-back:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.qitan-deployment-back {
  margin-top: 4px;
}

body.qitan-utility-path button,
body.qitan-utility-path a[role="button"],
body.qitan-utility-path a.px-6,
body.qitan-utility-path input[type="submit"] {
  min-height: 40px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.qitan-utility-path button:not(:disabled):hover,
body.qitan-utility-path a:hover {
  background: #fff7dc !important;
}

body.qitan-utility-path button[class*="primary"],
body.qitan-utility-path button.bg-blue-600,
body.qitan-utility-path .bg-primary {
  color: #fff !important;
  background: var(--qitan-blue) !important;
}

body:not(.qitan-conversation-path) #qitan-launch-product-shell + * {
  width: min(960px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  #qitan-student-settings-notice,
  #qitan-settings-product-shell,
  #qitan-launch-product-shell {
    width: calc(100% - 24px);
  }

  #qitan-student-settings-notice,
  #qitan-launch-product-shell,
  .qitan-product-steps {
    grid-template-columns: 1fr;
  }

  .qitan-product-copy {
    min-height: 0;
    padding: 22px;
  }

  .qitan-product-copy::after {
    display: none;
  }

  .qitan-product-copy h1 {
    font-size: 24px;
  }
}

@media (max-width: 680px) {
  body.qitan-openhands-ready {
    padding-top: 160px;
    padding-bottom: 118px;
  }

  [data-testid="root-layout"],
  .h-screen {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  aside.qitan-sidebar-nav {
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 2147483001 !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 2px solid rgba(23, 35, 63, 0.16) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(23, 35, 63, 0.14) !important;
  }

  aside.qitan-sidebar-nav nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 8px !important;
  }

  aside.qitan-sidebar-nav .qitan-sidebar-logo,
  aside.qitan-sidebar-nav .qitan-sidebar-item {
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 5px 6px 10px !important;
  }

  body.qitan-openhands-ready:not(.qitan-conversation-path) #root-outlet {
    width: 100% !important;
    height: calc(100vh - 246px) !important;
    min-height: calc(100vh - 246px) !important;
    max-height: calc(100vh - 246px) !important;
    flex: 0 0 calc(100vh - 246px) !important;
    padding-bottom: 92px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .qitan-deployment-grid {
    grid-template-columns: 1fr;
  }

  .qitan-deployment-card {
    min-height: 0;
    padding: 20px;
  }

  .qitan-deployment-helper,
  #qitan-information-product-note {
    width: 100%;
  }

  body:not(.qitan-conversation-path) #qitan-openhands-course-guide.qitan-workbench-home {
    width: calc(100% - 20px);
    margin: 0 auto 12px !important;
  }

  body:not(.qitan-conversation-path) .qitan-workbench-home .qitan-course-hero {
    min-height: 0;
    padding: 20px !important;
  }
}

body.qitan-launch-path #root-outlet {
  display: grid;
  place-items: start;
  padding: 28px 0;
}

body.qitan-launch-path #qitan-launch-product-shell {
  align-self: start;
  justify-self: start;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0;
}

body.qitan-launch-path #qitan-launch-product-shell .qitan-product-copy {
  height: auto !important;
  min-height: 236px !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button.qitan-chat-send-button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border: 2px solid var(--qitan-border) !important;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.18) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button:disabled,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button.qitan-chat-send-button:disabled {
  color: #6b7892 !important;
  background: #eef4fc !important;
  border-color: #b8c7dd !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button svg,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button.qitan-chat-send-button svg {
  color: currentColor !important;
}

body.qitan-settings-path .qitan-settings-card,
body.qitan-settings-path .qitan-provider-card {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.08) !important;
}

body.qitan-settings-path .qitan-provider-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

body.qitan-settings-path .qitan-provider-card > strong {
  color: var(--qitan-ink) !important;
  font-size: 18px;
  font-weight: 900;
}

body.qitan-settings-path .qitan-provider-card > p {
  max-width: 760px;
  margin: -6px 0 0;
  color: #40506f !important;
  font-size: 14px;
  line-height: 1.7;
}

body.qitan-settings-path [data-testid$="-settings-screen"] input:not([type="checkbox"]),
body.qitan-settings-path [data-testid$="-settings-screen"] textarea,
body.qitan-settings-path [data-testid="git-settings-screen"] input:not([type="checkbox"]),
body.qitan-settings-path [data-testid="git-settings-screen"] textarea {
  min-height: 44px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid rgba(23, 35, 63, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.qitan-settings-path [data-testid$="-settings-screen"] input::placeholder,
body.qitan-settings-path [data-testid$="-settings-screen"] textarea::placeholder,
body.qitan-settings-path [data-testid="git-settings-screen"] input::placeholder,
body.qitan-settings-path [data-testid="git-settings-screen"] textarea::placeholder {
  color: #7d8daa !important;
  opacity: 1 !important;
}

body.qitan-settings-path [data-testid$="-settings-screen"] button:not([data-qitan-toggle-advanced]),
body.qitan-settings-path [data-testid="git-settings-screen"] button:not([data-qitan-toggle-advanced]) {
  min-height: 42px !important;
  padding: 9px 18px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
  font-weight: 900 !important;
}

body.qitan-settings-path [data-testid$="-settings-screen"] button[type="submit"],
body.qitan-settings-path [data-testid$="-settings-screen"] button[data-testid*="save"],
body.qitan-settings-path [data-testid="git-settings-screen"] button[type="submit"]:not([name="disconnect-tokens-button"]) {
  color: #fff !important;
  background: var(--qitan-blue) !important;
}

body.qitan-settings-path [data-testid$="-settings-screen"] button:disabled,
body.qitan-settings-path [data-testid="git-settings-screen"] button:disabled {
  color: #6f7f9c !important;
  background: #edf4fb !important;
  border-color: #b9c8de !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}

.qitan-classroom-capability-board {
  width: min(1128px, calc(100% - 44px));
  margin: 0 auto 36px;
  color: var(--qitan-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, Helvetica, sans-serif;
}

.qitan-capability-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94)),
    linear-gradient(90deg, rgba(35, 136, 255, 0.055) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff;
  border: 2px solid rgba(23, 35, 63, 0.14);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.08);
}

.qitan-capability-overview span,
.qitan-capability-grid article span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  color: #df3f2f;
  background: #fff7dc;
  border: 2px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.qitan-capability-overview h2 {
  margin: 12px 0 8px;
  color: var(--qitan-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.qitan-capability-overview p {
  max-width: 740px;
  margin: 0;
  color: var(--qitan-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

.qitan-capability-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 134px;
  padding: 18px;
  background: #effbf7;
  border: 2px solid rgba(23, 35, 63, 0.13);
  border-radius: 8px;
}

.qitan-capability-status b {
  color: var(--qitan-blue);
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
}

.qitan-capability-status span {
  margin-top: 8px;
  color: var(--qitan-ink);
  font-size: 13px;
  font-weight: 950;
}

.qitan-capability-status em {
  margin-top: 8px;
  color: #40506f;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.qitan-capability-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
}

body.qitan-settings-path .qitan-capability-tabs button {
  min-width: 112px !important;
  min-height: 36px !important;
  padding: 7px 12px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid rgba(23, 35, 63, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.qitan-settings-path .qitan-capability-tabs button.is-active {
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border-color: var(--qitan-border) !important;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.12) !important;
}

.qitan-capability-content {
  margin-top: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(23, 35, 63, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 35, 63, 0.07);
}

.qitan-capability-section-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.qitan-capability-section-copy strong {
  color: var(--qitan-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.qitan-capability-section-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--qitan-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.qitan-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qitan-capability-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 16px;
  background: #fff;
  border: 2px solid rgba(23, 35, 63, 0.13);
  border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.06);
}

.qitan-capability-grid article:nth-child(2n) {
  background: #eef8ff;
}

.qitan-capability-grid article:nth-child(3n) {
  background: #fff7dc;
}

.qitan-capability-grid article.is-enabled {
  border-color: rgba(35, 136, 255, 0.32);
}

.qitan-capability-grid article div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.qitan-capability-grid article strong {
  color: var(--qitan-ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.22;
}

.qitan-capability-grid article p {
  margin: 0;
  color: #40506f;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.58;
}

body.qitan-settings-path .qitan-capability-switch {
  width: 68px !important;
  min-width: 68px !important;
  min-height: 36px !important;
  padding: 7px 0 !important;
  color: #40506f !important;
  background: #f6f9fd !important;
  border: 2px solid rgba(23, 35, 63, 0.16) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

body.qitan-settings-path .qitan-capability-switch.is-on {
  color: #fff !important;
  background: var(--qitan-blue) !important;
  border-color: var(--qitan-border) !important;
  box-shadow: 3px 3px 0 rgba(23, 35, 63, 0.12) !important;
}

.qitan-capability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.qitan-settings-path .qitan-capability-actions button {
  min-width: 132px !important;
  min-height: 42px !important;
  padding: 9px 15px !important;
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

body.qitan-settings-path .qitan-capability-actions .qitan-capability-primary {
  color: #fff !important;
  background: var(--qitan-blue) !important;
}

body.qitan-settings-path [data-testid="secrets-settings-screen"] table {
  color: var(--qitan-ink) !important;
  background: #fff !important;
  border-collapse: separate;
  border-spacing: 0;
}

body.qitan-settings-path [data-testid="secrets-settings-screen"] thead {
  background: #eaf6ff !important;
}

body.qitan-settings-path [data-testid="secrets-settings-screen"] th,
body.qitan-settings-path [data-testid="secrets-settings-screen"] td {
  color: var(--qitan-ink) !important;
  border-bottom: 1px solid rgba(23, 35, 63, 0.12) !important;
}

body.qitan-settings-path [data-testid="secrets-settings-screen"] > div,
body.qitan-settings-path [data-testid="secrets-settings-screen"] [class*="border-tertiary"] {
  border-color: rgba(23, 35, 63, 0.18) !important;
  border-radius: 8px !important;
}

/* Conversation layer polish: keep classroom controls clickable without covering the workspace. */
body.qitan-conversation-path .qitan-lesson-dock {
  z-index: 1200;
  pointer-events: none;
}

body.qitan-conversation-path .qitan-lesson-dock:not(.qitan-lesson-collapsed) {
  top: 18px;
  right: 16px;
  bottom: 18px;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
}

body.qitan-conversation-path .qitan-lesson-toggle,
body.qitan-conversation-path .qitan-lesson-panel {
  pointer-events: auto;
}

body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed {
  top: 50%;
  bottom: auto;
  height: 96px;
  max-height: 96px;
  transform: translateY(-50%);
}

body.qitan-conversation-path .qitan-lesson-dock.qitan-lesson-collapsed .qitan-lesson-panel {
  display: none !important;
}

body.qitan-conversation-path .qitan-lesson-panel {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

body.qitan-conversation-path .qitan-lesson-header-row,
body.qitan-conversation-path .qitan-lesson-steps,
body.qitan-conversation-path .qitan-lesson-links {
  flex: 0 0 auto;
}

body.qitan-conversation-path .qitan-lesson-steps {
  gap: 6px;
  padding: 8px 10px;
}

body.qitan-conversation-path .qitan-lesson-steps li {
  padding: 8px 9px;
  font-size: 12px;
}

body.qitan-conversation-path .qitan-lesson-prompts {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 10px;
}

body.qitan-conversation-path .qitan-lesson-prompt {
  padding: 10px;
}

body.qitan-conversation-path .qitan-lesson-actions button,
body.qitan-conversation-path .qitan-lesson-links a {
  min-height: 34px;
  padding: 7px 11px;
}

body.qitan-conversation-path .qitan-lesson-links {
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] {
  position: relative;
  z-index: 30;
}

body.qitan-conversation-path [data-testid="user-message"],
body.qitan-conversation-path article.self-end {
  color: var(--qitan-ink) !important;
  background: linear-gradient(135deg, #eef8ff, #effbf7) !important;
  border: 2px solid rgba(23, 35, 63, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: 5px 5px 0 rgba(23, 35, 63, 0.10) !important;
}

body.qitan-conversation-path [data-testid="user-message"] *,
body.qitan-conversation-path article.self-end * {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path article:not([data-testid="user-message"]) [data-testid="markdown-renderer"],
body.qitan-conversation-path [data-testid="agent-message"] [data-testid="markdown-renderer"] {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [class*="border-l"],
body.qitan-conversation-path [class*="border-l"] * {
  color: #40506f !important;
}

body.qitan-conversation-path [class*="border-l"] {
  border-left-color: rgba(35, 136, 255, 0.28) !important;
}

body.qitan-conversation-path [data-testid="file-diff-viewer-outer"],
body.qitan-conversation-path [data-testid="editor-container"] {
  color: #f4f7ff !important;
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-radius: 8px !important;
}

body.qitan-conversation-path [data-testid="file-diff-viewer-outer"] > div:first-child {
  color: #ffffff !important;
  background: #17233f !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

body.qitan-conversation-path [data-testid="file-diff-viewer-outer"] *,
body.qitan-conversation-path [data-testid="editor-container"] * {
  color: inherit;
}

body.qitan-conversation-path [data-testid="file-diff-viewer-outer"] button {
  color: #ffffff !important;
}

body.qitan-conversation-path [data-testid="conversation-tab-editor"] {
  color: var(--qitan-ink) !important;
  background: #f8fcff !important;
}

body.qitan-conversation-path [data-testid="conversation-tab-editor"] * {
  color: inherit;
}

body.qitan-conversation-path [data-testid="chat-suggestions"] {
  pointer-events: none !important;
  z-index: 20;
}

body.qitan-conversation-path [data-testid="suggestions"] {
  width: min(720px, calc(100vw - 96px));
  pointer-events: auto;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  gap: 12px !important;
}

body.qitan-conversation-path [data-testid="suggestions"] button {
  height: 56px !important;
  min-height: 56px !important;
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 2px solid var(--qitan-border) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.12) !important;
}

body.qitan-conversation-path [data-testid="suggestions"] button:hover {
  transform: translateY(-1px);
  background: #fff7dc !important;
}

body.qitan-conversation-path [data-testid="suggestions"] button span,
body.qitan-conversation-path [data-testid="suggestions"] button svg {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="suggestions"] button svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Conversation messages and live status: product-facing, not developer-console heavy. */
body.qitan-conversation-path [data-testid="user-message"],
body.qitan-conversation-path article.self-end {
  max-width: min(68%, 720px) !important;
  padding: 12px 16px !important;
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(135deg, rgba(238, 248, 255, 0.98), rgba(239, 251, 247, 0.98)) !important;
  border: 2px solid rgba(35, 136, 255, 0.22) !important;
  border-radius: 8px !important;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path [data-testid="user-message"] [data-message-body="true"],
body.qitan-conversation-path article.self-end [data-message-body="true"],
body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] {
  color: var(--qitan-ink) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.72 !important;
  letter-spacing: 0 !important;
}

body.qitan-conversation-path [data-testid="user-message"] *,
body.qitan-conversation-path article.self-end * {
  color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-agent-working-panel,
body.qitan-conversation-path [data-testid="agent-working-panel"] {
  overflow: hidden !important;
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 220, 0.76), rgba(244, 251, 255, 0.98)) !important;
  border: 2px solid rgba(35, 136, 255, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: 5px 5px 0 rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [data-testid="agent-working-panel"][aria-live],
body.qitan-conversation-path [data-testid="app-route"] .qitan-agent-working-panel[aria-live] {
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 220, 0.76), rgba(244, 251, 255, 0.98)) !important;
  border-color: rgba(35, 136, 255, 0.2) !important;
}

body.qitan-conversation-path .qitan-agent-working-panel-ready,
body.qitan-conversation-path [data-testid="agent-working-panel"].qitan-agent-working-panel-ready {
  background:
    linear-gradient(135deg, rgba(239, 251, 247, 0.96), rgba(255, 247, 220, 0.82)) !important;
  border-color: rgba(53, 184, 138, 0.36) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [data-testid="agent-working-panel"].qitan-agent-working-panel-ready[aria-live],
body.qitan-conversation-path [data-testid="app-route"] .qitan-agent-working-panel-ready[aria-live] {
  color: var(--qitan-ink) !important;
  background:
    linear-gradient(135deg, rgba(239, 251, 247, 0.96), rgba(255, 247, 220, 0.82)) !important;
  border-color: rgba(53, 184, 138, 0.36) !important;
}

body.qitan-conversation-path .qitan-agent-working-panel *,
body.qitan-conversation-path [data-testid="agent-working-panel"] * {
  color: inherit;
  letter-spacing: 0 !important;
}

body.qitan-conversation-path .qitan-agent-working-panel p,
body.qitan-conversation-path [data-testid="agent-working-panel"] p {
  color: #52627e !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

body.qitan-conversation-path .qitan-agent-working-badge,
body.qitan-conversation-path [data-testid="agent-working-panel"] .qitan-agent-working-badge {
  color: var(--qitan-blue) !important;
  background: #fff !important;
  border: 1px solid rgba(35, 136, 255, 0.16) !important;
}

body.qitan-conversation-path .qitan-agent-working-panel-ready .qitan-agent-working-badge {
  color: #087f5b !important;
  border-color: rgba(53, 184, 138, 0.28) !important;
}

body.qitan-conversation-path [data-testid="agent-working-panel"] li {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(23, 35, 63, 0.12) !important;
  border-radius: 8px !important;
  color: #40506f !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid="agent-working-panel"] li span {
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] textarea,
body.qitan-conversation-path [data-testid="interactive-chat-box"] [contenteditable="true"] {
  color: var(--qitan-ink) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
}

body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-inline-code {
  display: inline-flex;
  max-width: min(100%, 720px);
  align-items: center;
  vertical-align: baseline;
  border: 1px solid rgba(35, 136, 255, 0.2);
  border-radius: 7px;
  padding: 0.08em 0.42em;
  color: #17233f !important;
  background: #f4fbff !important;
  font-family: "JetBrains Mono", "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 0.9em;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
  box-shadow: inset 0 -1px 0 rgba(255, 216, 90, 0.5);
}

body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-code-block {
  max-width: 100%;
  margin: 8px 0;
  border: 1px solid rgba(35, 136, 255, 0.18);
  border-left: 4px solid rgba(35, 136, 255, 0.42);
  border-radius: 10px;
  padding: 12px 14px;
  color: #17233f !important;
  background:
    linear-gradient(135deg, rgba(244, 251, 255, 0.98), rgba(255, 247, 220, 0.64)) !important;
  font-family: "JetBrains Mono", "Cascadia Code", "Microsoft YaHei", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  overflow: auto;
  box-shadow: 4px 4px 0 rgba(23, 35, 63, 0.06);
}

body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-code-block code {
  color: #17233f !important;
  background: transparent !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-code-block::before {
  display: inline-flex;
  margin-bottom: 8px;
  border: 1px solid rgba(23, 35, 63, 0.12);
  border-radius: 999px;
  padding: 2px 9px;
  color: #40506f;
  background: rgba(255, 255, 255, 0.72);
  content: attr(data-language);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-code-block:not([data-language])::before,
body.qitan-conversation-path [data-testid="markdown-renderer"] .qitan-code-block[data-language=""]::before {
  display: none;
}

@media (max-width: 760px) {
  body.qitan-conversation-path .qitan-lesson-dock:not(.qitan-lesson-collapsed) {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: min(70vh, 620px);
  }

  body.qitan-conversation-path [data-testid="suggestions"] {
    width: min(420px, calc(100vw - 32px));
    grid-template-columns: 1fr !important;
  }
}

/* Final home-position guard: upstream home layouts can reintroduce vertical centering. */
body.qitan-openhands-ready:not(.qitan-conversation-path) [data-testid="root-layout"] {
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body.qitan-openhands-ready:not(.qitan-conversation-path) #root-outlet,
body.qitan-openhands-ready:not(.qitan-conversation-path) [data-testid="home-screen"] {
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  scroll-padding-top: 0 !important;
}

body.qitan-openhands-ready:not(.qitan-conversation-path) [data-testid="home-screen"] {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: calc(100vh - 76px) !important;
  padding-top: 12px !important;
  margin-top: 0 !important;
}

body.qitan-openhands-ready:not(.qitan-conversation-path) #qitan-openhands-course-guide,
body.qitan-openhands-ready:not(.qitan-conversation-path) #qitan-classroom-start,
body.qitan-openhands-ready:not(.qitan-conversation-path) .qitan-openhands-course,
body.qitan-openhands-ready:not(.qitan-conversation-path) .qitan-home-workspace-grid {
  align-self: center !important;
  margin-top: 0 !important;
}

body.qitan-openhands-ready:not(.qitan-conversation-path) [data-testid="home-screen"] > :first-child {
  margin-top: 0 !important;
}

/* Qitan workspace preview: generated front-end work should be visible first. */
body.qitan-conversation-path .qitan-workspace-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 35, 63, 0.08);
}

body.qitan-conversation-path .qitan-workspace-switch button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--qitan-ink) !important;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

body.qitan-conversation-path .qitan-workspace-switch button.is-active {
  color: #ffffff !important;
  background: var(--qitan-ink);
}

body.qitan-conversation-path .qitan-workspace-switch .qitan-workspace-refresh {
  width: 28px;
  min-width: 28px;
  padding: 0;
  background: #eef7ff;
}

body.qitan-conversation-path .qitan-preview-panel {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  color: var(--qitan-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 90, 0.24), transparent 24%),
    linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

body.qitan-conversation-path .qitan-preview-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 35, 63, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(23, 35, 63, 0.08);
}

body.qitan-conversation-path .qitan-preview-toolbar div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.qitan-conversation-path .qitan-preview-toolbar strong {
  overflow: hidden;
  color: var(--qitan-ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.qitan-conversation-path .qitan-preview-toolbar span {
  color: var(--qitan-muted);
  font-size: 12px;
  font-weight: 700;
}

body.qitan-conversation-path .qitan-preview-toolbar button,
body.qitan-conversation-path .qitan-preview-empty button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(23, 35, 63, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--qitan-ink) !important;
  background: var(--qitan-yellow);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 5px 0 rgba(23, 35, 63, 0.12);
  cursor: pointer;
}

body.qitan-conversation-path .qitan-preview-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 2px solid rgba(23, 35, 63, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(23, 35, 63, 0.1);
}

body.qitan-conversation-path .qitan-preview-empty {
  display: grid;
  width: min(430px, calc(100% - 32px));
  margin: auto;
  gap: 12px;
  justify-items: center;
  border: 2px dashed rgba(23, 35, 63, 0.2);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
}

body.qitan-conversation-path .qitan-preview-empty strong {
  color: var(--qitan-ink);
  font-size: 22px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-preview-empty span {
  color: var(--qitan-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

body.qitan-conversation-path .qitan-code-workspace {
  display: flex;
  min-height: 0;
  flex-direction: column;
  position: relative;
  color: var(--qitan-ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 216, 90, 0.2), transparent 24%),
    linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

body.qitan-conversation-path .qitan-code-workspace-hint {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(23, 35, 63, 0.12);
  padding: 10px 14px;
  color: var(--qitan-ink);
  background: rgba(255, 255, 255, 0.92);
}

body.qitan-conversation-path .qitan-code-workspace-hint div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.qitan-conversation-path .qitan-code-workspace-hint strong {
  color: var(--qitan-ink);
  font-size: 14px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-code-workspace-hint span,
body.qitan-conversation-path .qitan-code-workspace-hint p {
  margin: 0;
  color: #52627e !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

body.qitan-conversation-path .qitan-code-workspace-hint p {
  flex: 0 1 auto;
  text-align: right;
}

body.qitan-conversation-path .qitan-code-workspace-frame {
  flex: 1 1 auto;
  min-height: 0;
  background: #ffffff;
}

body.qitan-conversation-path .qitan-code-workspace-guide {
  position: absolute;
  z-index: 20;
  top: 116px;
  right: 24px;
  bottom: 28px;
  left: clamp(170px, 34%, 245px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border: 2px solid rgba(35, 136, 255, 0.28);
  border-radius: 12px;
  padding: 26px;
  color: var(--qitan-ink) !important;
  background:
    radial-gradient(circle at 18% 14%, #ffeaa5 0%, transparent 30%),
    linear-gradient(135deg, #f4fbff 0%, #fff7dc 100%);
  box-shadow: 8px 8px 0 rgba(23, 35, 63, 0.12);
  text-align: center;
}

body.qitan-conversation-path .qitan-code-workspace-guide div {
  display: grid;
  max-width: 460px;
  min-width: 0;
  gap: 12px;
}

body.qitan-conversation-path .qitan-code-workspace-guide strong {
  color: var(--qitan-ink) !important;
  font-size: 24px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-code-workspace-guide span {
  color: #40506f !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-code-workspace-guide span {
  color: #40506f !important;
  -webkit-text-fill-color: #40506f !important;
}

body.qitan-conversation-path .qitan-code-workspace-guide button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(23, 35, 63, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: #ffffff !important;
  background: var(--qitan-blue);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(23, 35, 63, 0.16);
}

body.qitan-conversation-path .qitan-native-files {
  display: flex;
  min-height: 0;
  flex-direction: column;
  color: var(--qitan-ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 216, 90, 0.2), transparent 24%),
    linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

body.qitan-conversation-path .qitan-native-files-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(23, 35, 63, 0.12);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
}

body.qitan-conversation-path .qitan-native-files-header > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.qitan-conversation-path .qitan-native-files-header strong {
  color: var(--qitan-ink);
  font-size: 15px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-native-files-header span {
  color: #52627e;
  font-size: 12px;
  font-weight: 750;
}

body.qitan-conversation-path .qitan-native-files-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.qitan-conversation-path .qitan-native-files-actions button,
body.qitan-conversation-path .qitan-native-files-empty button,
body.qitan-conversation-path .qitan-native-editor-meta button {
  min-height: 32px;
  border: 1px solid rgba(23, 35, 63, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--qitan-ink) !important;
  background: #ffffff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(23, 35, 63, 0.08);
}

body.qitan-conversation-path .qitan-native-files-actions button:hover,
body.qitan-conversation-path .qitan-native-files-empty button:hover,
body.qitan-conversation-path .qitan-native-editor-meta button:hover {
  transform: translateY(-1px);
  background: #fff7dc;
}

body.qitan-conversation-path .qitan-native-files-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

body.qitan-conversation-path .qitan-native-files-actions .qitan-native-files-primary {
  color: #ffffff !important;
  background: var(--qitan-blue);
}

body.qitan-conversation-path .qitan-native-files-actions .qitan-native-files-primary:hover {
  background: #246fd0;
}

body.qitan-conversation-path .qitan-native-files-body {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

body.qitan-conversation-path .qitan-native-files-sidebar,
body.qitan-conversation-path .qitan-native-files-editor {
  min-height: 0;
  border: 1px solid rgba(23, 35, 63, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(23, 35, 63, 0.08);
}

body.qitan-conversation-path .qitan-native-files-sidebar {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

body.qitan-conversation-path .qitan-native-files-sidebar-title {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(23, 35, 63, 0.1);
}

body.qitan-conversation-path .qitan-native-files-sidebar-title strong {
  font-size: 14px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-native-files-sidebar-title span {
  color: #52627e;
  font-size: 12px;
  font-weight: 850;
}

body.qitan-conversation-path .qitan-native-file-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 10px;
}

body.qitan-conversation-path .qitan-native-file-item {
  display: grid;
  width: 100%;
  min-height: 58px;
  gap: 4px;
  border: 1px solid rgba(23, 35, 63, 0.12);
  border-radius: 10px;
  padding: 10px;
  color: var(--qitan-ink) !important;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

body.qitan-conversation-path .qitan-native-file-item:hover {
  background: #fff7dc;
}

body.qitan-conversation-path .qitan-native-file-item.is-active {
  border-color: rgba(35, 136, 255, 0.38);
  background: linear-gradient(135deg, #eef8ff, #effbf7);
  box-shadow: inset 4px 0 0 var(--qitan-blue);
}

body.qitan-conversation-path .qitan-native-file-item strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.qitan-conversation-path .qitan-native-file-item span,
body.qitan-conversation-path .qitan-native-files-side-empty {
  color: #52627e;
  font-size: 12px;
  font-weight: 750;
}

body.qitan-conversation-path .qitan-native-files-side-empty {
  padding: 14px;
  line-height: 1.6;
}

body.qitan-conversation-path .qitan-native-files-editor {
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

body.qitan-conversation-path .qitan-native-editor-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(23, 35, 63, 0.1);
  background: rgba(244, 251, 255, 0.72);
}

body.qitan-conversation-path .qitan-native-editor-meta div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.qitan-conversation-path .qitan-native-editor-meta strong {
  overflow: hidden;
  color: var(--qitan-ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.qitan-conversation-path .qitan-native-editor-meta span {
  color: #52627e;
  font-size: 12px;
  font-weight: 750;
}

body.qitan-conversation-path .qitan-native-editor-textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: none;
  padding: 16px 18px;
  color: #17233f !important;
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    #ffffff;
  font-family: "Cascadia Code", "JetBrains Mono", "Microsoft YaHei", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.72;
  tab-size: 2;
  white-space: pre;
}

body.qitan-conversation-path .qitan-native-readonly-tip {
  flex: 0 0 auto;
  margin: 10px 12px 0;
  padding: 9px 12px;
  color: #52627e;
  background: linear-gradient(135deg, rgba(255, 247, 220, 0.76), rgba(239, 251, 247, 0.88));
  border: 1px solid rgba(35, 136, 255, 0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

body.qitan-conversation-path .qitan-native-readonly-textarea,
body.qitan-conversation-path .qitan-native-editor-textarea[readonly] {
  color: #17233f !important;
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, rgba(239, 251, 247, 0.82), rgba(255, 254, 252, 0.98)) !important;
  cursor: text;
}

body.qitan-conversation-path .qitan-native-files-empty {
  display: grid;
  width: min(520px, calc(100% - 32px));
  margin: auto;
  gap: 12px;
  justify-items: center;
  border: 2px dashed rgba(23, 35, 63, 0.18);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
}

body.qitan-conversation-path .qitan-native-files-empty strong {
  color: var(--qitan-ink);
  font-size: 21px;
  font-weight: 950;
}

body.qitan-conversation-path .qitan-native-files-empty span {
  color: #52627e;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.7;
}

body.qitan-conversation-path .qitan-native-asset-preview {
  max-width: min(100%, 420px);
  max-height: 280px;
  border: 1px solid rgba(23, 35, 63, 0.14);
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
}

body.qitan-conversation-path .qitan-native-advanced-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files,
body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files *:not(.qitan-native-files-primary) {
  color: var(--qitan-ink) !important;
  -webkit-text-fill-color: var(--qitan-ink) !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files span,
body.qitan-conversation-path [data-testid="app-route"] .qitan-native-file-item span,
body.qitan-conversation-path [data-testid="app-route"] .qitan-native-editor-meta span,
body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files-header span,
body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files-empty span {
  color: #52627e !important;
  -webkit-text-fill-color: #52627e !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-native-files .qitan-native-files-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.qitan-conversation-path [data-testid="app-route"] .qitan-native-editor-textarea {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
}

/* Final classroom polish: keep the coding workspace inside Qitan's soft product shell. */
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.95)) !important;
  border-color: rgba(35, 136, 255, 0.16) !important;
  box-shadow: 0 14px 30px rgba(23, 35, 63, 0.07) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-base"]::before {
  top: 9px;
  left: 12px;
  color: #1976d2;
  background: #eef8ff;
  border: 1px solid rgba(35, 136, 255, 0.2);
  box-shadow: none;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-preview-panel),
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-preview-panel),
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-native-files),
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-native-files) {
  color: var(--qitan-ink) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(35, 136, 255, 0.22) !important;
  box-shadow: 0 14px 30px rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-[#474A54]"]:has(+ .qitan-preview-panel),
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-\\[\\#474A54\\]"]:has(+ .qitan-preview-panel),
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-[#474A54]"]:has(+ .qitan-native-files),
body.qitan-conversation-path [data-testid="app-route"] [class*="border-b"][class*="border-\\[\\#474A54\\]"]:has(+ .qitan-native-files) {
  background: #f7fbff !important;
  border-bottom: 1px solid rgba(35, 136, 255, 0.18) !important;
}

body.qitan-conversation-path .qitan-preview-panel,
body.qitan-conversation-path .qitan-native-files {
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #ffffff !important;
  border: 1px solid rgba(35, 136, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

body.qitan-conversation-path .qitan-preview-toolbar,
body.qitan-conversation-path .qitan-native-files-header,
body.qitan-conversation-path .qitan-native-editor-meta {
  background: rgba(247, 251, 255, 0.92) !important;
  border-color: rgba(35, 136, 255, 0.14) !important;
}

body.qitan-conversation-path .qitan-workspace-switch {
  padding: 4px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(35, 136, 255, 0.16);
  border-radius: 999px;
  box-shadow: none;
}

body.qitan-conversation-path .qitan-workspace-switch button {
  min-height: 30px;
  color: #52627e !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-workspace-switch button.is-active {
  color: #ffffff !important;
  background: #2388ff !important;
  box-shadow: 0 4px 10px rgba(35, 136, 255, 0.2) !important;
}

body.qitan-conversation-path .qitan-native-files-sidebar,
body.qitan-conversation-path .qitan-native-files-editor {
  border-color: rgba(35, 136, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.qitan-conversation-path .qitan-native-editor-textarea {
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    #fffefc !important;
}

/* Final contrast guard for workspace panes that still carry upstream dark class names. */
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch),
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) .qitan-changes-title,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) .qitan-changes-title {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button,
body.qitan-conversation-path [data-testid="app-route"] .qitan-workspace-switch button {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button:not(.is-active),
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button:not(.is-active),
body.qitan-conversation-path [data-testid="app-route"] .qitan-workspace-switch button:not(.is-active) {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button.is-active,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) .qitan-workspace-switch button.is-active,
body.qitan-conversation-path [data-testid="app-route"] .qitan-workspace-switch button.is-active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) input,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) input,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) textarea,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) textarea,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) [role="textbox"],
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) [role="textbox"] {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
  background: #ffffff !important;
  border-color: rgba(35, 136, 255, 0.18) !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) input::placeholder,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) input::placeholder,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) textarea::placeholder,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) textarea::placeholder {
  color: #52627e !important;
  -webkit-text-fill-color: #52627e !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i],
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i],
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] *,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] * {
  color: #17233f !important;
  -webkit-text-fill-color: #17233f !important;
  opacity: 1 !important;
}

body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] small,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] small,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-[#25272D]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] span,
body.qitan-conversation-path [data-testid="app-route"] [class*="bg-\\[\\#25272D\\]"][class*="border"]:has(.qitan-workspace-switch) [class*="file" i] span {
  color: #52627e !important;
  -webkit-text-fill-color: #52627e !important;
}

body.qitan-conversation-path [data-message-body="true"] pre,
body.qitan-conversation-path [data-message-body="true"] code {
  color: var(--qitan-ink) !important;
  background: #f7fbff !important;
  border: 1px solid rgba(35, 136, 255, 0.14) !important;
  border-radius: 8px !important;
}

body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] {
  max-width: 96%;
  color: #17233f !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.72;
}

body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] p,
body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] li {
  margin-bottom: 6px;
}

body.qitan-conversation-path [data-testid="agent-message"] [data-message-body="true"] strong {
  color: #10203b !important;
  font-weight: 950 !important;
}

body.qitan-conversation-path [data-testid="user-message"] [data-message-body="true"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #17335a !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.62 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  text-wrap: pretty;
}

body.qitan-conversation-path [data-testid="user-message"],
body.qitan-conversation-path article.self-end {
  width: fit-content !important;
  min-width: min(360px, calc(100% - 24px)) !important;
  max-width: min(78%, 680px) !important;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #eef8ff, #effbf7) !important;
  border: 1px solid rgba(35, 136, 255, 0.2) !important;
  border-radius: 8px 8px 2px 8px !important;
  box-shadow: 0 8px 18px rgba(35, 136, 255, 0.08) !important;
}

body.qitan-conversation-path .qitan-user-message-body p,
body.qitan-conversation-path [data-testid="user-message"] [data-message-body="true"] p {
  margin: 0 !important;
}

body.qitan-conversation-path .qitan-chat-message-body {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.qitan-conversation-path .qitan-streaming-placeholder-message {
  width: max-content !important;
  max-width: calc(100% - 24px) !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-streaming-placeholder-body {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  padding: 9px 13px !important;
  color: #17233f !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(35, 136, 255, 0.16) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 18px rgba(23, 35, 63, 0.06) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

body.qitan-conversation-path .qitan-streaming-placeholder-body p {
  margin: 0 !important;
  white-space: nowrap !important;
}

body.qitan-conversation-path .qitan-workspace-actions {
  margin: 2px 8px 0 !important;
  padding: 10px 12px !important;
  color: #17233f !important;
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.055) 1px, transparent 1px) 0 0 / 24px 24px,
    rgba(247, 251, 255, 0.94) !important;
  border: 1px solid rgba(35, 136, 255, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-workspace-actions > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.qitan-conversation-path .qitan-workspace-actions .text-\[13px\] {
  color: #17233f !important;
  font-weight: 950 !important;
}

body.qitan-conversation-path .qitan-workspace-actions .text-\[12px\] {
  color: #52627e !important;
  font-weight: 750 !important;
}

body.qitan-conversation-path .qitan-workspace-action-buttons {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

body.qitan-conversation-path .qitan-workspace-action-button {
  height: 34px !important;
  min-width: 92px;
  padding: 0 12px !important;
  color: #1d5f9f !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(35, 136, 255, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(35, 136, 255, 0.08) !important;
}

body.qitan-conversation-path .qitan-workspace-action-button:hover {
  background: #eef8ff !important;
  border-color: rgba(35, 136, 255, 0.45) !important;
}

body.qitan-conversation-path .qitan-agent-working-panel {
  margin: 2px 8px 0 !important;
  padding: 12px 14px !important;
  color: #17233f !important;
  background: linear-gradient(135deg, #fff7dc, #eef8ff) !important;
  border: 1px solid rgba(35, 136, 255, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-agent-working-panel p {
  color: #52627e !important;
  font-weight: 750 !important;
}

body.qitan-conversation-path .qitan-agent-working-panel li {
  border-radius: 8px !important;
  border-color: rgba(35, 136, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

body.qitan-conversation-path .qitan-agent-working-badge {
  color: #df3f2f !important;
  background: #ffffff !important;
  border: 1px solid rgba(223, 63, 47, 0.18);
}

body.qitan-conversation-path .qitan-chat-input-shell {
  padding: 12px !important;
  color: #17233f !important;
  background:
    linear-gradient(90deg, rgba(35, 136, 255, 0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(35, 136, 255, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 24px rgba(23, 35, 63, 0.08) !important;
}

body.qitan-conversation-path .qitan-chat-input-row {
  align-items: center !important;
  padding-bottom: 10px !important;
  gap: 10px !important;
}

body.qitan-conversation-path .qitan-chat-input-main {
  align-items: center !important;
  gap: 10px !important;
}

body.qitan-conversation-path .qitan-add-file-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  background: #ffffff !important;
  border: 1px solid rgba(35, 136, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(35, 136, 255, 0.08);
}

body.qitan-conversation-path .qitan-add-file-button svg {
  width: 16px !important;
  height: 22px !important;
}

body.qitan-conversation-path .qitan-chat-send-button {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(23, 35, 63, 0.14) !important;
  box-shadow: 0 6px 14px rgba(35, 136, 255, 0.22) !important;
}

body.qitan-conversation-path .qitan-chat-input-actions {
  padding-top: 9px;
  border-top: 1px solid rgba(35, 136, 255, 0.12);
}

body.qitan-conversation-path .qitan-chat-tool-group {
  gap: 8px !important;
}

body.qitan-conversation-path .qitan-chat-tool-group button,
body.qitan-conversation-path .qitan-chat-input-actions button,
body.qitan-conversation-path .qitan-git-control-bar button {
  min-height: 30px;
  color: #344663 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(35, 136, 255, 0.18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.qitan-conversation-path .qitan-chat-tool-group button:hover,
body.qitan-conversation-path .qitan-chat-input-actions button:hover,
body.qitan-conversation-path .qitan-git-control-bar button:hover {
  background: #fff7dc !important;
}

body.qitan-conversation-path .qitan-git-control-bar {
  margin: 0 8px 0 !important;
  padding: 0 !important;
}

body.qitan-conversation-path .qitan-git-control-items {
  width: 100%;
  gap: 8px !important;
}

body.qitan-conversation-path .qitan-git-control-items > * {
  flex: 0 1 auto;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] > .mt-4 {
  margin-top: 8px !important;
}

body.qitan-conversation-path .qitan-agent-status {
  display: inline-flex !important;
  max-width: 210px;
  padding: 3px 4px 3px 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 136, 255, 0.14);
  border-radius: 999px;
}

body.qitan-conversation-path .qitan-agent-status-text {
  color: #52627e !important;
  -webkit-text-fill-color: #52627e !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

body.qitan-conversation-path .qitan-agent-status-icon {
  width: 24px !important;
  height: 24px !important;
  color: #52627e !important;
  background: #eef8ff !important;
  border: 1px solid rgba(35, 136, 255, 0.16);
}

body.qitan-conversation-path .qitan-agent-status-icon svg {
  color: #52627e !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button,
body.qitan-conversation-path [data-testid="interactive-chat-box"] button.qitan-chat-send-button {
  width: 38px !important;
  height: 38px !important;
  color: #ffffff !important;
  background: #2388ff !important;
  border: 1px solid rgba(35, 136, 255, 0.32) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 16px rgba(35, 136, 255, 0.22) !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button:hover {
  background: #0e6fe5 !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button:disabled {
  color: #6b7892 !important;
  background: #eef4fc !important;
  border-color: rgba(35, 136, 255, 0.16) !important;
  box-shadow: none !important;
}

body.qitan-conversation-path [data-testid="interactive-chat-box"] .qitan-chat-send-button svg {
  color: currentColor !important;
}

@media (max-width: 760px) {
  body.qitan-conversation-path .qitan-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.qitan-conversation-path .qitan-workspace-switch button {
    padding: 0 10px;
  }

  body.qitan-conversation-path .qitan-code-workspace-hint {
    align-items: flex-start;
    flex-direction: column;
  }

  body.qitan-conversation-path .qitan-code-workspace-hint p {
    text-align: left;
  }

  body.qitan-conversation-path .qitan-code-workspace-guide {
    top: 140px;
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    flex-direction: column;
  }

  body.qitan-conversation-path .qitan-native-files-header,
  body.qitan-conversation-path .qitan-native-editor-meta {
    align-items: stretch;
    flex-direction: column;
  }

  body.qitan-conversation-path .qitan-native-files-actions {
    justify-content: flex-start;
  }

  body.qitan-conversation-path .qitan-native-files-body {
    grid-template-columns: 1fr;
  }

  body.qitan-conversation-path .qitan-native-files-sidebar {
    max-height: 210px;
  }
}

/* qitan archive conversation visibility fix: keep read-only archived history visible. */
body.qitan-conversation-path [data-testid="app-route"] > div:first-child:has([data-testid="archived-banner"]) {
  display: flex !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

body.qitan-conversation-path [data-testid="app-route"] > div:first-child:has([data-testid="archived-banner"]) [data-testid="archived-banner"] {
  width: 100% !important;
}
