/* 在线设置沿用认证页的蓝白配色；不影响原 Windows 业务页面。 */
.hosted-view header a{display:none}
.account-view{background:#f3f8fe;font-size:14px;line-height:1.6}
.account-view:before,.account-view:after{display:none}
.account-view header{background:#fff;backdrop-filter:none}
.account-view header a{display:none}
.account-view main{max-width:1180px;margin:32px auto;padding:0 28px}
.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.settings-heading h1{font-size:28px;line-height:1.4;margin:0}
.identity{display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted);overflow-wrap:anywhere}
.identity .badge{margin:0;font-size:12px;line-height:20px;padding:2px 9px;border-radius:6px;font-weight:600}
.account-view button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border-radius:8px;padding:9px 16px;font-size:14px;line-height:1.5;box-shadow:none}
.account-view button:disabled{cursor:not-allowed;opacity:1;background:#eff3f8;color:#8796ae;border-color:#dde5ef;box-shadow:none}
.account-view button:focus-visible,.account-view a:focus-visible{outline:3px solid #8db8ff;outline-offset:3px}
.ui-icon{width:20px;height:20px;flex:none;vertical-align:middle}
.settings-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin-bottom:22px}
.settings-tabs button{border:0;background:transparent;border-radius:0;padding:12px 22px 14px;color:#53688f;font-size:16px;border-bottom:2px solid transparent;margin-bottom:-1px}
.settings-tabs button[aria-selected="true"]{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}
.settings-surface{border:1px solid #dce7f6;background:#fff;border-radius:12px;padding:24px}
.settings-surface h2{font-size:18px;line-height:1.5;margin:0 0 6px;display:flex;align-items:center;gap:10px}
.settings-surface h2 .ui-icon{color:var(--blue)}
.settings-surface p{margin:0}
.allocation-overview{display:flex;gap:18px;align-items:center;margin-bottom:24px}
.account-metrics{display:flex;gap:12px;flex:1;max-width:530px}
.account-metric{background:#f5f9ff;border:1px solid #e4edfa;border-radius:8px;flex:1;text-align:center;padding:10px 12px;color:#53688f}
.account-metric strong{display:block;font-size:25px;line-height:1.5;font-variant-numeric:tabular-nums;color:#0d1b4d}
.account-metric:nth-child(2) strong{color:#009963}.account-metric:nth-child(3) strong{color:#ed8b16}
.allocation-caption{flex:1;color:var(--muted);font-size:13px;max-width:290px;border-left:1px solid var(--line);padding-left:18px}
.allocation-overview>.primary{margin-left:auto;white-space:nowrap}
.account-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.settings-input,.settings-select,.settings-dialog input{height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#253a64;padding:0 12px;font:inherit;min-width:0;max-width:100%;outline:none}
.settings-input:focus,.settings-select:focus,.settings-dialog input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #166bff14}
.search-control{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding-left:12px;max-width:420px;flex:1;color:var(--muted)}
.search-control:focus-within{border-color:var(--blue)}
.search-control input{border:0;flex:1;box-shadow:none!important;width:100%}
.account-toolbar select{width:150px}.account-toolbar .result-count{margin-left:auto;color:var(--muted);font-size:13px;white-space:nowrap}
.accounts-table-wrap{border:1px solid #e0eaf8;border-radius:8px;overflow:hidden}
.accounts-table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:left}
.accounts-table th{background:#edf5ff;color:#40577e;font-weight:500;font-size:13px}
.accounts-table th,.accounts-table td{padding:14px 18px;border-bottom:1px solid #e8eff9;border-right:1px solid #e8eff9}
.accounts-table tr:last-child td{border-bottom:0}.accounts-table th:last-child,.accounts-table td:last-child{border-right:0}
.accounts-table th:first-child{width:46%}.accounts-table th:nth-child(2){width:22%}.accounts-table td:first-child{overflow-wrap:anywhere}
.registration-state{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.status-dot{width:7px;height:7px;background:#009963;border-radius:50%}.status-dot.pending{background:#ed8b16}
.self-label{margin-left:10px;background:#eaf3ff;color:var(--blue);border-radius:5px;padding:2px 7px;font-size:12px;white-space:nowrap}
.settings-footnote{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:13px;margin-top:16px}
.settings-footnote .ui-icon{width:17px;height:17px;margin-top:2px}
.inline-message{font-size:13px;line-height:1.6;color:#c33c3c;margin-top:10px;overflow-wrap:anywhere}.inline-message:empty{display:none}.inline-message.ok{color:#008b54}
.connection-banner{display:flex;align-items:flex-start;gap:10px;border:1px solid #f7d89f;background:#fff8ec;color:#93611f;padding:12px 16px;border-radius:8px;margin-bottom:18px}
.connection-banner strong{display:block;color:#a66308;font-size:14px}.connection-banner p{margin:2px 0 0;font-size:13px}
.backup-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:18px;align-items:start}
.backup-scope{color:var(--muted);font-size:13px;margin:4px 0 22px!important;line-height:1.8}
.backup-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.backup-form label{font-size:13px;display:flex;flex-direction:column;gap:7px;color:#40577e}
.backup-form input,.backup-form select{width:100%}
.backup-form .form-span{grid-column:1/-1}
.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.form-actions small{color:var(--muted);font-size:12px}
.backup-records{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-title h3{margin:0;font-size:15px;display:flex;align-items:center;gap:8px}
.empty-records{display:flex;align-items:center;gap:14px;background:#f7faff;border:1px dashed #dce6f4;border-radius:8px;padding:22px 18px}
.empty-records>.ui-icon{width:32px;height:32px;color:#90a6c7}
.empty-records strong{display:block;font-size:14px;font-weight:500}.empty-records small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.migration-steps{list-style:none;padding:0;margin:24px 0}
.migration-steps li{display:flex;gap:14px;position:relative;padding-bottom:24px}
.migration-steps li:last-child{padding-bottom:0}
.migration-steps li:before{content:"";position:absolute;left:15px;top:35px;bottom:5px;border-left:1px solid #dce7f6}
.migration-steps li:last-child:before{display:none}
.step-number{width:32px;height:32px;border-radius:50%;background:#edf4fc;display:grid;place-items:center;flex:none;color:#536b90;font-size:14px;font-weight:600}
.migration-steps strong{font-weight:600;font-size:14px}.migration-steps p{color:var(--muted);font-size:12px;margin-top:4px;line-height:1.7}
.settings-dialog{border:1px solid #e1eaf6;border-radius:16px;box-shadow:0 24px 90px #173d7526;padding:28px;width:480px;max-width:calc(100vw - 32px);color:#0d1b4d;font:inherit;max-height:calc(100dvh - 48px);overflow-y:auto}
.settings-dialog::backdrop{background:#14284866}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.dialog-heading h2{font-size:21px;line-height:1.4;margin:0}
.account-view .close-dialog{border:0;background:transparent;padding:8px;min-height:36px;color:var(--muted)}
.settings-dialog p{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 20px}
.settings-dialog label{display:block;font-size:13px;margin:14px 0 8px}
.settings-dialog input{width:100%}.settings-dialog .input-wrap input{border:0;border-radius:0;box-shadow:none}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e8eff9;padding-top:20px;margin-top:24px}
.settings-dialog .input-wrap{height:48px;border-radius:8px;margin-bottom:16px}
.migration-confirmation{padding:12px 14px;border-radius:8px;background:#fff8ec;color:#93611f;font-size:13px;line-height:1.8}
.user-account{max-width:760px}.user-account h2{margin-bottom:10px}
.mail-settings{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.mail-settings summary{cursor:pointer;font-weight:600;font-size:14px}.mail-settings summary span{font-size:12px;font-weight:400;margin-left:12px}
.mail-settings .backup-scope{margin:12px 0 18px!important}
.account-view #notice:empty{display:none}
.account-view [hidden]{display:none!important}
@media(max-width:900px){.allocation-overview{flex-wrap:wrap}.account-metrics{max-width:none}.allocation-caption{flex-basis:100%;order:3;border:0;padding:0;max-width:none}.backup-layout{grid-template-columns:1fr}.settings-heading{gap:12px}.settings-heading h1{font-size:25px}}
@media(max-width:600px){.account-view header{height:56px;padding:0 20px}.account-view header b{font-size:16px}.account-view main{padding:0 16px;margin:24px auto}.settings-heading{align-items:flex-start;flex-wrap:wrap}.settings-heading .account-actions{width:100%;margin-top:6px}.identity{font-size:12px}.settings-surface{padding:16px}.settings-tabs{gap:0}.settings-tabs button{flex:1;padding:12px 8px;font-size:15px}.account-metrics{width:100%;flex:none;gap:8px}.account-metric{padding:8px 4px;font-size:12px}.account-metric strong{font-size:23px}.allocation-overview{gap:12px;margin-bottom:18px}.allocation-overview>.primary{margin-left:0}.account-toolbar{flex-wrap:wrap;gap:8px}.search-control{flex-basis:100%;max-width:none}.account-toolbar select{flex:1}.account-toolbar .result-count{width:100%;margin-left:0}.accounts-table th,.accounts-table td{padding:12px 8px;font-size:12px}.accounts-table th:first-child{width:48%}.accounts-table th:nth-child(2){width:19%}.self-label{display:block;width:max-content;margin:5px 0 0}.backup-form{gap:14px}.backup-form label{font-size:12px}.settings-dialog{padding:20px}.dialog-heading h2{font-size:19px}.section-title{flex-wrap:wrap}}
