:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #26242d; background: #fbfaf7; font-size: 14px; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.settings-shell { max-width: 790px; margin: 0 auto; padding: 26px 24px 36px; }
.page-header, footer, .account-actions, .form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-header { padding-bottom: 22px; border-bottom: 1px solid #e9e5df; }
a { color: #4f46a5; text-underline-offset: 3px; }
.brand { color: #26242d; font-size: 22px; font-weight: 700; text-decoration: none; }
.brand span { font-size: 13px; color: #6c6875; font-weight: 500; }
.locale-control { display: flex; align-items: center; gap: 8px; color: #6c6875; font-size: 12px; }
.locale-control select { width: auto; }
.intro { padding: 30px 0 14px; }
.eyebrow { color: #4f46a5; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
h1 { margin: 8px 0 10px; font-size: clamp(25px, 4vw, 34px); line-height: 1.25; letter-spacing: -.03em; }
h2 { margin: 0 0 8px; font-size: 16px; }
p { margin: 8px 0; }
.intro p:last-child, .field-hint { color: #6c6875; }
.notice { padding: 20px; border-left: 3px solid #4f46a5; border-radius: 0 12px 12px 0; background: #f0edf9; font-size: 13px; }
.account-card, .config-card { margin-top: 20px; padding: 24px; border: 1px solid #e9e5df; border-radius: 14px; background: white; }
.account-card p { font-size: 13px; }
.account-card p:nth-of-type(2) { color: #6c6875; }
.account-actions { justify-content: flex-start; margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin: 0 0 18px; padding: 0; font-size: 17px; font-weight: 650; }
label { display: block; margin: 17px 0 6px; font-weight: 600; }
button, input, select { font: inherit; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #ded9d2; border-radius: 9px; color: #26242d; background: white; }
input::placeholder { color: #9c98a4; }
.field-hint { font-size: 12px; margin-top: 7px; }
.key-state { font-size: 12px; color: #266147; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; }
.checkbox-label input { width: 17px; height: 17px; flex: 0 0 auto; margin: 4px 0 0; accent-color: #4f46a5; }
button { border: 1px solid #ded9d2; border-radius: 9px; padding: 9px 14px; color: #26242d; background: white; cursor: pointer; }
button:hover { background: #f5f3ef; }
button.primary { color: white; background: #4f46a5; border-color: #4f46a5; }
button.primary:hover { background: #39317f; }
button.danger { color: #9d3e4a; border-color: #e7bfc5; }
button.danger:hover { background: #fdf0f1; }
button:disabled, fieldset:disabled { opacity: .6; }
button:disabled { cursor: not-allowed; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #cbc6ed; outline-offset: 3px; }
.form-actions { justify-content: flex-start; margin-top: 22px; }
.saved-summary { padding: 12px 0 0; color: #6c6875; font-size: 12px; overflow-wrap: anywhere; }
.status { min-height: 24px; margin-top: 18px; overflow-wrap: anywhere; }
.status[data-kind="success"] { color: #266147; }
.status[data-kind="error"] { color: #9d3e4a; }
footer { padding-top: 24px; border-top: 1px solid #e9e5df; color: #6c6875; font-size: 12px; }
dialog { max-width: 470px; width: calc(100% - 32px); border: 1px solid #e9e5df; border-radius: 16px; padding: 0; color: #26242d; }
dialog::backdrop { background: rgba(38, 36, 45, .35); }
.delete-card { padding: 25px; }
@media (max-width: 520px) { .settings-shell { padding: 18px 15px 26px; } .page-header { align-items: flex-start; } .account-card, .config-card { padding: 20px 16px; } .form-actions button { width: 100%; } .notice { padding: 16px; } }
