body {
  margin: 0;
  background: #f4f6f8;
  color: #1d2733;
  font-family: "Segoe UI", Arial, sans-serif;
}

.shell {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 18px;
}

header {
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

p {
  margin: 0 0 10px;
}

.helper,
.field-help {
  color: #526173;
  font-size: 14px;
  line-height: 1.45;
}

.field-help {
  margin-top: -2px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 20px;
}

.feedback-panel {
  align-items: center;
  border-color: #9cb8e8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.feedback-panel h2 {
  margin-bottom: 6px;
}

label {
  display: block;
  font-weight: 650;
  margin: 14px 0 6px;
}

input,
select,
button {
  box-sizing: border-box;
  font: inherit;
}

input[type="file"],
input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  border: 1px solid #b9c3cf;
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

button,
.button {
  display: inline-block;
  margin-top: 16px;
  border: 0;
  border-radius: 6px;
  background: #1463d9;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.button.disabled,
button:disabled {
  background: #a7b0bb;
  color: #f8fafc;
  cursor: not-allowed;
}

.feedback-button {
  background: #0f766e;
  white-space: nowrap;
}

.feedback-button.disabled {
  background: #a7b0bb;
  color: #f8fafc;
  cursor: not-allowed;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .button {
  margin-top: 0;
}

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

th,
td {
  border-bottom: 1px solid #e6ebf0;
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.status {
  font-weight: 750;
}

.muted {
  color: #657386;
}

.portal-shell {
  max-width: 1120px;
}

.portal-header {
  margin-bottom: 28px;
}

.eyebrow {
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.portal-subtitle {
  color: #526173;
  font-size: 17px;
  line-height: 1.5;
  max-width: 680px;
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.module-card {
  background: #ffffff;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  min-height: 210px;
  padding: 18px;
}

.module-card-ready {
  border-color: #94b9ff;
}

.module-card-disabled {
  background: #f9fafb;
  color: #677487;
}

.module-card h2 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.module-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.module-card p {
  color: #526173;
  line-height: 1.5;
}

.module-card-topline {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-path {
  color: #657386;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 8px;
  white-space: nowrap;
}

.status-pill.ready {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill.soon {
  background: #e7ecef;
  color: #526173;
}

.auth-shell {
  max-width: 520px;
}

.form-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  padding: 10px;
}

.module-section {
  margin-bottom: 28px;
}

.module-section > h2 {
  color: #334155;
  margin: 0 0 12px;
}

.permission-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 12px;
}

@media (max-width: 640px) {
  .feedback-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-card {
    min-height: auto;
  }
}
