:root {
  color-scheme:light;
  --ink:#18231d;
  --muted:#76847b;
  --green:#4c8060;
  --green-dark:#326a48;
  --mint:#a8dfb7;
  --pale:#eaf5ed;
  --line:#e4ece6;
  --bg:#f5f8f5;
  --red:#b63b30;
  --red-bg:#fff1ee;
  --shadow:0 20px 60px rgba(30,55,38,.07);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:radial-gradient(ellipse at 78% 8%,rgba(202,235,210,.38),transparent 27rem),var(--bg);
}
button,input,select {
  font:inherit;
}
button {
  cursor:pointer;
}
.shell {
  width:min(1180px,calc(100% - 64px));
  margin:0 auto;
}
.topbar {
  height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(218,230,221,.8);
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--green-dark);
  text-decoration:none;
  font:800 19px system-ui,sans-serif;
  letter-spacing:-.5px;
}
.brand-mark,.section-icon,.count-icon {
  display:grid;
  place-items:center;
  background:var(--pale);
  color:var(--green-dark);
}
.brand-mark {
  width:42px;
  height:42px;
  border-radius:15px;
}
.brand-mark svg {
  width:27px;
  height:27px;
}
.topbar-right {
  display:flex;
  align-items:center;
  gap:20px;
}
.signed-in {
  font-size:13px;
  color:var(--muted);
}
.text-button {
  border:0;
  background:transparent;
  color:var(--green-dark);
  font-weight:700;
  padding:8px;
}
.login-layout {
  min-height:calc(100vh - 93px);
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(36px,8vw,112px);
  align-items:center;
  padding:72px 0 100px;
}
.intro-card {
  max-width:520px;
}
.eyebrow {
  display:block;
  color:var(--green);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
}
.intro-card h1,.page-heading h1 {
  font:800 clamp(36px,4.8vw,58px)/1.08 system-ui,sans-serif;
  letter-spacing:-2.5px;
  margin:20px 0;
}
.intro-card p,.muted {
  color:var(--muted);
  line-height:1.65;
}
.intro-card p {
  font-size:17px;
  max-width:460px;
}
.intro-note,.footer-note {
  display:flex;
  align-items:center;
  gap:9px;
  color:#65756a;
  font-size:12px;
}
.intro-note {
  margin-top:44px;
}
.status-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#56a56f;
  box-shadow:0 0 0 4px #e3f3e7;
}
.surface {
  background:rgba(255,255,255,.9);
  border:1px solid rgba(221,232,224,.9);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.login-card {
  padding:34px;
  width:min(100%,438px);
  justify-self:end;
}
.section-icon {
  width:46px;
  height:46px;
  border-radius:16px;
}
.section-icon svg {
  width:24px;
  height:24px;
}
.login-card h2,.add-card h2,.list-card h2,.edit-dialog h2 {
  font:700 22px system-ui,sans-serif;
  letter-spacing:-.7px;
  margin:20px 0 4px;
}
.login-card .muted {
  font-size:13px;
  margin:0 0 26px;
}
label {
  display:block;
  font-size:12px;
  font-weight:700;
  margin:17px 0 8px;
}
input {
  height:48px;
  width:100%;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border .15s,box-shadow .15s;
}
input::placeholder {
  color:#a4afa8;
}
input:focus {
  border-color:#80bd91;
  box-shadow:0 0 0 3px rgba(129,191,145,.16);
}
select {
  height:48px;
  width:100%;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border .15s,box-shadow .15s;
}
select:focus {
  border-color:#80bd91;
  box-shadow:0 0 0 3px rgba(129,191,145,.16);
}
.primary-button,.secondary-button {
  min-height:48px;
  border-radius:14px;
  padding:0 17px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  transition:transform .15s,background .15s;
}
.primary-button {
  border:1px solid var(--green);
  background:var(--green);
  color:white;
}
.primary-button:hover {
  background:var(--green-dark);
  transform:translateY(-1px);
}
.secondary-button {
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}
.full-width {
  width:100%;
  margin-top:24px;
}
.notice {
  border-radius:12px;
  padding:12px 14px;
  margin:14px 0;
  font-size:13px;
  line-height:1.5;
}
.notice.error {
  background:var(--red-bg);
  color:var(--red);
}
.notice.success {
  background:#edf8ef;
  color:#39714b;
}
.hidden {
  display:none!important;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:58px 0 31px;
}
.page-heading h1 {
  font-size:40px;
  margin:12px 0 7px;
  letter-spacing:-1.6px;
}
.page-heading .muted {
  margin:0;
  font-size:14px;
}
.count-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 17px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
}
.count-icon {
  width:35px;
  height:35px;
  border-radius:12px;
  font-weight:700;
}
.count-card strong,.count-card span {
  display:block;
}
.count-card strong {
  font:700 19px system-ui,sans-serif;
}
.count-card div span {
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);
  gap:22px;
  align-items:start;
}
.list-card,.add-card {
  padding:27px;
}
.card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:19px;
}
.card-heading h2,.add-card h2 {
  margin:0;
  font-size:19px;
}
.card-heading .muted,.add-card .muted {
  font-size:12px;
  margin:6px 0 0;
}
.icon-button {
  width:38px;
  height:38px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  color:#607167;
  display:grid;
  place-items:center;
}
.icon-button:hover {
  background:var(--pale);
  color:var(--green-dark);
}
.icon-button svg {
  width:18px;
  height:18px;
}
.approval-list {
  display:flex;
  flex-direction:column;
}
.approval-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0;
  border-top:1px solid #edf1ed;
}
.account-counts {
  display:flex;
  gap:10px;
}
.account-counts .count-card {
  min-width:126px;
}
.client-count-icon {
  color:#3d7652;
  background:#eaf5ed;
}
.trainer-count-icon {
  color:#5c6e8d;
  background:#eef2f8;
}
.account-dashboard-grid {
  grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);
}
.account-tools {
  display:flex;
  align-items:center;
  gap:13px;
  margin:0 0 12px;
}
.search-field {
  position:relative;
  display:block;
  flex:1;
  min-width:180px;
  margin:0;
}
.search-field svg {
  position:absolute;
  width:18px;
  height:18px;
  left:14px;
  top:50%;
  color:#849188;
  transform:translateY(-50%);
  pointer-events:none;
}
.search-field input {
  height:43px;
  padding-left:42px;
  font-size:13px;
  background:#fbfdfb;
}
.filter-tabs {
  display:flex;
  align-items:center;
  gap:3px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f7faf7;
}
.filter-tab {
  min-height:32px;
  padding:0 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#76847b;
  font-size:12px;
  font-weight:650;
}
.filter-tab:hover,.filter-tab.active {
  background:#fff;
  color:var(--green-dark);
  box-shadow:0 1px 3px rgba(24,45,30,.08);
}
.account-list {
  display:flex;
  flex-direction:column;
}
.account-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0;
  border-top:1px solid #edf1ed;
}
.account-row-main {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.account-avatar {
  flex:none;
  width:43px;
  height:43px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#34704a;
  background:linear-gradient(145deg,#edf7ef,#dff0e3);
  font-size:16px;
  font-weight:750;
}
.account-avatar.trainer {
  color:#516784;
  background:linear-gradient(145deg,#f0f3f8,#e1e8f2);
}
.account-info {
  min-width:0;
}
.account-name-line {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}
.account-name {
  color:var(--ink);
  font-size:14px;
  font-weight:720;
}
.account-email {
  margin-top:3px;
  color:#66756b;
  font-size:12px;
  overflow-wrap:anywhere;
}
.account-subline {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
}
.account-badge {
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 8px;
  border-radius:8px;
  background:#f2f5f2;
  color:#68766d;
  font-size:10px;
  font-weight:650;
}
.account-badge.client {
  background:#eaf5ed;
  color:#39734d;
}
.account-badge.trainer {
  background:#eef2f8;
  color:#566b8a;
}
.account-badge.pending {
  background:#fff5e8;
  color:#986e2e;
}
.account-badge.admin {
  background:#f3effb;
  color:#745b9d;
}
.account-meta {
  display:block;
  margin-top:6px;
  color:#849188;
  font-size:10px;
}
.account-actions {
  display:flex;
  align-items:center;
  gap:7px;
  flex:none;
}
.account-actions .small-button {
  min-height:35px;
  font-size:11px;
}
.account-actions .small-button:disabled {
  opacity:.45;
  cursor:not-allowed;
}
.account-add-card .field-hint {
  margin:8px 0 0;
  color:#849188;
  font-size:11px;
  line-height:1.5;
}
.account-add-card label:not(:first-child) {
  margin-top:14px;
}
.section-divider {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:32px 2px 15px;
  color:#617166;
  font-size:12px;
  font-weight:750;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.section-divider::after {
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
}
.section-count {
  order:1;
  flex:none;
  color:#849188;
  font-size:11px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
}
.approval-dashboard-grid {
  grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);
}
.approval-main {
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.avatar {
  flex:none;
  width:39px;
  height:39px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:var(--green-dark);
  background:linear-gradient(145deg,#edf7ef,#dff0e3);
  font-weight:700;
  font-size:14px;
}
.approval-info {
  min-width:0;
}
.approval-email {
  font-size:14px;
  font-weight:700;
  overflow-wrap:anywhere;
}
.approval-date {
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}
.row-actions {
  display:flex;
  gap:7px;
  flex:none;
}
.small-button {
  height:34px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:#5b6b60;
  font-weight:600;
  font-size:11px;
}
.small-button:hover {
  background:var(--pale);
  color:var(--green-dark);
}
.small-button.danger {
  color:#a8493f;
}
.small-button.danger:hover {
  background:var(--red-bg);
}
.empty-state {
  padding:42px 18px;
  text-align:center;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}
.empty-state strong {
  color:var(--ink);
  font:700 16px system-ui,sans-serif;
}
.empty-mark {
  font-size:25px;
  color:var(--green);
  margin-bottom:4px;
}
.add-card {
  position:sticky;
  top:24px;
}
.plus-icon {
  margin-bottom:19px;
}
.add-card p {
  font-size:12px;
  margin:8px 0 20px;
}
.add-card label {
  margin-top:0;
}
.add-card .primary-button {
  margin-top:14px;
}
.tip-box {
  display:flex;
  gap:10px;
  background:#f4f8f4;
  border-radius:13px;
  padding:12px;
  margin-top:20px;
  color:#718077;
}
.tip-box>span {
  width:18px;
  height:18px;
  flex:none;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#dceee0;
  color:var(--green-dark);
  font-size:11px;
  font-weight:700;
}
.tip-box p {
  font-size:11px;
  line-height:1.55;
  margin:0;
}
.footer-note {
  padding:25px 4px;
  font-size:11px;
}
.footer-separator {
  color:#bcc8be;
}
.edit-dialog {
  width:min(440px,calc(100% - 32px));
  border:1px solid var(--line);
  border-radius:22px;
  padding:27px;
  box-shadow:0 28px 90px rgba(20,40,28,.25);
  color:var(--ink);
}
.edit-dialog::backdrop {
  background:rgba(25,39,30,.42);
  backdrop-filter:blur(3px);
}
.edit-dialog form {
  margin:0;
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.close-button {
  font-size:22px;
}
.edit-dialog h2 {
  margin:18px 0 5px;
}
.edit-dialog .muted {
  font-size:12px;
  margin:0 0 19px;
}
.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:18px;
}
.dialog-actions button {
  min-width:104px;
}
.edit-dialog input {
  margin-top:4px;
}
@media(max-width:760px) {
  .shell {
    width:min(100% - 32px,560px);
  }
  .topbar {
    height:72px;
  }
  .login-layout {
    grid-template-columns:1fr;
    gap:28px;
    padding:34px 0 56px;
    align-content:center;
  }
  .intro-card h1 {
    font-size:39px;
    letter-spacing:-1.7px;
    margin:14px 0;
  }
  .intro-card p {
    font-size:14px;
  }
  .intro-note {
    margin-top:20px;
  }
  .login-card {
    justify-self:stretch;
    padding:24px;
  }
  .page-heading {
    padding:36px 0 22px;
    align-items:flex-start;
    gap:20px;
  }
  .page-heading h1 {
    font-size:32px;
  }
  .page-heading .muted {
    font-size:12px;
    max-width:340px;
  }
  .count-card {
    padding:9px 10px;
    gap:8px;
  }
  .count-icon {
    width:30px;
    height:30px;
  }
  .count-card div span {
    max-width:78px;
    line-height:1.25;
  }
  .dashboard-grid {
    grid-template-columns:1fr;
    gap:14px;
  }
  .account-counts {
    align-self:stretch;
  }
  .account-counts .count-card {
    min-width:0;
    flex:1;
  }
  .account-tools {
    align-items:stretch;
    flex-direction:column;
    gap:9px;
  }
  .search-field {
    min-width:0;
  }
  .filter-tabs {
    align-self:flex-start;
  }
  .account-row {
    align-items:flex-start;
    gap:10px;
  }
  .account-actions {
    gap:5px;
  }
  .account-actions .small-button {
    padding:0 9px;
  }
  .section-divider {
    margin-top:24px;
  }
  .list-card,.add-card {
    padding:21px;
  }
  .add-card {
    position:static;
  }
  .approval-row {
    gap:8px;
  }
  .approval-email {
    font-size:12px;
  }
  .row-actions {
    gap:5px;
  }
  .small-button {
    height:32px;
    padding:0 8px;
    font-size:10px;
  }
  .footer-note {
    flex-wrap:wrap;
  }
  .signed-in {
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
  }
}
@media(max-width:390px) {
  .shell {
    width:calc(100% - 24px);
  }
  .page-heading {
    flex-direction:column;
    align-items:stretch;
  }
  .count-card {
    align-self:flex-start;
  }
  .approval-row {
    align-items:flex-start;
    flex-direction:column;
  }
  .account-row {
    flex-direction:column;
  }
  .account-actions {
    align-self:flex-end;
  }
  .row-actions {
    align-self:flex-end;
  }
  .login-card {
    padding:20px;
  }
}
