.account-settings { --as-card: #fff; --as-soft: #f7f8fc; --as-good: #177557; max-width: 1180px; }
[data-theme="night"] .account-settings { --as-card: #30324d; --as-soft: #292c43; --as-good: #99d5b0; }
.as-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 25px; padding: 0; }
.as-tab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 7px; min-height: 42px; padding: 10px 20px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 550; }
.as-tab:hover { color: var(--blue); background: var(--as-soft); }
.as-tab.selected { color: #fff; background: #7367f0; box-shadow: 0 3px 9px #7367f033; }
.as-card { background: var(--as-card); border: 1px solid var(--line); border-radius: 10px; padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow); }
.as-card > h2 { margin-bottom: 25px; font-size: 18px; font-weight: 550; }
.as-avatar-form { display: flex; align-items: center; gap: 24px; margin: 0 0 30px; padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.as-avatar { width: 104px; height: 104px; flex: 0 0 104px; border-radius: 9px; overflow: hidden; background: #7367f024; color: var(--blue); display: grid; place-items: center; }
.as-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-avatar-initial { font-size: 45px; font-weight: 600; }
.as-avatar-controls { min-width: 0; }
.as-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.as-avatar-controls .as-actions { margin-top: 0; margin-bottom: 12px; }
.as-help { font-size: 12px; line-height: 1.75; color: var(--muted); }
.as-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.as-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.as-card .field label { font-size: 13px; }
.as-card .field .input, .as-card .field select { min-height: 43px; }
.as-card input[readonly] { color: var(--muted); background: var(--as-soft); }
.as-readonly { display: flex; align-items: center; min-height: 43px; margin: 0; padding: 10px 12px; background: var(--as-soft); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--muted); }
.as-password-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr); gap: 40px; }
.as-password-grid > div { min-width: 0; }
.as-requirements { padding: 2px 0; }
.as-requirements h3 { font-size: 14px; font-weight: 550; margin-bottom: 13px; }
.as-password-rules { list-style: none; padding: 0; margin: 0 0 15px; }
.as-password-rules li { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.as-password-rules li[data-valid="true"] { color: var(--as-good); }
.as-password-rules [data-as-rule-mark] { width: 14px; font-size: 15px; font-weight: 700; }
.as-section-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.as-section-head > div:nth-child(2) { flex: 1; }
.as-section-head .as-help { margin-top: 7px; }
.as-section-head h2 { font-size: 18px; font-weight: 550; }
.as-security-mark { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; color: var(--blue); background: #7367f01c; }
.as-verification { max-width: 460px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 6px; }
.as-secret { font-family: "Cascadia Code", Consolas, monospace; letter-spacing: .4px; line-height: 1.8; overflow-wrap: anywhere; }
.as-setup-steps { padding-left: 21px; line-height: 1.8; font-size: 13px; margin: 0 0 22px; }
.as-setup-steps li { padding-left: 4px; margin-bottom: 10px; }
.as-setup-warning { margin: 18px 0; padding: 14px; border-left: 3px solid #7367f0; background: #7367f014; border-radius: 4px; }
.as-login-mfa > .muted { margin: 10px 0 24px; font-size: 13px; }
.as-login-links { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 23px; font-size: 12px; }
@media (max-width: 760px) {
  .as-card { padding: 21px 18px; }
  .as-form-grid, .as-password-grid { grid-template-columns: 1fr; gap: 0; }
  .as-password-grid .as-requirements { margin-top: 5px; }
  .as-avatar-form { gap: 17px; }
  .as-avatar { width: 82px; height: 82px; flex-basis: 82px; }
  .as-avatar-controls .btn { padding: 9px 12px; font-size: 12px; }
  .as-section-head { flex-wrap: wrap; }
  .as-section-head > .badge { margin-left: 57px; }
}
@media (max-width: 400px) { .as-avatar-form { align-items: flex-start; } .as-avatar-controls .as-actions { gap: 8px; } .as-avatar { width: 66px; height: 66px; flex-basis: 66px; } }
