.account-shell {
    min-height: 100vh;
    border-top: 7px solid var(--portal-yellow, #ffbd00);
    background: #f6f6f7;
    display: flex;
    flex-direction: column;
    color: #16171b;
}

.account-header {
    background: #050505;
    color: #fff;
}

.account-header-inner {
    width: min(1080px, calc(100% - 48px));
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.account-header-label {
    color: #d1d1d4;
    font-size: .88rem;
    font-weight: 600;
}

.account-main {
    width: min(1080px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
    padding: 56px 0 72px;
    flex: 1;
}

.account-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 36px;
    border: 1px solid #e2e2e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .045);
}

.account-card-enrollment { max-width: 560px; }

.account-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #686971;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.account-shell h1 {
    margin: 0 0 14px;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.account-shell h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    letter-spacing: -.025em;
}

.account-intro, .account-help, .account-muted {
    color: #61636c;
    font-size: .9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.account-intro { margin: 0 0 28px; }
.account-muted { margin: 0; }
.account-help { margin: 24px 0 0; font-size: .82rem; }

.account-form { display: grid; gap: 20px; }
.account-field { display: grid; gap: 8px; min-width: 0; }

.account-shell label {
    color: #2b2c32;
    font-size: .83rem;
    font-weight: 700;
}

.account-field input, .account-handoff input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #c9cbd1;
    border-radius: 8px;
    background: #fff;
    color: #16171b;
    font-size: .95rem;
}

.account-field small, .account-handoff small {
    color: #686a73;
    font-size: .77rem;
    line-height: 1.5;
}

.account-shell :focus-visible {
    outline: 3px solid #8a5e00;
    outline-offset: 3px;
}

.account-field input:focus-visible, .account-handoff input:focus-visible {
    outline-offset: 1px;
    border-color: #8a5e00;
}

.account-shell .account-code-input {
    max-width: 220px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .24em;
    font-variant-numeric: tabular-nums;
}

.account-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #ffbd00;
    border-radius: 8px;
    background: #ffbd00;
    color: #111;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.account-button:hover { background: #efb100; border-color: #efb100; }
.account-button-secondary { background: #16171b; border-color: #16171b; color: #fff; }
.account-button-secondary:hover { background: #34353c; border-color: #34353c; }
.account-button-outline { background: #fff; border-color: #c9cbd1; color: #33343b; }
.account-button-outline:hover { background: #f4f4f6; border-color: #a8abb3; }
.account-button:disabled { background: #f2f2f4; border-color: #dddde2; color: #7a7c85; cursor: not-allowed; }

.account-text-link {
    display: inline-block;
    margin-top: 18px;
    color: #383a43;
    font-size: .84rem;
    font-weight: 650;
    text-underline-offset: 3px;
}

.account-message {
    width: min(100%, 560px);
    margin: 0 auto 20px;
    padding: 16px 18px;
    border: 1px solid;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.6;
}

.account-message p { margin: 0; }
.account-message strong + p { margin-top: 4px; }
.account-message-error { background: #fff2f1; border-color: #efc5c2; color: #8c2923; }
.account-message-success { background: #eef8f0; border-color: #badcc1; color: #245c32; }

.account-enrollment-steps {
    padding-left: 22px;
    margin: 0 0 20px;
    color: #454750;
    font-size: .87rem;
    line-height: 1.6;
}

.account-enrollment-steps li + li { margin-top: 8px; }
.account-qr { display: flex; justify-content: center; margin: 12px 0 20px; }
.account-qr img { display: block; width: 216px; height: 216px; max-width: 100%; }

.account-manual-key {
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    background: #fafafa;
    color: #454750;
    font-size: .81rem;
    line-height: 1.6;
}

.account-manual-key summary { cursor: pointer; font-weight: 700; }
.account-manual-key p { margin: 12px 0; }
.account-manual-key code { font-size: .92rem; overflow-wrap: anywhere; }

.account-summary { margin: 0 0 24px; }
.account-summary > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e7e7eb; }
.account-summary dt { color: #61636c; font-size: .85rem; }
.account-summary dd { margin: 0; font-size: .85rem; font-weight: 700; overflow-wrap: anywhere; }
.account-pending { margin: 0 0 24px; padding: 18px; border-left: 3px solid #ffbd00; background: #fffbef; }
.account-pending p { margin: 0; color: #625839; font-size: .85rem; line-height: 1.6; }

.account-admin-heading { margin-bottom: 28px; }
.account-admin-heading .account-intro { max-width: 700px; margin-bottom: 0; }
.account-admin-panel, .account-user-card { padding: 26px; border: 1px solid #e2e2e6; border-radius: 14px; background: #fff; }
.account-admin-create { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: end; gap: 18px; margin-top: 22px; }
.account-admin-list { margin-top: 36px; }
.account-list-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.account-list-heading h2 { margin: 0; }
.account-count { padding: 3px 9px; border-radius: 20px; background: #e7e7eb; color: #555761; font-size: .75rem; font-weight: 750; }
.account-user-card + .account-user-card { margin-top: 16px; }
.account-user-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.account-user-heading h3 { margin: 0 0 4px; font-size: 1rem; overflow-wrap: anywhere; }
.account-user-heading .account-muted { font-size: .78rem; }
.account-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.account-badge { display: inline-block; padding: 5px 9px; border-radius: 6px; font-size: .7rem; font-weight: 700; line-height: 1.4; }
.account-badge-positive { background: #eaf5ed; color: #286538; }
.account-badge-muted { background: #efeff2; color: #5d5f69; }
.account-badge-pending { background: #fff4d6; color: #775812; }
.account-admin-edit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: end; }
.account-checkbox { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.account-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: #755400; }
.account-admin-edit .account-button { justify-self: end; }
.account-reset { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e7e7eb; margin-top: 22px; padding-top: 20px; }
.account-reset p { max-width: 600px; margin: 0; color: #686a73; font-size: .8rem; line-height: 1.6; }
.account-reset form { flex-shrink: 0; }
.account-handoff { margin-bottom: 24px; padding: 24px; border: 1px solid #e6ce80; border-radius: 12px; background: #fffbef; }
.account-handoff p { max-width: 760px; color: #645934; font-size: .85rem; line-height: 1.6; }
.account-handoff label { display: block; margin: 16px 0 8px; }
.account-handoff input { font-size: .8rem; }
.account-handoff small { display: block; margin-top: 8px; }
.account-empty { padding: 30px; text-align: center; border: 1px dashed #cccdd3; border-radius: 12px; color: #61636c; font-size: .88rem; }
.account-empty p { margin-bottom: 0; }
.account-footer { padding: 22px 24px; border-top: 1px solid #e4e4e8; color: #757780; text-align: center; font-size: .75rem; }
.account-skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: #fff; color: #111; z-index: 10; }
.account-skip:focus { top: 16px; }

@media (max-width: 760px) {
    .account-admin-create { grid-template-columns: 1fr 1fr; }
    .account-admin-create .account-button { grid-column: 1 / -1; justify-self: start; }
    .account-user-heading, .account-reset { flex-direction: column; align-items: stretch; }
    .account-badges { justify-content: start; }
}

@media (max-width: 520px) {
    .account-header-inner, .account-main { width: calc(100% - 32px); }
    .account-header-inner { min-height: 82px; gap: 12px; }
    .account-header .portal-brand { gap: 8px; font-size: 1rem; }
    .account-header .portal-brand > span > strong { font-size: 1.65rem; }
    .account-header .brand-shield { width: 34px; height: 42px; }
    .account-header-label { max-width: 90px; font-size: .73rem; }
    .account-main { padding: 28px 0 40px; }
    .account-card, .account-admin-panel, .account-user-card, .account-handoff { padding: 24px 20px; border-radius: 12px; }
    .account-admin-create, .account-admin-edit { grid-template-columns: 1fr; }
    .account-admin-create .account-button, .account-admin-edit .account-button { width: 100%; justify-self: stretch; }
    .account-summary > div { flex-direction: column; gap: 8px; }
    .account-qr img { width: 200px; height: 200px; }
}
