:root {
  --bg: #f4f7fb;
  --ink: #101828;
  --muted: #5d6b82;
  --line: #d6deea;
  --card: #ffffff;
  --brand: #0b6cff;
  --brand-2: #13b38b;
  --danger: #ce3f50;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Manrope, Segoe UI, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #e8f1ff 0%, var(--bg) 45%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #051937 0%, #0b2f67 46%, #0d5f8e 100%);
  color: #fff;
  padding-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(19,179,139,0.35), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(11,108,255,0.36), transparent 45%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand-mark {
  font-family: Outfit, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-sub {
  opacity: 0.78;
}

.top-actions {
  display: flex;
  gap: 1rem;
}

.top-actions a {
  color: #d9e6ff;
  text-decoration: none;
  font-weight: 600;
}

.hero-link {
  color: #d9e6ff;
  text-decoration: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.82;
}

.hero h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin: 0.35rem 0;
  max-width: 900px;
}

.subtitle {
  max-width: 700px;
  opacity: 0.9;
}

.hero-cards {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 0.95rem;
  backdrop-filter: blur(3px);
}

.hero-card span {
  font-family: Outfit, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}

.hero-card label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.main-layout {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(5, 20, 45, 0.05);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-family: Outfit, sans-serif;
}

.tag {
  background: #ebf2ff;
  color: #35547b;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.news-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fafcff;
}

.news-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-meta {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #4d647f;
}

.federation-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.federation-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: #fff;
}

.federation-card h3 {
  margin: 0 0 0.3rem;
}

.federation-card p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.request-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.request-intro {
  margin: 0.7rem 0 0.9rem;
  color: var(--muted);
}

.request-form {
  display: grid;
  gap: 0.8rem;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.request-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: #385273;
  font-size: 0.88rem;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.request-form textarea {
  resize: vertical;
}

.request-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.request-actions button {
  border: none;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), #2b8de9);
  cursor: pointer;
}

.request-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.request-status {
  color: var(--danger);
  font-size: 0.9rem;
}

.request-status.ok {
  color: #137955;
}

.filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  min-width: 170px;
  background: #fff;
}

.table-wrap {
  margin-top: 0.8rem;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: #486289;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.status.enabled {
  background: #dff8ef;
  color: #137955;
}

.status.disabled {
  background: #ffe4e8;
  color: var(--danger);
}

.empty {
  color: var(--muted);
  padding: 1rem 0;
}

.footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 1rem;
}

.inline-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

.light-link {
  color: #d9e6ff;
}

.detail-hero {
  padding-bottom: 1.2rem;
}

.detail-hero-content {
  padding-bottom: 0.5rem;
}

.detail-layout {
  margin-bottom: 1.5rem;
}

.detail-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.detail-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5d6b82;
  margin-bottom: 0.4rem;
}

.detail-value {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.timeline-list {
  position: relative;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0.34rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(180deg, #bfd3ef 0%, #d6deea 100%);
}

.timeline-item-public {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.timeline-item-public:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -0.02rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #7aa7e8;
  border: 3px solid #eef4ff;
  box-shadow: 0 0 0 2px #cddbf1;
}

.timeline-dot.current {
  background: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(19, 179, 139, 0.22);
}

.timeline-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.timeline-date-public {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5d6b82;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title-public {
  margin: 0.35rem 0 0.25rem;
  font-family: Outfit, sans-serif;
  font-size: 1.08rem;
}

.timeline-status-public {
  margin: 0;
  color: var(--muted);
}

.timeline-status-public.current {
  color: var(--brand-2);
  font-weight: 700;
}

@media (max-width: 800px) {
  .top-actions {
    display: none;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }
}
