.portal-login {
  max-width: 28rem;
  margin: 0 auto;
  background: #fff;
  border-top: 4px solid #0b2545;
  padding: 1.5rem 1.4rem;
}

.portal-login h2 {
  font-family: Oswald, sans-serif;
  color: #0b2545;
  margin: 0 0 0.5rem;
}

.portal-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.portal-hello {
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
  color: #0b2545;
  margin: 0;
}

.portal-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.portal-stat {
  background: #fff;
  border-top: 3px solid #d4a017;
  padding: 0.9rem 1rem;
}

.portal-stat strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 1.6rem;
  color: #0b2545;
}

.portal-stat span {
  font-size: 0.85rem;
  color: #475569;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 1rem 0;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.portal-tabs a {
  color: #0b2545;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}

.portal-tabs a:hover {
  border-bottom-color: #d4a017;
}

.portal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.portal-tools a {
  font-size: 0.82rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0b2545;
  background: #f1f5f9;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
}

.portal-section {
  margin: 2rem 0 2.5rem;
  scroll-margin-top: 1rem;
}

.portal-section h2 {
  font-family: Oswald, sans-serif;
  color: #0b2545;
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}

.rule-card {
  background: #fff;
  border-top: 3px solid #94a3b8;
  padding: 0.9rem 1rem;
}

.rule-card.done { border-top-color: #166534; }
.rule-card.doing { border-top-color: #d4a017; }

.rule-card h3 {
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: #0b2545;
}

.rule-card .tip {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 0.7rem;
}

.rule-card .rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.rule-card select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.pill-mini {
  display: inline-block;
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: #e2e8f0;
  color: #0b2545;
}

.pill-mini.done { background: #bbf7d0; }
.pill-mini.doing { background: #fde68a; }

@media (max-width: 700px) {
  .portal-stats { grid-template-columns: 1fr; }
}
