:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --ink: #142235;
  --muted: #65748a;
  --line: #d5dee8;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --gold: #c99612;
  --soft: #e8eef5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: #13202d;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 20px;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.shell {
  width: min(1320px, calc(100vw - 40px));
  margin: 24px auto 52px;
  display: grid;
  gap: 22px;
}

.summary-band,
.panel,
.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f5f1;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-header.compact {
  margin-bottom: 14px;
}

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

.module-card {
  min-height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.module-card p {
  color: var(--muted);
  line-height: 1.5;
}

.module-card a,
button {
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 10px 13px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.module-card a {
  margin-top: auto;
  text-align: center;
}

button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.module-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-topline strong {
  color: var(--brand-dark);
  background: #e8f5f1;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(460px, 1.2fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.hierarchy-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.role-list {
  display: grid;
  gap: 8px;
}

.role-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.role-row:first-child {
  border-top: 0;
}

.role-row span,
.muted {
  color: var(--muted);
}

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

.subscription-grid div {
  padding: 14px;
  border-radius: 7px;
  background: var(--soft);
}

.subscription-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(430px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: #42536a;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  font: inherit;
}

.error-text {
  margin-top: 14px;
  color: #b42318;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .subscription-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar,
  .summary-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}
