:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172625;
  background: #f3f4ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 20rem; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.6; }
:focus-visible { outline: 3px solid #167b75; outline-offset: 3px; }

.account-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 15% 20%, rgb(180 220 207 / 35%), transparent 35rem),
    radial-gradient(circle at 90% 85%, rgb(237 211 164 / 30%), transparent 32rem),
    #f3f4ef;
}

.account-card {
  width: min(100%, 27rem);
  padding: 2.25rem;
  border: 1px solid #dfe3db;
  border-radius: 1.25rem;
  background: rgb(255 255 252 / 94%);
  box-shadow: 0 1.5rem 4rem rgb(34 55 47 / 9%);
}

.account-brand {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.75rem;
  place-items: center;
  border-radius: 0.8rem;
  background: #175f5b;
  color: white;
  font-size: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #44716b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

h1, h2 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 6vw, 2.3rem); }
h2 { font-size: 1.25rem; }
.account-intro { margin: 0.8rem 0 1.75rem; color: #63716d; line-height: 1.55; }
.account-form { display: grid; gap: 0.65rem; }
.account-form label { margin-top: 0.45rem; font-size: 0.88rem; font-weight: 650; }
.account-form input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #cdd5cf;
  border-radius: 0.55rem;
  background: #fff;
  color: #172625;
}
.account-form input:focus { border-color: #367d75; box-shadow: 0 0 0 3px rgb(54 125 117 / 12%); outline: 0; }

.primary-button, .outline-button, .delete-user {
  min-height: 2.75rem;
  border-radius: 0.55rem;
  font-weight: 650;
}
.primary-button { margin-top: 0.65rem; border: 1px solid #175f5b; background: #175f5b; color: white; }
.primary-button:hover:not(:disabled) { background: #104d49; }
.outline-button { padding-inline: 1rem; border: 1px solid #cdd5cf; background: transparent; color: #344d48; }
.outline-button:hover { background: #e9eee8; }
.secondary-link { display: block; margin-top: 1.4rem; color: #366e68; font-size: 0.88rem; text-align: center; text-underline-offset: 0.2rem; }
.form-status { min-height: 1.25rem; margin: 0.25rem 0 0; color: #a33131; font-size: 0.85rem; line-height: 1.45; }
.form-status.is-success, #users-status { color: #276b51; }
.field-hint { margin: -0.25rem 0 0.25rem; color: #72807b; font-size: 0.76rem; line-height: 1.4; }

.admin-shell { display: block; padding: clamp(1rem, 4vw, 3rem); }
.admin-shell > .account-card { margin: min(12vh, 7rem) auto 0; }
.admin-panel { width: min(100%, 70rem); margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.admin-header .account-intro { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.5fr); align-items: start; gap: 1.5rem; }
.admin-grid .account-card { width: 100%; box-shadow: none; }
.users-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.user-count { display: grid; min-width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 1rem; background: #edf1ec; color: #56706a; font-size: 0.8rem; }
.user-table-wrap { margin-top: 0.75rem; overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.user-table th { color: #71807a; font-size: 0.72rem; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.user-table th, .user-table td { padding: 0.85rem 0.5rem; border-bottom: 1px solid #e8ebe5; }
.user-table td:last-child, .user-table th:last-child { text-align: right; }
.delete-user { min-height: 2rem; padding: 0.25rem 0.65rem; border: 1px solid #e1caca; background: transparent; color: #a33131; font-size: 0.78rem; }
.delete-user:hover { background: #fff0ee; }
.empty-users { margin: 2rem 0 1rem; color: #72807b; text-align: center; }
.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: 48rem) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-header { align-items: flex-start; }
}
@media (max-width: 30rem) {
  .account-shell { padding: 0.75rem; }
  .account-card { padding: 1.5rem; }
  .admin-shell > .account-card { margin-top: 2rem; }
}
