:root {
  --page-bg: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --line: #d9e4ee;
  --text-main: #17314d;
  --text-soft: #688099;
  --brand-blue: #074f89;
  --brand-blue-deep: #003b77;
  --brand-green: #8fbf45;
  --shadow: 0 18px 45px rgba(17, 41, 68, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  padding: 32px 16px 48px;
}

.portal-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.portal-header,
.doc-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.portal-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  margin-bottom: 20px;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: var(--brand-blue-deep);
}

.doc-section {
  padding: 24px;
  margin-bottom: 18px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--brand-blue-deep);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  font: inherit;
}

.doc-item.active {
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.doc-item.active:hover {
  border-color: #bdd2e6;
}

.doc-item.muted {
  color: var(--text-soft);
  cursor: not-allowed;
}

.doc-name {
  font-size: 16px;
  font-weight: 600;
}

.doc-arrow {
  color: var(--brand-blue);
  font-size: 22px;
  line-height: 1;
}

.doc-status {
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  body {
    padding: 18px 12px 28px;
  }

  .portal-header,
  .doc-section {
    padding: 18px;
    border-radius: 18px;
  }

  .portal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
