.account-main { padding: 2rem 0 5rem; }
.account-hero { max-width: 760px; margin: 1rem 0 2rem; }
.account-hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.08; letter-spacing: -.035em; margin: .4rem 0 1rem; }
.account-hero .lead { max-width: 650px; font-size: 1.15rem; color: var(--muted); }
.account-main a:not(.button) { text-decoration: underline; text-underline-offset: .2em; }
.account-privacy-link { color: var(--red); font-weight: 650; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2rem); margin: 1rem 0; box-shadow: var(--shadow-soft); }
.account-card h2 { margin: 0 0 .55rem; font-size: 1.55rem; letter-spacing: -.025em; }
.account-card h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.account-card > p { color: var(--muted); }
.account-access { max-width: 740px; }
.account-form { display: grid; gap: .6rem; }
.account-form > label { font-weight: 650; margin-top: .55rem; }
.account-form input:not([type=checkbox]), .account-form select, .account-form textarea, .account-sort select { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-solid); color: var(--text); min-width: 0; }
.account-form textarea { resize: vertical; line-height: 1.6; }
.account-form input:read-only { background: var(--surface-2); }
.account-form input:focus-visible, .account-form select:focus-visible, .account-main button:focus-visible, .account-main summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.account-form .button { justify-self: start; margin-top: .5rem; }
.account-form fieldset { min-width: 0; margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.account-form legend { font-weight: 650; padding: 0 .4rem; }
.account-password { display: flex; gap: .5rem; align-items: stretch; }
.account-password input { flex: 1; }
.account-password button { border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 6px; padding: .5rem .8rem; min-width: 65px; cursor: pointer; }
.account-hint { font-size: .87rem; color: var(--muted); margin: .15rem 0 .6rem; line-height: 1.6; }
.account-private { font-size: .78rem; font-weight: 500; color: var(--muted); padding-left: .3rem; }
.account-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.account-two label { display: grid; gap: .5rem; }
.account-check { display: flex; align-items: flex-start; gap: .75rem; font-weight: 450 !important; margin: .7rem 0; }
.account-check input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: .22rem; accent-color: var(--red); }
.account-tabs { display: flex; gap: .5rem; max-width: 740px; border-bottom: 1px solid var(--line-strong); }
.account-tabs button { border: 0; border-bottom: 3px solid transparent; padding: .85rem 1.25rem; font-weight: 650; background: transparent; cursor: pointer; }
.account-tabs button[aria-selected=true] { color: var(--red); border-color: var(--red); }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .7rem; }
.account-text-button { border: 0; padding: .4rem 0; color: var(--red); background: transparent; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.account-notice { border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); background: var(--surface-2); border-radius: 6px; padding: .85rem 1rem; overflow-wrap: anywhere; }
.account-notice[data-kind=error] { border-left-color: var(--danger); }
.account-notice[data-kind=success] { border-left-color: var(--success); }
.account-inset { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; width: 100%; }
.account-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.account-welcome h2 { font-size: 2rem; }
.account-welcome p { margin: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.account-grid > .account-card { margin: 0; }
.account-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .85rem; margin: 1.2rem 0; }
.account-metric { padding: 1.15rem; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.account-metric strong { display: block; font-size: 1.9rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.25; }
.account-metric span { display: block; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
#resource-review-section .account-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
#resource-review-section .account-metric { padding: clamp(.7rem, 2vw, 1.15rem); }
#resource-review-section .account-metric strong { font-size: clamp(1.45rem, 3vw, 1.9rem); }
#resource-review-section .account-metric span { font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
#resource-review-status[data-state="ready"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 540px) { #resource-review-section .account-actions .button { flex: 1 1 100%; } #resource-review-section .account-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; } }
.account-danger { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.account-danger summary { color: var(--danger); cursor: pointer; font-weight: 650; }
.account-danger p { color: var(--muted); }
.account-danger .button { background: var(--red-fill); color: #fff; }
.account-policy { max-width: 820px; }
.account-policy .account-card h2:not(:first-child) { margin-top: 1.65rem; }
.account-policy .account-card p { line-height: 1.8; }
.account-section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.account-section-head .eyebrow { margin-bottom: .25rem; }
.account-table-wrap { max-width: 100%; overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; margin: .8rem 0; }
.account-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.account-table th, .account-table td { padding: .8rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.account-table th:first-child, .account-table td:first-child { padding-left: 0; }
.account-table small { display: block; color: var(--muted); }
.account-pagination { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; margin-top: 1rem; }
.account-sort { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.account-sort select { width: auto; }
.account-online { display: inline-flex; gap: .4rem; align-items: center; color: var(--success); font-size: .82rem; font-weight: 650; }
.account-online::before { content: ''; height: 7px; width: 7px; border-radius: 50%; background: currentColor; }
.account-detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.account-detail-list dt { font-size: .8rem; color: var(--muted); }
.account-detail-list dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.account-main button:disabled { opacity: .55; cursor: wait; }
.account-pagination button:disabled { cursor: default; }
.account-empty { color: var(--muted); font-size: .9rem; padding: .5rem 0; }
.updates-workspace { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 2fr); gap: 2rem; }
.updates-drafts { border-right: 1px solid var(--line); padding-right: 1.25rem; }
.updates-drafts h3 { margin: .5rem 0; }
.updates-campaign { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface-2); padding: .8rem; border-radius: 6px; cursor: pointer; margin: .65rem 0; overflow-wrap: anywhere; }
.updates-campaign strong, .updates-campaign span { display: block; }
.updates-campaign span { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.updates-campaign[aria-current=true] { border-color: var(--red); }
.updates-preview { border: 1px solid var(--line-strong); border-radius: 8px; padding: 1.2rem; margin: 1.5rem 0; }
.updates-preview h3 { margin-top: 0; }
.updates-preview-subject { font-weight: 650; }
.updates-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: var(--surface-2); padding: 1rem; border-radius: 5px; }
.updates-delivery-status { font-weight: 650; margin: 1.25rem 0 .5rem; }
@media (max-width: 680px) { .account-grid { grid-template-columns: 1fr; } .account-main { padding-top: 1rem; } .account-two { gap: .6rem; } .account-metrics { grid-template-columns: 1fr 1fr; } .account-table { font-size: .82rem; } .account-pagination { justify-content: space-between; } }
@media (max-width: 800px) { .updates-workspace { grid-template-columns: 1fr; gap: 1rem; } .updates-drafts { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; } }
@media print { #admin-dashboard .account-actions, #admin-dashboard button, .account-sort, .account-pagination { display: none; } }

.account-profile-facts { margin: .75rem 0 1.25rem; }
.account-profile-facts dt { font-size: .8rem; color: var(--muted); }
.account-profile-facts dd { margin: .15rem 0 0; }
.account-policy-update { border-left: 4px solid var(--gold); }
.account-policy-update h2 { font-size: 1.2rem; }
.account-policy-update .account-form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
@media (max-width: 540px) { .account-policy-update .account-form { grid-template-columns: 1fr; gap: .3rem; } }

.profile-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.profile-avatar { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.profile-avatar svg, .profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; stroke: none; }
.profile-avatar-preview { width: 128px; height: 128px; margin: .5rem 0 1rem; }
.profile-bio-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-editor { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.25rem; }
.profile-editor > summary { font-weight: 650; color: var(--red); cursor: pointer; }
.account-form .profile-edit-fields, .profile-edit-fields { border: 0; padding: 0; margin: .9rem 0 0; display: grid; gap: .6rem; min-width: 0; }
.profile-edit-fields > label { font-weight: 650; margin-top: .4rem; }
.profile-edit-fields select, .profile-edit-fields input[type=file] { width: 100%; min-width: 0; padding: .65rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-solid); color: var(--text); }
.profile-edit-fields:disabled { opacity: .65; }
.profile-bio-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.profile-bio-meta > span { white-space: nowrap; }
.profile-icon-editor { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .3rem; }
.profile-icon-editor hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 1rem 0; }
.profile-crop-editor { display: grid; gap: .75rem; }
.profile-crop-editor canvas, .profile-pending-icon img { width: 128px; height: 128px; border-radius: 16px; border: 1px solid var(--line-strong); }
.profile-crop-editor label { display: grid; gap: .25rem; font-size: .85rem; }
.profile-crop-editor input[type=range] { width: 100%; accent-color: var(--red); }
.profile-pending-icon { margin-top: 1rem; }
@media (max-width: 420px) { .profile-avatar { width: 60px; height: 60px; border-radius: 14px; } .profile-avatar-preview { width: 128px; height: 128px; } }

.account-progression progress{display:block;width:100%;height:18px;accent-color:var(--red);margin:14px 0}.account-progression .text-link{display:inline-flex;min-height:44px;align-items:center}
.account-progress { margin: 1rem 0; }
.account-progress-heading, .account-progress-meta { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.account-progress-heading h2, .account-progress-heading p { margin:.2rem 0; }
.account-progress-heading strong { color:var(--red); }
.account-progress progress { width:100%; height:.8rem; margin:.8rem 0 .3rem; accent-color:var(--red); }
.account-progress-meta { font-size:.9rem; }

.account-preferences { display: grid; align-content: start; gap: 1rem; }
.account-preferences > .account-card { margin: 0; }
.account-form .iq-sharing-choices { margin: .25rem 0 0; padding: .5rem 1rem; }
.iq-sharing-choices .account-check { align-items: center; }
.iq-sharing-choices input[type=radio] { flex: 0 0 auto; width: 19px; height: 19px; min-height: 0; margin: 0; padding: 0; accent-color: var(--red); }
.iq-sharing-notice { font-size: .87rem; line-height: 1.6; border-left: 3px solid var(--gold); padding: .65rem .85rem; background: var(--surface-2); margin: .25rem 0; border-radius: 4px; }
