:root {
  --bg: #f2f7f4;
  --card: #ffffff;
  --line: #d5e4db;
  --text: #1f2a25;
  --muted: #557266;
  --brand: #2d8f6d;
  --brand-strong: #1b6f53;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #edf5f0 0%, #f7fbf9 100%);
  color: var(--text);
}

.shell {
  width: min(1080px, 94vw);
  margin: 24px auto 48px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.topbar h1 {
  margin: 4px 0 2px;
  font-size: 1.55rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(36, 77, 58, 0.08);
}

.auth {
  max-width: 460px;
}

.auth-block + .auth-block {
  margin-top: 12px;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid #bfd6c9;
  background: #fbfdfc;
}

button {
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--brand-strong);
}

button.ghost {
  background: transparent;
  border: 1px solid #b8d3c4;
  color: #355848;
}

.actions,
.inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e5eee8;
  padding: 10px 8px;
  font-size: 0.92rem;
}

th {
  color: #3f5a4f;
  font-weight: 700;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.error {
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .portal-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .inline-actions {
    width: 100%;
  }
}
