:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #03060c;
  color: #eff6ff;
  font-size: 16px;
  line-height: 1.6;
  --surface: #0c1625;
  --border: #223754;
  --muted: #93a9c8;
  --accent: #77b1ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #f4f3ed; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
header { max-width: 1440px; margin: auto; padding: 27px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 13px; color: #f4f3ed; text-decoration: none; }
.brand-symbol { width: 38px; height: 38px; color: var(--accent); }
.brand-wordmark { display: grid; gap: 4px; }
.brand-wordmark strong { font-size: 19px; line-height: 1; letter-spacing: .2em; font-weight: 700; }
.brand-wordmark small { font-size: 8px; line-height: 1.1; letter-spacing: .28em; color: var(--muted); }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
nav > a { text-decoration: none; color: #cacace; }
nav form { margin: 0; }
nav button { padding: 10px 17px; min-height: 42px; font-size: 13px; }
main { max-width: 1224px; margin: auto; padding: 60px 40px 24px; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; margin: 18px 0 24px; }
h1 span { color: var(--accent); }
h2 { font-size: 25px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 24px; }
h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
p { margin: 0 0 18px; }
.eyebrow { font-size: 10px; letter-spacing: .2em; font-weight: 700; color: var(--accent); margin: 0 0 18px; }
.muted, .fine { color: var(--muted); }
.fine { font-size: 12px; line-height: 1.7; }
.page-heading { max-width: 760px; margin-bottom: 32px; }
.page-heading > .muted { max-width: 650px; font-size: 14px; }
.notice { padding: 19px 22px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: #141517; margin: 24px 0; color: #c6c6ca; font-size: 13px; }
.warning { border-color: #765039; border-left-color: var(--accent); color: #f4c7af; }
.panel { border: 1px solid var(--border); border-radius: 13px; padding: 30px; background: var(--surface); margin: 24px 0; }
.panel > :last-child { margin-bottom: 0; }
.panel .eyebrow { margin-bottom: 14px; }
.columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.columns .panel { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.section-heading h2 { margin-bottom: 25px; }
.section-symbol { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid #3d302a; border-radius: 9px; background: #231c19; color: var(--accent); }
.section-symbol svg { width: 18px; height: 18px; }
form { display: grid; gap: 19px; }
label { display: grid; gap: 9px; font-size: 12px; font-weight: 600; color: #d7d7da; }
input { width: 100%; min-width: 0; background: #101113; color: #f4f3ed; border: 1px solid #35373c; border-radius: 7px; padding: 13px 14px; font: inherit; font-size: 14px; line-height: 1.5; transition: border-color .15s; }
input:hover { border-color: #595a60; }
input:focus { border-color: var(--accent); }
input::placeholder { color: #74767e; opacity: 1; }
input[readonly] { color: #c5c5ca; }
button { background: var(--accent); color: #17120f; border: 1px solid var(--accent); border-radius: 7px; padding: 13px 18px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 47px; transition: background .15s, border-color .15s; }
button:hover { background: #ffa17e; border-color: #ffa17e; }
button.secondary { background: #202125; color: #e5e4df; border-color: #383a40; }
button.secondary:hover { background: #2a2b30; border-color: #64656c; }
button.danger { background: #2a1b1e; color: #ed9a9f; border-color: #64393f; }
button.danger:hover { background: #3b2429; border-color: #a65b66; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.member { min-width: 0; padding: 22px; background: #121315; border: 1px solid var(--border); border-radius: 9px; }
.member p { font-size: 12px; overflow-wrap: anywhere; }
.member strong { font-size: 14px; overflow-wrap: anywhere; }
.member > :last-child { margin-bottom: 0; }
.member > .muted { margin-bottom: 22px; }
.member form { gap: 12px; }
.member form label { margin-bottom: 5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0; padding: 3px 8px; border-radius: 4px; background: #16251e; color: #86c7a6; font-size: 11px !important; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.is-disabled { background: #2a1b1e; color: #ed9a9f; }
.pending-grid { margin-top: 20px; }
.audit-grid .member { padding: 17px 20px; }
.audit-grid .member p { color: var(--muted); margin-top: 7px; }
.panel > .fine { margin-top: 20px; }
.policy-list { list-style: none; padding: 0; margin: 24px 0; }
.policy-list li { display: flex; align-items: start; gap: 12px; margin-bottom: 19px; color: #c4c4c9; font-size: 13px; }
.policy-list li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; flex-shrink: 0; background: var(--accent); }
.empty-state { padding: 25px; border: 1px dashed #3a3c41; border-radius: 8px; text-align: center; font-size: 13px; }
.skip { position: absolute; left: 20px; top: -80px; padding: 12px; z-index: 5; background: #17181b; }
.skip:focus { top: 4px; }
footer { padding: 28px 0 16px; color: #8f9097; font-size: 11px; line-height: 1.8; }
.admin-footer { border-top: 1px solid var(--border); margin-top: 38px; display: flex; justify-content: space-between; gap: 16px; }
.admin-footer span:first-child { color: #c5c5c8; }

/* The access illustration is decorative geometry, never a market-data chart. */
.access { display: flex; flex-direction: column; }
.access-header { width: 100%; }
.portal-label { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.portal-label svg { width: 13px; height: 13px; color: #babbbf; }
.access-shell { width: 100%; max-width: 1344px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 88px; align-items: center; padding: 64px 48px 48px; flex: 1; }
.access-hero { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; min-width: 0; }
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 23px; height: 1px; background: var(--accent); }
.access-hero h1 { font-size: clamp(44px, 5.2vw, 73px); letter-spacing: -.055em; line-height: 1.06; margin: 14px 0 27px; }
.hero-description { max-width: 405px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.access-art { width: 100%; max-width: 540px; height: auto; margin: 15px 0 0 -14px; overflow: visible; }
.hero-footnote { font-size: 10px; color: #8f9097; letter-spacing: .11em; margin: 17px 0 0; }
.access-card { width: 100%; max-width: 440px; justify-self: end; padding: 36px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 20px 60px #0000001a; }
.access-card > .eyebrow { font-size: 9px; margin: 0 0 20px; }
.access-card h2 { font-size: 30px; line-height: 1.16; letter-spacing: -.035em; margin: 0 0 17px; }
.access-card > .muted { font-size: 12px; line-height: 1.85; }
.access-card form { margin-top: 27px; gap: 20px; }
.access-card form button { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.access-card form button svg { width: 17px; height: 17px; }
.access-card .fine { margin: 25px 0 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 11px; }
.access-card .fine a { color: #d4d3d0; }
.access-card .fine a:hover { color: var(--accent); }
.access-card .notice { padding: 14px 16px; font-size: 12px; }
.access-footer { width: calc(100% - 96px); max-width: 1344px; margin: 0 auto; padding: 20px 0 25px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 18px; font-size: 10px; }

@media (min-width: 1500px) {
  .access-shell { padding-top: 90px; padding-bottom: 90px; }
}
@media (max-width: 1050px) {
  header { padding: 24px 32px; }
  .access-shell { gap: 42px; padding: 55px 32px; }
  .access-card { padding: 28px; }
  .access-hero h1 { font-size: 54px; }
  .access-footer { width: calc(100% - 64px); }
  nav { gap: 17px; }
}
@media (max-width: 780px) {
  header:not(.access-header) { align-items: flex-start; flex-direction: column; gap: 22px; }
  nav { width: 100%; flex-wrap: wrap; }
  main { padding: 40px 24px 24px; }
  .columns { grid-template-columns: 1fr; }
  .access-shell { grid-template-columns: 1fr; gap: 32px; max-width: 560px; padding: 42px 28px; }
  .access-hero { padding: 0; }
  .access-hero h1 { font-size: 51px; margin: 10px 0 20px; }
  .hero-description { font-size: 13px; margin-bottom: 0; }
  .access-art, .hero-footnote { display: none; }
  .access-card { max-width: none; justify-self: stretch; }
  .access-footer { font-size: 9px; }
  .admin-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 480px) {
  header { padding: 22px 20px; }
  .brand-symbol { width: 32px; height: 32px; }
  .brand-wordmark strong { font-size: 17px; }
  .brand-wordmark small { font-size: 7px; }
  .portal-label { font-size: 8px; letter-spacing: .08em; gap: 6px; }
  .portal-label svg { width: 11px; height: 11px; }
  main { padding: 35px 18px 18px; }
  h1 { font-size: 39px; }
  h2 { font-size: 23px; }
  .panel { padding: 23px 20px; }
  .notice { padding: 17px; }
  .member { padding: 19px; }
  nav { gap: 14px; font-size: 11px; }
  nav button { font-size: 11px; padding: 9px 12px; }
  .access-shell { padding: 32px 20px; gap: 26px; }
  .access-hero h1 { font-size: 43px; }
  .access-hero .eyebrow { font-size: 9px; margin-bottom: 14px; }
  .access-card { padding: 26px 22px; }
  .access-card h2 { font-size: 28px; }
  .access-card > .eyebrow { font-size: 8px; letter-spacing: .15em; }
  .access-footer { width: calc(100% - 40px); flex-direction: column; gap: 5px; padding-top: 18px; }
  input { font-size: 16px; }
}
/* Nightshift: one identity across login, activation and member administration. */
body{background:radial-gradient(ellipse at 15% 25%,#12396a40,transparent 47%),radial-gradient(ellipse at 90% 5%,#17357830,transparent 40%),#03060c;-webkit-font-smoothing:antialiased}
::selection{background:#2b77ff70;color:#fff}header{border-color:#1e3450}.brand{color:#e7f2ff}.brand-symbol{color:#6baaff;filter:drop-shadow(0 0 12px #387fff40)}.brand-wordmark small{color:#7996ba}nav>a{color:#a0badb}
.page-heading h1 span,.access-hero h1 span{color:#7cacfa;background:linear-gradient(100deg,#b1d9ff,#589bff 65%,#6584e9);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.page-heading{position:relative;padding:28px 30px 30px;max-width:none;border:1px solid #233d5f;border-radius:18px;background:radial-gradient(ellipse at 90% 50%,#16487f38,transparent 60%),linear-gradient(130deg,#0e1c30,#080f1b);overflow:hidden}.page-heading::after{content:"";position:absolute;right:-60px;top:-130px;width:340px;height:340px;border:1px solid #3565963d;border-radius:50%;box-shadow:0 0 0 40px #3262980a,0 0 0 80px #32629807;pointer-events:none}.page-heading>p,.page-heading>h1{position:relative;z-index:1}.page-heading>p:last-child{margin-bottom:0}.panel{background:linear-gradient(145deg,#0e192a,#09111e);border-color:#223955;border-radius:16px;box-shadow:inset 0 1px 0 #c6e3ff05}.notice{background:#0b1728;color:#aac2e2;border-color:#2c4669;border-left-color:#5394f4}.warning{background:#2a191744;border-color:#7d4352;border-left-color:#f08eab;color:#ffd0dc}.section-symbol{background:#204e821f;border-color:#345c8c;color:#91baff}.member{background:#091323;border-color:#243d5b;border-radius:11px}.member p{color:#9db4d3}.badge{background:#143c2a88;color:#91e3bb}.badge.is-disabled{background:#46253077;color:#ffb0c2}
input{background:#060e1a;color:#e9f3ff;border-color:#294260;border-radius:9px;min-height:48px;box-shadow:inset 0 1px 4px #0003}input:hover{border-color:#4a709e}input:focus{border-color:#78b6ff;box-shadow:0 0 0 3px #317cff14}input::placeholder{color:#738ba9}input[readonly]{color:#9fc5f5}label{color:#b7cee9}button{background:linear-gradient(110deg,#347ff7,#2465df);border-color:#5d9aff;color:#fff;border-radius:9px;box-shadow:inset 0 1px 0 #bfdcff25}button:hover{background:linear-gradient(110deg,#4a90ff,#3277ed);border-color:#8cbbff}button.secondary{background:#10223a;color:#c4dbf8;border-color:#305077}button.secondary:hover{background:#193253;border-color:#567aa9}button.danger{background:#2e1722;color:#ffa5bb;border-color:#673444}button.danger:hover{background:#411f2e;border-color:#a5526e}.policy-list li{color:#a6bdda}.empty-state{border-color:#29496e}.admin-footer{border-color:#233b58}.admin-footer span:first-child{color:#a3bede}
.access-header{background:#050a12aa}.portal-label{color:#88a3c4}.portal-label svg{color:#8dbaff}.access-shell{position:relative;gap:72px}.access-hero h1{font-weight:650}.hero-description{color:#99b3d3;font-size:15px}.hero-footnote{color:#6d8db5;font-size:9px}.hero-kicker{color:#7bb6ff;letter-spacing:.2em}.access-art{filter:drop-shadow(0 20px 35px #123d7c2b)}.access-card{position:relative;overflow:hidden;max-width:450px;border:1px solid #2d4c73;border-radius:19px;padding:38px;background:linear-gradient(145deg,#112139,#0a1322 58%);box-shadow:0 28px 90px #0008,inset 0 1px 0 #c8e3ff0f}.access-card::before{position:absolute;top:0;left:12%;right:12%;height:1px;content:"";background:linear-gradient(90deg,transparent,#9ecaffb3,transparent)}.access-card h2{color:#edf5ff}.access-card>.muted{color:#a0b8d8}.access-card>.eyebrow{color:#81b5fc;letter-spacing:.16em}.access-card form button{min-height:50px;box-shadow:0 8px 26px #1c6aff29,inset 0 1px 0 #bfdcff25}.access-card .fine{border-color:#233b58;color:#88a2c4}.access-card .fine a{color:#a6ceff}.access-footer{border-color:#1d3350;color:#7290b6}.access-footer>span:first-child{color:#b0caea;letter-spacing:.13em}
@media(min-width:1500px){.access-shell{max-width:1380px;gap:100px}.access-hero h1{font-size:79px}.access-card{max-width:460px;padding:40px}}
@media(max-width:1050px){.access-shell{gap:42px}.access-card{padding:29px}}
@media(max-width:780px){.access-shell{gap:29px}.access-hero{position:relative;padding:0 0 5px}.access-hero h1{font-size:53px}.access-card{max-width:none}.page-heading{padding:25px}.page-heading::after{opacity:.45;right:-160px}}
@media(max-width:480px){.access-hero h1{font-size:47px;line-height:1.05;margin-top:7px}.hero-description{font-size:13px}.access-card{padding:27px 23px}.access-card h2{font-size:29px}.access-header{padding-block:23px}.access-shell{gap:26px;padding-top:33px}.portal-label{font-size:7px}.page-heading{padding:23px 20px}.page-heading h1{font-size:37px}}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Owner-only, explicit role changes; usable on mobile and with a keyboard. */
.role-settings { min-width: 0; max-width: 100%; margin-top: 1.25rem; border-top: 1px solid #65417b; padding-top: 1rem; }
.role-settings summary { cursor: pointer; color: #dbb5ff; padding: .5rem 0; }
.role-settings select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: .7rem; font: inherit; font-size: 16px; color: #f5efff; background: #171023; border: 1px solid #785290; border-radius: .6rem; }
.role-settings form { min-width: 0; grid-template-columns: minmax(0, 1fr); margin-top: .8rem; }
.role-settings label { min-width: 0; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
.role-confirm { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; cursor: pointer; }
.role-confirm input[type=checkbox] { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: .2rem; }
.access-card label.remember-choice{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;line-height:1.5}.access-card .remember-choice input[type=checkbox]{width:21px;height:21px;min-height:21px;flex:0 0 21px;margin:0;padding:0;accent-color:#ba8bfa}.access-card #remember-help{margin:0;line-height:1.65}
