body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1020, #101931);
  color: #e8ecf4;
}

.portal-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.portal-header h1 {
  margin-bottom: 8px;
}

.portal-header p,
.muted {
  color: #9fb0cc;
}

.header-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.panel {
  background: rgba(20, 28, 51, 0.96);
  border: 1px solid #24314f;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.panel.nested {
  margin-bottom: 0;
  background: #111a31;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #91a3c4;
  margin-bottom: 12px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compact-grid {
  gap: 12px;
}

.portal-sections {
  margin-top: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat,
.list-card {
  background: #0f1730;
  border: 1px solid #2d3f63;
  border-radius: 12px;
  padding: 12px;
}

.stat span,
.list-card small {
  display: block;
  color: #8fa3c9;
  font-size: 12px;
}

.stat strong,
.list-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.list-card span {
  display: block;
  margin-top: 6px;
  color: #d9e4ff;
}

input, textarea, button {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #31415f;
  background: #0f1730;
  color: #eef4ff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  background: #5b7cff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #24314f;
}

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

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #22304d;
  font-size: 14px;
}

th {
  color: #9db0d3;
  font-weight: 600;
}

.empty {
  color: #90a3c7;
}

@media (max-width: 800px) {
  .grid.two,
  .portal-header {
    grid-template-columns: 1fr;
    display: grid;
  }
}
