.st-page {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: clamp(24px,4vw,48px) clamp(14px,3.2vw,36px) 46px;
  color: var(--ink);
}
.st-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.st-page h1 { margin: 0 0 7px; font-size: clamp(27px,4.1vw,39px); line-height: 1.13; font-weight: 630; letter-spacing: -.043em; }
.st-page p { margin: 0; }
.st-page-head p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.st-page-head > .btn { flex: none; }
.st-layout { display: grid; grid-template-columns: 183px minmax(0,1fr); align-items: start; gap: clamp(18px,3vw,34px); }
.st-nav { display: grid; gap: 21px; position: sticky; top: 15px; }
.st-nav-group { display: grid; gap: 3px; }
.st-nav-group > small { color: var(--muted); font-size: 11px; font-weight: 640; letter-spacing: .025em; margin: 0 9px 4px; }
.st-nav-group > button {
  appearance: none;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 8px 9px;
  cursor: pointer;
}
.st-nav-group > button:hover { color: var(--ink); background: var(--soft); }
.st-nav-group > button[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 680; }
.st-nav-group > button > svg { flex: none; }
.st-content { min-width: 0; }
.st-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.st-card + .st-card { margin-top: 18px; }
.st-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 19px 21px 18px;
}
.st-section-title h2, .st-dialog h2 { margin: 0 0 5px; font-size: 18px; font-weight: 660; letter-spacing: -.02em; line-height: 1.35; }
.st-section-title p, .st-dialog p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.st-section-title > .btn, .st-section-title > select { flex: none; }
.st-card-body { padding: 20px 21px; min-width: 0; }
.st-card-footer, .st-inline-actions, .st-dialog footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.st-card-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 13px 21px; }
.st-page .btn.st-button-small { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.st-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px 14px; }
.st-field { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 620; }
.st-field input, .st-readonly, .st-page select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 450;
  padding: 8px 10px;
}
.st-page select { width: auto; cursor: pointer; }
.st-field input:not([disabled]):focus, .st-page select:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.st-field input::placeholder { color: var(--muted); opacity: 1; }
.st-field input:disabled, .st-readonly { background: var(--soft); color: var(--muted); }
.st-readonly {
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  font: 12px/1.3 "IBM Plex Mono", ui-monospace, monospace;
}
.st-field small { color: var(--muted); font-weight: 450; }
.st-check { display: flex; align-items: center; gap: 7px; margin: 13px 0 16px; font-size: 12px; color: var(--muted); width: fit-content; cursor: pointer; }
.st-check input { accent-color: var(--accent); }
.st-connection-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.st-connection-status > div { display: grid; gap: 7px; justify-items: start; padding: 12px; }
.st-connection-status > div + div { border-left: 1px solid var(--line); }
.st-connection-status small { font-size: 11px; color: var(--muted); }
.st-status { display: inline-flex; align-items: center; gap: 5px; white-space: normal; font-size: 11px; line-height: 1.3; font-weight: 660; color: var(--muted); }
.st-status i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.st-status-good { color: var(--success,var(--accent)); }
.st-status-error { color: #b0473f; }
.st-status-wait { color: #986419; }
[data-theme="dark"] .st-status-wait { color: #eabf70; }
[data-theme="dark"] .st-status-error { color: #f19b8d; }
.st-space-top, .st-connection .st-notice { margin-top: 15px; }
.st-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
}
.st-notice strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 650; }
.st-notice p { color: var(--muted); line-height: 1.45; }
.st-notice-glyph { color: var(--muted); flex: none; height: 18px; }
.st-notice-error { border-color: color-mix(in srgb, var(--line), #b0473f 35%); background: color-mix(in srgb, var(--paper), #b0473f 8%); }
.st-notice-error .st-notice-glyph { color: #b0473f; }
.st-notice-good { background: var(--accent-soft); border-color: color-mix(in srgb, var(--line), var(--accent) 20%); }
.st-notice-good .st-notice-glyph { color: var(--success,var(--accent)); }
.st-list { display: grid; }
.st-list > .st-field, .st-list > .st-inline-actions, .st-list > .st-notice { margin-top: 15px; }
.st-list-row, .st-switch-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding-block: 13px;
}
.st-list-row:first-child, .st-switch-row:first-child { padding-top: 0; }
.st-list-row:last-child, .st-switch-row:last-child { padding-bottom: 0; }
.st-list-row + .st-list-row, .st-switch-row + .st-list-row, .st-switch-row + .st-switch-row, .st-list-row + .st-switch-row {
  border-top: 1px solid var(--line);
}
.st-list-row strong, .st-switch-row strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.3; font-weight: 650; }
.st-list-row small, .st-switch-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; }
.st-switch-row { cursor: pointer; position: relative; }
.st-switch-row input { position: absolute; right: 4px; width: 23px; height: 16px; opacity: 0; }
.st-switch-row > i {
  flex: 0 0 auto;
  width: 34px;
  height: 19px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  display: flex;
  align-items: center;
  padding: 2px;
}
.st-switch-row > i::before { content: ""; height: 13px; width: 13px; background: var(--muted); border-radius: 50%; }
.st-switch-row input:checked + i { background: var(--accent); border-color: var(--accent); }
.st-switch-row input:checked + i::before { background: var(--paper); margin-left: auto; }
.st-switch-row input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.st-closed-mode { margin-top: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 11px 13px; }
.st-choice {
  display: grid;
  position: relative;
  justify-items: start;
  align-content: start;
  gap: 8px;
  padding: 15px 15px 17px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font: inherit;
}
.st-choice:hover, .st-model-choice:not(:disabled):hover, .st-theme-choice:hover { border-color: color-mix(in srgb, var(--line), var(--accent) 40%); }
.st-choice[aria-pressed="true"], .st-model-choice[aria-pressed="true"]:not(:disabled), .st-theme-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.st-choice strong, .st-model-choice strong { font-size: 13px; font-weight: 670; line-height: 1.3; }
.st-choice small, .st-model-choice small { color: var(--muted); display: block; font-size: 12px; line-height: 1.45; }
.st-choice-icon { color: var(--accent); background: var(--soft); border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.st-choice[aria-pressed="true"] .st-choice-icon { background: var(--paper); }
.st-choice-tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  right: 15px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.st-choice[aria-pressed="true"] .st-choice-tick { border: 4px solid var(--accent); }
.st-model-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.st-model-choice {
  appearance: none;
  text-align: left;
  color: var(--ink);
  line-height: 1.4;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  padding: 9px;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}
.st-model-choice > span:first-child { color: var(--accent); margin-top: 2px; flex: none; }
.st-model-choice:disabled { opacity: .65; cursor: not-allowed; background: var(--soft); }
.st-page .st-footnote { margin-top: 10px; color: var(--muted); font-size: 12px; }
.st-theme { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.st-theme-choice {
  text-align: left;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 8px;
  display: grid;
  gap: 7px;
  appearance: none;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.st-theme-preview {
  height: 48px;
  border-radius: 5px;
  background: #ecedf2;
  padding: 9px;
  display: grid;
  gap: 4px;
  align-content: center;
  color: #a8a6ae;
}
.st-theme-preview i { width: 70%; border-radius: 3px; background: currentColor; height: 3px; }
.st-theme-preview i:first-child { width: 40%; color: #a23938; }
.st-theme-preview i:last-child { width: 55%; }
.st-theme-preview.st-preview-dark { color: #a29ba1; background: #29272a; }
.st-theme-preview.st-preview-dark i:first-child { color: #e7d2d5; }
.st-theme-preview.st-preview-system { background: linear-gradient(120deg,#ecedf2 50%,#29272a 50%); }
.st-keys { display: inline-flex; gap: 4px; }
.st-keys kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); color: var(--muted); min-width: 25px; text-align: center; font: 11px/1.4 "IBM Plex Mono", ui-monospace, monospace; white-space: nowrap; }
.st-onboarding { max-width: 825px; }
.st-onboarding .eyebrow { margin-bottom: 8px; color: var(--accent); }
.st-steps {
  list-style: none;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
  padding: 0;
  margin: 0 0 19px;
}
.st-steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); border-top: 2px solid var(--line); padding-top: 10px; font-size: 12px; line-height: 1.35; }
.st-steps li span { display: grid; place-items: center; height: 21px; width: 21px; flex: 0 0 21px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.st-steps li[aria-current], .st-steps li.complete { border-top-color: var(--accent); color: var(--ink); }
.st-steps li[aria-current] { font-weight: 690; }
.st-steps li[aria-current] span { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.st-steps li.complete span { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.st-wizard-footer { display: flex; gap: 9px; justify-content: space-between; margin-top: 16px; }
.st-dialog { border-radius: 12px; width: min(calc(100% - 32px),460px); padding: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 44px #0003; border: 1px solid var(--line); }
.st-dialog::backdrop { background: #20212670; }
.st-dialog footer { margin-top: 18px; }
.st-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 850px) {
  .st-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .st-nav { position: static; grid-template-columns: repeat(auto-fit,minmax(min(100%,158px),1fr)); gap: 8px; }
  .st-nav-group { display: flex; flex-wrap: wrap; align-content: start; min-width: 0; gap: 2px; }
  .st-nav-group > small { width: 100%; }
  .st-nav-group > button { width: auto; max-width: 100%; min-height: 31px; font-size: 12px; }
}
@media (max-width: 520px) {
  .st-page-head { align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
  .st-card-body, .st-section-title, .st-card-footer { padding-inline: 13px; }
  .st-section-title { flex-wrap: wrap; }
  .st-form-grid, .st-model-options { grid-template-columns: minmax(0,1fr); }
  .st-choice-grid { grid-template-columns: minmax(0,1fr); }
  .st-steps { gap: 4px; }
  .st-steps li { align-items: flex-start; flex-direction: column; gap: 5px; font-size: 11px; }
}
