:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #09111f;
  color: #edf4ff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 10%, #1a3f6b 0, transparent 32rem),
    radial-gradient(circle at 95% 95%, #123f38 0, transparent 30rem),
    #09111f;
}

.shell { width: min(760px, calc(100% - 2.5rem)); padding: 4.5rem 0; }
.hero { margin-bottom: 2.5rem; }
.brand-logo { display: block; width: min(330px, 88vw); height: auto; margin: -1.5rem 0 .4rem -1.2rem; mix-blend-mode: screen; }
.home-shell { width: min(940px, calc(100% - 2.5rem)); padding: 1.5rem 0; }.home-shell .hero { margin-bottom: 1rem; }.home-shell .brand-logo { width: min(190px, 45vw); margin: -1rem 0 -.2rem -.65rem; }.home-shell h1 { max-width: 22ch; font-size: clamp(2.15rem, 5vw, 3.4rem); }.home-shell .intro { margin-top: .6rem; font-size: 1rem; }.home-shell .portals { grid-template-columns: repeat(3, 1fr); gap: .7rem; }.home-shell .portal { min-height: 130px; align-items: flex-start; padding: 1.1rem; }.home-shell .portal .icon { width: auto; font-size: 1.8rem; }.home-shell .portal-content strong { font-size: 1rem; }.home-shell .portal-content span { font-size: .86rem; }.home-shell .arrow { display:none; }.home-shell .status { margin: 1rem 0 0; }
.eyebrow { margin: 0 0 .75rem; color: #76b7ff; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 14ch; margin: 0; font-size: clamp(2.35rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -.055em; }
.intro { max-width: 38rem; margin: 1.25rem 0 0; color: #a7b8cf; font-size: 1.1rem; line-height: 1.55; }
.intro-small { margin-top: .5rem; font-size: .95rem; }

.portals { display: grid; gap: .85rem; }
.portal {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.45rem 1.5rem;
  color: inherit;
  text-decoration: none;
  background: rgba(15, 29, 49, .78);
  border: 1px solid rgba(165, 196, 236, .18);
  border-radius: 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.portal:hover, .portal:focus-visible { transform: translateY(-3px); background: rgba(21, 43, 71, .96); border-color: #70b4ff; outline: none; }
.icon { width: 42px; color: #86c0ff; font-size: 2.3rem; line-height: 1; }
.portal-content { display: grid; gap: .35rem; flex: 1; }
.portal strong { font-size: 1.2rem; }
.portal-content span { color: #a7b8cf; line-height: 1.4; }
.arrow { color: #86c0ff; font-size: 1.5rem; }
.accounting .icon, .accounting .arrow { color: #77dac8; }
.admin .icon, .admin .arrow { color: #c5a5ff; }
.status { display: flex; align-items: center; gap: .55rem; margin: 2rem 0 0; color: #92a7c0; font-size: .9rem; }
.status span { width: .55rem; height: .55rem; border-radius: 999px; background: #54d49b; box-shadow: 0 0 0 .25rem rgba(84, 212, 155, .14); }
.portal-page { min-height: 100vh; display: grid; align-content: center; }
.back { display: inline-block; width: fit-content; margin-bottom: 2.5rem; color: #86c0ff; text-decoration: none; }
.back:hover, .back:focus-visible { text-decoration: underline; }
.portal-dashboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 2rem; }
.portal-dashboard article, .portal-panel { padding: 1.1rem; border: 1px solid rgba(165, 196, 236, .18); border-radius: 14px; background: rgba(15, 29, 49, .78); }
.portal-dashboard span, .portal-dashboard small, .portal-panel span { display: block; color: #a7b8cf; }.portal-dashboard strong { display: block; margin: .4rem 0; color: #77dac8; }.portal-panel { margin-top: .8rem; }.portal-panel h2 { margin: 0; font-size: 1rem; }.portal-panel p { margin: .8rem 0 0; line-height: 1.55; }
.mobile-links { display: flex; flex-wrap: wrap; gap: .6rem; }.mobile-links a { padding: .45rem .65rem; color: #9fceff; text-decoration: none; border: 1px solid #355a82; border-radius: 999px; }.mobile-links a:hover { background: #183656; }
.module-launch { display: inline-block; margin-top: 1.4rem; padding: .75rem 1rem; border-radius: .6rem; background: #197a68; color: #fff; text-decoration: none; font-weight: 800; }.module-launch:hover { background: #21947d; }
.module-page { min-height: 100vh; display: block; }.module-page h1 { max-width: none; }.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2rem 0 .8rem; }.module-grid a { min-height: 120px; padding: 1rem; border: 1px solid rgba(165, 196, 236, .2); border-radius: 14px; background: rgba(15, 29, 49, .78); color: #eaf2ff; text-decoration: none; }.module-grid a:hover, .module-grid a.selected { border-color: #77dac8; background: #153c40; }.module-grid strong, .module-grid span { display: block; }.module-grid strong { margin-bottom: .5rem; }.module-grid span { color: #a7b8cf; line-height: 1.35; font-size: .9rem; }.module-detail { min-height: 120px; margin-top: 1.2rem; scroll-margin-top: 2rem; border-color: #77dac8; }

@media (max-width: 520px) {
  .shell { padding: 2.5rem 0; }
  .portal { padding: 1.25rem; gap: 1rem; }
  .icon { width: 31px; font-size: 1.8rem; }
  .portal-content span { font-size: .92rem; }
  .portal-dashboard { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .home-shell .portals { grid-template-columns: 1fr; }
}
