.tmp-portal {
  --tmp-ink: #17171b;
  --tmp-muted: #62636b;
  --tmp-surface: #ffffff;
  --tmp-line: #e4ddd2;
  --tmp-burgundy: #8f1737;
  --tmp-navy: #18324a;
  --tmp-teal: #0f766e;
  --tmp-gold: #d69b24;
  color: var(--tmp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tmp-portal *,
.tmp-portal *::before,
.tmp-portal *::after {
  box-sizing: border-box;
}

.tmp-portal h2,
.tmp-portal h3,
.tmp-portal p {
  margin-top: 0;
}

.tmp-eyebrow {
  margin: 0 0 8px;
  color: var(--tmp-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tmp-panel,
.tmp-login-card {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--tmp-line);
  border-radius: 8px;
  background: var(--tmp-surface);
  box-shadow: 0 10px 30px rgba(23, 23, 27, 0.06);
}

.tmp-login-card {
  margin-top: 24px;
}

.tmp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tmp-grid .tmp-panel {
  margin: 0;
}

.tmp-progress-card {
  grid-row: span 2;
}

.tmp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tmp-card-head span {
  color: var(--tmp-teal);
  font-weight: 900;
}

.tmp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.tmp-primary {
  background: var(--tmp-burgundy);
  color: white;
}

.tmp-secondary {
  border-color: var(--tmp-line);
  background: white;
  color: var(--tmp-ink);
}

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

.tmp-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.tmp-form input,
.tmp-form select,
.tmp-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdc5b8;
  border-radius: 8px;
  color: var(--tmp-ink);
  background: white;
  font: inherit;
}

.tmp-form textarea {
  resize: vertical;
}

.tmp-wide {
  grid-column: 1 / -1;
}

.tmp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tmp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.tmp-table th,
.tmp-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--tmp-line);
  text-align: left;
  vertical-align: top;
}

.tmp-table th {
  color: var(--tmp-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.tmp-row-actions {
  display: flex;
  gap: 8px;
}

.tmp-small-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--tmp-line);
  border-radius: 8px;
  background: white;
  color: var(--tmp-ink);
  font-weight: 800;
  cursor: pointer;
}

.tmp-danger {
  color: var(--tmp-burgundy);
}

.tmp-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e0d8;
}

.tmp-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tmp-teal), var(--tmp-gold));
}

.tmp-levels {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.tmp-levels li {
  padding: 12px;
  border-radius: 8px;
  background: #f6f1e9;
  color: var(--tmp-muted);
}

.tmp-levels .tmp-done {
  color: var(--tmp-teal);
  font-weight: 800;
}

.tmp-levels .tmp-active {
  border: 1px solid rgba(143, 23, 55, 0.34);
  color: var(--tmp-burgundy);
  font-weight: 800;
  background: #fff2f4;
}

.tmp-profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tmp-profile-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tmp-line);
}

.tmp-profile-list dt {
  color: var(--tmp-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tmp-profile-list dd {
  margin: 0;
  font-weight: 750;
}

.tmp-agenda {
  display: grid;
  gap: 14px;
}

.tmp-agenda-card {
  padding: 16px;
  border: 1px solid var(--tmp-line);
  border-radius: 8px;
  background: #fffaf2;
}

.tmp-agenda-card h4 {
  margin: 0 0 8px;
}

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

.tmp-assignment-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: white;
}

.tmp-status {
  margin: 10px auto 0;
  width: min(1120px, 100%);
  color: var(--tmp-muted);
}

.tmp-inline-status {
  align-self: center;
  color: var(--tmp-muted);
  font-weight: 750;
}

@media (max-width: 820px) {
  .tmp-grid,
  .tmp-form {
    grid-template-columns: 1fr;
  }

  .tmp-progress-card {
    grid-row: auto;
  }

  .tmp-button {
    width: 100%;
  }
}
