:root {
  --canvas: #f3f6fa; --surface: #fff; --ink: #17324d; --muted: #6c7d90;
  --line: #e3e9f1; --blue: #255de8; --blue-soft: #edf2ff; --teal: #198575;
  --teal-soft: #e9f5f1; --amber: #ac710f; --amber-soft: #fff6e2; --red: #c2464c;
  --red-soft: #fff0f0; --sidebar: 224px;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--canvas); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #a8bff9; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; letter-spacing: -.7px; line-height: 1.35; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
small { font-size: 12px; }
[hidden] { display: none !important; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.subtext { color: var(--muted); font-size: 12px; margin-top: 3px; }
.flex { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 20px; background: white; border: 2px solid var(--blue); }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--ink); color: white; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; padding: 32px 24px 27px; }
.brand-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #35516c; border: 1px solid #5b7289; border-radius: 9px; }
.brand-icon svg { width: 21px; height: 21px; }
.brand-title { font-size: 16px; font-weight: 650; letter-spacing: 1.5px; }
.brand-sub { color: #a6b8cc; font: italic 15px/1.2 Georgia, serif; margin-top: 3px; }
.nav-caption { color: #91a8be; font-size: 11px; letter-spacing: 1.5px; padding: 12px 25px; }
.nav { padding: 0 12px; display: grid; gap: 5px; }
.nav-button { width: 100%; border: none; background: transparent; color: #c6d4e3; text-align: left; padding: 12px; border-radius: 7px; display: flex; align-items: center; gap: 11px; }
.nav-button:hover { background: #25425d; color: white; }
.nav-button.active { color: white; background: #2e4c68; box-shadow: inset 3px 0 #79a8ff; }
.nav-button svg { width: 18px; height: 18px; stroke-width: 1.65; }
.nav-count { margin-left: auto; font: 11px "SFMono-Regular", monospace; color: #9db5cd; }
.sidebar-bottom { margin-top: auto; padding: 24px; color: #a6b8cc; font-size: 12px; }
.sidebar-bottom strong { color: #dce6f0; font-weight: 500; display: block; margin-bottom: 6px; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #79baa7; display: inline-block; margin-right: 7px; }
.main-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { min-height: 61px; background: white; border-bottom: 1px solid var(--line); padding: 0 32px; display: flex; align-items: center; gap: 15px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb span { color: var(--ink); padding-left: 9px; }
.environment { font-size: 11px; letter-spacing: .04em; background: var(--amber-soft); color: var(--amber); border: 1px solid #f4e4bd; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.environment.live { color: var(--teal); background: var(--teal-soft); border-color: #c9e7dd; }
.sync-label { font-size: 11px; color: var(--muted); }
.content { width: 100%; max-width: 1540px; padding: 30px 32px 56px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-description { margin-top: 7px; color: var(--muted); font-size: 13px; max-width: 640px; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; padding-top: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d7e0ec; background: white; color: var(--ink); border-radius: 6px; padding: 8px 14px; line-height: 1.5; font-weight: 500; min-height: 38px; text-decoration: none; white-space: nowrap; }
.button:hover { background: #f7f9fc; border-color: #b6c6da; text-decoration: none; }
.button.primary { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 2px 3px #255de815; }
.button.primary:hover { background: #194fcf; }
.button.danger { color: var(--red); border-color: #ecc4c6; }
.button.small { padding: 5px 10px; font-size: 12px; min-height: 30px; }
.button svg { width: 16px; height: 16px; }
.button-text { border: none; background: none; color: var(--blue); font-size: 12px; padding: 5px 4px; }
.button-text:hover { text-decoration: underline; }
.icon-button { border: none; background: transparent; color: var(--muted); padding: 6px; display: inline-grid; place-items: center; border-radius: 5px; }
.icon-button:hover { color: var(--ink); background: var(--canvas); }
.icon-button svg { width: 18px; height: 18px; }
.notice { border: 1px solid #ecdba9; background: #fffbef; padding: 10px 14px; font-size: 12px; border-radius: 6px; color: #866426; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.notice svg { width: 16px; height: 16px; flex-shrink: 0; }
.notice strong { font-weight: 600; }
.notice.error { background: var(--red-soft); color: var(--red); border-color: #f1cdd0; }
.notice.info { background: var(--blue-soft); border-color: #d5e0fb; color: #36598c; }
.pipeline { background: white; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: repeat(3,1fr); padding: 0 21px; margin-bottom: 24px; }
.pipeline-step { padding: 19px 16px; display: flex; align-items: center; gap: 13px; position: relative; }
.pipeline-step:not(:last-child)::after { content: '›'; font-size: 25px; font-weight: 300; color: #becbd9; position: absolute; right: -4px; }
.pipeline-number { color: #acbbcd; font: 11px "SFMono-Regular",monospace; border: 1px solid #dce4ee; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.pipeline-step h3 { font-weight: 550; }
.pipeline-step p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.pipeline-total { margin-left: auto; padding-right: 23px; font: 27px/1.1 "SFMono-Regular",monospace; letter-spacing: -1px; color: var(--ink); }
.panel { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel + .panel { margin-top: 20px; }
.panel-toolbar { padding: 18px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.panel-toolbar h2 { font-size: 14px; }
.panel-toolbar .subtext { margin-top: 0; }
.table-count { color: #8798ac; margin-left: 6px; font-size: 12px; font-weight: 400; }
.search-field { position: relative; width: 245px; }
.search-field svg { position: absolute; left: 11px; top: 10px; width: 15px; height: 15px; color: #93a3b5; pointer-events: none; }
.search-field input { width: 100%; min-height: 35px; padding: 7px 11px 7px 33px; background: #f9fbfd; font-size: 12px; }
input, select, textarea { color: var(--ink); border: 1px solid #d8e1eb; border-radius: 5px; padding: 8px 10px; background: white; min-width: 0; }
input::placeholder, textarea::placeholder { color: #a2afbf; }
textarea { width: 100%; min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus,select:focus,textarea:focus { border-color: #7296ef; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { color: #7b8da2; background: #fafbfd; font-size: 11px; font-weight: 500; padding: 11px 17px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 17px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fcfdff; }
.checkbox-cell { width: 42px; padding-left: 20px; padding-right: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; vertical-align: middle; cursor: pointer; flex-shrink: 0; }
.customer-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.customer-appid { color: #899aaf; margin-top: 3px; font-size: 11px; }
.tenant { color: #5d7188; max-width: 250px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 11px; line-height: 1.5; white-space: nowrap; color: #6a7d94; background: #f0f3f7; }
.badge::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.badge.green { color: var(--teal); background: var(--teal-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.amber { color: var(--amber); background: var(--amber-soft); }
.badge.red { color: var(--red); background: var(--red-soft); }
.selection-bar { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 13px 20px; background: #f8faff; }
.selection-bar p { font-size: 12px; color: #677e98; }
.selection-bar strong { color: var(--blue); margin: 0 3px; }
.panel-footer { padding: 13px 20px; font-size: 11px; color: #8a9aaf; border-top: 1px solid var(--line); }
.empty { padding: 52px 25px; text-align: center; }
.empty-icon { width: 42px; height: 42px; border: 1px solid var(--line); color: #8da2ba; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 14px; }
.empty-icon svg { width: 22px; height: 22px; }
.empty h3 { font-size: 14px; font-weight: 550; }
.empty p { font-size: 12px; color: var(--muted); margin: 7px auto 16px; max-width: 380px; }
.batch-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.batch-header h2 { font-size: 14px; }
.batch-summary { display: flex; gap: 12px; font-size: 11px; color: var(--muted); align-items: center; margin-top: 5px; flex-wrap: wrap; }
.batch-progress { display: flex; height: 3px; background: #eaf0f7; }
.batch-progress > span { display: block; background: var(--teal); }
.error-detail { font-size: 11px; color: var(--red); white-space: normal; max-width: 290px; overflow-wrap: anywhere; margin-top: 4px; }
.task-time { white-space: nowrap; font-size: 11px; color: var(--muted); }
.version-tag { display: inline-block; font-family: "SFMono-Regular",monospace; font-size: 11px; color: var(--blue); border: 1px solid #d7e2ff; border-radius: 4px; padding: 2px 6px; background: #f5f8ff; }
.log-list { padding: 4px 20px; }
.log-item { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.log-item:last-child { border-bottom: none; }
.log-mark { width: 8px; height: 8px; border: 2px solid #a6b9d0; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.log-item strong { font-size: 12px; font-weight: 600; }
.log-item p { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.log-item time { margin-left: auto; flex-shrink: 0; color: #8a9aaf; font-size: 11px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.config-grid .panel + .panel { margin-top: 0; }
.config-body { padding: 22px; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.checklist li:last-child { border-bottom: 0; }
.check-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #f1f4f8; color: #9aaabb; font-size: 11px; }
.check-icon.ok { background: var(--teal-soft); color: var(--teal); }
.definition { margin: 0; }
.definition dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.definition dd { margin: 0 0 20px; overflow-wrap: anywhere; font-size: 12px; }
.definition dd:last-child { margin-bottom: 0; }
.detail-note { padding: 17px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dialog { width: min(670px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #dce4ee; border-radius: 12px; padding: 0; color: var(--ink); box-shadow: 0 24px 80px #152e4938; }
.dialog.wide { width: min(790px, calc(100vw - 32px)); }
.dialog::backdrop { background: #17324d66; backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: flex-start; gap: 16px; padding: 23px 25px 17px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; }
.dialog-header p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.dialog-header .icon-button { margin-left: auto; }
.dialog-body { padding: 22px 25px; overflow-wrap: anywhere; }
.dialog-footer { padding: 16px 25px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); background: #fbfcfe; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .field-label { font-size: 12px; font-weight: 550; }
.form-field .hint { font-size: 11px; color: var(--muted); margin-top: 0; }
.form-field input:not([type=radio]):not([type=checkbox]), .form-field select { width: 100%; }
.form-field select { text-overflow: ellipsis; }
.form-field textarea.mono { font-size: 11px; }
.advanced { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 14px; }
.advanced summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.advanced .form-grid { margin-top: 15px; }
.form-error { font-size: 12px; padding: 10px 12px; color: var(--red); background: var(--red-soft); border-radius: 5px; margin-bottom: 14px; }
.inspect-result { font-size: 11px; padding: 13px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fc; white-space: pre-wrap; overflow-wrap: anywhere; }
.authorization-url { padding: 12px; border: 1px solid var(--line); background: #f8fafd; border-radius: 6px; font-size: 11px; word-break: break-all; margin: 15px 0; }
.policy-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.policy-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.policy-option input { margin-top: 2px; }
.policy-option > span { min-width: 0; flex: 1; }
.policy-option:has(input:checked) { border-color: #89a7f5; background: #f7f9ff; }
.policy-option strong { font-size: 12px; font-weight: 550; display: block; }
.policy-option small { display: block; font-size: 11px; line-height: 1.6; margin-top: 4px; color: var(--muted); }
.batch-issues { display: block; }
.batch-issue { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.batch-issue .button-text { white-space: nowrap; }
.audit-helper { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #f8fafd; }
.audit-helper .form-grid { margin-top: 10px; }
.audit-helper .button { justify-self: start; }
.review-list { max-height: 245px; overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; }
.review-row { display: flex; align-items: center; gap: 14px; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row:last-child { border-bottom: none; }
.review-row .mono { margin-left: auto; font-size: 11px; color: var(--muted); }
.summary-box { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: #f8fafd; margin-bottom: 18px; font-size: 12px; }
.summary-box strong { color: var(--blue); }
.toast { position: fixed; right: 26px; bottom: 24px; max-width: min(480px, calc(100vw - 32px)); z-index: 100; border: 1px solid #c9dfd8; background: #eff9f5; color: #216c59; border-radius: 8px; box-shadow: 0 6px 25px #17324d1a; padding: 14px 18px; font-size: 13px; }
.toast.error { background: #fff3f3; color: var(--red); border-color: #efc9cd; }
.initial-loading { min-height: 70vh; display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; color: var(--muted); }
.loading-dot { height: 26px; width: 26px; border: 2px solid #dbe4f2; border-top-color: var(--blue); border-radius: 50%; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 390px; max-width: 100%; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 35px; }
.login-wordmark { font: italic 26px Georgia,serif; color: var(--blue); margin-bottom: 25px; }
.login-card h1 { font-size: 23px; }
.login-card p { color: var(--muted); font-size: 12px; margin: 8px 0 24px; }
.login-card .button { width: 100%; margin-top: 18px; }
@media (min-width: 1500px) { .content { padding-top: 40px; } }
@media (max-width: 1100px) { :root { --sidebar: 196px; } .brand { padding-left: 20px; padding-right: 20px; } .content { padding: 26px 22px 45px; } .topbar { padding: 0 22px; } .tenant { max-width: 190px; } .pipeline { padding: 0 9px; } .pipeline-step { padding: 17px 10px; gap: 9px; } .pipeline-total { padding-right: 15px; font-size: 23px; } }
@media (max-width: 800px) { :root { --sidebar: 0px; } .sidebar { position: relative; width: 100%; padding: 0; } .brand { padding: 16px 20px; } .brand-icon { width: 30px; height: 30px; } .brand-sub { display: none; } .brand-title { font-size: 15px; } .nav-caption,.sidebar-bottom { display: none; } .nav { display: flex; overflow-x: auto; padding: 0 10px 9px; gap: 4px; } .nav-button { width: auto; white-space: nowrap; font-size: 12px; padding: 9px 11px; gap: 6px; } .nav-button svg { width: 15px; height: 15px; } .nav-button.active { box-shadow: inset 0 -2px #79a8ff; } .nav-count { display: none; } .topbar { min-height: 46px; } .content { padding: 24px 18px 40px; } .page-heading { gap: 15px; } h1 { font-size: 24px; } .page-description { font-size: 12px; } .heading-actions .button { font-size: 12px; padding: 8px 10px; } .config-grid { grid-template-columns: 1fr; } .pipeline-number { display: none; } .pipeline-step { gap: 8px; } .pipeline-total { font-size: 23px; padding-right: 13px; } }
@media (max-width: 540px) { .content { padding: 21px 14px 35px; } .topbar { padding: 0 16px; gap: 8px; } .sync-label { display: none; } .page-heading { display: block; margin-bottom: 20px; } .heading-actions { margin-top: 16px; } h1 { font-size: 23px; } .pipeline { padding: 0 4px; margin-bottom: 18px; } .pipeline-step { padding: 14px 10px; display: block; } .pipeline-step h3 { font-size: 12px; } .pipeline-step p { font-size: 10px; } .pipeline-total { margin-top: 8px; font-size: 23px; } .pipeline-step:not(:last-child)::after { top: 27px; font-size: 20px; right: -3px; } .notice { align-items: flex-start; font-size: 11px; padding: 10px 12px; } .notice svg { margin-top: 2px; } .panel-toolbar { padding: 14px; gap: 10px; } .panel-toolbar .search-field { order: 5; width: 100%; } .panel-toolbar .toolbar-filter { font-size: 11px; padding: 5px 7px; } .selection-bar { padding: 12px 14px; gap: 8px; flex-wrap: wrap; } .selection-bar .button { margin-left: auto; } th,td { padding-left: 13px; padding-right: 13px; } td { padding-top: 14px; padding-bottom: 14px; } .checkbox-cell { padding-left: 14px; } .customer-name { white-space: nowrap; } .dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); } .dialog-header { padding: 19px; } .dialog-body { padding: 19px; } .dialog-footer { padding: 14px 19px; } .form-grid { grid-template-columns: 1fr; } .form-field.full { grid-column: auto; } .policy-options { grid-template-columns: 1fr; } .review-row { align-items: flex-start; flex-direction: column; gap: 3px; } .review-row .mono { margin-left: 0; } .log-item { flex-wrap: wrap; gap: 10px; } .log-item time { width: 100%; padding-left: 18px; } .batch-header { padding: 15px; } .config-body { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; } }
.batch-list { margin-top: 16px; }
.batch-progress-native { display: block; width: 100%; height: 3px; border: none; border-radius: 0; background: #eaf0f7; appearance: none; }
.batch-progress-native::-webkit-progress-bar { background: #eaf0f7; }
.batch-progress-native::-webkit-progress-value { background: var(--teal); }
.batch-progress-native::-moz-progress-bar { background: var(--teal); }
.version-description { min-width: 220px; max-width: 430px; color: #5d7188; overflow-wrap: anywhere; }
.demo-tools { margin-top: 20px; }
.review-note { margin-top: 13px; }
.job-definition { margin: 21px 0; }
.job-error { margin-top: 15px; }
.verify-checkbox { display: flex; align-items: center; gap: 9px; font-size: 12px; margin-top: 17px; }
.table-scroll table { min-width: 820px; }
