:root { color-scheme: light; font-family: Arial, sans-serif; color: #103e2d; background: #fff9e9; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; }
main { box-sizing: border-box; width: min(44rem, 100%); padding: 3rem 1.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
p { line-height: 1.6; }
.brand { font-weight: bold; letter-spacing: .06em; }
a { color: #103e2d; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid #a92718; outline-offset: 5px; }
.back-office { display:block; }.bo-header,.bo-nav,.bo-footer { padding:1rem max(1rem,calc((100% - 75rem)/2)); border-bottom:1px solid #c9d4c9; }.bo-header { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; background:#eaf0df; }.bo-nav { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; }.bo-nav form { margin:0; }.bo-main { width:min(78rem,100%); margin:auto; padding:2rem 1.5rem; }.bo-footer { margin-top:3rem; border-top:1px solid #c9d4c9; border-bottom:0; }.card { background:#f2eddd; border:1px solid #d5ddcd; border-radius:.7rem; padding:1.5rem; margin:1.25rem 0; }.auth-card { max-width:34rem; margin:2rem auto; }.form-card { max-width:46rem; }.bo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1rem; }.heading-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; }
.back-office h1 { font-size:clamp(1.7rem,4vw,2.5rem); }.back-office h2 { font-size:1.3rem; }.back-office label,.back-office legend { display:block; font-weight:bold; margin:.9rem 0 .4rem; }.back-office input:not([type=checkbox]):not([type=hidden]),.back-office select,.back-office textarea { box-sizing:border-box; width:100%; max-width:42rem; padding:.8rem; border:1px solid #738a78; border-radius:.35rem; background:#fffdf6; color:#103e2d; font:inherit; }.back-office input[type=checkbox] { width:1.2rem; height:1.2rem; accent-color:#103e2d; }.back-office textarea { min-height:5rem; }.back-office fieldset { border:1px solid #b2c1af; border-radius:.4rem; margin:1rem 0; }.back-office button,.back-office .action-link { display:inline-block; border:1px solid #a92d18; background:#b7301d; color:white; border-radius:.45rem; font:inherit; font-weight:bold; padding:.8rem 1rem; margin:1rem 0 .2rem; cursor:pointer; text-decoration:none; }.back-office .secondary { background:transparent; color:#103e2d; border-color:#103e2d; }.back-office :is(input,select,textarea,button,summary):focus-visible { outline:3px solid #103e2d; outline-offset:3px; }.back-office summary { font-weight:bold; cursor:pointer; padding:.4rem 0; }.back-office .notice { border-left:5px solid #103e2d; padding:1rem; }.back-office .success { background:#e6efda; }.back-office .error { background:#fae9df; color:#8e281c; border-color:#a92d18; }.muted,.help-text { font-size:.9rem; color:#42614e; }.back-office form>div>div { margin-bottom:1rem; }.back-office form ul { color:#8e281c; }.search-form { max-width:36rem; margin:1rem 0; }.table-scroll { max-width:100%; overflow-x:auto; }.back-office table { width:100%; border-collapse:collapse; text-align:left; }.back-office th,.back-office td { padding:.85rem; vertical-align:top; border-bottom:1px solid #c9d4c9; overflow-wrap:anywhere; }.back-office th { background:#e5ebd9; }.back-office td { background:#f5f0e3; }.pagination { display:flex; gap:1rem; margin:1rem 0; }.permission-row { padding:1rem 0; border-bottom:1px solid #c9d4c9; }.permission-row h2 { margin-bottom:.2rem; }.history-data,.secret { white-space:pre-wrap; overflow-wrap:anywhere; }.backup-codes { list-style:none; padding:0; display:grid; gap:.8rem; font-size:1.05rem; }.enrollment-qr { display:block; max-width:100%; height:auto; margin:1rem auto; }.sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }.skip-link:focus { display:block; padding:1rem; }

.back-office .check-row {display:grid;grid-template-columns:1.4rem minmax(0,1fr);align-items:center;column-gap:.7rem;margin:.6rem 0}.back-office .check-row input[type=checkbox] {margin:0}.back-office .check-row label {margin:.2rem 0}.back-office .check-help {grid-column:2}.back-office .check-help:empty {display:none}.back-office .required-mark {color:#8e281c}.back-office .required-help {font-size:.9rem}.back-office .reauthentication {background:#e7efdf;padding:1rem;margin-top:1.8rem}.back-office .member-information {padding:1rem}

/* Team lists and narrow screens retain the same readable fields and actions. */
.back-office .account-filters {display:flex;align-items:end;gap:1rem;max-width:none;flex-wrap:wrap}
.back-office .account-filters>div {flex:1 1 15rem;min-width:0;margin:0}
.back-office .account-filters button {margin:0;min-height:3rem}
.back-office .account-disabled td {background:#e8e8e3;color:#4b514d}
.back-office .account-disabled a {color:#404842}
.bo-main,.bo-grid>*,.table-scroll {min-width:0}
.context-help {margin:0 0 1.5rem;padding:1rem;border:1px solid #b2c1af;border-radius:.4rem}
.help-topic {scroll-margin-top:1rem}
@media(max-width:700px) {
 .bo-main {padding:1.2rem 1rem}
 .card {padding:1rem}
 .back-office .account-filters {align-items:stretch}
 .back-office .account-filters>div {flex-basis:100%}
 .back-office .table-scroll {overflow:visible}
 .back-office table,.back-office tbody {display:block}
 .back-office thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .back-office tbody {display:grid;gap:1rem}
 .back-office tr {display:block;border:1px solid #c9d4c9;border-radius:.4rem;overflow:hidden}
 .back-office td {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:.8rem;padding:.7rem}
 .back-office td::before {content:attr(data-label);font-weight:bold}
 .back-office td>* {min-width:0;overflow-wrap:anywhere}
 .back-office td:last-child {border-bottom:0}
}

/* Native disclosure keeps mobile navigation usable without JavaScript. */
.bo-mobile-navigation {display:none}
@media(max-width:700px) {
 .bo-desktop-navigation {display:none}
 .bo-mobile-navigation {display:block;padding:.75rem 1rem;border-bottom:1px solid #c9d4c9}
 .back-office .bo-mobile-navigation>summary {box-sizing:border-box;min-height:3rem;padding:.8rem 1rem;border:1px solid #103e2d;border-radius:.4rem;background:#eaf0df}
 .bo-mobile-navigation .bo-nav {padding:1rem 0 0;border:0;flex-direction:column;align-items:stretch;gap:.25rem}
 .bo-mobile-navigation .bo-nav>a {padding:.7rem .5rem}
 .bo-mobile-navigation .bo-nav button {width:100%;margin:.5rem 0}
}

.back-office button:disabled {background:#e0e3dc;color:#4b514d;border-color:#869184;cursor:not-allowed}
