:root {
  --navy:#112a3b;
  --ink:#173447;
  --muted:#5b6f7d;
  --line:#dce5e9;
  --teal:#006f66;
  --green:#bcead4;
  --red:#a53b43;
  --bg:#f3f6f8;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.5;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary {
  touch-action:manipulation;
}
button,summary {
  cursor:pointer;
}
button:disabled {
  opacity:.5;
  cursor:wait;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible {
  outline:3px solid #178dca;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
.skip {
  position:fixed;
  top:-100px;
  background:white;
  z-index:100;
  padding:12px;
}
.skip:focus {
  top:0;
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:240px;
  background:var(--navy);
  color:#eaf2f6;
  display:flex;
  flex-direction:column;
  padding:34px 20px 20px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:23px;
  font-weight:750;
  line-height:1.1;
  padding:0 8px;
}
.brand-light {
  display:block;
  font-weight:400;
  color:#bed4df;
}
.brand-mark {
  display:grid;
  place-items:center;
  width:42px;
  height:46px;
  border:1px solid #5b8397;
  border-radius:12px;
  color:var(--green);
  font-size:24px;
  position:relative;
}
.brand-mark span {
  position:absolute;
  top:-6px;
  right:-5px;
  font-size:22px;
  background:var(--navy);
}
.sidebar-label {
  font-size:11px;
  letter-spacing:1.7px;
  color:#9fb8c5;
  font-weight:600;
  margin:42px 12px 15px;
}
.sidebar nav {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.sidebar nav a {
  display:flex;
  align-items:center;
  gap:13px;
  border-radius:9px;
  padding:12px 15px;
  font-size:14px;
  min-height:46px;
  color:#cbdce5;
}
.sidebar nav a span {
  font-size:22px;
  width:22px;
  line-height:1;
}
.sidebar nav a:hover {
  background:#1d3c50;
}
.sidebar nav a.active {
  color:#fff;
  background:#26485c;
  box-shadow:inset 3px 0 var(--green);
}
.profile {
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:9px;
  padding:20px 0 12px;
  border-top:1px solid #355062;
  font-size:12px;
}
.profile strong {
  font-size:13px;
}
.profile small {
  display:block;
  color:#adc2ce;
}
.profile .avatar {
  width:32px;
  height:32px;
  min-width:32px;
  font-size:13px;
}
.logout {
  background:none;
  border:0;
  color:white;
  font-size:23px;
  width:36px;
  min-height:44px;
}
.sidebar-foot {
  font-size:11px;
  color:#a9c1ce;
  margin-top:10px;
}
.workspace {
  margin-left:240px;
}
.topbar {
  height:78px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  padding:0 42px;
  font-size:13px;
  color:var(--muted);
}
.slash {
  margin:0 15px;
  color:#b6c2c9;
}
.top-status {
  display:flex;
  align-items:center;
  gap:8px;
}
.top-status i {
  height:6px;
  width:6px;
  border-radius:50%;
  background:#278773;
}
main {
  padding:26px 42px 40px;
  max-width:1450px;
  margin:auto;
  min-height:calc(100vh - 142px);
}
footer {
  display:flex;
  justify-content:space-between;
  padding:20px 42px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
}
.demo-banner {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:#546c7b;
  margin-bottom:24px;
}
.demo-banner a {
  text-decoration:underline;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:20px 0 30px;
}
.eyebrow {
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:750;
  color:var(--teal);
  text-transform:uppercase;
}
h1 {
  font-size:clamp(28px,3.2vw,42px);
  line-height:1.2;
  letter-spacing:-1.4px;
  font-weight:650;
  margin:10px 0 12px;
}
h2 {
  font-size:19px;
  line-height:1.35;
  letter-spacing:-.4px;
  margin:0 0 8px;
}
p {
  color:var(--muted);
  margin:7px 0 18px;
}
.page-heading p {
  margin-bottom:0;
  font-size:15px;
}
.pill {
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  font-size:12px;
  border:1px solid var(--line);
  border-radius:30px;
  padding:7px 12px;
  background:white;
  color:var(--muted);
}
.button {
  border:1px solid transparent;
  border-radius:9px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 20px;
  font-weight:650;
  font-size:14px;
  gap:10px;
}
.primary {
  background:var(--teal);
  color:#fff;
}
.primary:hover {
  background:#00584f;
}
.secondary {
  background:white;
  border-color:#cbd8df;
  color:var(--ink);
}
.fine-button {
  background:#fff1f0;
  color:#993c44;
  border-color:#efd2d2;
}
.text-button {
  background:transparent;
  border:0;
  color:var(--teal);
  padding:12px 8px;
  min-height:44px;
  font-size:13px;
  font-weight:650;
}
.text-link {
  font-size:13px;
  font-weight:650;
  color:var(--teal);
  padding:10px 0;
}
.back-link {
  display:inline-block;
  color:var(--muted);
  font-size:13px;
  padding:5px 0;
}
.class-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.class-card {
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  padding:25px;
  transition:transform .15s,border-color .15s;
}
.class-card:hover {
  transform:translateY(-3px);
  border-color:var(--teal);
}
.class-monogram {
  background:#e6f3ef;
  border-radius:10px;
  color:var(--teal);
  padding:10px 14px;
  display:table;
  font-weight:700;
  margin-bottom:25px;
}
.class-card h2 {
  font-size:24px;
  margin:9px 0;
}
.card-bottom {
  display:flex;
  justify-content:space-between;
  margin-top:30px;
  padding-top:17px;
  border-top:1px solid var(--line);
  font-size:14px;
  color:var(--teal);
  font-weight:650;
}
.card-bottom span {
  font-size:20px;
}
.roster-toolbar {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:22px;
}
.search {
  display:flex;
  gap:10px;
  align-items:center;
  background:white;
  border:1px solid var(--line);
  padding:0 14px;
  border-radius:10px;
  max-width:340px;
  flex:1;
}
.search span {
  font-size:25px;
  color:var(--muted);
}
.search input {
  width:100%;
  background:none;
  border:0;
  min-height:46px;
  outline-offset:0;
}
.student-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}
.student-card {
  display:flex;
  position:relative;
  align-items:center;
  gap:12px;
  min-height:108px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 16px;
  cursor:pointer;
  transition:border-color .12s,background .12s;
}
.student-card input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  inset:0;
  cursor:pointer;
  margin:0;
}
.student-card:has(input:checked) {
  border-color:var(--teal);
  background:#edf8f3;
  box-shadow:0 0 0 1px var(--teal);
}
.student-card:has(input:focus-visible) {
  outline:3px solid #178dca;
  outline-offset:3px;
}
.avatar {
  height:42px;
  width:42px;
  min-width:42px;
  border-radius:50%;
  background:#dfeaf2;
  color:#345c76;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
}
.color-1 {
  background:#efe7f3;
  color:#725586;
}
.color-2 {
  background:#e1ece7;
  color:#476e58;
}
.color-3 {
  background:#f4eadd;
  color:#886039;
}
.student-info {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:6px;
}
.student-info strong {
  font-size:14px;
  font-weight:650;
}
.student-info>span {
  font-size:12px;
  color:var(--muted);
}
.student-info b {
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  margin-left:6px;
}
.selection-check {
  margin-left:auto;
  flex-shrink:0;
  border:1px solid #cad8df;
  width:20px;
  height:20px;
  border-radius:50%;
  color:transparent;
  display:grid;
  place-items:center;
  font-size:12px;
}
.student-card:has(input:checked) .selection-check {
  background:var(--teal);
  border-color:var(--teal);
  color:white;
}
.transaction-dock {
  position:sticky;
  bottom:18px;
  margin-top:26px;
  border:1px solid #c9d9df;
  background:#fff;
  border-radius:15px;
  box-shadow:0 10px 40px #14334514;
  padding:20px 24px;
  z-index:3;
}
.dock-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
}
.dock-top strong {
  font-size:15px;
}
.dock-top small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}
.mode-buttons {
  display:flex;
  gap:10px;
}
.mode-buttons button {
  min-width:112px;
}
.mode-buttons button[aria-pressed=true] {
  outline:3px solid #8cbbaf;
  outline-offset:2px;
}
.category-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.category-heading span {
  font-size:12px;
  color:var(--muted);
}
.category-heading h2 {
  font-size:16px;
}
.category-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.category-button {
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  background:#f1f8f5;
  border:1px solid #d4e7de;
  border-radius:9px;
  padding:14px 12px;
  min-height:60px;
  color:#1c5549;
}
.category-button strong {
  font-size:19px;
}
.category-button>span {
  font-size:12px;
}
.category-button .arrow {
  margin-left:auto;
  font-size:17px;
}
.category-button.fine {
  background:#fff4f3;
  border-color:#ecd8d8;
  color:#963d43;
}
.category-button:hover {
  border-color:currentColor;
}
.note-field {
  display:flex;
  gap:15px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
}
.note-field input {
  flex:1;
  padding:8px 10px;
  min-height:42px;
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  padding:25px;
  margin-bottom:22px;
  min-width:0;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding-bottom:13px;
}
.section-heading p {
  font-size:13px;
  margin:0 0 8px;
}
.wallet-grid {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:22px;
  margin-bottom:26px;
}
.balance-card {
  padding:30px 34px;
  background:var(--navy);
  border-radius:18px;
  color:white;
  min-height:260px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
}
.balance-card:after {
  content:'';
  width:250px;
  height:250px;
  border:1px solid #53768a;
  border-radius:50%;
  position:absolute;
  right:-100px;
  top:20px;
  box-shadow:0 0 0 28px #ffffff06,0 0 0 56px #ffffff04;
  pointer-events:none;
}
.balance-top,.balance-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  position:relative;
  z-index:1;
}
.balance-top {
  font-size:11px;
  letter-spacing:1.4px;
  color:#c5dbe5;
}
.wallet-symbol {
  font-size:26px;
  letter-spacing:-2px;
  color:var(--green);
}
.big-balance {
  font-size:70px;
  letter-spacing:-3px;
  line-height:1.3;
  font-weight:550;
  margin:16px 0 22px;
}
.big-balance span {
  font-size:40px;
  vertical-align:top;
  display:inline-block;
  padding-top:10px;
  margin-right:7px;
  color:#bcead4;
}
.balance-bottom {
  font-size:13px;
  margin-top:auto;
  color:#d4e4eb;
}
.balance-bottom span:last-child {
  font-size:11px;
}
.wallet-summary {
  margin:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:25px 30px;
}
.wallet-summary>div {
  display:flex;
  gap:18px;
  align-items:center;
  padding:10px 0;
}
.wallet-summary>div>div {
  display:flex;
  flex-direction:column;
}
.wallet-summary span:not(.entry-icon) {
  color:var(--muted);
  font-size:13px;
}
.wallet-summary strong {
  font-size:27px;
  letter-spacing:-.7px;
}
.wallet-summary p {
  font-size:11px;
  margin:10px 0 0;
}
.entry {
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 0;
  border-top:1px solid #e9eef1;
  flex-wrap:wrap;
}
.entry-icon {
  width:42px;
  height:42px;
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e7eef5;
  color:#43637b;
  border-radius:12px;
  font-size:23px;
}
.entry-icon.reward {
  background:#e5f3eb;
  color:#007263;
}
.entry-icon.fine {
  background:#fbece9;
  color:#a44245;
}
.entry-icon.reversal {
  background:#eef0f9;
  color:#666aa0;
}
.entry-main {
  flex:1;
  min-width:140px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.entry-main>strong {
  font-size:14px;
  font-weight:600;
}
.entry-main>span,.entry-main small {
  font-size:12px;
  color:var(--muted);
}
.entry-main small {
  overflow-wrap:anywhere;
}
.entry-value {
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.entry-value strong {
  font-size:17px;
  letter-spacing:-.2px;
}
.entry-value span {
  font-size:11px;
  color:var(--muted);
}
.positive {
  color:var(--teal);
}
.negative {
  color:var(--red);
}
.reverse-control {
  font-size:12px;
}
.reverse-control summary {
  color:var(--muted);
  padding:10px;
}
.reverse-control[open] {
  width:100%;
  border:1px solid var(--line);
  padding:12px;
  border-radius:8px;
}
.reverse-control form {
  display:flex;
  gap:15px;
  align-items:end;
}
.reverse-control label {
  flex:1;
}
.stats-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:18px;
  margin-bottom:25px;
}
.stat {
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  display:flex;
  flex-direction:column;
}
.stat>span {
  font-size:13px;
  color:var(--muted);
}
.stat strong {
  font-size:42px;
  letter-spacing:-1.5px;
  line-height:1.4;
  margin:12px 0 6px;
  font-weight:600;
}
.stat small {
  font-size:12px;
  color:var(--muted);
}
.stat.featured {
  background:var(--navy);
  color:white;
}
.stat.featured span,.stat.featured small {
  color:#c5dae5;
}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.stack-form {
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:20px;
}
.stack-form .button {
  align-self:start;
}
label {
  font-size:13px;
}
label:not(.student-card,.search,.checkbox-label) input:not([type=checkbox]),label select {
  display:block;
  width:100%;
  margin-top:5px;
}
input,select {
  background:white;
  border:1px solid #cbd8df;
  border-radius:7px;
  padding:10px 12px;
  min-height:44px;
  color:var(--ink);
  font-size:16px;
  max-width:100%;
}
input[type=checkbox] {
  accent-color:var(--teal);
  min-height:20px;
  width:20px;
  height:20px;
}
.edit-form {
  display:flex;
  flex-wrap:wrap;
  gap:15px;
  align-items:end;
  margin:20px 0;
}
.edit-form>label {
  flex:1;
  min-width:145px;
}
.edit-form fieldset {
  border:0;
  margin:0;
  padding:0;
}
.checkbox-label {
  display:flex;
  gap:8px;
  align-items:center;
}
.admin-row {
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.admin-row summary {
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.admin-row summary strong {
  font-size:15px;
}
.admin-row summary span {
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.permission {
  padding:15px 0;
  border-bottom:1px solid var(--line);
}
.permission summary {
  min-height:40px;
}
.member-picker {
  max-height:230px;
  overflow:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.member-picker label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
}
.member-picker small {
  color:var(--muted);
}
fieldset {
  border:1px solid var(--line);
  border-radius:8px;
  padding:15px;
}
legend {
  font-size:13px;
}
pre {
  overflow:auto;
  font-size:12px;
  background:var(--bg);
  padding:20px;
  max-height:400px;
}
.filter-bar {
  display:flex;
  gap:15px;
  align-items:end;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:25px;
  font-size:13px;
  margin:25px 0;
}
.empty {
  padding:40px 20px;
  color:var(--muted);
  text-align:center;
}
.notice {
  padding:14px 18px;
  border-radius:9px;
  margin:15px 0;
  font-size:14px;
}
.success {
  background:#def3e7;
  color:#205b43;
  border:1px solid #aed8c2;
}
.error {
  background:#fce9e7;
  color:#8c303b;
  border:1px solid #edc4c3;
}
.login-panel {
  max-width:570px;
  margin:55px auto;
}
.login-panel h1 {
  font-size:54px;
  letter-spacing:-2px;
  margin:20px 0;
}
.lede {
  font-size:18px;
}
.login-card {
  margin-top:36px;
  padding:32px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
}
.login-card h2 {
  font-size:22px;
}
.microsoft {
  width:100%;
  margin:15px 0;
}
.ms-icon {
  font-size:25px;
}
.small {
  font-size:12px;
  line-height:1.7;
  margin:12px 0 0;
}
.demo-options {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:25px;
}
.demo-options>span {
  width:100%;
  font-size:11px;
  letter-spacing:1.5px;
  color:var(--muted);
  margin-bottom:4px;
}
@media(min-width:1600px) {
  .student-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:210px;
  }
  .workspace {
    margin-left:210px;
  }
  main {
    padding:25px;
  }
  .topbar {
    padding:0 25px;
  }
  .student-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .class-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .stat {
    padding:20px;
  }
  .stat strong {
    font-size:34px;
  }
}
/* Keep every admin link reachable while the account/sign-out area stays visible. */
@media(min-width:761px) {
  .sidebar > :not(nav) { flex-shrink:0; }
  .sidebar nav {
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#9fb8c5 transparent;
  }
  .sidebar nav > * { flex-shrink:0; }
}
@media(max-width:760px) {
  .sidebar {
    position:relative;
    width:100%;
    padding:16px 18px;
    display:block;
  }
  .brand {
    font-size:18px;
    line-height:1;
    gap:10px;
    padding:0;
  }
  .brand-light {
    display:inline;
    margin-left:4px;
  }
  .brand-mark {
    height:30px;
    width:31px;
    border-radius:7px;
    font-size:18px;
  }
  .brand-mark span {
    font-size:17px;
  }
  .sidebar>.sidebar-label,.sidebar-foot,.profile {
    display:none;
  }
  .sidebar nav {
    flex-direction:row;
    overflow:auto;
    margin-top:15px;
    gap:5px;
  }
  .sidebar nav a {
    white-space:nowrap;
    padding:10px 12px;
    min-height:44px;
    font-size:12px;
  }
  .sidebar nav a span {
    display:none;
  }
  .sidebar nav .sidebar-label {
    display:none;
  }
  .workspace {
    margin:0;
  }
  .topbar {
    height:45px;
    padding:0 18px;
    font-size:11px;
  }
  .top-status {
    display:none;
  }
  main {
    padding:18px 16px 25px;
  }
  .demo-banner {
    font-size:10px;
    margin-bottom:15px;
  }
  .page-heading {
    margin:15px 0 23px;
    gap:12px;
    align-items:flex-start;
  }
  .page-heading p {
    font-size:13px;
  }
  .page-heading .button {
    font-size:12px;
    padding:10px 12px;
  }
  h1 {
    font-size:30px;
    letter-spacing:-1px;
  }
  .page-heading .pill {
    font-size:10px;
    padding:5px 9px;
  }
  .eyebrow {
    font-size:10px;
  }
  .roster-toolbar {
    gap:4px;
    flex-wrap:wrap;
  }
  .search {
    max-width:none;
    flex-basis:100%;
    margin-bottom:7px;
  }
  .student-grid {
    gap:9px;
  }
  .student-card {
    min-height:130px;
    padding:15px 11px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .student-card .avatar {
    width:32px;
    height:32px;
    min-width:32px;
    font-size:11px;
  }
  .student-info strong {
    font-size:13px;
  }
  .student-info>span {
    font-size:11px;
  }
  .student-info b {
    font-size:13px;
  }
  .selection-check {
    position:absolute;
    right:12px;
    top:16px;
  }
  .transaction-dock {
    bottom:8px;
    padding:15px 12px;
    border-radius:12px;
    margin-top:18px;
    max-height:78vh;
    overflow:auto;
  }
  .dock-top {
    gap:8px;
  }
  .dock-top strong {
    font-size:12px;
  }
  .dock-top small {
    font-size:10px;
  }
  .mode-buttons {
    gap:6px;
  }
  .mode-buttons button {
    min-width:65px;
    padding:10px 12px;
  }
  .category-heading span {
    font-size:10px;
  }
  .category-heading h2 {
    font-size:14px;
  }
  .category-grid {
    gap:7px;
  }
  .category-button {
    padding:12px 9px;
    gap:7px;
  }
  .category-button strong {
    font-size:17px;
  }
  .category-button>span {
    font-size:11px;
  }
  .category-button .arrow {
    display:none;
  }
  .note-field {
    display:block;
  }
  .wallet-grid,.settings-grid {
    grid-template-columns:1fr;
    gap:15px;
  }
  .balance-card {
    min-height:225px;
    padding:25px;
  }
  .big-balance {
    font-size:62px;
  }
  .wallet-summary {
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    padding:14px 18px;
  }
  .wallet-summary>div {
    gap:10px;
  }
  .wallet-summary p {
    width:100%;
    margin:0 0 6px;
  }
  .wallet-summary strong {
    font-size:24px;
  }
  .wallet-summary .entry-icon {
    height:33px;
    width:33px;
    font-size:20px;
  }
  .panel {
    padding:18px 15px;
  }
  .section-heading h2 {
    font-size:17px;
  }
  .section-heading p {
    font-size:11px;
  }
  .text-link {
    font-size:11px;
    white-space:nowrap;
  }
  .entry {
    gap:10px;
    padding:16px 0;
  }
  .entry-icon {
    height:34px;
    width:34px;
    font-size:20px;
    border-radius:9px;
  }
  .entry-main {
    min-width:115px;
  }
  .entry-main>strong {
    font-size:12px;
  }
  .entry-main>span,.entry-main small {
    font-size:10px;
  }
  .entry-value strong {
    font-size:15px;
  }
  .entry-value span {
    font-size:9px;
  }
  .entry-main .separator {
    display:none;
  }
  .stats-grid {
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .stat.featured {
    grid-column:1/-1;
  }
  .stat {
    padding:20px;
  }
  .stat strong {
    font-size:34px;
  }
  .stat small {
    font-size:10px;
  }
  .class-grid {
    grid-template-columns:1fr;
  }
  .class-card {
    padding:22px;
  }
  .class-monogram {
    margin-bottom:17px;
  }
  .class-card .card-bottom {
    margin-top:18px;
  }
  .reverse-control form {
    flex-direction:column;
    align-items:stretch;
  }
  .admin-row summary {
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
  .member-picker {
    grid-template-columns:1fr;
  }
  .edit-form>label {
    min-width:120px;
  }
  .login-panel {
    margin:35px auto;
  }
  .login-panel h1 {
    font-size:44px;
  }
  .login-card {
    padding:24px;
  }
  .login-card h2 {
    font-size:20px;
  }
  footer {
    padding:18px 16px;
    font-size:10px;
  }
  footer span {
    max-width:190px;
    text-align:right;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}
.mobile-logout {
  display:none;
}
@media(max-width:760px) {
  .mobile-logout {
    display:block;
    margin-left:auto;
  }
  .mobile-logout .logout {
    min-width:44px;
  }
}

/* Talents identity: warm metal against the existing navy wallet surface. */
.brand { gap: 9px; padding: 0 2px; }
.brand-logo { width: 52px; height: 52px; flex-shrink: 0; }
.brand-name { font-size: 30px; letter-spacing: -1.1px; font-weight: 700; }
.sidebar-foot { color: #e7c989; font-size: 12px; line-height: 1.6; }
.wallet-logo { width: 56px; height: 56px; }
.login-emblem { display: block; margin: -15px 0 12px; }
.footer-brand { text-align: left; }
@media (max-width: 760px) {
 .brand-logo { width: 39px; height: 39px; }
 .brand-name { font-size: 25px; }
 .login-emblem { width: 76px; height: 76px; }
 footer { gap: 18px; align-items: flex-start; }
 footer .footer-brand { text-align: left; max-width: 190px; }
}

.duty-search label{display:block;margin-bottom:12px}.duty-search label span{display:block;color:var(--muted);margin-top:4px}.duty-search>div{display:flex;gap:10px}.duty-search input{flex:1;min-width:0;min-height:48px}.wallet-actions{display:flex;gap:12px;flex-wrap:wrap}.entry-icon.donation{background:#eaf0fb;color:#305b89}.entry-value small{display:block;color:#667585}.big-balance{font-variant-numeric:tabular-nums}@media(max-width:600px){.wallet-actions{margin-top:12px}.big-balance{font-size:48px}}

.google-login{background:#fff;color:#1f1f1f;border:1px solid #747775;margin-bottom:12px;min-height:48px;border-radius:8px;font-weight:500}

.testing-login-form{margin:20px 0 24px;text-align:left}.testing-login-form .button{width:100%}

.preserve-lines{white-space:pre-line}.shop-card{display:flex;flex-direction:column;gap:8px}.shop-card form{margin-top:auto}.refund-form{max-width:420px}.refund-form form{margin-top:16px}.stack-form textarea{font:inherit;padding:12px;border:1px solid #d2d9dc;border-radius:8px;resize:vertical;max-width:100%}progress{width:100%;height:14px;accent-color:#326c65}#custom-reward-options{margin-top:18px}.class-grid>.panel{min-width:0}

.management-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; border-bottom:1px solid #e2e8ed; }
.management-row:last-child { border-bottom:0; }
.management-row small,.roster-choice small { display:block; margin-top:5px; color:#536b79; }
.management-actions { display:flex; flex-wrap:wrap; gap:8px; }
.roster-choice { display:flex; align-items:center; gap:14px; padding:16px 0; cursor:pointer; }
.roster-choice input { width:22px; height:22px; flex-shrink:0; }
@media(max-width:600px) { .management-row { align-items:flex-start; flex-wrap:wrap; } .management-actions { width:100%; } }

.users-table-scroll { overflow-x:auto; }
.users-table { width:100%; border-collapse:collapse; text-align:left; }
.users-table th,.users-table td { padding:12px; vertical-align:top; }
.users-table thead th { border-bottom:2px solid #e2e8ed; }
.users-table thead a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#112a3b; text-decoration:none; }
.users-table tbody { border-bottom:1px solid #e2e8ed; }
.users-table .user-edit-row td { padding-top:0; }
.user-edit-row summary { cursor:pointer; padding:10px 0; color:#536b79; }
.user-error-dialog { border:0; border-radius:16px; padding:28px; max-width:420px; width:calc(100% - 40px); color:#112a3b; box-shadow:0 18px 70px #112a3b40; }
.user-error-dialog::backdrop { background:#112a3b66; }
.user-error-dialog h2 { margin-top:0; }

.bulk-contribution-form { display:grid; gap:18px; }
.bulk-contribution-form label { display:grid; gap:8px; }
.bulk-contribution-form textarea { display:block; width:100%; min-height:100px; resize:vertical; }
.bulk-contribution-form p { margin:0; }
.bulk-contribution-form button { justify-self:start; min-height:44px; }

.preview-banner { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; margin-bottom:24px; border:1px solid #c99c41; border-radius:12px; background:#fff3d5; color:#49340d; }
.preview-banner p { margin:6px 0 0; font-size:13px; }
.preview-banner form { flex-shrink:0; }
.preview-readonly-fields { display:contents; }
@media(max-width:760px) { .preview-banner { align-items:stretch; flex-direction:column; } }
