:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #202b35;
  background: #f3f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #1f3448;
  --blue: #24638f;
  --line: #d8dee5;
  --muted: #64717d;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
a { color: inherit; }
.landing-header {
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.version { color: #536272; font-size: 12px; font-variant-numeric: tabular-nums; }
.landing-main { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: clamp(44px, 8vh, 84px) 0 30px; }
.welcome { margin-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 650; }
h1 { margin: 0; color: #1d2d3c; font-size: clamp(28px, 4vw, 38px); line-height: 1.25; letter-spacing: -.025em; }
.welcome-copy { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.module-directory { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.directory-heading { min-height: 52px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #f8f9fa; }
.directory-heading h2 { margin: 0; color: #27394a; font-size: 15px; font-weight: 700; }
.directory-heading > span { color: var(--muted); font-size: 12px; }
.module-list { display: block; }
.module-row { min-height: 82px; padding: 14px 18px; display: grid; grid-template-columns: 38px 100px minmax(0, 1fr) 112px; align-items: center; gap: 15px; border-bottom: 1px solid #e6eaee; text-decoration: none; transition: background-color .14s ease; }
.module-row:last-child { border-bottom: 0; }
.module-row:hover { background: #f5f8fb; }
.module-row:focus-visible { position: relative; z-index: 1; outline: 3px solid #639ac2; outline-offset: -3px; }
.module-symbol { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d5e1eb; border-radius: 6px; color: var(--blue); background: #eff4f8; }
.module-symbol svg { width: 23px; height: 23px; fill: currentColor; }
.road-symbol { color: #526d83; }
.road-symbol .road-marking { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.utility-symbol { color: #416d87; }
.module-name { color: #22384b; font-size: 15px; font-weight: 700; }
.module-description { color: var(--muted); font-size: 13px; line-height: 1.6; }
.module-open { justify-self: end; color: var(--blue); font-size: 13px; font-weight: 650; white-space: nowrap; }
.module-open span { padding-left: 5px; font-size: 16px; }
.landing-footer { margin: 16px 2px 0; color: #7a8792; font-size: 12px; }
.landing-footer span { padding: 0 5px; color: #a2abb3; }

@media (max-width: 640px) {
  .landing-header { min-height: 58px; padding-inline: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .landing-brand { gap: 9px; font-size: 14px; }
  .landing-main { width: calc(100% - 28px); padding: 34px 0 22px; }
  .welcome { margin-bottom: 22px; }
  .welcome-copy { font-size: 14px; }
  .directory-heading { padding-inline: 13px; }
  .module-row { min-height: 0; padding: 13px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px 11px; }
  .module-symbol { width: 34px; height: 34px; grid-row: span 2; }
  .module-name { align-self: end; }
  .module-description { grid-column: 2 / 4; grid-row: 2; align-self: start; }
  .module-open { grid-column: 3; grid-row: 1; align-self: center; font-size: 12px; }
  .landing-footer { line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; }
}
