.account-main { min-height: calc(100vh - 190px); padding-top: 4rem; padding-bottom: 5rem; }
.account-title { margin-bottom: 1rem; font-size: clamp(3.4rem, 8vw, 5.8rem); }
.account-intro { max-width: 620px; margin-bottom: 2rem; color: var(--muted); line-height: 1.7; }
.account-content { max-width: 900px; }
.account-content > section + section { margin-top: 1rem; }
.account-message { min-height: 1.5rem; margin-bottom: 1rem; color: #ffd2a4; }
.account-message[data-kind="error"] { color: #ffab9b; }
.account-message[data-kind="success"] { color: #b8e5c4; }
.account-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-panel, .admin-panel { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-top-color: rgba(255, 145, 54, .5); background: linear-gradient(160deg, rgba(27, 37, 47, .88), rgba(12, 16, 21, .94)); }
.account-panel h2, .admin-panel h2 { margin-bottom: 1.1rem; font-size: 1.65rem; }
.account-form { display: grid; gap: .9rem; }
.account-form label, .setting-label { display: grid; gap: .35rem; color: #c4ccd2; font-size: .84rem; }
.account-form input, .admin-card select { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid rgba(210, 225, 235, .24); border-radius: 2px; background: #090e13; color: var(--silver); font: inherit; }
.account-form input:focus-visible, .admin-card select:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.account-form small, .form-note { color: #919da6; font-size: .76rem; line-height: 1.5; }
.account-submit, .provider-button, .admin-save, .logout-button { min-height: 44px; padding: .7rem 1rem; border: 1px solid rgba(226, 153, 83, .45); background: rgba(159, 74, 31, .22); color: #ffe0bc; font: 800 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.account-submit:hover, .provider-button:hover, .admin-save:hover, .logout-button:hover { background: rgba(159, 74, 31, .42); }
.provider-list { display: grid; gap: .6rem; margin-top: .7rem; }
.provider-button { width: 100%; border-color: rgba(112, 207, 255, .35); background: rgba(37, 97, 126, .15); color: #d0efff; text-decoration: none; text-align: center; }
.provider-button:hover { background: rgba(37, 97, 126, .3); }
.provider-divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .2rem; color: #81909b; font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; }
.provider-divider::before, .provider-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.profile-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.profile-panel h2 { margin: 0 0 .3rem; }
.profile-panel p { margin: 0; color: var(--muted); }
.profile-role { color: var(--ember-bright) !important; font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-section { display: grid; gap: 1rem; margin-top: 1.2rem; }
.admin-panel > p { color: var(--muted); line-height: 1.6; }
.admin-list { display: grid; gap: .75rem; }
.admin-card { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(125px, .7fr) minmax(110px, .6fr) auto; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid rgba(214, 225, 232, .12); background: rgba(5, 8, 11, .45); }
.admin-card strong, .admin-card span { overflow-wrap: anywhere; }
.admin-card strong { display: block; margin-bottom: .2rem; color: #f2e4d3; }
.admin-card span { color: #9ba7af; font-size: .8rem; }
.admin-card select { min-height: 38px; padding: .45rem; }
.admin-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ember); }
.toggle-line { display: flex; align-items: center; gap: .55rem; color: #c4ccd2; font-size: .8rem; }
.game-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.game-setting-card { display: grid; gap: .85rem; padding: 1rem; border: 1px solid rgba(214, 225, 232, .12); background: rgba(5, 8, 11, .45); }
.game-setting-card h3 { margin: 0; color: #f2e4d3; font: 500 1.25rem var(--serif); }
.game-flags { display: flex; flex-wrap: wrap; gap: 1rem; }
.game-grants { min-height: 100px; }
.admin-save { justify-self: start; }
.empty-state { color: var(--muted); }
.account-error { color: #ffab9b; }

@media (max-width: 760px) {
  .account-main { padding-top: 2.7rem; }
  .account-panels, .game-settings { grid-template-columns: 1fr; }
  .admin-card { grid-template-columns: 1fr 1fr; }
  .admin-card > :first-child { grid-column: 1 / -1; }
  .profile-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .account-main { width: calc(100% - 32px); }
  .admin-card { grid-template-columns: 1fr; }
  .admin-card > :first-child { grid-column: auto; }
  .admin-save { width: 100%; }
}
