:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 900px; background: #f4f7fb; }
.topbar { min-height: 106px; background: linear-gradient(105deg, #0c1e3d, #164e85); color: #fff; padding: 24px max(32px, calc((100vw - 1280px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; margin-top: 4px; letter-spacing: .02em; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
.eyebrow { color: #6a83a5; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.topbar .eyebrow { color: #b9d4f2; }
.identity { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); padding: 11px 14px; border-radius: 10px; font-size: 13px; max-width: 500px; overflow-wrap: anywhere; }
.shell { max-width: 1280px; margin: 28px auto 60px; padding: 0 28px; }
.steps { display: flex; border-bottom: 1px solid #d9e0ea; margin-bottom: 24px; overflow-x: auto; }
.step { border: 0; background: transparent; padding: 15px 18px; color: #66738a; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; cursor: pointer; }
.step.active { color: #0b63ce; border-bottom-color: #0b63ce; }
.step:disabled { cursor: not-allowed; color: #a0a9b8; }
.panel { display: none; background: #fff; border: 1px solid #e0e6ef; box-shadow: 0 8px 26px rgba(25, 52, 89, .06); border-radius: 14px; padding: 28px; }
.panel.active { display: block; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.panel-heading h2 { margin-top: 4px; }
.risk-tag { color: #9d3600; background: #fff1e6; border: 1px solid #ffd3b5; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nested-grid { grid-column: 1 / -1; }
.auth-method { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; gap: 24px; flex-wrap: wrap; }
.auth-method legend { padding: 0 6px; font-weight: 700; }
.auth-method .option { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.auth-method input { width: auto; }
.identity-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.account-tabs { max-width: 1440px; margin: 12px auto 0; padding: 0 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.account-tab { border: 1px solid #c9d3e1; background: #fff; color: #26354a; border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.account-tab strong, .account-tab small { display: block; }
.account-tab small { margin-top: 2px; color: #657389; font-family: Consolas, monospace; font-size: 10px; }
.account-tab.active { border-color: #1769aa; background: #eaf4fc; color: #0b4f87; font-weight: 700; }
.account-tab.add { border-style: dashed; }
.saved-account-area { margin-bottom: 20px; }
.saved-account-summary { margin-top: 9px; color: #657389; font-size: 12px; }
.saved-account-list { display: grid; gap: 10px; margin-top: 12px; max-height: 470px; overflow-y: auto; padding-right: 6px; scrollbar-gutter: stable; }
.saved-account-card { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(220px, 1.3fr) auto; gap: 16px; align-items: center; border: 1px solid #dce4ef; border-radius: 10px; padding: 13px 15px; background: #f9fbfd; }
.saved-account-card strong, .saved-account-card small { display: block; }
.saved-account-card small { color: #657389; margin-top: 3px; overflow-wrap: anywhere; }
.saved-account-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.transfer-account-check { display: flex; flex-direction: row; align-items: center; gap: 7px; margin-bottom: 7px; color: #52647e; font-size: 12px; font-weight: 700; }
.transfer-account-check input { width: auto; }
.transfer-selection-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 2px; color: #52647e; font-size: 12px; }
.data-transfer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; padding: 18px; border: 1px solid #cfd9e8; border-radius: 10px; background: #f6f9fd; }
.data-transfer h3 { margin: 0 0 5px; }
.transfer-fields { display: grid; gap: 10px; margin-top: 12px; }
.transfer-fields .button { justify-self: start; }
.save-option { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: end; padding-bottom: 11px; }
.save-option input { width: auto; }
hr { border: 0; border-top: 1px solid #e1e7ef; margin: 22px 0; }
@media (max-width: 920px) { .account-tabs { padding: 0 15px; } .saved-account-card { grid-template-columns: 1fr; } .saved-account-actions { justify-content: flex-start; } .identity-actions { justify-content: flex-start; } }
@media (max-width: 920px) { .data-transfer { grid-template-columns: 1fr; } }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.full-width { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 7px; color: #33415a; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; color: #19263c; background: #fff; font: inherit; font-weight: 400; border: 1px solid #b9c5d5; border-radius: 7px; padding: 10px 12px; outline: none; }
textarea { resize: vertical; font-family: Consolas, "Courier New", monospace; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #0b63ce; box-shadow: 0 0 0 3px rgba(11,99,206,.14); }
.form-actions { display: flex; justify-content: flex-end; align-items: end; }
.button { border: 0; border-radius: 7px; padding: 11px 16px; min-height: 40px; font-weight: 800; cursor: pointer; color: #fff; background: #42516a; }
.button.primary { background: #0867d7; }
.button.primary:hover { background: #0359bd; }
.button.danger { background: #b23808; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.hint { margin-top: 16px; color: #6b778b; font-size: 13px; line-height: 1.55; }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 700; }
.notice.success { background: #e7f7ec; color: #136b34; border: 1px solid #b6e8c6; }
.notice.error { background: #fff0ef; color: #a12e26; border: 1px solid #f6c3bf; }
.hidden { display: none; }
.two-columns { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(450px, 1.15fr); gap: 22px; }
.card { border: 1px solid #dce4ef; border-radius: 10px; padding: 20px; background: #fbfcfe; }
.card h3 { margin-bottom: 16px; }
.separator { height: 1px; background: #dce4ef; margin: 20px 0; }
.account-picker { border: 1px solid #dce4ef; background: #fff; border-radius: 8px; overflow: hidden; margin: 11px 0 16px; }
.account-toolbar { display: flex; padding: 10px; gap: 10px; border-bottom: 1px solid #e5eaf2; align-items: center; }
.account-toolbar input { flex: 1; padding: 8px 10px; }
.text-button { border: 0; color: #0a62c9; font-weight: 700; background: transparent; cursor: pointer; }
.account-list { max-height: 235px; overflow: auto; }
.account-row { display: grid; grid-template-columns: 28px minmax(120px, 1fr) 130px 1fr; gap: 10px; align-items: center; border-bottom: 1px solid #edf0f5; padding: 10px 12px; font-size: 13px; }
.account-row:last-child { border-bottom: 0; }
.account-row input, .checkbox-label input { width: auto; }
.account-id, .status { color: #66738a; font-family: Consolas, monospace; font-size: 12px; }
.check-list { display: flex; flex-direction: column; gap: 9px; max-height: 212px; overflow: auto; }
.scp-row { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 9px; border: 1px solid #e1e6ee; border-radius: 7px; }
.scp-row small { display: block; color: #6b778b; margin-top: 3px; }
.empty-state { color: #718096; font-size: 13px; padding: 14px 0; }
.readonly-rule { background: #eff6ff; border: 1px solid #cfe2fb; border-radius: 9px; padding: 15px; }
.readonly-rule p { margin-top: 8px; font-size: 14px; color: #46556e; }
.checkbox-label { flex-direction: row; align-items: center; font-weight: 600; }
.warning-box { padding: 13px; border-left: 4px solid #e45a00; border-radius: 5px; background: #fff4e8; color: #834117; font-size: 13px; line-height: 1.5; }
.result-area { margin-top: 20px; }
.result-card { padding: 16px; background: #f6f9fd; border: 1px solid #dae4f0; border-radius: 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.result-card h3 { margin-bottom: 8px; }
.results-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.results-table th, .results-table td { text-align: left; padding: 8px; border-bottom: 1px solid #dfe7f0; font-size: 12px; }
.results-table th { color: #52647e; }
.status-success { color: #16713b; font-weight: 800; }
.status-failed { color: #b42318; font-weight: 800; }
.status-skipped { color: #a46300; font-weight: 800; }
.status-pending { color: #0867d7; font-weight: 700; }
.iam-task-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.iam-task-toolbar label { min-width: 240px; }
.iam-task-progress { display: block; width: 100%; height: 12px; margin: 12px 0; accent-color: #0867d7; }
.organization-task-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.iam-task-actions { display: flex; gap: 10px; margin: 16px 0 12px; }
.iam-table-wrap { overflow-x: auto; }
.iam-table-wrap .results-table { min-width: 740px; }
.iam-table-wrap .organization-table { min-width: 900px; }
.organization-table th, .organization-table td { vertical-align: top; }
.organization-table th, .organization-table td.nowrap { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.organization-table td.detail { min-width: 320px; }
#iam-results > .result-card + .result-card { margin-top: 14px; }
@media (max-width: 920px) { .iam-task-toolbar { align-items: stretch; flex-direction: column; } .iam-task-actions { flex-wrap: wrap; } }
@media (max-width: 920px) { body { min-width: 0; } .topbar { padding: 20px; flex-direction: column; align-items: flex-start; } .shell { padding: 0 15px; } .two-columns, .form-grid { grid-template-columns: 1fr; } .full-width { grid-column: auto; } .account-row { grid-template-columns: 24px 1fr; } .account-row .account-id, .account-row .status { grid-column: 2; } }
.inline-hint { display: block; margin-top: 4px; }
.compact { margin: 0 0 10px; }
.iam-section { border: 1px solid #dce4ef; border-radius: 10px; padding: 18px; background: #fff; }
.iam-section h3 { margin-bottom: 10px; }
.nested-options { display: grid; gap: 11px; margin: 14px 0 0 24px; }
.nested-options > label:not(.checkbox-label) { flex-direction: row; align-items: center; font-weight: 500; }
.nested-options input[type="radio"] { width: auto; }
.policy-list { max-height: 300px; overflow: auto; margin-top: 10px; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; }
.policy-summary { margin: 8px 0 0; }
.policy-row { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 10px 12px; border-bottom: 1px solid #edf0f5; font-size: 13px; }
.policy-row:last-child { border-bottom: 0; }
.policy-row input { width: auto; }
.policy-row small { display: block; color: #6b778b; margin-top: 3px; font-family: Consolas, "Courier New", monospace; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button.secondary { background: #42516a; margin-bottom: 2px; }
.account-scp-manager { margin-top: 22px; }
.account-scp-layout { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(420px, 1.35fr); gap: 20px; margin-top: 16px; align-items: start; }
.account-scp-content { min-height: 96px; border: 1px solid #dce4ef; border-radius: 8px; background: #fbfcfe; padding: 14px; }
.multi-account-input { margin-bottom: 10px; }
.multi-account-input textarea { min-height: 64px; font-size: 12px; }
.multi-account-actions { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.account-scp-batch { max-height: 620px; overflow: auto; }
.account-scp-card { border: 1px solid #dce4ef; border-radius: 8px; background: #fff; padding: 12px; margin-top: 12px; }
.account-scp-card h4 { margin: 0 0 6px; }
.account-scp-card .assignment-list { max-height: 260px; overflow: auto; }
.assignment-list h4 { margin: 0 0 9px; font-size: 13px; color: #52647e; }
.assignment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e5eaf2; }
.assignment-row:last-child { border-bottom: 0; }
.assignment-row span { min-width: 0; }
.assignment-row small { display: block; color: #6b778b; margin-top: 3px; overflow-wrap: anywhere; }
.assignment-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; border-top: 1px solid #dce4ef; margin-top: 12px; padding-top: 12px; }
.compact-button { min-height: 34px; padding: 7px 11px; flex: 0 0 auto; }
.error-text { color: #a12e26; }
@media (max-width: 920px) { .account-scp-layout { grid-template-columns: 1fr; } .assignment-add { grid-template-columns: 1fr; } }
/* SCP 子标签与表格 */
.scp-tabs { display: flex; gap: 6px; border-bottom: 1px solid #dce4ef; margin-bottom: 18px; flex-wrap: wrap; }
.scp-tab { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 10px 14px; font-weight: 700; color: #5d6b82; cursor: pointer; }
.scp-tab.active { color: #0b63ce; border-bottom-color: #0b63ce; }
.scp-view { display: none; }
.scp-view.active { display: block; }
.scp-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.scp-toolbar input { flex: 1; }
.list-summary { margin: 6px 0 10px; }
.scp-table-wrap { max-height: 420px; overflow: auto; border: 1px solid #dce4ef; border-radius: 8px; background: #fff; }
.scp-table-wrap.empty-state { padding: 14px; }
.scp-table { margin-top: 0; min-width: 760px; }
.scp-table thead th { position: sticky; top: 0; background: #f3f6fa; z-index: 1; }
.scp-table td { vertical-align: top; }
.check-col { width: 34px; }
.check-col input { width: auto; }
.nowrap { white-space: nowrap; }
.row-sub { display: block; color: #6b778b; margin-top: 3px; font-size: 11px; }
.row-actions { white-space: nowrap; }
.row-actions .text-button { padding: 2px 6px; }
.danger-text { color: #b23808 !important; }
.scp-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.scp-actions .inline-hint { margin: 0; }
.type-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.type-badge.managed { background: #eef2f7; color: #4a5a72; border: 1px solid #d3dbe6; }
.type-badge.custom { background: #e8f2fd; color: #0b5bb8; border: 1px solid #c4dcf7; }
/* 按账号管理 */
.account-search-panel { border: 1px solid #dce4ef; border-radius: 8px; background: #fff; padding: 12px; }
.account-select-list { max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.account-select-row { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 8px 10px; cursor: pointer; color: #172033; }
.account-select-row:hover { background: #f3f7fc; }
.account-select-row.active { border-color: #1769aa; background: #eaf4fc; }
.account-select-row strong, .account-select-row small { display: block; }
.account-select-row small { color: #66738a; font-family: Consolas, monospace; font-size: 11px; margin-top: 2px; }
.account-scp-content h4 { margin: 0 0 10px; font-size: 15px; }
.assignment-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #52647e; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.assignment-row.selectable { display: grid; grid-template-columns: 24px 1fr; justify-content: start; font-weight: 400; cursor: pointer; }
.assignment-row.selectable input { width: auto; }
/* 批量移除 */
.detach-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detach-steps .card h3 { margin-bottom: 10px; }
.compact-list { max-height: 330px; }
.account-list.bordered { border: 1px solid #dce4ef; border-radius: 8px; background: #fff; max-height: 330px; }
.account-list.bordered.empty-state { padding: 14px; }
.account-toolbar.bare { border-bottom: 0; padding: 0 0 8px; }
.risk-row td { background: #fff1f0; color: #8f1d14; }
.pricing-view, .billing-view { display: none; }
.pricing-view.active, .billing-view.active { display: block; }
.billing-group-list { display: grid; gap: 16px; }
.billing-group-card { border: 1px solid #dce4ef; border-radius: 10px; padding: 16px; background: #fbfcfe; }
.billing-group-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.billing-group-header h3 { margin: 0; }
.billing-group-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 5px; color: #52647e; font-size: 12px; }
.group-account-tools { margin-top: 12px; padding: 12px; border: 1px solid #e1e7ef; border-radius: 8px; background: #fff; }
.billing-group-accounts { max-height: 300px; margin-top: 8px; }
.billing-group-card .form-actions { margin-top: 12px; }
.billing-change-result { white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; }
.billing-change-result:empty { display: none; }
@media (max-width: 920px) { .billing-group-header { flex-direction: column; } }
@media (max-width: 920px) { .detach-steps { grid-template-columns: 1fr; } }
/* SCP 弹窗 */
.scp-dialog { width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); border: 0; border-radius: 12px; padding: 0; box-shadow: 0 24px 60px rgba(15, 30, 60, .3); }
.scp-dialog::backdrop { background: rgba(12, 24, 45, .45); }
.dialog-shell { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e1e7ef; }
.dialog-header h3 { overflow-wrap: anywhere; }
.dialog-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: #5d6b82; cursor: pointer; }
.dialog-body { padding: 16px 20px; overflow: auto; font-size: 13px; line-height: 1.55; }
.dialog-body h4 { margin: 14px 0 6px; font-size: 13px; color: #52647e; }
.dialog-body .warning-box { margin: 10px 0; }
.dialog-body .warning-box ul { margin: 6px 0 0; padding-left: 18px; }
.danger-box { border-left-color: #b42318; background: #fff0ef; color: #8f1d14; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #e1e7ef; flex-wrap: wrap; }
.dialog-form { display: grid; gap: 12px; margin-top: 10px; }
.json-label { display: flex; flex-direction: column; gap: 7px; }
.json-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.json-label-row span { display: flex; gap: 8px; align-items: center; }
.json-label-row select { width: auto; padding: 5px 8px; }
#scp-edit-content { min-height: 280px; font-size: 12px; }
.json-view { margin: 0; max-height: 360px; overflow: auto; background: #0f1b2d; color: #d7e4f5; border-radius: 8px; padding: 12px; font-family: Consolas, "Courier New", monospace; font-size: 12px; white-space: pre; }
.dialog-status { min-height: 18px; margin: 0; font-weight: 700; }
.assignment-sources { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border-bottom: 1px solid #edf0f5; }
.assignment-sources button { border: 1px solid #c9d3e1; border-radius: 7px; background: #fff; padding: 8px 12px; color: #42516a; cursor: pointer; font-weight: 700; }
.assignment-sources button.active { border-color: #1769aa; background: #eaf4fc; color: #0b5bb8; }
.assignment-batch { padding: 12px 12px 0; }
.assignment-batch textarea { font-size: 13px; min-height: 78px; }
.assignment-summary { padding: 8px 12px; color: #52647e; font-size: 12px; line-height: 1.6; }
.assignment-feedback { padding: 0 12px 8px; color: #9d3600; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.assignment-feedback:empty { display: none; }
.assignment-picker .account-toolbar { flex-wrap: wrap; }
.assignment-picker .account-toolbar input { flex: 1 1 240px; min-width: 160px; }
.assignment-picker .account-list { max-height: 300px; }
.assignment-picker .empty-state { padding: 14px 12px; }
.assignment-picker .account-unavailable { opacity: .65; }
