Skip to content
Python
13.6 KB
Raw Blame
/* P3 source 143:2786 / 2854 / 2936; shared shell stays in R6ColdStartFrame. */
.onboarding-model-r6 .onboarding-r6-head > div {
  width: 620px;
  max-width: 100%;
}
.onboarding-model-layout {
  display: grid;
  grid-template-columns: minmax(0, 738px) 278px;
  gap: 30px;
  height: 560.2px;
  min-height: 0;
}
.onboarding-model-form {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.onboarding-model-fields {
  min-width: 0;
  min-height: 0;
}
.onboarding-model-form p {
  margin: 0;
}
.onboarding-model-intro {
  font-size: 14px;
  line-height: 23px;
  color: #5a6169;
}
.onboarding-model-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  line-height: 20px;
  color: #63707b;
}
.onboarding-model-field :is(input, select),
.onboarding-model-backlog select {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 12px 16px;
  background: #f0f5f6;
  border: 1px solid #c0ccd5;
  border-radius: 8px;
  color: #262a2e;
  font:
    400 14px / 23px "Noto Sans SC",
    "PingFang SC",
    sans-serif;
  box-shadow: none;
}
.onboarding-model-provider {
  position: relative;
  margin-top: 34px;
}
.onboarding-model-provider select {
  appearance: none;
  padding-right: 48px;
}
.onboarding-model-select-icon {
  position: absolute;
  right: 16px;
  bottom: 18px;
  color: #4e6478;
  pointer-events: none;
}
.onboarding-model-key {
  margin-top: 24px;
}
.onboarding-model-key .onboarding-model-field {
  gap: 11px;
  font-size: 13px;
  line-height: 21px;
}
.onboarding-model-form .onboarding-model-key-note {
  font-size: 11px;
  line-height: 18px;
  min-height: 25px;
  margin-top: 11px;
  color: #63707b;
}
.onboarding-model-form .onboarding-model-key-note[data-state="failed"] {
  color: #8a5945;
}
.onboarding-model-toggle {
  margin-top: 23px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 0;
  min-height: 28px;
  font:
    500 13px / 21px "Noto Sans SC",
    "PingFang SC",
    sans-serif;
  color: #4e6478;
  box-shadow: none;
}
.onboarding-model-form .onboarding-model-profile {
  margin-top: 12px;
  font-size: 12px;
  line-height: 20px;
  min-height: 54px;
  color: #63707b;
  overflow-wrap: anywhere;
}
.onboarding-model-recovery-actions {
  display: flex;
  gap: 16px;
  margin-top: 0;
}
/* `.onboarding-model-form` is a 560px scroll container. Once 配置详情 is
   expanded the fields overflow it, which pushed 测试连接 and 保存草稿 below the
   fold — so the first screen showed a disabled 保存并启用 in the footer with no
   visible way to satisfy it. Pinning the operations row to the bottom of the
   scroll container keeps the action that unlocks the footer on screen. A solid
   fill is used rather than a fade so the reduced-transparency branch needs no
   separate override. */
.onboarding-model-form[data-advanced="true"]
.onboarding-model-recovery-actions:not(:empty) {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 8px;
  padding: 12px 0 4px;
  background: #eef3f6;
  border-top: 1px solid #d8e2ea;
}
.onboarding-model-recovery-actions .r6-button-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.onboarding-model-summary {
  min-width: 0;
  min-height: 0;
  align-self: start;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  border: 1px solid #ffffffe0;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(#e5f2f766, #e5f2f766), #ffffff33;
  box-shadow:
    inset 0 1px #fff,
    0 12px 32px #314b650a;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.onboarding-model-summary[data-full-height="true"] {
  height: 100%;
}
.onboarding-model-summary > * {
  flex-shrink: 0;
}
.onboarding-model-summary p {
  font-size: 12px;
  line-height: 20px;
  color: #63707b;
  margin: 0;
}
.onboarding-model-summary h2 {
  margin: 0;
  color: #4e6478;
  font-size: 20px;
  line-height: 33px;
  font-weight: 600;
}
.onboarding-model-summary strong {
  display: block;
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.onboarding-model-summary small {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: #5a6169;
}
.onboarding-model-summary dl {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}
.onboarding-model-summary dt {
  color: #63707b;
}
.onboarding-model-summary dd {
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
  color: #384a57;
}
.onboarding-model-summary-heading,
.onboarding-model-connections,
.onboarding-model-summary-status {
  display: grid;
}
.onboarding-model-summary-heading {
  gap: 12px;
}
.onboarding-model-connections {
  gap: 14px;
}
.onboarding-model-summary-status {
  gap: 24px;
}
.onboarding-model-connection-receipt {
  white-space: pre-line;
}
.onboarding-model-backlog {
  font-size: 12px;
  line-height: 20px;
  color: #63707b;
}
.onboarding-model-backlog select {
  margin-top: 8px;
  height: 42px;
  padding: 8px;
  font-size: 12px;
}
.onboarding-model-footer-note {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 12px;
  line-height: 24px;
  margin: 0;
  color: #63707b;
}
.onboarding-model-footer-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
  margin-left: auto;
  justify-content: flex-end;
  align-items: stretch;
}
.onboarding-model-footer-actions .r6-button {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  padding: 10px 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 23px;
  background: rgb(255 255 255 / 34%);
}
.onboarding-model-footer-actions .r6-button[data-variant="primary"] {
  width: auto;
  background: var(--r6-action);
  color: white;
  border-color: #5b6f7e;
}
.onboarding-model-footer-actions .r6-button:disabled {
  background: #d2dde4;
  color: #687b88;
  border-color: var(--r6-control-edge);
}
.onboarding-model-advanced-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  font-size: 13px;
  line-height: 21px;
  color: #63707b;
}
.onboarding-model-advanced-head .onboarding-model-toggle {
  margin-top: 0;
  padding: 6px 0;
  gap: 12px;
  text-align: left;
  white-space: normal;
}
.onboarding-model-advanced-head .onboarding-model-toggle svg {
  flex-shrink: 0;
}
.onboarding-model-advanced-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 30px;
  row-gap: 19px;
  margin-top: 34px;
}
.onboarding-model-advanced-grid .onboarding-model-field {
  gap: 5px;
}
.onboarding-model-advanced-grid .onboarding-model-field > span {
  min-height: 22px;
}
.onboarding-model-advanced-grid :is(input:not([type="checkbox"]), select) {
  height: 42px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 21px;
}
.onboarding-model-wide,
.onboarding-model-numbers,
.onboarding-model-thinking {
  grid-column: 1 / -1;
}
.onboarding-model-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 24px;
}
.onboarding-model-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-top: 17px;
  font-size: 14px;
  line-height: 23px;
  color: #416e5c;
}
.onboarding-model-thinking input {
  width: 16px;
  height: 16px;
  accent-color: #4e6478;
}
.onboarding-model-wide small {
  font-size: 12px;
  color: #63707b;
}
.onboarding-model-vector-note {
  grid-column: 1 / -1;
  min-height: 54px;
  font-size: 12px;
  line-height: 20px;
  color: #63707b;
}
/* The pinned row overlays the tail of the scrolling fields, so the last field
   (关闭思考模式, and the vector fields when 自定义向量 is picked) would sit
   permanently underneath it. This reserves its height. Note this only stops the
   tail being unreachable — the expanded form still does not fit 560px, which is
   why the source splits it onto its own page (143:2854). */
.onboarding-model-form[data-advanced="true"] .onboarding-model-fields {
  padding-bottom: 56px;
}
.onboarding-model-error {
  color: #a24646;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.onboarding-model-field [aria-invalid="true"] {
  border-color: #a24646;
}
.onboarding-model-probe,
.onboarding-model-feedback > [role="status"] {
  font-size: 12px;
  line-height: 22px;
  margin-top: 8px;
}
.onboarding-model-r6 :is(button, [tabindex]):focus-visible {
  outline: 2px solid #557c93;
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  .onboarding-model-layout {
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 24px;
  }
}
/* One scroll owner for the editable pane; the disclosure scrolls independently. */
@media (min-width: 761px) {
  .onboarding-model-r6 .onboarding-r6-body {
    overflow: hidden;
  }
  .onboarding-model-layout {
    height: 100%;
  }
  .onboarding-model-form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .onboarding-model-fields {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scroll-padding: 12px;
    padding-inline: 4px 16px;
  }
  .onboarding-model-recovery-actions {
    flex-shrink: 0;
  }
}
.onboarding-model-field select {
  padding-inline-end: 32px;
}
@media (min-width: 761px) and (max-height: 959px) {
  .onboarding-model-r6 .onboarding-r6-body {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .onboarding-model-feedback {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 72px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .onboarding-model-summary {
    height: 100%;
    padding: 24px;
    gap: 28px;
    scrollbar-gutter: stable;
  }
  .onboarding-model-summary h2 {
    line-height: 33px;
  }
  .onboarding-model-summary .onboarding-model-backlog {
    order: 1;
  }
  .onboarding-model-summary dl {
    order: 2;
  }
  .onboarding-model-summary dd {
    margin: 4px 0 12px;
  }
  .onboarding-model-connections {
    order: 3;
  }
  .onboarding-model-summary-status {
    order: 4;
  }
  .onboarding-model-summary > [role="status"] {
    order: 5;
  }
  .onboarding-model-intro {
    font-size: 12px;
    line-height: 22px;
  }
  .onboarding-model-form[data-advanced="false"] .onboarding-model-field {
    gap: 4px;
  }
  .onboarding-model-form[data-advanced="false"]
    .onboarding-model-field
    :is(input, select) {
    height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .onboarding-model-provider {
    margin-top: 8px;
  }
  .onboarding-model-key {
    margin-top: 8px;
  }
  .onboarding-model-form .onboarding-model-key-note {
    margin-top: 4px;
    line-height: 20px;
  }
  .onboarding-model-advanced-grid {
    margin-top: 16px;
  }
}
@media (max-width: 760px) {
  .onboarding-model-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .onboarding-model-form {
    overflow: visible;
  }
  .onboarding-model-r6 .onboarding-r6-head > div {
    max-width: 100%;
  }
  .onboarding-model-advanced-grid {
    column-gap: 14px;
  }
  .onboarding-model-numbers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .onboarding-model-footer-actions {
    width: 100%;
    gap: 12px;
  }
  .onboarding-model-footer-actions .r6-button,
  .onboarding-model-footer-actions .r6-button[data-variant="primary"] {
    flex: 1 1 160px;
  }
}
@media (max-width: 480px) {
  .onboarding-model-advanced-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .onboarding-model-summary {
    background: #edf3f7;
  }
}
[data-native-reduce-transparency="true"] .onboarding-model-summary {
  background: #edf3f7;
}

/* ---------------------------------------------------------------------------
   Pointer feedback for step 3 (143:2786 / 143:2854).

   Like the other two steps this file had no `:hover` and no `transition`, so
   the provider dropdown, the key field and the "配置详情与高级设置" toggle all
   looked inert until clicked. Field geometry and palette are unchanged.
   --------------------------------------------------------------------------- */
.onboarding-model-field :is(input, select),
.onboarding-model-backlog select {
  transition:
    border-color var(--r6-fast, 140ms),
    background-color var(--r6-fast, 140ms);
}
.onboarding-model-field :is(input, select):hover:not(:disabled),
.onboarding-model-backlog select:hover:not(:disabled) {
  border-color: #9fb6ad;
  background: #eaf1f2;
}
.onboarding-model-r6 .onboarding-model-field :is(input, select):focus,
.onboarding-model-r6 .onboarding-model-field :is(input, select):focus-visible {
  outline: none;
  outline-offset: 0;
  border-color: #8aa0ae;
  box-shadow: none;
}
.onboarding-model-field select:not(:disabled),
.onboarding-model-backlog select:not(:disabled) {
  cursor: pointer;
}
:is(.onboarding-model-toggle, .onboarding-model-advanced-head button) {
  cursor: pointer;
  border-radius: 6px;
  transition:
    background-color var(--r6-fast, 140ms),
    color var(--r6-fast, 140ms);
}
:is(.onboarding-model-toggle, .onboarding-model-advanced-head button):hover:not(
  :disabled
) {
  background: #ffffff66;
  color: #33424d;
}
:is(.onboarding-model-toggle, .onboarding-model-advanced-head button):disabled {
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-model-field :is(input, select),
  .onboarding-model-backlog select,
  .onboarding-model-toggle,
  .onboarding-model-advanced-head button {
    transition: none;
  }
}
[data-native-reduce-motion="true"]
  :is(
    .onboarding-model-field input,
    .onboarding-model-field select,
    .onboarding-model-backlog select,
    .onboarding-model-toggle,
    .onboarding-model-advanced-head button
  ) {
  transition: none;
}