.desktop-cockpit .qa-assistant-page {
  display: flex;
  width: 100%;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  min-width: 0;
  min-height: 620px;
  max-width: none;
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  box-sizing: border-box;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 98, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(42, 78, 105, 0.1);
  color: #183349;
}

.desktop-cockpit .qa-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.1);
  background: rgba(248, 252, 254, 0.86);
}

.desktop-cockpit .qa-page-head > div {
  min-width: 0;
}

.desktop-cockpit .qa-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 7px;
}

.desktop-cockpit .qa-page-kicker {
  display: block;
  margin-bottom: 3px;
  color: #1687ad;
  font-size: 13px;
  font-weight: 700;
}

.desktop-cockpit .qa-page-head h2 {
  margin: 0;
  color: #102f46;
  font-size: 24px;
  line-height: 1.25;
}

.desktop-cockpit .qa-page-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 4px 0 0;
  color: #6b7f90;
  font-size: 14px;
}

.desktop-cockpit .qa-page-head p strong {
  color: #31536b;
}

.desktop-cockpit .qa-page-head p span::before {
  content: "·";
  margin-right: 12px;
  color: #9aabba;
}

.desktop-cockpit .qa-clear-button,
.desktop-cockpit .qa-message-meta button {
  border: 1px solid rgba(10, 61, 98, 0.13);
  background: #ffffff;
  color: #31536b;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.desktop-cockpit .qa-clear-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
}

.desktop-cockpit .qa-clear-button:hover,
.desktop-cockpit .qa-message-meta button:hover {
  border-color: rgba(0, 168, 216, 0.45);
  background: #eefaff;
  color: #087ca7;
}

.desktop-cockpit .qa-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.desktop-cockpit .qa-knowledge-backdrop {
  position: fixed;
  z-index: 1001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 40, 57, 0.46);
}

.desktop-cockpit .qa-knowledge-dialog {
  display: flex;
  width: min(1120px, 100%);
  height: min(720px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 98, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #183349;
  box-shadow: 0 24px 70px rgba(17, 40, 57, 0.24);
}

.desktop-cockpit .qa-knowledge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.1);
  background: #f8fcfe;
}

.desktop-cockpit .qa-knowledge-head h3 { margin: 0; color: #102f46; font-size: 22px; }
.desktop-cockpit .qa-knowledge-head p { margin: 5px 0 0; color: #6b7f90; font-size: 13px; }
.desktop-cockpit .qa-knowledge-close { border: 0; background: transparent; color: #6b7f90; cursor: pointer; font-size: 26px; line-height: 1; }
.desktop-cockpit .qa-knowledge-close:hover { color: #087ca7; }
.desktop-cockpit .qa-knowledge-body { position: relative; display: grid; min-height: 0; flex: 1; grid-template-columns: 310px minmax(0, 1fr); }
.desktop-cockpit .qa-knowledge-index { min-width: 0; overflow: auto; padding: 16px; border-right: 1px solid rgba(10, 61, 98, 0.1); background: #fbfdfe; }
.desktop-cockpit .qa-knowledge-index label { display: grid; gap: 6px; color: #547083; font-size: 12px; font-weight: 700; }
.desktop-cockpit .qa-knowledge-index select { min-height: 34px; padding: 0 8px; border: 1px solid rgba(10, 61, 98, 0.18); border-radius: 6px; background: #fff; color: #183349; }
.desktop-cockpit .qa-knowledge-pages { display: grid; gap: 6px; margin-top: 14px; }
.desktop-cockpit .qa-knowledge-page { display: grid; gap: 3px; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #31536b; text-align: left; cursor: pointer; }
.desktop-cockpit .qa-knowledge-page:hover { border-color: rgba(0, 168, 216, 0.28); background: #eefaff; }
.desktop-cockpit .qa-knowledge-page.is-active { border-color: rgba(0, 140, 178, 0.32); background: #eaf8fc; color: #087ca7; }
.desktop-cockpit .qa-knowledge-page strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-cockpit .qa-knowledge-page span { color: #7b8e9d; font-size: 12px; }
.desktop-cockpit .qa-knowledge-content { min-width: 0; overflow: auto; padding: 24px 28px; }
.desktop-cockpit .qa-knowledge-content-head { padding-bottom: 14px; border-bottom: 1px solid rgba(10, 61, 98, 0.1); }
.desktop-cockpit .qa-knowledge-content-head h4 { margin: 0 0 5px; color: #102f46; font-size: 21px; }
.desktop-cockpit .qa-knowledge-content-head small { color: #7b8e9d; font-size: 12px; }
.desktop-cockpit .qa-knowledge-markdown { padding-top: 18px; color: #31536b; font-size: 14px; line-height: 1.75; }
.desktop-cockpit .qa-knowledge-markdown h1,
.desktop-cockpit .qa-knowledge-markdown h2,
.desktop-cockpit .qa-knowledge-markdown h3 { margin: 1.2em 0 .5em; color: #102f46; }
.desktop-cockpit .qa-knowledge-markdown table { width: 100%; border-collapse: collapse; font-size: 13px; }
.desktop-cockpit .qa-knowledge-markdown th,
.desktop-cockpit .qa-knowledge-markdown td { padding: 8px 10px; border: 1px solid rgba(10, 61, 98, 0.14); text-align: left; }
.desktop-cockpit .qa-knowledge-markdown th { background: #f1f7fa; color: #31536b; }
.desktop-cockpit .qa-knowledge-markdown pre { padding: 12px; overflow: auto; background: #f5f8fa; border-radius: 6px; white-space: pre-wrap; }
.desktop-cockpit .qa-knowledge-state,
.desktop-cockpit .qa-knowledge-empty { padding: 28px 12px; color: #7b8e9d; text-align: center; }
.desktop-cockpit .qa-knowledge-feedback { position: absolute; right: 20px; bottom: 16px; padding: 8px 12px; border-radius: 6px; background: #fff4f2; color: #b42318; font-size: 13px; }

@media (max-width: 720px) {
  .desktop-cockpit .qa-knowledge-backdrop { padding: 0; }
  .desktop-cockpit .qa-knowledge-dialog { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .desktop-cockpit .qa-knowledge-body { display: flex; flex-direction: column; }
  .desktop-cockpit .qa-knowledge-index { max-height: 42%; border-right: 0; border-bottom: 1px solid rgba(10, 61, 98, 0.1); }
  .desktop-cockpit .qa-knowledge-content { padding: 18px 14px; }
}

.desktop-cockpit .qa-rule-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 40, 57, 0.46);
}

.desktop-cockpit .qa-rule-dialog {
  display: flex;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 61, 98, 0.14);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 47, 70, 0.25);
}

.desktop-cockpit .qa-rule-head,
.desktop-cockpit .qa-rule-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.1);
  background: #f8fcfe;
}

.desktop-cockpit .qa-rule-head h3 {
  margin: 0;
  color: #102f46;
  font-size: 20px;
}

.desktop-cockpit .qa-rule-head p {
  margin: 3px 0 0;
  color: #6b7f90;
  font-size: 13px;
}

.desktop-cockpit .qa-rule-close,
.desktop-cockpit .qa-rule-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #6b7f90;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.desktop-cockpit .qa-rule-close:hover,
.desktop-cockpit .qa-rule-remove:hover {
  color: #b42318;
  background: #fff4f2;
}

.desktop-cockpit .qa-rule-body {
  min-height: 180px;
  overflow: auto;
  padding: 14px 18px 8px;
}

.desktop-cockpit .qa-rule-table-wrap {
  min-width: 720px;
}

.desktop-cockpit .qa-rule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.desktop-cockpit .qa-rule-table th {
  padding: 8px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.12);
  color: #6b7f90;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.desktop-cockpit .qa-rule-table th:nth-child(1) { width: 18%; }
.desktop-cockpit .qa-rule-table th:nth-child(2) { width: 16%; }
.desktop-cockpit .qa-rule-table th:nth-child(3) { width: 18%; }
.desktop-cockpit .qa-rule-table th:nth-child(4) { width: auto; }
.desktop-cockpit .qa-rule-table th:nth-child(5) { width: 42px; }

.desktop-cockpit .qa-rule-table td {
  padding: 5px 4px;
  border-bottom: 1px solid rgba(10, 61, 98, 0.07);
}

.desktop-cockpit .qa-rule-table input {
  width: 100%;
  height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #263f51;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.desktop-cockpit .qa-rule-table input:hover { border-color: rgba(10, 61, 98, 0.16); }
.desktop-cockpit .qa-rule-table input:focus {
  outline: none;
  border-color: #00a8d8;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 168, 216, 0.1);
}

.desktop-cockpit .qa-rule-state,
.desktop-cockpit .qa-rule-empty {
  padding: 44px 12px;
  color: #6b7f90;
  text-align: center;
  font-size: 14px;
}

.desktop-cockpit .qa-rule-feedback {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.desktop-cockpit .qa-rule-feedback.is-error { color: #b42318; background: #fff4f2; }
.desktop-cockpit .qa-rule-feedback.is-success { color: #067647; background: #ecfdf3; }

.desktop-cockpit .qa-rule-foot {
  border-top: 1px solid rgba(10, 61, 98, 0.1);
  border-bottom: 0;
  background: #ffffff;
}

.desktop-cockpit .qa-rule-foot > div {
  display: flex;
  gap: 8px;
}

.desktop-cockpit .qa-rule-add,
.desktop-cockpit .qa-rule-cancel,
.desktop-cockpit .qa-rule-save {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.desktop-cockpit .qa-rule-add,
.desktop-cockpit .qa-rule-cancel {
  border: 1px solid rgba(10, 61, 98, 0.14);
  color: #31536b;
  background: #ffffff;
}

.desktop-cockpit .qa-rule-save {
  min-width: 72px;
  border: 1px solid #008ab5;
  color: #ffffff;
  background: #008ab5;
}

.desktop-cockpit .qa-rule-add:hover,
.desktop-cockpit .qa-rule-cancel:hover {
  border-color: #00a8d8;
  color: #087ca7;
}

.desktop-cockpit .qa-rule-save:hover { background: #00789f; }
.desktop-cockpit .qa-rule-add:disabled,
.desktop-cockpit .qa-rule-cancel:disabled,
.desktop-cockpit .qa-rule-save:disabled { cursor: not-allowed; opacity: 0.5; }

.desktop-cockpit .qa-rule-readonly {
  color: #7b8e9d;
  font-size: 12px;
}

@media (max-width: 720px) {
  .desktop-cockpit .qa-rule-backdrop { padding: 0; }
  .desktop-cockpit .qa-rule-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .desktop-cockpit .qa-rule-head,
  .desktop-cockpit .qa-rule-foot { padding-right: 12px; padding-left: 12px; }
  .desktop-cockpit .qa-rule-body { padding-right: 12px; padding-left: 12px; }
}

.desktop-cockpit .qa-chat-surface {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.desktop-cockpit .qa-conversation {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px clamp(16px, 2vw, 30px);
  scrollbar-color: rgba(62, 105, 133, 0.28) transparent;
  scrollbar-width: thin;
}

.desktop-cockpit .qa-welcome {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.desktop-cockpit .qa-welcome-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, #14b8d4, #2f72ff);
  box-shadow: 0 12px 26px rgba(31, 132, 188, 0.2);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.desktop-cockpit .qa-welcome h2 {
  margin: 0;
  color: #173b54;
  font-size: 21px;
}

.desktop-cockpit .qa-welcome > p {
  margin: 7px 0 16px;
  color: #6b7f90;
  font-size: 14px;
}

.desktop-cockpit .qa-message-list {
  width: 100%;
  max-width: none;
  margin: 0;
}

.desktop-cockpit .qa-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.desktop-cockpit .qa-message.from-user {
  flex-direction: row-reverse;
}

.desktop-cockpit .qa-message-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #18b8cf, #3579ef);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.desktop-cockpit .qa-message.from-user .qa-message-avatar {
  background: #e8f2f7;
  color: #31536b;
}

.desktop-cockpit .qa-message-main {
  min-width: 0;
  max-width: calc(100% - 44px);
}

.desktop-cockpit .qa-message.from-user .qa-message-main {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.desktop-cockpit .qa-message-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 21px;
  margin-bottom: 4px;
  color: #49677d;
  font-size: 13px;
}

.desktop-cockpit .qa-message-head time {
  color: #93a3af;
  font-size: 12px;
}

.desktop-cockpit .qa-thinking {
  width: min(560px, 100%);
  margin: 0 0 7px;
  border: 1px solid rgba(44, 111, 145, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcfe, #f3f8fb);
  color: #31536b;
}

.desktop-cockpit .qa-thinking summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.desktop-cockpit .qa-thinking summary::-webkit-details-marker { display: none; }
.desktop-cockpit .qa-thinking summary::after { margin-left: auto; content: "⌄"; color: #7b98a9; font-size: 15px; }
.desktop-cockpit .qa-thinking[open] summary::after { content: "⌃"; }
.desktop-cockpit .qa-thinking-icon { display: inline-flex; color: #1687ad; }
.desktop-cockpit .qa-thinking-icon svg { width: 15px; height: 15px; }
.desktop-cockpit .qa-thinking summary strong { color: #31536b; font-size: 12px; }
.desktop-cockpit .qa-thinking-count { color: #7b8e9d; font-size: 11px; }
.desktop-cockpit .qa-thinking ol { display: grid; gap: 8px; margin: 0; padding: 0 12px 11px 14px; list-style: none; }
.desktop-cockpit .qa-thinking li { display: flex; align-items: flex-start; gap: 8px; color: #527185; font-size: 12px; }
.desktop-cockpit .qa-thinking li > div { display: grid; gap: 2px; min-width: 0; }
.desktop-cockpit .qa-thinking li strong { font-weight: 650; }
.desktop-cockpit .qa-thinking li small { color: #8297a4; font-size: 11px; }
.desktop-cockpit .qa-thinking-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border: 2px solid #9db5c1; border-radius: 50%; box-sizing: border-box; }
.desktop-cockpit .qa-thinking li.is-active .qa-thinking-dot { border-color: #0b9dcc; box-shadow: 0 0 0 3px rgba(11, 157, 204, 0.12); animation: qa-thinking-pulse 1.2s ease-in-out infinite; }
.desktop-cockpit .qa-thinking li.is-done .qa-thinking-dot { border-color: #36a477; background: #36a477; }

@keyframes qa-thinking-pulse { 50% { opacity: .45; transform: scale(.78); } }

.desktop-cockpit .qa-message-bubble {
  padding: 9px 13px;
  border: 1px solid rgba(10, 61, 98, 0.11);
  border-radius: 4px 8px 8px 8px;
  background: #f7fafc;
  color: #263f51;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.desktop-cockpit .qa-message.from-user .qa-message-bubble {
  border-color: rgba(0, 168, 216, 0.16);
  border-radius: 8px 4px 8px 8px;
  background: #e9f8fd;
  color: #153b52;
}

.desktop-cockpit .qa-message.is-failed .qa-message-bubble {
  border-color: rgba(211, 68, 68, 0.18);
  background: #fff7f7;
}

.desktop-cockpit .qa-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
  color: #7b8e9d;
  font-size: 12px;
}

.desktop-cockpit .qa-message-meta span {
  overflow: hidden;
  max-width: 320px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-cockpit .qa-message-meta button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
}

.desktop-cockpit .qa-action-proposal {
  width: min(780px, 100%);
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #cad9e2;
  border-radius: 8px;
  background: #ffffff;
  color: #2b4152;
  box-shadow: 0 8px 22px rgba(20, 35, 55, 0.08);
}

.desktop-cockpit .qa-action-proposal-risk {
  background: #e8f4f2;
  color: #0f766e !important;
}

.desktop-cockpit .qa-action-proposal-head,
.desktop-cockpit .qa-action-proposal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.desktop-cockpit .qa-action-proposal-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.desktop-cockpit .qa-action-proposal-head span,
.desktop-cockpit .qa-action-proposal-actions > span {
  color: #7d6c58;
  font-size: 12px;
}

.desktop-cockpit .qa-action-proposal-head strong {
  color: #263b4d;
  font-size: 15px;
}

.desktop-cockpit .qa-action-proposal-risk {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f8e6c9;
  color: #85510d !important;
  font-weight: 700;
}

.desktop-cockpit .qa-action-proposal dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(127, 93, 49, 0.14);
  border-radius: 4px;
  background: rgba(127, 93, 49, 0.12);
}

.desktop-cockpit .qa-proposal-work-order-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2eaf0;
}

.desktop-cockpit .qa-message-bubble.is-streaming { min-height: 1.75em; }
.desktop-cockpit .qa-stream-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.14em;
  border-radius: 2px;
  background: #0b9dcc;
  animation: qa-stream-caret 0.82s steps(1, end) infinite;
}
@keyframes qa-stream-caret { 50% { opacity: 0; } }

.desktop-cockpit .qa-proposal-form-fallback {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(10, 61, 98, 0.18);
  border-radius: 6px;
  background: #f8fbfd;
  color: #6b7f90;
  font-size: 13px;
}

.desktop-cockpit .qa-proposal-form-fallback dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.desktop-cockpit .qa-proposal-form-fallback dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.desktop-cockpit .qa-proposal-form-fallback dt {
  color: #547083;
  font-weight: 700;
}

.desktop-cockpit .qa-proposal-form-fallback dd {
  margin: 0;
  color: #31536b;
  word-break: break-word;
}

.desktop-cockpit .qa-proposal-form-fallback p { margin: 0; }

.desktop-cockpit .qa-proposal-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid #e2eaf0; }
.desktop-cockpit .qa-proposal-form-foot > span { color: #718396; font-size: 12px; }
.desktop-cockpit .qa-proposal-form-foot .btn { min-height: 36px; padding: 7px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.desktop-cockpit .qa-proposal-form-foot > span:first-child { margin-right: auto; }
.desktop-cockpit .qa-proposal-form-foot .qa-dispatch-button { min-width: 104px; border-color: #0f766e; background: #0f766e; color: #ffffff; font-weight: 700; }
.desktop-cockpit .qa-proposal-form-foot .qa-dispatch-button:hover { background: #0b625d; }
.desktop-cockpit .qa-proposal-form-foot .qa-dispatch-button:disabled { cursor: wait; opacity: 0.6; }

.desktop-cockpit .qa-action-proposal dl > div {
  min-width: 0;
  padding: 7px 9px;
  background: #fffdf9;
}

.desktop-cockpit .qa-action-proposal dt {
  margin-bottom: 2px;
  color: #8a7863;
  font-size: 11px;
}

.desktop-cockpit .qa-action-proposal dd {
  margin: 0;
  color: #3f3a32;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.desktop-cockpit .qa-action-proposal-error {
  margin: 8px 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: #fff0ee;
  color: #b42318;
  font-size: 12px;
}

.desktop-cockpit .qa-action-proposal-missing {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 3px solid #b7791f;
  background: #fff7e6;
  color: #6b4f23;
  font-size: 12px;
  line-height: 1.5;
}

.desktop-cockpit .qa-action-proposal-missing strong {
  flex: 0 0 auto;
}

.desktop-cockpit .qa-action-proposal-missing span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.desktop-cockpit .qa-action-proposal-actions {
  margin-top: 10px;
}

.desktop-cockpit .qa-action-proposal-actions.is-work-order-note {
  justify-content: flex-start;
  margin-top: 8px;
}

.desktop-cockpit .qa-action-proposal-actions button {
  min-width: 88px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid #0f766e;
  border-radius: 5px;
  background: #0f766e;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.desktop-cockpit .qa-action-proposal-actions button:hover {
  background: #0b625d;
}

.desktop-cockpit .qa-action-proposal-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.desktop-cockpit .qa-proposal-result {
  display: flex;
  width: min(620px, 100%);
  gap: 9px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
}

.desktop-cockpit .qa-proposal-result strong {
  flex: 0 0 auto;
}

.desktop-cockpit .qa-proposal-result span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.desktop-cockpit .qa-proposal-result.is-success {
  border-color: #a7d7be;
  background: #effaf4;
  color: #17633b;
}

.desktop-cockpit .qa-proposal-result.is-warning {
  border-color: #efd09d;
  background: #fffaf2;
  color: #85510d;
}

.desktop-cockpit .qa-message.is-thinking .qa-message-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 180px;
}

.desktop-cockpit .qa-message.is-thinking .qa-message-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27a8cb;
  animation: qa-thinking 1.1s ease-in-out infinite;
}

.desktop-cockpit .qa-message.is-thinking .qa-message-bubble span:nth-child(2) {
  animation-delay: 0.14s;
}

.desktop-cockpit .qa-message.is-thinking .qa-message-bubble span:nth-child(3) {
  animation-delay: 0.28s;
}

.desktop-cockpit .qa-message.is-thinking .qa-message-bubble em {
  margin-left: 4px;
  color: #708493;
  font-size: 13px;
  font-style: normal;
}

.desktop-cockpit .qa-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.desktop-cockpit .qa-message.from-user .qa-message-attachments { justify-content: flex-end; }

.desktop-cockpit .qa-message-attachment {
  display: grid;
  min-width: 180px;
  max-width: 320px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(10, 61, 98, 0.13);
  border-radius: 6px;
  background: #ffffff;
  color: #31536b;
  font-size: 12px;
}

.desktop-cockpit .qa-message-attachment svg { width: 16px; height: 16px; color: #1787ad; }
.desktop-cockpit .qa-message-attachment > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-cockpit .qa-message-attachment small { color: #8a9ba8; white-space: nowrap; }

.desktop-cockpit .qa-composer-wrap {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px clamp(16px, 2vw, 30px) 9px;
  border-top: 1px solid rgba(10, 61, 98, 0.1);
  background: rgba(250, 253, 254, 0.94);
}

.desktop-cockpit .qa-composer,
.desktop-cockpit .qa-composer-hint {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.desktop-cockpit .qa-composer {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  max-width: none;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(10, 61, 98, 0.17);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(42, 78, 105, 0.08);
}

.desktop-cockpit .qa-composer:focus-within {
  border-color: rgba(0, 168, 216, 0.58);
  box-shadow: 0 0 0 3px rgba(0, 168, 216, 0.08);
}

.desktop-cockpit .qa-composer-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
}

.desktop-cockpit .qa-tool-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #557186;
  cursor: pointer;
}

.desktop-cockpit .qa-tool-button:hover { background: #edf7fa; color: #087ca7; }
.desktop-cockpit .qa-tool-button.is-listening { background: #fff0ee; color: #c4322b; }
.desktop-cockpit .qa-tool-button:disabled { cursor: not-allowed; opacity: 0.38; }
.desktop-cockpit .qa-tool-button svg { width: 19px; height: 19px; }

.desktop-cockpit .qa-pending-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.desktop-cockpit .qa-pending-file {
  display: grid;
  min-width: 190px;
  max-width: 340px;
  grid-template-columns: 17px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 7px;
  padding: 6px 6px 6px 9px;
  border: 1px solid rgba(10, 61, 98, 0.13);
  border-radius: 6px;
  background: #ffffff;
  color: #31536b;
  font-size: 12px;
}

.desktop-cockpit .qa-pending-file > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-cockpit .qa-pending-file small { color: #8a9ba8; white-space: nowrap; }
.desktop-cockpit .qa-pending-file > svg { width: 16px; height: 16px; color: #1787ad; }
.desktop-cockpit .qa-pending-file button { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #718396; cursor: pointer; }
.desktop-cockpit .qa-pending-file button:hover { background: #fff0ee; color: #b42318; }
.desktop-cockpit .qa-pending-file button svg { width: 15px; height: 15px; }

.desktop-cockpit .qa-quote-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
  padding: 7px 10px;
  border-left: 3px solid #4a7dff;
  border-radius: 4px;
  background: #eef2ff;
  font-size: 13px;
}

.desktop-cockpit .qa-quote-label {
  flex: 0 0 auto;
  color: #315fc4;
  font-weight: 700;
}

.desktop-cockpit .qa-quote-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #52606d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-cockpit .qa-quote-close {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #718096;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.desktop-cockpit .qa-quote-close:hover {
  background: rgba(74, 125, 255, 0.1);
  color: #315fc4;
}

.desktop-cockpit .qa-composer textarea {
  min-width: 0;
  min-height: 40px;
  max-height: 108px;
  flex: 1 1 auto;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #183349;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.desktop-cockpit .qa-composer textarea:focus {
  box-shadow: none;
}

.desktop-cockpit .qa-send-button,
.desktop-cockpit .qa-stop-button {
  min-width: 82px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.desktop-cockpit .qa-send-button {
  background: linear-gradient(135deg, #09afd0, #3478ec);
}

.desktop-cockpit .qa-stop-button {
  background: #536b7d;
}

.desktop-cockpit .qa-send-button:hover,
.desktop-cockpit .qa-stop-button:hover {
  filter: brightness(0.96);
}

.desktop-cockpit .qa-composer-hint {
  margin-top: 3px;
  margin-bottom: 0;
  color: #8a9ba8;
  font-size: 12px;
  text-align: right;
}

@keyframes qa-thinking {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 900px) {
  .desktop-cockpit .qa-assistant-page {
    height: auto;
    min-height: 620px;
    max-height: none;
  }

  .desktop-cockpit .qa-conversation {
    max-height: none;
    padding: 14px 16px;
  }

  .desktop-cockpit .qa-composer-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  .desktop-cockpit .qa-message-main {
    max-width: calc(100% - 44px);
  }

}

@media (max-width: 620px) {
  .desktop-cockpit .qa-page-head {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .desktop-cockpit .qa-page-actions {
    flex-wrap: wrap;
  }

  .desktop-cockpit .qa-composer {
    align-items: flex-end;
    flex-direction: row;
  }

  .desktop-cockpit .qa-send-button,
  .desktop-cockpit .qa-stop-button {
    width: auto;
    min-width: 72px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .desktop-cockpit .qa-action-proposal dl {
    grid-template-columns: 1fr;
  }

  .desktop-cockpit .qa-proposal-work-order-form .work-order-form-grid,
  .desktop-cockpit .qa-proposal-work-order-form .work-order-assignee-choice {
    grid-template-columns: 1fr;
  }

  .desktop-cockpit .qa-action-proposal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .desktop-cockpit .qa-action-proposal-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-cockpit .qa-message.is-thinking .qa-message-bubble span {
    animation: none;
  }
}

/* ── 多会话侧栏 + 检测单报告标签 ── */
.desktop-cockpit .qa-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.desktop-cockpit .qa-session-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 220px;
  min-width: 220px;
  border-right: 1px solid rgba(10, 61, 98, 0.1);
  background: rgba(240, 245, 250, 0.6);
  overflow: hidden;
}

.desktop-cockpit .qa-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #183349;
  border-bottom: 1px solid rgba(10, 61, 98, 0.1);
}

.desktop-cockpit .qa-session-new {
  border: none;
  background: none;
  color: #0a6db0;
  font-size: 13px;
  cursor: pointer;
}

.desktop-cockpit .qa-session-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
}

.desktop-cockpit .qa-session-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 9px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  cursor: pointer;
  color: #2c4a61;
  font-size: 13px;
}

.desktop-cockpit .qa-session-item:hover {
  background: rgba(10, 109, 176, 0.08);
}

.desktop-cockpit .qa-session-item.is-active {
  background: rgba(10, 109, 176, 0.14);
  color: #0a5d94;
  font-weight: 600;
}

.desktop-cockpit .qa-session-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-cockpit .qa-session-menu {
  position: fixed;
  z-index: 1200;
  min-width: 132px;
  padding: 5px;
  border: 1px solid rgba(10, 61, 98, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 47, 70, 0.18);
}

.desktop-cockpit .qa-session-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #31536b;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.desktop-cockpit .qa-session-menu button:hover {
  background: #eefaff;
  color: #087ca7;
}

.desktop-cockpit .qa-session-menu button.is-danger:hover {
  background: #fff4f2;
  color: #b42318;
}

.desktop-cockpit .qa-session-empty {
  padding: 16px 10px;
  text-align: center;
  color: #7a93a6;
  font-size: 12px;
}

.desktop-cockpit .qa-message-report-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(10, 109, 176, 0.1);
  color: #0a5d94;
  font-size: 12px;
}

@media (max-width: 720px) {
  .desktop-cockpit .qa-session-pane {
    display: none;
  }
}

/* Assistant visual refresh: intentionally scoped to the assistant module. */
.desktop-cockpit .qa-assistant-page {
  border: 1px solid rgba(86, 153, 179, 0.22);
  border-radius: 18px;
  background: #f8fcfe;
  box-shadow: 0 20px 55px rgba(22, 79, 104, 0.12);
}

.desktop-cockpit .qa-page-head {
  position: relative;
  min-height: 94px;
  padding: 18px 24px;
  border-bottom-color: rgba(83, 151, 179, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.desktop-cockpit .qa-page-head::after {
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, #19b8cf, rgba(42, 125, 240, 0.4), transparent 75%);
  content: "";
  opacity: 0.75;
}

.desktop-cockpit .qa-page-kicker {
  color: #0b98b8;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-cockpit .qa-page-head h2 {
  color: #123a52;
  font-size: 25px;
  letter-spacing: 0;
}

.desktop-cockpit .qa-page-head p {
  color: #78909e;
  font-size: 12px;
}

.desktop-cockpit .qa-page-head p strong { color: #286178; }

.desktop-cockpit .qa-page-actions { gap: 5px; }

.desktop-cockpit .qa-clear-button {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(73, 137, 163, 0.18);
  border-radius: 7px;
  color: #54788a;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.desktop-cockpit .qa-clear-button:hover {
  border-color: rgba(12, 173, 202, 0.5);
  color: #087ca7;
  background: #effcff;
}

.desktop-cockpit .qa-body {
  background: #f6fbfd;
}

.desktop-cockpit .qa-session-pane {
  width: 232px;
  min-width: 232px;
  border-right-color: rgba(83, 151, 179, 0.15);
  background: rgba(244, 250, 252, 0.92);
}

.desktop-cockpit .qa-session-head {
  min-height: 56px;
  padding: 0 16px;
  color: #234b61;
  border-bottom-color: rgba(83, 151, 179, 0.14);
  font-size: 12px;
}

.desktop-cockpit .qa-session-new {
  padding: 5px 8px;
  border: 1px solid rgba(19, 157, 183, 0.2);
  border-radius: 6px;
  background: #effbfe;
  color: #087ca7;
  font-size: 11px;
}

.desktop-cockpit .qa-session-item {
  position: relative;
  margin-bottom: 3px;
  padding: 11px 12px 11px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #537386;
  font-size: 12px;
}

.desktop-cockpit .qa-session-item::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.desktop-cockpit .qa-session-item:hover { background: rgba(28, 169, 197, 0.08); }

.desktop-cockpit .qa-session-item.is-active {
  border-color: rgba(33, 161, 190, 0.16);
  background: #ffffff;
  color: #0b6786;
  box-shadow: 0 5px 14px rgba(38, 103, 126, 0.06);
}

.desktop-cockpit .qa-session-item.is-active::before { background: #13aec9; }

.desktop-cockpit .qa-chat-surface {
  position: relative;
  background-color: #fbfeff;
  background-image: linear-gradient(rgba(29, 142, 174, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 142, 174, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.desktop-cockpit .qa-chat-surface::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 190px;
  background: linear-gradient(180deg, rgba(223, 247, 251, 0.38), transparent);
  content: "";
  pointer-events: none;
}

.desktop-cockpit .qa-conversation {
  position: relative;
  z-index: 1;
  padding: 24px clamp(22px, 4vw, 64px);
}

.desktop-cockpit .qa-welcome {
  width: min(720px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 22px 0 150px;
  justify-content: center;
}

.desktop-cockpit .qa-welcome-orbit {
  position: relative;
  width: 152px;
  height: 152px;
  margin: 0 auto 15px;
}

.desktop-cockpit .qa-welcome-avatar {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 3px;
  width: 108px;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(11, 140, 170, 0.18));
}

.desktop-cockpit .qa-orbit-ring {
  position: absolute;
  border: 1px solid rgba(22, 169, 198, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.desktop-cockpit .qa-orbit-ring-a { inset: 10px 0 22px; }
.desktop-cockpit .qa-orbit-ring-b { inset: 25px 16px 7px; border-color: rgba(51, 124, 236, 0.2); transform: rotate(48deg); }

.desktop-cockpit .qa-orbit-dot { position: absolute; z-index: 3; width: 7px; height: 7px; border-radius: 50%; }
.desktop-cockpit .qa-orbit-dot-a { top: 24px; right: 17px; background: #1ab7cf; box-shadow: 0 0 0 5px rgba(26, 183, 207, 0.12); }
.desktop-cockpit .qa-orbit-dot-b { bottom: 23px; left: 19px; background: #3d83ed; box-shadow: 0 0 0 5px rgba(61, 131, 237, 0.1); }

.desktop-cockpit .qa-welcome-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #6d9aab;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.desktop-cockpit .qa-welcome-kicker span { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, #8dc4d1); }
.desktop-cockpit .qa-welcome-kicker span:last-child { transform: rotate(180deg); }

.desktop-cockpit .qa-welcome h2 { margin-top: 11px; color: #153c52; font-size: 26px; font-weight: 680; }
.desktop-cockpit .qa-welcome > p { max-width: 560px; margin-top: 8px; color: #78909e; font-size: 13px; line-height: 1.75; }

.desktop-cockpit .qa-welcome-scope {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 6px 10px;
  border: 1px solid rgba(24, 160, 184, 0.16);
  border-radius: 6px;
  color: #42768a;
  background: rgba(239, 252, 253, 0.86);
  font-size: 11px;
}

.desktop-cockpit .qa-welcome-scope i { width: 6px; height: 6px; border-radius: 50%; background: #22ae8d; box-shadow: 0 0 0 4px rgba(34, 174, 141, 0.12); }
.desktop-cockpit .qa-welcome-scope b { color: #199172; font-size: 10px; font-weight: 700; }

.desktop-cockpit .qa-welcome-divider { display: flex; align-items: center; gap: 12px; margin-top: 25px; color: #93a8b2; font-size: 10px; text-align: left; }
.desktop-cockpit .qa-welcome-divider::before, .desktop-cockpit .qa-welcome-divider::after { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #d9e8ed); content: ""; }
.desktop-cockpit .qa-welcome-divider::after { transform: rotate(180deg); }

.desktop-cockpit .qa-welcome-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; margin-top: 11px; }

.desktop-cockpit .qa-welcome-actions button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #dcebef;
  border-radius: 8px;
  color: #31566a;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.desktop-cockpit .qa-welcome-actions button:hover { border-color: #9cd6e0; background: #ffffff; box-shadow: 0 8px 22px rgba(38, 105, 128, 0.09); transform: translateY(-1px); }
.desktop-cockpit .qa-welcome-action-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #cce8e9; border-radius: 8px; color: #148f9e; background: #ebf9f8; }
.desktop-cockpit .qa-welcome-action-icon svg { width: 17px; height: 17px; }
.desktop-cockpit .qa-welcome-actions button > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.desktop-cockpit .qa-welcome-actions strong { color: #28536a; font-size: 12px; }
.desktop-cockpit .qa-welcome-actions small { overflow: hidden; color: #8197a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.desktop-cockpit .qa-welcome-actions button > svg { width: 15px; height: 15px; margin-left: auto; color: #9bb2bd; }

.desktop-cockpit .qa-message { gap: 12px; margin-bottom: 19px; }
.desktop-cockpit .qa-message-avatar { width: 35px; height: 35px; flex-basis: 35px; border-radius: 9px; background: linear-gradient(145deg, #10b7cc, #3478ec); box-shadow: 0 5px 12px rgba(24, 137, 187, 0.14); }
.desktop-cockpit .qa-message.from-user .qa-message-avatar { border: 1px solid #d8e9ee; background: #ffffff; color: #367087; box-shadow: none; }
.desktop-cockpit .qa-message-head { color: #477084; font-size: 12px; }
.desktop-cockpit .qa-message-bubble { border-color: rgba(65, 137, 160, 0.13); border-radius: 5px 11px 11px 11px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 4px 13px rgba(30, 80, 102, 0.035); color: #29495b; font-size: 14px; line-height: 1.75; }
.desktop-cockpit .qa-message.from-user .qa-message-bubble { border-color: rgba(20, 169, 198, 0.16); border-radius: 11px 5px 11px 11px; background: #eaf9fc; color: #21495d; }

.desktop-cockpit .qa-composer-wrap { position: relative; z-index: 2; padding: 10px clamp(18px, 4vw, 64px) 13px; border-top-color: rgba(83, 151, 179, 0.13); background: rgba(250, 254, 255, 0.93); }
.desktop-cockpit .qa-composer { min-height: 78px; padding: 9px 10px 8px 12px; border-color: rgba(70, 143, 169, 0.24); border-radius: 11px; box-shadow: 0 12px 28px rgba(42, 104, 127, 0.08); }
.desktop-cockpit .qa-composer:focus-within { border-color: rgba(21, 171, 199, 0.68); box-shadow: 0 0 0 4px rgba(21, 171, 199, 0.08), 0 12px 28px rgba(42, 104, 127, 0.08); }
.desktop-cockpit .qa-tool-button { border-radius: 7px; color: #6c8b9a; }
.desktop-cockpit .qa-tool-button:hover { background: #edf9fb; color: #0786a5; }
.desktop-cockpit .qa-composer textarea { font-size: 14px; }
.desktop-cockpit .qa-send-button { min-width: 78px; min-height: 36px; border-radius: 8px; background: linear-gradient(135deg, #14b3c9, #2e7ee9); box-shadow: 0 5px 13px rgba(39, 126, 211, 0.18); font-size: 13px; }
.desktop-cockpit .qa-composer-hint { color: #91a5af; font-size: 11px; }

@media (max-width: 720px) {
  .desktop-cockpit .qa-page-head { min-height: 78px; padding: 13px 14px; }
  .desktop-cockpit .qa-page-head::after { right: 14px; left: 14px; }
  .desktop-cockpit .qa-conversation { padding: 16px 13px; }
  .desktop-cockpit .qa-welcome { padding: 13px 0 160px; }
  .desktop-cockpit .qa-welcome h2 { font-size: 22px; }
  .desktop-cockpit .qa-welcome-actions { grid-template-columns: 1fr; }
  .desktop-cockpit .qa-composer-wrap { padding-right: 12px; padding-left: 12px; }
}
.desktop-cockpit .qa-artifact {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(20, 142, 190, .2);
  border-radius: 12px;
  background: rgba(248, 253, 255, .92);
}
.desktop-cockpit .qa-artifact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.desktop-cockpit .qa-artifact-head strong { color: #143b55; font-size: 13px; }
.desktop-cockpit .qa-artifact-head > div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.desktop-cockpit .qa-artifact-head button { border: 1px solid #2aa6d6; border-radius: 6px; padding: 5px 9px; color: #117aa4; background: #fff; cursor: pointer; }
.desktop-cockpit .qa-chart-artifact svg { display: block; width: 100%; max-height: 260px; overflow: visible; }
.desktop-cockpit .qa-chart-artifact svg line { stroke: #b9d2df; stroke-width: 1; }
.desktop-cockpit .qa-chart-artifact svg polyline { stroke: #129dcc; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.desktop-cockpit .qa-chart-artifact svg circle { fill: #fff; stroke: #129dcc; stroke-width: 2; }
.desktop-cockpit .qa-chart-artifact svg text { fill: #668092; font-size: 10px; }
.desktop-cockpit .qa-artifact > small { color: #718796; font-size: 11px; }
.desktop-cockpit .qa-office-artifact { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.desktop-cockpit .qa-office-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: #1582aa; background: #e8f7fc; }
.desktop-cockpit .qa-office-icon svg { width: 18px; height: 18px; }
.desktop-cockpit .qa-office-artifact > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.desktop-cockpit .qa-office-artifact strong { color: #143b55; font-size: 13px; overflow-wrap: anywhere; }
.desktop-cockpit .qa-office-artifact small { color: #718796; }
.desktop-cockpit .qa-office-artifact > button { border: 1px solid #2aa6d6; border-radius: 6px; padding: 7px 10px; color: #117aa4; background: #fff; cursor: pointer; }
