:root {
  color-scheme: dark;
  --portal-bg: #061f28;
  --portal-bg-deep: #041820;
  --portal-panel: #0d2b34;
  --portal-panel-soft: #102f38;
  --portal-border: #24444d;
  --portal-text: #edf7f5;
  --portal-muted: #b2c9c9;
  --portal-accent: #62d6b0;
  --portal-orange: #e7a44f;
  --portal-focus: #ffe082;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal-page { margin: 0; color: var(--portal-text); background-color: var(--portal-bg); background-image: linear-gradient(#7fc7bc08 1px, transparent 1px), linear-gradient(90deg, #7fc7bc08 1px, transparent 1px), radial-gradient(ellipse at 82% 12%, #13887528, transparent 36%), linear-gradient(150deg, var(--portal-bg-deep), var(--portal-bg) 52%, #082731); background-size: 44px 44px, 44px 44px, auto, auto; font-size: 15px; line-height: 1.55; }
body.portal-page::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; background: radial-gradient(ellipse at 50% 85%, #04161c88, transparent 64%); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--portal-focus); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-180%); padding: 10px 14px; border-radius: 10px; color: #06232a; background: var(--portal-focus); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 8px; z-index: 10; margin: 8px clamp(12px, 3vw, 40px) 0; border: 1px solid #34525a; border-radius: 24px; background: #061922ed; box-shadow: 0 12px 38px #020c11a6; backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 68px; max-width: 1440px; margin: 0 auto; padding: 10px clamp(16px, 2.7vw, 34px); align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--portal-text); text-decoration: none; font-size: 19px; font-weight: 850; letter-spacing: .035em; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; color: #05282a; background: linear-gradient(135deg, var(--portal-accent), var(--portal-orange)); font-size: 17px; font-weight: 900; }
.header-actions { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.back-link { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; border: 0; padding: 8px 2px; color: var(--portal-muted); background: transparent; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.back-link:hover { color: var(--portal-text); }
.header-login, .hero-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 11px; border: 1px solid #45c998; border-radius: 13px; padding: 10px 17px; color: #052927; background: linear-gradient(115deg, #50d4a4, #e5a44c); box-shadow: 0 7px 24px #28ba8a25; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.header-login:hover, .hero-action:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #28ba8a38; }
.portal-main { width: min(1440px, calc(100% - clamp(28px, 7vw, 96px))); margin: 0 auto; }
.portal-hero { display: grid; min-height: 365px; grid-template-columns: minmax(0, .92fr) minmax(400px, 1.08fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(34px, 5vw, 64px) 0 clamp(26px, 4vw, 52px); }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: var(--portal-accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.eyebrow-dot, .status-light { display: inline-block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--portal-accent); box-shadow: 0 0 13px currentColor; }
.is-running { color: #41d691; background: #41d691; }
.is-warning { color: #f0a447; background: #f0a447; }
.portal-hero h1 { margin: 0; font-family: Outfit, "Arial Rounded MT Bold", Inter, ui-sans-serif, sans-serif; font-size: clamp(38px, 5.1vw, 66px); line-height: 1.05; letter-spacing: -.045em; }
.portal-hero h1 span { color: #9ec5c4; }
.hero-lead { max-width: 59ch; margin: 20px 0 23px; color: var(--portal-muted); font-size: clamp(15px, 1.3vw, 18px); }
.hero-action { min-height: 46px; padding-inline: 19px; }
.hero-art { position: relative; min-height: 300px; overflow: hidden; isolation: isolate; border: 1px solid #31525a; border-radius: 26px; background: linear-gradient(130deg, #0c2c35dd, #0c2934a8), radial-gradient(ellipse at 65% 52%, #338d7b32, transparent 54%); box-shadow: inset 0 1px #b3ddd011, 0 20px 48px #020c1190; }
.hero-art::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg, transparent 55%, #071c24b8); }
.hero-art > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center; opacity: .84; }
.art-label { position: absolute; display: grid; grid-template-columns: 10px auto; align-items: center; gap: 2px 9px; min-width: 158px; border: 1px solid #42646a; border-radius: 13px; padding: 10px 13px; background: #071c24e8; box-shadow: 0 9px 24px #020c1170; font-size: 10px; letter-spacing: .06em; }
.art-label .status-light { grid-row: span 2; width: 8px; height: 8px; }
.art-label span:not(.status-light) { color: var(--portal-muted); }
.art-label b { font-size: 13px; letter-spacing: 0; }
.art-label-top { top: 18px; left: 18px; }
.art-label-bottom { right: 17px; bottom: 24px; }
.art-caption { position: absolute; right: 16px; bottom: 4px; margin: 0; color: #a4c0c2; font-size: 10px; }
.module-section { padding: 18px 0 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2, .portal-bottom h2 { margin: 0; font-family: Outfit, Inter, ui-sans-serif, sans-serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.section-heading > p { max-width: 43ch; margin: 0 0 2px; color: var(--portal-muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--portal-border); border-radius: 20px; background: linear-gradient(150deg, #12343c, #0a252e 78%); box-shadow: 0 9px 28px #03131865; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.module-card:hover { transform: translateY(-3px); border-color: #3b716d; box-shadow: 0 14px 34px #020d126e; }
.module-card-active { border-color: #428e75; box-shadow: 0 0 0 1px #3ac28b26, 0 10px 32px #03131885; }
.module-art { position: relative; display: grid; height: clamp(132px, 14vw, 185px); place-items: center; overflow: hidden; border-bottom: 1px solid #315059; background: radial-gradient(ellipse at 50% 56%, #2b806d29, transparent 60%), linear-gradient(120deg, #0a252e, #102f39); }
.module-art::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: linear-gradient(180deg, #0a252e00 55%, #0a252eaa); }
.module-art picture { position: absolute; inset: 0; display: block; }
.module-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .9; transition: transform .35s ease, opacity .35s ease; }
.module-card:hover .module-art img { transform: scale(1.035); opacity: 1; }
.module-status { position: absolute; top: 11px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #34545d; border-radius: 999px; padding: 4px 9px; color: #c3d5d5; background: #071c24dd; font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.module-status .status-light { width: 7px; height: 7px; }
.status-active { color: #8ce6bc; border-color: #31785e; }
.module-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px 17px 16px; }
.module-kicker { margin: 0 0 5px; color: #88b8b5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.module-copy h3 { margin: 0 0 6px; font-family: Outfit, Inter, ui-sans-serif, sans-serif; font-size: 20px; line-height: 1.2; }
.module-copy > p:not(.module-kicker) { min-height: 44px; margin: 0 0 13px; color: var(--portal-muted); font-size: 13px; line-height: 1.45; }
.module-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; border: 0; padding: 7px 0 1px; color: #86ded8; background: transparent; text-decoration: none; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.module-link:hover { color: #c4fff0; }
.module-link-primary { color: #8ce6bc; }
.module-footnote { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #a8c1c1; font-size: 12px; }
.module-footnote span { color: var(--portal-accent); font-size: 16px; }
.portal-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 2px 0 38px; border: 1px solid #34545b; border-radius: 20px; padding: 20px clamp(17px, 3vw, 30px); background: linear-gradient(110deg, #0e3038, #0a242e); }
.portal-bottom .eyebrow { margin-bottom: 6px; font-size: 10px; }
.portal-bottom h2 { font-size: clamp(20px, 2.2vw, 27px); }
.portal-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #244149; padding: 15px clamp(20px, 4vw, 60px); color: var(--portal-muted); background: #041920bd; font-size: 12px; }
.portal-footer .brand { font-size: 15px; }
.portal-contact { display: flex; flex-wrap: wrap; gap: 0 8px; }
.portal-contact a { color: #91ddd2; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.module-dialog { width: min(760px, calc(100vw - 30px)); max-height: min(88vh, 740px); overflow: auto; border: 1px solid #42636a; border-radius: 23px; padding: 0; color: var(--portal-text); background: #0b2832; box-shadow: 0 26px 90px #000b; }
.portal-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.portal-detail { min-width: 0; scroll-margin-top: 100px; border: 1px solid #24444d; border-radius: 16px; padding: 17px 18px; background: #0b2932cc; }
.portal-detail .eyebrow { margin: 0 0 7px; color: var(--portal-accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.portal-detail h2 { margin: 0 0 7px; font-family: Outfit, Inter, ui-sans-serif, sans-serif; font-size: 18px; line-height: 1.25; }
.portal-detail > p:not(.eyebrow) { margin: 0; color: var(--portal-muted); font-size: 13px; line-height: 1.5; }
.portal-detail a { color: #91ddd2; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail-link { display: inline-flex; gap: 7px; margin-top: 8px; font-size: 12px; font-weight: 800; text-decoration: none; }
.portal-detail-faq details { border-top: 1px solid #24444d; padding: 7px 0; }
.portal-detail-faq details:first-of-type { border-top: 0; }
.portal-detail-faq summary { color: var(--portal-text); font-size: 12px; font-weight: 700; cursor: pointer; }
.portal-detail-faq details p { margin: 5px 0 0; color: var(--portal-muted); font-size: 12px; line-height: 1.45; }
.module-dialog::backdrop { background: #020d12c9; backdrop-filter: blur(6px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2b4850; padding: 15px 18px; background: #0a222b; }
.dialog-kicker { color: var(--portal-accent); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.dialog-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #40616a; border-radius: 50%; color: var(--portal-text); background: transparent; font: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.dialog-body { display: grid; grid-template-columns: minmax(190px, .8fr) 1.2fr; gap: 24px; align-items: center; padding: clamp(18px, 4vw, 32px); }
.dialog-body > img { width: 100%; height: 220px; object-fit: contain; border: 1px solid #294a52; border-radius: 17px; background: #09232b; }
.dialog-body .eyebrow { margin-bottom: 8px; font-size: 10px; }
.dialog-body h2 { margin: 0 0 8px; font-family: Outfit, Inter, ui-sans-serif, sans-serif; font-size: 28px; line-height: 1.15; }
.dialog-body p:not(.eyebrow) { margin: 0 0 16px; color: var(--portal-muted); }
.dialog-body h3 { margin: 0 0 7px; font-size: 14px; }
.dialog-body ul { margin: 0; padding-left: 20px; color: #d1e1df; font-size: 13px; }
.dialog-body li { margin: 5px 0; }
.dialog-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 18px 16px; border: 1px solid #345159; border-radius: 12px; padding: 11px 13px; color: #bed1cf; background: #0a222b; font-size: 12px; }
.dialog-note span { color: var(--portal-accent); }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #2b4850; padding: 12px 18px; }
.dialog-actions .header-login { font-size: 12px; }

@media (max-width: 920px) {
  .portal-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr); gap: 26px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-art { height: 165px; }
  .portal-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { top: 5px; margin: 5px 8px 0; border-radius: 18px; }
  .header-inner { min-height: 58px; padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; }
  .header-actions { min-width: 0; gap: 2px 10px; flex-wrap: wrap; justify-content: flex-end; }
  .back-link { min-height: 30px; font-size: 11px; }
  .header-actions > .header-login { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .portal-main { width: calc(100% - 28px); }
  .portal-hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .portal-hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-lead { margin: 14px 0 18px; font-size: 15px; }
  .hero-art { min-height: 225px; border-radius: 20px; }
  .hero-art > img { min-height: 225px; }
  .art-label { transform: scale(.9); transform-origin: top left; }
  .art-label-bottom { transform-origin: bottom right; }
  .module-section { padding-top: 8px; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading > p { margin-top: 8px; font-size: 13px; }
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-details { grid-template-columns: 1fr; gap: 10px; }
  .portal-detail { padding: 15px; }
  .module-card { border-radius: 17px; }
  .module-art { height: 178px; }
  .module-copy { padding: 14px 15px 15px; }
  .module-copy > p:not(.module-kicker) { min-height: 0; margin-bottom: 10px; }
  .portal-bottom { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .portal-bottom .hero-action { width: 100%; }
  .portal-footer { align-items: flex-start; flex-direction: column; gap: 7px; padding: 16px; }
  .dialog-body { grid-template-columns: 1fr; gap: 16px; }
  .dialog-body > img { height: 165px; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions .header-login { width: 100%; }
}
@media (max-width: 370px) {
  .header-actions { gap: 1px 7px; }
  .header-actions > .back-link { gap: 4px; }
  .header-actions > .header-login { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
