:root {
  color-scheme: light;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --surface: #f8f9fa;
  font-family: Roboto, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.portal-header {
  display: flex;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.eyebrow { margin: 0 0 3px; color: var(--blue); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: 24px; font-weight: 500; }

.module-section { padding-top: 32px; }
.section-label { margin-bottom: 16px; }
.section-label h2 { margin: 0; font-size: 20px; font-weight: 500; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.module-card {
  min-height: 176px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .12);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover, .module-card:focus-visible {
  border-color: var(--blue);
  background: var(--surface);
  outline: none;
  box-shadow: 0 4px 12px rgba(60, 64, 67, .18);
}

.module-number { align-self: start; color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; }
.module-copy { display: grid; gap: 10px; }
.module-copy strong { font-size: clamp(22px, 3vw, 28px); font-weight: 500; }
.module-copy > span { max-width: 28em; color: var(--muted); font-size: 13px; line-height: 1.6; }
.portal-status { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.portal-status[data-state="ready"] { display: none; }
.portal-status[data-state="error"] { color: #d93025; }
.portal-status[data-state="warning"] { color: #b06000; }

@media (max-width: 720px) {
  .portal-shell { width: min(100% - 28px, 1180px); }
  .portal-header { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .module-list { grid-template-columns: 1fr; }
  .module-card { min-height: 160px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .module-card { transition: none; }
}
