body { display: block; min-height: 100svh; overflow-x: hidden; background: #030609; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; opacity: .28; background: radial-gradient(ellipse at 51% 39%,#0b2137 0,#04090f 49%,#020407 100%),repeating-linear-gradient(0deg,#c0e7ff08 0 1px,transparent 1px 4px); }
.access-portal { position: relative; z-index: 1; isolation: isolate; width: min(100%,1040px); min-height: 100svh; margin: 0 auto; padding: max(18px,env(safe-area-inset-top)) clamp(20px,5vw,56px) max(16px,env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.access-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #b8dfff24; }
.access-brand { display: inline-flex; align-items: center; gap: 10px; color: #bdcede; font-size: 11px; letter-spacing: .16em; text-decoration: none; }
.access-brand img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px #328dc455); }
.access-header__signal { color: #8da2b4; font-size: 10px; letter-spacing: .14em; }
.access-header__signal i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #6ea9cd; box-shadow: 0 0 10px #54a9e455; }
.access-screen { width: min(100%,680px); margin: auto; padding: clamp(42px,8vh,86px) 0; }
.access-eyebrow,.access-step__number { margin: 0 0 18px; color: #7dabc9; font-size: 10px; line-height: 1.5; letter-spacing: .2em; }
.access-screen h1 { margin: 0 0 20px; color: #e0edf6; font-size: clamp(42px,8vw,74px); font-weight: 400; line-height: 1.04; letter-spacing: .035em; }
.access-lead { max-width: 580px; margin: 0 0 30px; color: #a2b4c2; font-size: 14px; line-height: 1.7; }
#invite-form { display: grid; gap: 10px; }
#invite-form label { color: #cad7e0; font-size: 12px; letter-spacing: .05em; }
#invite-value { display: block; width: 100%; min-height: 52px; padding: 12px 14px; color: #e3f2fd; border: 1px solid #71899a78; border-radius: 2px; outline: 0; background: #020509c9; font: 14px/1.4 Consolas,"Courier New",monospace; }
#invite-value:focus-visible { border-color: #80c8f3; box-shadow: 0 0 0 2px #47a9e622,0 0 22px #237cb422; }
.access-hint { margin: 0 0 5px; color: #8194a3; font-size: 11px; line-height: 1.6; }
.access-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border: 1px solid #829cac80; border-radius: 2px; color: #e2edf4; background: #060d14cc; font: 12px/1.35 Consolas,"Courier New",monospace; letter-spacing: .11em; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .18s ease,background .18s ease,color .18s ease; }
.access-button:hover,.access-button:focus-visible { border-color: #91c9e9; color: #fff; background: #0b2030; outline: 0; box-shadow: 0 0 16px #2a8cc333; }
.access-button--primary { border-color: #8ba8bc; background: linear-gradient(105deg,#0b2030,#071018); }
.access-button--secondary { color: #b4c5d1; background: transparent; }
.access-message { min-height: 22px; margin: 12px 0 0; color: #f0bfc7; font-size: 12px; line-height: 1.55; }
.access-escape { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: #8ea4b4; font-size: 10px; letter-spacing: .13em; text-decoration: none; }
.access-escape:hover,.access-escape:focus-visible,.access-footer-links a:hover,.access-footer-links a:focus-visible { color: #d9efff; outline-color: #8bcfff; }
.access-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.access-screen--state { border-left: 1px solid #77b6dc45; padding-left: clamp(18px,4vw,34px); }
.access-screen--onboarding { width: min(100%,760px); padding-top: clamp(28px,5vh,54px); padding-bottom: 32px; }
.access-screen--onboarding h1 { font-size: clamp(38px,6vw,62px); }
.access-step { margin: 28px 0 0; padding: clamp(18px,3.5vw,28px); border: 1px solid #809eb22e; background: linear-gradient(135deg,#09131dba,#03080dcc); }
.access-step__number { margin-bottom: 12px; }
.access-step h2,.qr-dialog h2 { margin: 0 0 12px; color: #d9e8f2; font-size: clamp(20px,4vw,29px); font-weight: 400; letter-spacing: .07em; }
.access-note { margin: 0 0 18px; color: #a0b3c1; font-size: 13px; line-height: 1.65; }
.install-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.install-actions .access-button { min-height: 42px; font-size: 10px; }
.access-continue { width: 100%; margin-top: 8px; }
.access-actions--connect .access-button { flex: 1 1 210px; }
.manual-help { margin-top: 12px; padding: 12px 14px; border-left: 2px solid #4c89ad; color: #b4c4d0; background: #07121b; font-size: 12px; line-height: 1.6; }
.manual-help p { margin: 0; }
.profile-guide { margin-top: 15px; border-top: 1px solid #809eb22e; border-bottom: 1px solid #809eb22e; }
.profile-guide summary { padding: 16px 0; color: #bdccd7; font-size: 11px; letter-spacing: .14em; cursor: pointer; }
.profile-guide ul { display: grid; gap: 11px; margin: 0 0 18px; padding: 0; list-style: none; }
.profile-guide li { color: #a4b6c3; font-size: 12px; line-height: 1.6; }
.profile-guide li strong { color: #d3e1ea; font-weight: 400; }
.access-footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.access-footer-links a { color: #95aaba; font-size: 10px; letter-spacing: .12em; text-decoration: none; }
.access-footer { display: flex; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid #b8dfff24; color: #6f8392; font-size: 9px; letter-spacing: .12em; }
.access-status { width: min(100%,760px); margin: 24px auto 28px; padding: 16px 18px; border: 1px solid #809eb22e; background: #03080dcc; color: #91a6b4; font-size: 11px; line-height: 1.6; }
.access-status .access-eyebrow { margin: 0 0 12px; }
.access-status__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #b8cbd8; letter-spacing: .12em; }
.access-status .status-value { font: 12px/1.4 Consolas,"Courier New",monospace; }
.access-status [data-overall-copy],.access-status .status-empty { margin: 8px 0; color: #8499a8; }
.access-status .status-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #809eb21a; }
.access-status .status-row__label { margin: 0; color: #91a6b4; font-size: 10px; font-weight: 400; }
.access-status .status-row__state { margin: 0; color: #b9cbd6; font: 10px Consolas,"Courier New",monospace; }
.access-status .status-row__copy { display: none; }
.access-status [data-state="offline"] { color: #e4a5ab; }
.access-status [data-state="degraded"] { color: #e3c18d; }
.access-status [data-state="online"] { color: #87c79e; }
.access-status__error { color: #e4a5ab; }
.access-status > a { display: inline-block; margin-top: 8px; color: #9dbed1; font-size: 9px; letter-spacing: .12em; text-decoration: none; }
.access-noscript { position: fixed; inset: 15% 5% auto; z-index: 50; padding: 20px; border: 1px solid #809eb2; color: #e3f2fd; background: #030609; }
.access-debug { position: fixed; z-index: 30; right: 12px; bottom: 12px; width: min(340px,calc(100vw - 24px)); padding: 12px; border: 1px solid #65a9d877; background: #03080ef2; box-shadow: 0 8px 40px #000b; }
.access-debug__title { margin: 0 0 9px; color: #93c9ea; font-size: 10px; letter-spacing: .12em; }
.access-debug__notice { margin: 0 0 9px; color: #a6b9c7; font-size: 10px; line-height: 1.5; }
.access-debug__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.access-debug button { min-height: 34px; padding: 6px; border: 1px solid #5e8198; color: #c7dce9; background: #07111a; font: 9px Consolas,"Courier New",monospace; cursor: pointer; }
.access-debug button:focus-visible,.access-debug button:hover { outline: 1px solid #8bd2fa; }
.qr-dialog { width: min(92vw,430px); max-width: 430px; padding: clamp(18px,5vw,30px); border: 1px solid #8aa8ba80; border-radius: 2px; color: #d9e8f2; background: radial-gradient(ellipse at 50% 40%,#0b1d2c,#030609 75%); box-shadow: 0 18px 90px #000d,0 0 35px #277baa26; }
.qr-dialog::backdrop { background: #010306d9; backdrop-filter: blur(5px); }
.qr-dialog__top { display: flex; align-items: center; justify-content: space-between; }
.qr-dialog__top .access-eyebrow { margin: 0; }
.qr-close { width: 40px; height: 40px; border: 1px solid #617a8b; color: #d9e8f2; background: #07111a; font: 28px/1 Consolas,monospace; cursor: pointer; }
.qr-dialog h2 { margin-top: 8px; font-size: 20px; }
#subscription-qr { display: block; width: min(100%,300px); height: auto; aspect-ratio: 1; margin: 16px auto; border: 10px solid white; background: white; image-rendering: pixelated; }
.qr-caption { margin: 0; color: #94a8b6; font-size: 11px; line-height: 1.6; text-align: center; }
[hidden] { display: none !important; }
@media (max-width:600px) {
  .access-portal { padding-right: max(18px,env(safe-area-inset-right)); padding-left: max(18px,env(safe-area-inset-left)); }
  .access-screen { padding-top: 42px; padding-bottom: 38px; }
  .access-screen--onboarding { padding-top: 24px; }
  .access-screen h1 { font-size: clamp(40px,12vw,58px); }
  .access-lead { font-size: 13px; }
  .access-step { margin-top: 18px; }
  .install-actions { display: grid; grid-template-columns: 1fr; }
  .install-actions .access-button { width: 100%; }
  .access-footer { flex-direction: column; font-size: 8px; }
  .access-debug { right: 8px; bottom: max(8px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
