/* ICGAB Portal */
.icgab-portal {
  --icgab-green: #0b5c3b;
  --icgab-red: #9b1c1c;
  --icgab-ink: #1a1a1a;
  --icgab-muted: #5a5a5a;
  --icgab-line: #e2e8e4;
  --icgab-bg: #f7faf8;
  max-width: 960px;
  margin: 0 auto 2rem;
  color: var(--icgab-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.icgab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--icgab-green);
}
.icgab-nav a {
  color: var(--icgab-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.icgab-nav a:hover { text-decoration: underline; }
.icgab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.icgab-card {
  background: var(--icgab-bg);
  border: 1px solid var(--icgab-line);
  padding: 1rem 1.1rem;
  border-radius: 4px;
}
.icgab-card .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--icgab-muted);
  margin-bottom: 0.35rem;
}
.icgab-card strong { font-size: 1.15rem; }
.icgab-btn {
  display: inline-block;
  background: var(--icgab-green);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 3px;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 600;
}
.icgab-btn:hover { filter: brightness(1.08); }
.icgab-btn-secondary { background: #2f4a3c; }
.icgab-btn-danger { background: var(--icgab-red); }
.icgab-btn-small { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.icgab-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.icgab-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.icgab-form input,
.icgab-form select,
.icgab-form textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #c5d0c9;
  border-radius: 3px;
  font: inherit;
}
.icgab-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.icgab-table th,
.icgab-table td {
  border-bottom: 1px solid var(--icgab-line);
  padding: 0.55rem 0.4rem;
  text-align: left;
}
.icgab-table th { color: var(--icgab-muted); font-size: 0.8rem; text-transform: uppercase; }
.icgab-panel {
  border: 1px solid var(--icgab-line);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: #fff;
}
.icgab-notice {
  padding: 0.75rem 1rem;
  border-radius: 3px;
  background: #eef2f0;
  margin-bottom: 1rem;
}
.icgab-notice.success { background: #e5f4ec; color: #0b5c3b; }
.icgab-notice.error { background: #fce8e8; color: #9b1c1c; }
.icgab-legacy-notice {
  padding: 1.25rem;
  border: 1px solid var(--icgab-line);
  background: var(--icgab-bg);
}
.icgab-list { padding-left: 1.2rem; }
.icgab-help { color: var(--icgab-muted); font-size: 0.9rem; }
.icgab-inline-form textarea { width: 100%; max-width: 480px; margin-bottom: 0.5rem; }
@media (max-width: 640px) {
  .icgab-cards { grid-template-columns: 1fr 1fr; }
}
