:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #17211d;
  background: #f8f4ea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  color: #fff;
  background: #06261d;
}
.brand {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.18em;
  font-size: 22px;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: #d8b45b;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-align: center;
}
.main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}
.panel {
  padding: 24px;
  border: 1px solid #ded6c4;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 14px 36px rgba(12, 43, 33, 0.08);
}
.auth {
  width: min(460px, calc(100% - 32px));
  margin: 10vh auto;
}
h1,
h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: #123f31;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
}
h2 {
  font-size: 24px;
}
.muted {
  color: #63706a;
  line-height: 1.5;
}
.grid {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  color: #344a41;
  font-size: 13px;
  font-weight: 700;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfc7b5;
  border-radius: 10px;
  color: #17211d;
  background: #fff;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(202, 158, 55, 0.23);
  border-color: #b88a22;
}
.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: #0b4938;
}
.button.secondary {
  border: 1px solid #0b4938;
  color: #0b4938;
  background: transparent;
}
.button.danger {
  background: #873b2c;
}
.button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.tenant-list {
  display: grid;
  gap: 12px;
}
.tenant {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2dbc9;
  border-radius: 14px;
  background: #fff;
}
.tenant strong {
  display: block;
  color: #123f31;
}
.tenant small {
  color: #6a746f;
}
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #144c3b;
  background: #e5efe9;
  font-size: 12px;
  font-weight: 800;
}
.badge.suspended,
.badge.past_due {
  color: #783929;
  background: #f6e3dc;
}
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  color: #644e11;
  background: #fff1c8;
}
.error {
  padding: 12px 14px;
  border-radius: 10px;
  color: #782f24;
  background: #f9ddd7;
}
.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: 800px) {
  .form-grid,
  .tenant {
    grid-template-columns: 1fr;
  }
  .heading-row {
    align-items: start;
    flex-direction: column;
  }
  .topbar {
    padding: 14px 16px;
  }
}
