@charset "UTF-8";
:root {
  color-scheme:light;
  --ink:#26352f;
  --muted:#69766f;
  --paper:#faf9f5;
  --white:#fff;
  --line:#e1e5dc;
  --green:#2b5140;
  --yellow:#f7ca57;
  --red:#9b3e32;
  --radius:12px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:15px;
  color:var(--ink);
  background:var(--paper);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
}

button,input {
  font:inherit;
}

button,a,input,summary {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  text-underline-offset:3px;
}

h1,h2,h3,h4,p {
  margin:0;
}

h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:46px;
  line-height:1.12;
  letter-spacing:-1.4px;
}

h2 {
  font-size:18px;
  font-weight:600;
}

h3 {
  font-size:17px;
}

h4 {
  font-size:15px;
  font-weight:600;
  overflow-wrap:anywhere;
}

p {
  line-height:1.6;
}

label {
  font-size:13px;
  font-weight:600;
}

input:not([type=checkbox]) {
  min-width:0;
  min-height:43px;
  border:1px solid #cbd3c8;
  border-radius:7px;
  padding:10px 12px;
  background:var(--white);
  color:var(--ink);
}

input:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #cb9a19;
  outline-offset:3px;
}

input::placeholder {
  color:#778078;
}

form {
  margin:0;
}

.site-header {
  height:100px;
  max-width:1240px;
  padding:0 44px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.6px;
}

.brand small {
  display:block;
  font-size:9px;
  letter-spacing:2px;
  font-weight:600;
  margin-top:5px;
}

.sun {
  color:#ba8616;
  font-size:43px;
  line-height:1;
}

.header-note {
  font-family:Georgia,serif;
  font-style:italic;
  color:var(--muted);
  font-size:17px;
}

main {
  max-width:1240px;
  margin:auto;
  padding:46px 44px 30px;
  min-height:calc(100vh - 177px);
}

footer {
  max-width:1152px;
  margin:0 auto;
  border-top:1px solid var(--line);
  padding:24px 0;
  font-size:12px;
  color:var(--muted);
}

footer>span {
  margin:0 8px;
}

.footer-right {
  float:right;
}

.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--green);
  margin-bottom:13px;
}

.lead {
  color:var(--muted);
  font-size:15px;
  margin-top:15px;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:32px;
}

.button {
  border:1px solid #d6ddd2;
  border-radius:7px;
  padding:11px 15px;
  min-height:43px;
  text-decoration:none;
  background:white;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

.button:hover {
  background:#f0f3ed;
  border-color:#aab9a7;
}

.button.primary {
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}

.button.primary:hover {
  background:#1e3c2f;
}

.button.discord {
  background:#5865f2;
  color:white;
  border-color:#5865f2;
}

.button.discord:hover {
  background:#4550d4;
}

.button.small {
  padding:8px 11px;
  min-height:35px;
  font-size:12px;
}

.button.quiet {
  background:transparent;
  border-color:transparent;
}

.button.danger {
  background:var(--red);
  color:white;
  border-color:var(--red);
}

.danger-text {
  color:var(--red);
}

.wide {
  width:100%;
}

.dashboard-grid {
  display:grid;
  grid-template-columns:1fr 1fr 2.15fr;
  gap:16px;
  margin-bottom:38px;
}

.stat,.add-panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:23px;
  background:white;
}

.stat {
  display:flex;
  flex-direction:column;
}

.stat-label {
  font-size:12px;
  color:var(--muted);
}

.stat strong {
  font-family:Georgia,serif;
  font-size:43px;
  font-weight:400;
  margin:10px 0;
}

.stat-caption {
  font-size:11px;
  color:var(--muted);
  line-height:1.5;
}

.dot {
  display:inline-block;
  background:#4e7950;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-right:4px;
}

.add-panel {
  background:#f0f2e7;
  scroll-margin-top:20px;
}

.add-panel h2 {
  font-family:Georgia,serif;
  font-size:22px;
  font-weight:400;
  margin-bottom:20px;
}

.add-panel label {
  display:block;
  margin-bottom:7px;
}

.input-row {
  display:flex;
  gap:8px;
}

.input-row input {
  flex:1;
  width:100%;
}

.directory-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:22px;
}

.count {
  display:inline-block;
  font-size:12px;
  background:#eaece4;
  border-radius:15px;
  padding:4px 9px;
  margin-left:7px;
  vertical-align:middle;
}

.search {
  display:flex;
  align-items:center;
  gap:8px;
}

.search input {
  width:260px;
}

.text-link {
  font-size:12px;
}

.group-label {
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--muted);
  padding:13px 2px;
}

.member-list {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  overflow:hidden;
  margin-bottom:17px;
}

.member-card {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  padding:22px 24px;
  border-bottom:1px solid var(--line);
  scroll-margin-top:20px;
}

.member-card:last-child {
  border-bottom:none;
}

.member-card:target {
  background:#fffbec;
}

.member-main {
  display:flex;
  gap:15px;
  align-items:center;
  min-width:0;
}

.avatar {
  height:42px;
  width:42px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf0df;
  color:#617342;
  border-radius:50%;
  font-family:Georgia,serif;
  font-size:20px;
}

.muted-avatar {
  background:#f0f0ec;
  color:#858a80;
}

.discord-name {
  font-size:13px;
  margin-top:5px;
  overflow-wrap:anywhere;
}

.muted {
  color:var(--muted);
}

.member-date {
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}

.member-controls {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:13px;
  justify-content:center;
}

.badge {
  font-size:10px;
  font-weight:600;
  border-radius:5px;
  padding:5px 8px;
  display:inline-block;
}

.linked {
  color:#315c3e;
  background:#eaf2e7;
}

.pending {
  color:#85641a;
  background:#fbf1d4;
}

.inactive {
  color:#74796e;
  background:#eeefe9;
}

.actions {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.edit-email {
  grid-column:1/-1;
  margin-left:57px;
}

.edit-email summary {
  font-size:11px;
  cursor:pointer;
  color:var(--muted);
  width:fit-content;
}

.edit-email form {
  max-width:520px;
  padding:14px 0 4px;
}

.edit-email label {
  display:block;
  margin-bottom:7px;
}

.edit-email .fine-print {
  margin-top:7px;
}

.directory-note {
  text-align:center;
}

.notice {
  border-radius:8px;
  padding:15px 18px;
  margin-bottom:24px;
  line-height:1.6;
  font-size:14px;
  background:#eaf2e7;
  color:#315c3e;
  border:1px solid #d1e1cc;
  overflow-wrap:anywhere;
}

.notice.error {
  background:#fff1eb;
  color:#8a3e30;
  border-color:#ebcfc3;
}

.center-card {
  max-width:480px;
  margin:35px auto 65px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:40px;
}

.center-card h1 {
  font-size:38px;
}

.center-card .lead {
  margin-bottom:25px;
}

.center-card>p+p {
  margin-top:14px;
}

.stack {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.stack .primary {
  margin-top:6px;
}

.fine-print {
  font-size:12px;
  color:var(--muted);
  line-height:1.65;
  margin-top:22px;
}

.welcome-card {
  text-align:center;
  max-width:530px;
}

.welcome-sun {
  font-size:75px;
  line-height:1.2;
  color:#d09a26;
  margin-bottom:20px;
}

.steps {
  list-style:none;
  padding:0;
  margin:27px 0;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  font-size:13px;
  color:var(--muted);
}

.steps li {
  display:flex;
  align-items:center;
  gap:9px;
}

.steps li>span {
  display:inline-flex;
  border-radius:50%;
  background:#f0f1eb;
  height:24px;
  width:24px;
  align-items:center;
  justify-content:center;
  font-size:11px;
}

.steps .current {
  color:var(--green);
}

.steps .current>span {
  background:#e4eddc;
}

.success-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  margin:0 auto 25px;
  border-radius:50%;
  background:#eaf2e7;
  color:var(--green);
  font-size:30px;
}

.connected-account {
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px;
  background:#f7f8f3;
  border:1px solid var(--line);
  border-radius:9px;
  margin:22px 0;
  text-align:left;
}

.connected-account>div {
  flex:1;
  overflow-wrap:anywhere;
  min-width:0;
}

.connected-account strong {
  font-size:14px;
}

.connected-account div>span {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
}

.checkbox {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:400;
  line-height:1.5;
  margin:14px 0;
}

.checkbox input {
  margin-top:4px;
}

.empty-state {
  text-align:center;
  padding:65px 20px;
  background:white;
  border:1px dashed #d1d9ca;
  border-radius:12px;
}

.empty-state h3 {
  margin:17px 0 8px;
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:400;
}

.empty-state p {
  color:var(--muted);
  max-width:390px;
  margin:auto;
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  margin-top:25px;
  font-size:13px;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:1050px) {
  .dashboard-grid {
    grid-template-columns:1fr 1fr;
  }
  .add-panel {
    grid-column:1/-1;
  }
  .search input {
    width:210px;
  }
  footer {
    margin:0 44px;
  }
}

@media(max-width:650px) {
  .site-header {
    height:85px;
    padding:0 20px;
  }
  .brand {
    font-size:18px;
  }
  .brand small {
    font-size:8px;
  }
  .header-note {
    display:none;
  }
  main {
    padding:28px 20px;
  }
  .page-heading {
    align-items:flex-start;
  }
  h1 {
    font-size:36px;
  }
  .page-heading>.button {
    font-size:12px;
    padding:10px;
  }
  .page-heading .lead {
    font-size:13px;
  }
  .dashboard-grid {
    gap:10px;
    margin-bottom:25px;
  }
  .stat,.add-panel {
    padding:18px;
  }
  .stat-label {
    font-size:11px;
  }
  .stat strong {
    font-size:35px;
  }
  .stat-caption {
    font-size:10px;
  }
  .directory-toolbar {
    align-items:stretch;
    flex-direction:column;
  }
  .search input {
    width:100%;
    flex:1;
  }
  .member-card {
    padding:18px 16px;
    grid-template-columns:1fr;
  }
  .member-controls {
    align-items:flex-start;
    margin-left:57px;
    gap:10px;
  }
  .member-main {
    align-items:flex-start;
  }
  .member-main h4 {
    font-size:14px;
  }
  .edit-email {
    margin-top:4px;
  }
  .center-card {
    padding:28px 22px;
    margin:15px auto 40px;
  }
  .center-card h1 {
    font-size:34px;
  }
  .input-row {
    flex-wrap:wrap;
  }
  .add-panel .input-row>.button {
    width:100%;
  }
  .connected-account {
    padding:12px;
    gap:8px;
  }
  .connected-account .badge {
    display:none;
  }
  footer {
    margin:0 20px;
    font-size:10px;
  }
  .footer-right {
    float:none;
    display:block;
    margin:10px 0 0;
  }
  .actions .button {
    font-size:11px;
  }
  .header-note {
    font-size:13px;
  }
}
