:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f7;
  color: #18212f;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)),
    #eef2f7;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #14635b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  border: 1px solid #b8c4d4;
  background: #fff;
  color: #263445;
}

.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.login-view {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 56px;
}

.brand-block h1,
.topbar h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 8px;
  color: #14635b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: #637083;
}

.login-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 33, 47, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: #344254;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8c4d4;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #18212f;
}

.form-error {
  margin: 0;
  color: #a33b2a;
  font-size: 14px;
}

.admin-view {
  display: grid;
  gap: 18px;
}

.topbar,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #d7dee8;
}

.tabs button {
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #344254;
}

.tabs button[aria-pressed="true"] {
  background: #14635b;
  color: #fff;
}

.panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
}

.panel h2,
.panel h3 {
  margin: 0;
}

.user-grid,
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-grid div,
.columns section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
}

dt {
  color: #637083;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-weight: 700;
}

.list,
.tag-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.list li,
.tag-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #f4f7fb;
  padding: 9px 10px;
}

.list.compact li {
  font-size: 13px;
}

.tag-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .login-view,
  .user-grid,
  .columns,
  .columns.three {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
