.acct-wrap {
    max-width: 620px;
    margin: 0 auto;
}

.acct-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.acct-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--border);
}

.acct-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 2px;
    letter-spacing: -0.2px;
}

.acct-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Cards */
.acct-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.acct-card-head {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.acct-card-head-inner {
    border-top: 1px solid var(--border);
}

.acct-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acct-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

/* Form fields */
.acct-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acct-field-row {
    display: flex;
    gap: 12px;
}

.acct-field-grow { flex: 1; }

.acct-field-sm { width: 80px; flex-shrink: 0; }

.acct-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.acct-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    padding: 8px 11px;
    width: 100%;
    color-scheme: dark;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

html[data-theme="light"] .acct-input { color-scheme: light; }

.acct-input:focus {
    outline: none;
    border-color: var(--accent);
}

.acct-input-ro {
    opacity: 0.55;
    cursor: default;
}

.acct-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.acct-link {
    color: var(--accent);
    text-decoration: none;
}

.acct-link:hover { text-decoration: underline; }

.acct-muted {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Save button */
.acct-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.acct-btn:hover { opacity: 0.88; }

/* Toggle switches */
.acct-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 4px 0;
}

.acct-toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.acct-toggle-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.acct-switch {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.acct-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.acct-switch-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 22px;
    transition: background 0.2s;
}

.acct-switch-track::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform 0.2s, background 0.2s;
}

.acct-switch input:checked + .acct-switch-track {
    background: var(--accent);
}

.acct-switch input:checked + .acct-switch-track::after {
    transform: translateX(18px);
    background: #fff;
}

.acct-switch input:disabled + .acct-switch-track {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 540px) {
    .acct-field-row { flex-wrap: wrap; }
    .acct-field-sm { width: 100%; }
}
