@charset "UTF-8";
:root {
  --bg: #fff;
  --surface: #f8fafc;
  --sidebar: #f7f8fa;
  --ink: #182130;
  --muted: #697586;
  --line: #e5e9ef;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --ring: #93b4fd;
  --radius: 10px;
  font-family:
    "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.4;
}
h2 {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
input,
select {
  display: block;
  width: 100%;
  height: 42px;
  color: var(--ink);
  border: 1px solid #d9dfe8;
  border-radius: 7px;
  padding: 0 12px;
  background: white;
  min-width: 0;
}
input::placeholder {
  color: #697586;
}
input:focus,
select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: #759bee;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 8px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  white-space: nowrap;
  font-weight: 550;
  font-size: 13px;
}
.button.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 1px 2px #18213012;
}
.button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.button.secondary {
  background: white;
  border-color: #dce1e9;
  color: #384357;
}
.button.secondary:hover:not(:disabled) {
  background: var(--surface);
}
.button.small {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #788394;
  padding: 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  color: var(--ink);
  background: #e9edf3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 3px #2563eb14;
}
.brand-mark .icon {
  width: 22px;
  height: 22px;
}
.brand small {
  display: block;
  color: #697586;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2px;
  margin-top: -2px;
}
.muted {
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  background: white;
  color: #637185;
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.badge.subtle {
  border: 0;
  background: #f3f5f8;
}
.badge.version {
  font-size: 11px;
  background: var(--surface);
  margin-top: 4px;
}
.badge.success {
  color: #167347;
  background: #effaf4;
  border-color: #d9efe2;
}
.badge.warning {
  color: #946418;
  background: #fff9e9;
  border-color: #f1e3bc;
}
.badge.failure {
  color: #b14444;
  background: #fff3f2;
  border-color: #f3d9d7;
}
.badge.neutral {
  background: #f6f7f9;
}
.alert {
  display: block;
  padding: 13px 16px;
  border: 1px solid #cbdcfb;
  border-radius: 8px;
  color: #244e8e;
  background: #f3f7ff;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.alert.error {
  color: #a33a3a;
  background: #fff6f5;
  border-color: #f0d8d4;
}
.alert.success {
  color: #256447;
  background: #f1faf5;
  border-color: #d7ebdf;
}
.alert.warning {
  color: #805e25;
  background: #fffbef;
  border-color: #efe2bc;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: white;
  padding: 10px;
  border: 1px solid var(--line);
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.sidebar {
  position: fixed;
  width: 236px;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 16px 16px;
  z-index: 5;
}
.sidebar > .brand {
  padding: 0 10px;
  margin-bottom: 36px;
}
.nav-label {
  color: #697586;
  font-size: 11px;
  padding: 0 12px;
  margin-bottom: 10px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 10px 12px;
  margin-bottom: 5px;
  border-radius: 7px;
  background: transparent;
  color: #667185;
  text-align: left;
  font-size: 13px;
}
.nav-item:hover {
  background: #eceff4;
}
.nav-item.active {
  background: #e9effc;
  color: #285ec1;
  border-color: #dce6f8;
  font-weight: 600;
}
.nav-counter {
  margin-left: auto;
  border-radius: 5px;
  padding: 0 6px;
  background: #fff0d3;
  color: #906018;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 4px 20px;
  padding: 11px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.connection-box strong,
.account strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.connection-box small,
.account small {
  display: block;
  color: #697586;
  font-size: 10px;
}
.connection-box .icon-button {
  margin-left: auto;
  padding: 5px;
}
.connection-box .icon-button .icon {
  width: 14px;
  height: 14px;
}
.status-dot {
  display: block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #b4bdc9;
  flex: 0 0 auto;
}
.status-dot.ready {
  background: #2e9d69;
}
.status-dot.error {
  background: #d26969;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 5px;
}
.account form {
  margin-left: auto;
}
.avatar {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6eaf0;
  border: 1px solid #dce1e8;
  color: #637088;
  border-radius: 8px;
}
.avatar .icon {
  height: 15px;
  width: 15px;
}
.workspace {
  margin-left: 236px;
  min-height: 100vh;
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #697586;
}
.breadcrumb .icon {
  width: 13px;
  height: 13px;
}
.breadcrumb strong {
  font-weight: 450;
  color: #4d5b70;
}
.main-content {
  max-width: 1390px;
  margin: 0 auto;
  padding: 36px 36px 20px;
}
#global-notice {
  margin-bottom: 22px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.page-heading p {
  font-size: 13px;
  margin-top: 9px;
}
.migration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 26px;
  align-items: start;
}
.migration-primary {
  min-width: 0;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px #18213004;
  overflow: hidden;
}
.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 24px 22px;
}
.card-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.card-heading .badge {
  margin-left: auto;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #68778c;
  border: 1px solid #dfe5ed;
  background: #f8fafc;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
.group-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr);
  gap: 12px;
  padding: 1px 24px 25px;
}
.group-fields input,
.group-fields select {
  font-size: 12px;
  height: 42px;
}
.direction-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 29px;
  height: 42px;
  color: #a0acbd;
}
.field-help {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 9px;
  min-height: 37px;
}
.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fcfcfd;
  border-top: 1px solid var(--line);
  padding: 15px 24px;
}
.hint {
  font-size: 11px;
  color: #697586;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hint .icon {
  width: 14px;
  height: 14px;
}
.preview-card {
  margin-top: 22px;
}
.preview-card .card-heading {
  border-bottom: 1px solid var(--line);
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 243px;
  text-align: center;
  gap: 9px;
  padding: 34px 20px;
}
.empty-icon {
  height: 25px;
  width: 25px;
  color: #a4afbf;
  margin-bottom: 4px;
}
.empty-state h3 {
  color: #627086;
  font-size: 13px;
  font-weight: 550;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.9;
  color: #697586;
}
.scope-panel {
  padding: 22px 4px;
}
.scope-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f4fd;
  color: #5f80bd;
  border: 1px solid #e7edf8;
  border-radius: 8px;
  height: 34px;
  width: 34px;
  margin-bottom: 16px;
}
.scope-panel h2 {
  font-size: 14px;
  margin-bottom: 9px;
}
.scope-panel > p {
  font-size: 11px;
  line-height: 1.9;
}
.scope-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 13px;
  color: #637084;
  font-size: 11px;
}
.scope-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.scope-list .icon {
  width: 14px;
  height: 14px;
  color: #7191c0;
}
.scope-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 22px;
}
.scope-panel h3 {
  font-size: 12px;
  color: #66758b;
  margin-bottom: 9px;
}
.scope-panel .scope-note {
  margin-top: 15px;
  color: #697586;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 11px;
  color: #697586;
  font-weight: 500;
  padding: 11px 20px;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0f4;
  color: #536177;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #3c4a60;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: #697586;
  font-size: 10px;
  margin-top: 3px;
}
.token-direction {
  max-width: 200px;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: #697586;
}
.token-direction span {
  display: block;
  color: #5a77a6;
  font-size: 11px;
}
.table-caption {
  font-size: 11px;
  padding: 10px 20px;
  background: #fafbfd;
  border-top: 1px solid var(--line);
}
.preview-alerts:not(:empty) {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.preview-alerts .alert + .alert {
  margin-top: 8px;
}
.history-card td {
  max-width: 300px;
}
.history-card .history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.receipt-link {
  color: #4f73ad;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.history-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #697586;
  font-size: 11px;
  margin-top: 18px;
}
.history-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 42px;
  padding-top: 17px;
  border-top: 1px solid #f0f2f5;
  color: #697586;
  font-size: 10px;
}
dialog {
  width: min(460px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #e0e5ed;
  border-radius: 12px;
  box-shadow: 0 16px 65px #172a4c26;
  color: var(--ink);
}
dialog::backdrop {
  background: #15243b59;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.small-mark {
  height: 37px;
  width: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3ff;
  border: 1px solid #e2eafa;
  color: #5d80bd;
  border-radius: 9px;
}
dialog h2 {
  font-size: 20px;
  margin-bottom: 7px;
}
dialog .muted {
  font-size: 12px;
}
.migration-summary {
  padding: 13px 15px;
  background: #f6f8fb;
  border: 1px solid #e6ebf2;
  border-radius: 7px;
  margin: 18px 0 20px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
dialog label {
  margin-top: 16px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
#dialog-error {
  margin-top: 15px;
}
.mobile-menu {
  display: none;
}
.login-page {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100vh;
}
.login-brand {
  background: #f4f7fc;
  border-right: 1px solid var(--line);
  padding: 44px 48px 30px;
  display: flex;
  flex-direction: column;
}
.login-brand .brand small {
  display: none;
}
.login-intro {
  margin: auto;
  width: min(100%, 365px);
  padding: 55px 0;
}
.login-intro h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.65;
}
.login-intro p {
  font-size: 13px;
  line-height: 2.1;
  margin-top: 20px;
  color: #697586;
}
.flow-illustration {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
  color: #8ca3c7;
}
.flow-illustration span {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e7f3;
  box-shadow: 0 3px 8px #1f426009;
}
.flow-illustration span .icon {
  width: 22px;
  height: 22px;
}
.flow-illustration i {
  width: 22px;
  height: 1px;
  background: #d8e1ef;
}
.login-footnote {
  color: #697586;
  font-size: 11px;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: min(100%, 350px);
}
.login-card h2 {
  font-size: 25px;
  margin: 20px 0 9px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.login-card > .muted {
  font-size: 12px;
  margin-bottom: 28px;
}
.login-card .alert {
  margin-bottom: 20px;
}
.login-card label {
  margin-top: 20px;
}
.login-card .button {
  margin-top: 25px;
  height: 42px;
}
.login-caption {
  margin-top: 25px;
  text-align: center;
  color: #697586;
  font-size: 11px;
  line-height: 1.9;
}
@media (min-width: 1600px) {
  .main-content {
    padding-top: 46px;
  }
}
@media (max-width: 1150px) {
  .migration-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .scope-panel {
    display: none;
  }
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  .main-content {
    padding: 28px 25px 20px;
  }
  .topbar {
    padding: 0 25px;
  }
}
@media (max-width: 760px) {
  .login-page {
    display: block;
  }
  .login-brand {
    padding: 22px;
    border: 0;
    background: white;
  }
  .login-intro,
  .login-footnote {
    display: none;
  }
  .login-main {
    padding: 30px 24px 60px;
  }
  .sidebar {
    display: none;
    width: 236px;
    box-shadow: 10px 0 35px #15243b20;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
    height: 58px;
  }
  .main-content {
    padding: 26px 16px 18px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    line-height: 1.9;
    font-size: 12px;
  }
  .badge.version {
    display: none;
  }
  .card-heading {
    padding: 19px 17px;
  }
  .group-fields {
    grid-template-columns: 1fr;
    padding: 0 17px 20px;
    gap: 5px;
  }
  .direction-arrow {
    height: 25px;
    margin: 0;
    transform: rotate(90deg);
  }
  .field-help {
    min-height: 0;
  }
  .card-action {
    padding: 14px 17px;
  }
  .hint {
    font-size: 10px;
    max-width: 145px;
  }
  th,
  td {
    padding-left: 14px;
    padding-right: 14px;
  }
  .preview-action .hint {
    display: none;
  }
  .preview-action {
    justify-content: flex-end;
  }
  .page-footer {
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
  }
  .history-card table {
    min-width: 660px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
