:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #101619;
  --panel-raised: #141c20;
  --line: #253238;
  --line-soft: #1b272c;
  --text: #edf5f6;
  --muted: #91a1a6;
  --cyan: #59e2e5;
  --cyan-bright: #7af2f0;
  --cyan-dim: #17383b;
  --danger: #ff8989;
  --success: #8ce0ad;
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 78px; max-width: 1440px; margin: 0 auto; padding: 0 7.1%;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(141, 166, 172, .12);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark, .card-mark, .signed-mark {
  display: grid; place-items: center; font-family: 'Segoe UI', sans-serif; font-weight: 800;
  color: #071012; background: var(--cyan); border-radius: 10px;
}
.brand-mark { width: 31px; height: 31px; font-size: 19px; border-radius: 9px; }
.brand-word { font: 800 21px/1 'Segoe UI', sans-serif; letter-spacing: -.8px; }
.brand-word span { color: var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-caption, .kicker, .eyebrow, .card-topline, .site-footer, .orbit-label, .optional, .one-time {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em;
}
.topbar-caption { color: #77878c; }
.topbar-rule { width: 29px; height: 1px; background: var(--cyan); }

.layout {
  max-width: 1440px; min-height: calc(100vh - 132px); margin: 0 auto; padding: 58px 9.7% 55px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 488px); gap: clamp(50px, 8vw, 126px); align-items: center;
}
.story { min-width: 0; padding-bottom: 10px; }
.kicker { color: var(--cyan); display: flex; align-items: center; gap: 10px; margin: 0 0 27px; }
.status-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 14px rgba(89, 226, 229, .55); }
h1, h2, p { margin-top: 0; }
h1 { margin: 0; font: 600 clamp(45px, 6vw, 76px)/1.03 'Segoe UI', sans-serif; letter-spacing: -.065em; }
h1 span { color: var(--cyan); }
.story-copy { max-width: 430px; margin: 24px 0 0; color: #9aa9ad; font-size: 16px; line-height: 1.75; }
.orbit { position: relative; width: min(100%, 410px); height: 220px; margin: 43px 0 20px 5px; overflow: hidden; }
.orbit-ring { position: absolute; left: 36px; top: 18px; width: 174px; height: 174px; border: 1px solid rgba(89, 226, 229, .13); border-radius: 50%; }
.orbit-ring-one { transform: scaleX(1.62) rotate(-28deg); }
.orbit-ring-two { transform: scaleX(1.62) rotate(28deg); border-color: rgba(89, 226, 229, .09); }
.orbit-core { position: absolute; top: 65px; left: 104px; width: 80px; height: 80px; display: grid; place-items: center; border: 1px solid rgba(89, 226, 229, .55); border-radius: 24px; background: #0e191c; color: var(--cyan); font: 800 46px/1 'Segoe UI', sans-serif; box-shadow: 0 0 46px rgba(55, 190, 196, .1); }
.orbit-core i { position: absolute; right: -5px; top: -4px; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; background: var(--cyan); }
.orbit-label { position: absolute; color: #83969a; font-size: 9px; }
.orbit-label-one { top: 30px; left: 270px; }
.orbit-label-two { top: 94px; left: 305px; }
.orbit-label-three { top: 158px; left: 269px; }
.orbit-label::before { content: ''; display: inline-block; width: 17px; height: 1px; margin: 0 9px 3px 0; background: #42666b; }
.story-foot { display: flex; align-items: center; gap: 13px; color: #79898d; font-size: 12px; }
.story-index { color: var(--cyan); font: 11px var(--mono); }

.account-column { width: 100%; }
.account-card { padding: 30px 34px 24px; border: 1px solid #233137; border-radius: 16px; background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.card-topline { display: flex; align-items: center; gap: 10px; color: #819196; font-size: 9px; }
.card-mark { width: 22px; height: 22px; border-radius: 7px; font-size: 14px; }
.switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 23px 0 26px; background: #0b1012; border: 1px solid var(--line-soft); border-radius: 9px; }
.switch { min-height: 38px; padding: 8px 10px; color: #819095; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.switch.active { color: #effafa; background: #1a272b; box-shadow: inset 0 0 0 1px #293c41; }
.switch:hover:not(.active) { color: var(--text); }
.form-heading { margin-bottom: 21px; }
.eyebrow { display: block; margin: 0 0 9px; color: var(--cyan); font-size: 9px; }
.form-heading h2, .admin-section h2, .success-panel h2 { margin: 0; font: 600 24px/1.2 'Segoe UI', sans-serif; letter-spacing: -.04em; }
.form-description { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-group { min-width: 0; margin: 0 0 16px; }
label { display: block; margin: 0 0 7px; color: #dce5e7; font-size: 12px; font-weight: 600; }
input { width: 100%; height: 45px; padding: 0 13px; color: var(--text); background: #0b1012; border: 1px solid #2b393e; border-radius: 7px; outline: 0; font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
input::placeholder { color: #647378; }
input:hover { border-color: #3b5056; }
input:focus { border-color: var(--cyan); background: #0c1315; box-shadow: 0 0 0 3px rgba(89, 226, 229, .12); }
input:invalid:not(:placeholder-shown) { border-color: #9e5d5d; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.reveal { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); padding: 6px 5px; color: #aab8bb; background: transparent; border: 0; cursor: pointer; font-size: 11px; }
.reveal:hover { color: var(--cyan); }
.field-help { display: block; margin-top: 6px; color: #7d8d91; font-size: 11px; }
.form-note { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 16px; color: #859599; font-size: 11px; line-height: 1.5; }
.note-lock { color: var(--cyan); font-size: 16px; line-height: 1; }
.primary { width: 100%; min-height: 47px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #071012; background: var(--cyan); border: 1px solid var(--cyan); border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.primary:hover:not(:disabled) { background: var(--cyan-bright); box-shadow: 0 7px 25px rgba(89, 226, 229, .13); transform: translateY(-1px); }
.primary:active:not(:disabled) { transform: translateY(0); }
.primary:disabled { cursor: wait; opacity: .65; }
.button-arrow { font-size: 17px; }
.message { margin: 12px 0; padding: 10px 11px; color: #ffb0b0; background: rgba(112, 38, 42, .18); border: 1px solid rgba(255, 137, 137, .18); border-radius: 7px; font-size: 12px; line-height: 1.5; }
.message.success { color: var(--success); background: rgba(40, 103, 68, .17); border-color: rgba(140, 224, 173, .2); }
.card-footer { margin: 18px 0 0; color: #728187; text-align: center; font-size: 10px; line-height: 1.6; }
.success-panel { margin: 8px 0 0; padding: 22px 18px 15px; text-align: center; border: 1px solid #284247; border-radius: 11px; background: #0c1416; }
.success-symbol { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 15px; border: 1px solid #366367; border-radius: 50%; color: var(--cyan); font-size: 20px; }
.success-panel h2 { font-size: 21px; }
.success-panel > p:not(.eyebrow) { max-width: 290px; margin: 9px auto 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.id-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; background: #080d0f; border: 1px solid #26363a; border-radius: 7px; }
code { overflow-wrap: anywhere; color: var(--cyan); font: 12px var(--mono); }
.copy-button, .text-button { flex: 0 0 auto; padding: 7px 10px; color: #d9e6e7; background: #1b282c; border: 1px solid #314248; border-radius: 6px; cursor: pointer; font-size: 11px; }
.copy-button:hover, .text-button:hover { border-color: #56858a; color: var(--cyan); }
.copy-message { min-height: 16px; margin: 9px 0 0; color: var(--success); font-size: 11px; }
.admin-card { padding-top: 24px; }
.signed-head { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--line-soft); }
.signed-mark { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 23px; }
.signed-copy { min-width: 0; flex: 1; }
.signed-copy .eyebrow { margin-bottom: 4px; }
.signed-copy strong { display: block; overflow: hidden; color: #e5eeee; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.text-button { color: #a7b6b9; background: transparent; }
.identity-panel { margin: 16px 0 3px; padding: 13px 14px; background: #0b1012; border: 1px solid var(--line); border-radius: 8px; }
.identity-panel code { display: block; margin-top: 8px; }
.admin-section { padding-top: 21px; }
.admin-section + .admin-section { margin-top: 22px; border-top: 1px solid var(--line); }
.admin-section h2 { margin-bottom: 8px; font-size: 20px; }
.admin-section > p:not(.eyebrow):not(.message) { margin-bottom: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.admin-section .field-group { margin-bottom: 13px; }
.optional { margin-left: 4px; color: #718287; font-size: 8px; }
.admin-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-fields-row input { height: 42px; }
.invite-result { margin-top: 15px; padding: 14px; border: 1px solid #315156; border-radius: 8px; background: #0b1416; }
.invite-result-head, .invite-result-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invite-result .eyebrow { margin: 0; }
.one-time { color: #7d9094; font-size: 8px; text-align: right; }
.invite-result > code { display: block; margin: 15px 0; font-size: 14px; }
.invite-result-foot > span { color: #819196; font-size: 10px; }

.site-footer { max-width: 1440px; min-height: 54px; margin: 0 auto; padding: 0 7.1%; display: flex; align-items: center; justify-content: space-between; color: #647378; border-top: 1px solid rgba(141, 166, 172, .1); font-size: 9px; letter-spacing: .08em; }
.footer-separator { margin: 0 5px; color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; }

@media (max-width: 960px) {
  .topbar { padding: 0 5%; }
  .layout { padding: 50px 6% 45px; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 5vw; }
  h1 { font-size: clamp(44px, 6.1vw, 62px); }
  .orbit { transform: scale(.88); transform-origin: left center; margin-right: -50px; }
}
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 22px; }
  .layout { min-height: calc(100vh - 115px); padding: 43px 22px 38px; grid-template-columns: 1fr; gap: 28px; }
  .story { padding: 0; }
  .kicker { margin-bottom: 18px; font-size: 9px; }
  h1 { font-size: clamp(43px, 11vw, 64px); }
  .story-copy { max-width: 500px; margin-top: 14px; font-size: 14px; }
  .orbit { display: none; }
  .story-foot { margin-top: 17px; }
  .account-card { max-width: 520px; margin: 0 auto; padding: 25px 24px 21px; }
  .site-footer { padding: 0 22px; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 17px; }
  .topbar-caption { font-size: 8px; }
  .layout { padding: 32px 16px 30px; }
  h1 { font-size: 43px; }
  .account-card { padding: 22px 17px 19px; border-radius: 12px; }
  .switch { font-size: 12px; }
  .site-footer { padding: 0 16px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

