/* PASS 166 — Invite Me: balanced two-column keeper.
   Left = complete readiness checks. Right = request, deliberate human verify, send. */
.invite-page .invite-workflow{display:block}

.invite-page .invite-process-grid{
  display:grid;
  grid-template-columns:minmax(410px,.88fr) minmax(0,1.12fr);
  gap:14px;
  align-items:stretch;
}
.invite-page .process-panel{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border-strong);
  background:linear-gradient(180deg,rgba(8,28,43,.985),rgba(3,13,21,.998));
  box-shadow:0 12px 28px rgba(0,0,0,.24);
  clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px));
}
.invite-page .preflight-panel{border-top:3px solid var(--gold)}
.invite-page .request-panel{border-top:3px solid var(--steel)}
.invite-page .process-commandbar{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 13px;
  border-bottom:1px solid var(--border-command);
  background:var(--surface-command);
  color:var(--text-primary);
  font-size:10.2px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.invite-page .process-commandbar span{color:var(--text-technical)}
.invite-page .preflight-panel .process-commandbar{border-bottom-color:rgba(138,119,28,.72)}

/* LEFT — readiness */
.invite-page .preflight-body{
  position:relative;
  height:100%;
  padding:17px 19px 15px 21px;
  background:linear-gradient(110deg,rgba(53,46,10,.14),rgba(7,26,39,.91) 38%,rgba(3,13,20,.99));
}
.invite-page .preflight-body::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:5px;
  background:linear-gradient(180deg,#fff27c,var(--gold) 50%,rgba(197,168,43,.24));
}
.invite-page .preflight-body::after{
  content:"";position:absolute;right:-58px;bottom:-78px;width:190px;height:190px;
  border:1px solid rgba(240,212,79,.055);transform:rotate(45deg);pointer-events:none
}
.invite-page .process-heading{position:relative;z-index:1;margin:0 0 6px;padding:0 0 12px;border-bottom:1px solid rgba(91,166,210,.24)}
.invite-page .process-kicker{color:var(--gold);font-size:10px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.invite-page .process-heading h3{margin:4px 0 4px;color:var(--text-strong);font-size:22px;line-height:1.05;letter-spacing:-.01em}
.invite-page .process-heading p{margin:0;color:#bed0d9;font-size:12.3px;line-height:1.35}

.invite-page .preflight-list{position:relative;z-index:1}
.invite-page .precheck{
  position:relative;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:center;
  gap:11px;
  min-width:0;
  padding:4px 0;
}
.invite-page .precheck+.precheck{border-top:2px solid rgba(91,166,210,.25)}
.invite-page .process-number{
  display:grid;place-items:center;width:34px;height:34px;
  border:1px solid rgba(190,158,35,.92);
  background:linear-gradient(180deg,rgba(75,62,9,.92),rgba(30,25,6,.92));
  color:#ffe75d;
  font-size:11px;font-weight:950;letter-spacing:.04em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(0,0,0,.34);
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)
}
.invite-page .precheck-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.invite-page .precheck-label{
  min-width:0;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:68px;
  padding:6px 4px;
  cursor:pointer;
  transition:background .1s linear,box-shadow .1s linear;
}
.invite-page .precheck-label:hover{background:linear-gradient(90deg,rgba(84,185,223,.09),rgba(84,185,223,0) 88%);box-shadow:inset 4px 0 0 rgba(84,185,223,.38)}
.invite-page .precheck-input:focus-visible+.precheck-label{outline:2px solid var(--gold);outline-offset:3px}
.invite-page .precheck-box{
  width:37px;height:37px;display:grid;place-items:center;
  border:2px solid #5db7e2;
  background:linear-gradient(180deg,#0b2639,#06151f);
  color:transparent;font-size:21px;font-weight:950;line-height:1;
  box-shadow:inset 0 0 0 2px rgba(3,10,15,.76),0 0 0 1px rgba(84,185,223,.11);
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px)
}
.invite-page .precheck-copy{min-width:0}
.invite-page .precheck-copy strong{display:block;color:#f5f8fa;font-size:14.1px;font-weight:950;line-height:1.15}
.invite-page .precheck-copy span{display:block;margin-top:4px;color:#aac2ce;font-size:10.9px;line-height:1.25}
.invite-page .precheck-state{color:#89b9d0;font-size:9.3px;font-weight:950;letter-spacing:.11em;text-transform:uppercase}
.invite-page .precheck-input:checked+.precheck-label{background:linear-gradient(90deg,rgba(66,225,105,.09),rgba(66,225,105,0) 88%);box-shadow:inset 4px 0 0 rgba(66,225,105,.46)}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{border-color:#62ef85;background:linear-gradient(180deg,#66f28a,#31bb57);color:#041108;box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 0 13px rgba(66,225,105,.16)}
.invite-page .precheck-input:checked+.precheck-label .precheck-state{color:#7ff3a5}
.invite-page .preflight-note{position:relative;z-index:1;margin:6px 0 0;padding-top:10px;border-top:1px solid rgba(91,166,210,.23);color:#9db4bf;font-size:10.4px;line-height:1.3}
.invite-page .preflight-note b{margin-right:6px;color:var(--steel2);font-size:9.2px;letter-spacing:.09em}

/* RIGHT — request */
.invite-page .request-body{
  position:relative;
  height:100%;
  padding:16px 18px 15px 20px;
  background:linear-gradient(180deg,rgba(8,28,42,.995),rgba(3,13,20,.999));
}
.invite-page .request-body::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#91d9ff,#4ca6d8 58%,rgba(76,166,216,.28))}
.invite-page .request-fields{display:grid;grid-template-columns:1fr;gap:13px;padding-bottom:13px;border-bottom:1px solid var(--line-soft)}
.invite-page .request-step{min-width:0}
.invite-page .step-head{display:flex;align-items:center;gap:9px;margin:0 0 7px;color:var(--steel2);font-size:10.5px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.invite-page .step-head b{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border:1px solid rgba(190,158,35,.70);background:linear-gradient(180deg,#132a39,#0b1e2a);color:var(--gold);font-size:10.5px;clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px)}

.invite-page .faction-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-width:510px}
.invite-page .faction-choice{position:relative}
.invite-page .faction-choice input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.invite-page .faction-choice label{min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px 14px;border:1px solid var(--border-control);background:linear-gradient(180deg,#153c5c,#0b263c);color:var(--text);font-size:12.4px;font-weight:950;letter-spacing:.06em;cursor:pointer;text-transform:uppercase;transition:border-color .1s linear,transform .1s linear,box-shadow .1s linear,background .1s linear;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%)}
.invite-page .faction-choice label:hover{background:linear-gradient(180deg,#1b4b70,#0d2e47);transform:translateY(-1px)}
.invite-page .faction-choice input:focus-visible+label{outline:2px solid var(--gold);outline-offset:3px}
.invite-page .faction-choice input:checked+label{border-color:#72c6f0;background:linear-gradient(180deg,#1c527a,#0c304c);box-shadow:inset 0 0 0 1px rgba(114,198,240,.22),0 0 15px rgba(84,185,223,.09)}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{border-color:#dc5149;background:linear-gradient(180deg,#6c2926,#341515);box-shadow:inset 0 0 0 1px rgba(220,81,73,.34),0 0 15px rgba(220,81,73,.09)}

.invite-page .invite-input{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--border-control);border-radius:0;background:#050d13;color:var(--text);font:inherit;font-size:15px;font-weight:800;outline:none}
.invite-page .invite-input:focus{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(84,185,223,.13)}
.invite-page .invite-input[aria-invalid="true"]{border-color:rgba(215,71,63,.75);box-shadow:0 0 0 2px rgba(215,71,63,.08)}
.invite-page .invite-input::placeholder{color:#72838b;font-weight:700}
.invite-page .invite-hint{margin:5px 0 0;color:#9eb3be;font-size:10.5px;line-height:1.3}

/* Deliberate verification: user initiates Turnstile, backend still validates token. */
.invite-page .verification-step{padding:13px 0;border-bottom:1px solid var(--line-soft)}
.invite-page .verification-head{margin-bottom:8px}
.invite-page .verification-control{display:grid;grid-template-columns:minmax(190px,235px) minmax(0,1fr);align-items:center;gap:12px}
.invite-page .invite-verify{min-height:42px;border:1px solid #4ea6d4;background:linear-gradient(180deg,#174969,#0a2c43);color:#edf8ff;font:inherit;font-size:10.8px;font-weight:950;letter-spacing:.07em;text-transform:uppercase;cursor:pointer;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.invite-page .invite-verify:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px)}
.invite-page .invite-verify:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.invite-page .invite-verify:disabled{cursor:not-allowed;opacity:.42;filter:saturate(.55)}
.invite-page .invite-verify[data-state="ready"]{border-color:#72c6f0;box-shadow:inset 0 0 0 1px rgba(114,198,240,.16),0 0 12px rgba(84,185,223,.08)}
.invite-page .invite-verify[data-state="verified"]{border-color:#55e97a;background:linear-gradient(180deg,#236a3b,#123b22);color:#e7ffed;opacity:1}
.invite-page .verification-copy{min-width:0;padding-left:12px;border-left:3px solid var(--steel)}
.invite-page .verification-copy strong{display:block;color:#edf7fb;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.invite-page .verification-copy span{display:block;margin-top:3px;color:#9db5c0;font-size:9.8px;line-height:1.25}
.invite-page .turnstile-stage{display:grid;grid-template-columns:minmax(285px,345px) minmax(0,1fr);align-items:center;gap:12px;margin-top:9px;padding-top:9px;border-top:1px solid rgba(91,166,210,.18)}
.invite-page .turnstile-stage[hidden]{display:none!important}
.invite-page .turnstile-wrap{min-width:0;min-height:65px;display:flex;align-items:center;justify-content:flex-start}
.invite-page .verification-state{position:relative;padding-left:17px;color:#aebfc7;font-size:10.4px;line-height:1.3}
.invite-page .verification-state::before{content:"";position:absolute;left:1px;top:.5em;width:7px;height:7px;border-radius:50%;background:#526a75;box-shadow:0 0 7px rgba(82,106,117,.22)}
.invite-page .verification-state[data-state="busy"]::before,.invite-page .verification-state[data-state="ready"]::before{background:var(--cyan);box-shadow:0 0 8px rgba(84,185,223,.42)}
.invite-page .verification-state[data-state="verified"]{color:#d9ffe2}.invite-page .verification-state[data-state="verified"]::before{background:var(--green);box-shadow:0 0 8px rgba(66,225,105,.42)}
.invite-page .verification-state[data-state="error"],.invite-page .verification-state[data-state="expired"]{color:#ffd9d6}.invite-page .verification-state[data-state="error"]::before,.invite-page .verification-state[data-state="expired"]::before{background:var(--red);box-shadow:0 0 8px rgba(215,71,63,.38)}

.invite-page .submit-row{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);align-items:center;gap:14px;padding-top:12px}
.invite-page .invite-submit{width:100%;min-height:42px;border:1px solid #07131c;background:linear-gradient(180deg,var(--sto-pressed-top),var(--sto-pressed-mid) 48%,var(--sto-pressed-break) 52%,var(--sto-pressed-low));color:var(--text-inverse-authority);font:inherit;font-size:10.8px;font-weight:950;letter-spacing:.055em;text-transform:uppercase;cursor:pointer;clip-path:polygon(0 0,calc(100% - 11px) 0,100% 50%,calc(100% - 11px) 100%,0 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.invite-page .invite-submit:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}
.invite-page .invite-submit:active:not(:disabled){transform:none}
.invite-page .invite-submit:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
.invite-page .invite-submit:disabled{cursor:not-allowed;opacity:.38;filter:saturate(.42)}
.invite-page .invite-status{position:relative;min-height:22px;padding:2px 0 2px 18px;border:0;background:none;color:#aabdc6;font-size:10.5px;line-height:1.35}
.invite-page .invite-status::before{content:"";position:absolute;left:1px;top:50%;width:7px;height:7px;border-radius:50%;background:#526a75;transform:translateY(-50%);box-shadow:0 0 7px rgba(82,106,117,.22)}
.invite-page .invite-status[data-state="ready"]{color:#dceefa}.invite-page .invite-status[data-state="ready"]::before{background:var(--cyan);box-shadow:0 0 8px rgba(84,185,223,.42)}
.invite-page .invite-status[data-state="success"]{color:#d9ffe2}.invite-page .invite-status[data-state="success"]::before{background:var(--green);box-shadow:0 0 8px rgba(66,225,105,.42)}
.invite-page .invite-status[data-state="error"]{color:#ffd9d6}.invite-page .invite-status[data-state="error"]::before{background:var(--red);box-shadow:0 0 8px rgba(215,71,63,.38)}
.invite-page .invite-status[data-state="rate"]{color:#ffe8b5}.invite-page .invite-status[data-state="rate"]::before{background:var(--amber);box-shadow:0 0 8px rgba(240,173,63,.38)}

@media (max-width:1080px){
  .invite-page .invite-process-grid{grid-template-columns:minmax(360px,.82fr) minmax(0,1.18fr)}
}
@media (max-width:900px){
  .invite-page .invite-process-grid{grid-template-columns:1fr}
  .invite-page .preflight-body,.invite-page .request-body{padding:15px 16px 14px 18px}
  .invite-page .preflight-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  .invite-page .precheck{display:block;padding:0 10px}
  .invite-page .precheck+.precheck{border-top:0;border-left:2px solid rgba(91,166,210,.24)}
  .invite-page .process-number{margin-bottom:5px}
  .invite-page .precheck-label{grid-template-columns:38px minmax(0,1fr);align-content:center}
  .invite-page .precheck-state{grid-column:2}
}
@media (max-width:700px){
  .invite-page .preflight-list{grid-template-columns:1fr}
  .invite-page .precheck{display:grid;grid-template-columns:40px minmax(0,1fr);padding:5px 0}
  .invite-page .precheck+.precheck{border-left:0;border-top:2px solid rgba(91,166,210,.24)}
  .invite-page .process-number{margin:0}
  .invite-page .precheck-label{grid-template-columns:40px minmax(0,1fr) auto}
  .invite-page .precheck-state{grid-column:auto}
  .invite-page .verification-control,.invite-page .turnstile-stage,.invite-page .submit-row{grid-template-columns:1fr}
  .invite-page .verification-copy{padding:0;border-left:0}
  .invite-page .invite-verify,.invite-page .invite-submit{max-width:340px}
}
@media (max-width:560px){
  .invite-page .faction-options{grid-template-columns:1fr}
  .invite-page .process-commandbar span{display:none}
}
@media (max-width:760px){
  .invite-page .process-commandbar,
  .invite-page .process-kicker,
  .invite-page .precheck-copy span,
  .invite-page .precheck-state,
  .invite-page .verification-copy span{font-size:12px}
}

/* PASS 167 — keeper surface tuning + zero-layout-shift verification. */

/* Keeper two-column balance: readiness has enough width to breathe. */
.invite-page .invite-process-grid{
  grid-template-columns:minmax(460px,.94fr) minmax(0,1.06fr);
  gap:14px;
  align-items:stretch;
}

/* Flat PTF step markers: authority without illuminated/game-widget styling. */
.invite-page .process-number,
.invite-page .step-head b{
  border:1px solid #8d7715;
  background:#292407;
  color:#ffe45b;
  box-shadow:none;
  clip-path:none;
  text-shadow:none;
}
.invite-page .process-number{
  width:33px;
  height:31px;
  font-size:10.8px;
}
.invite-page .step-head b{
  width:24px;
  height:24px;
  flex-basis:24px;
  font-size:10px;
}

/* Readiness controls: solid, weighty, restrained. */
.invite-page .precheck{grid-template-columns:38px minmax(0,1fr);gap:10px;padding:3px 0}
.invite-page .precheck+.precheck{border-top:2px solid rgba(91,166,210,.27)}
.invite-page .precheck-label{
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:12px;
  min-height:65px;
  padding:5px 4px;
  background:transparent;
  box-shadow:none;
}
.invite-page .precheck-label:hover{
  background:rgba(84,185,223,.045);
  box-shadow:inset 3px 0 0 rgba(84,185,223,.42);
}
.invite-page .precheck-box{
  width:34px;
  height:34px;
  border:2px solid #4f9fc7;
  background:#071923;
  color:transparent;
  font-size:20px;
  box-shadow:none;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}
.invite-page .precheck-copy strong{font-size:14.5px;line-height:1.16}
.invite-page .precheck-copy span{margin-top:4px;color:#b3c8d1;font-size:11.4px;line-height:1.28}
.invite-page .precheck-state{color:#89b7cd;font-size:9.5px}
.invite-page .precheck-input:checked+.precheck-label{
  background:rgba(66,225,105,.035);
  box-shadow:inset 3px 0 0 rgba(66,225,105,.56);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{
  border-color:#5fe77f;
  background:#43cf66;
  color:#06150a;
  box-shadow:none;
}
.invite-page .precheck-input:checked+.precheck-label .precheck-state{color:#80eda0}
.invite-page .preflight-note{font-size:11px;line-height:1.35}

/* Faction controls stay solid and site-native. */
.invite-page .faction-choice label{
  background:#123651;
  box-shadow:none;
}
.invite-page .faction-choice label:hover{background:#174766;box-shadow:none}
.invite-page .faction-choice input:checked+label{
  border-color:#72c6f0;
  background:#184b6d;
  box-shadow:inset 0 0 0 1px rgba(114,198,240,.18);
}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border-color:#dc5149;
  background:#55211f;
  box-shadow:inset 0 0 0 1px rgba(220,81,73,.24);
}

/* Verification is a fixed-size replacement slot: clicking VERIFY HUMAN never
   changes either process panel's height. The button is replaced in-place by
   the real visible Turnstile widget. */
.invite-page .verification-step{padding:11px 0 10px;border-bottom:1px solid var(--line-soft)}
.invite-page .verification-head{margin-bottom:7px}
.invite-page .verification-row{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:65px;
}
.invite-page .verification-slot{
  position:relative;
  width:300px;
  height:65px;
  flex:0 0 300px;
  overflow:visible;
}
.invite-page .invite-verify{
  position:absolute;
  left:0;
  top:8px;
  width:100%;
  height:49px;
  min-height:0;
  border:1px solid #4d91b8;
  background:#123b55;
  color:#edf8ff;
  box-shadow:none;
  transition:background .1s linear,border-color .1s linear,opacity .12s linear;
}
.invite-page .invite-verify:hover:not(:disabled){background:#184c69;filter:none;transform:none}
.invite-page .invite-verify[data-state="ready"]{border-color:#67b8df;box-shadow:none}
.invite-page .invite-verify[data-state="verified"]{border-color:#55d874;background:#1e6337;box-shadow:none}
.invite-page .turnstile-wrap{
  position:absolute;
  inset:0;
  width:300px;
  height:65px;
  min-height:65px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .12s linear;
}
.invite-page .verification-slot[data-mode="challenge"] .invite-verify{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.invite-page .verification-slot[data-mode="challenge"] .turnstile-wrap{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.invite-page .verification-copy{
  min-width:0;
  padding-left:12px;
  border-left:3px solid var(--steel);
}
.invite-page .verification-copy strong{font-size:10px}
.invite-page .verification-state{
  position:relative;
  display:block;
  margin-top:4px;
  padding-left:15px;
  color:#aebfc7;
  font-size:10.5px;
  line-height:1.25;
}
.invite-page .verification-state::before{
  content:"";
  position:absolute;
  left:1px;
  top:.46em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#526a75;
  box-shadow:none;
}
.invite-page .verification-state[data-state="busy"]::before,
.invite-page .verification-state[data-state="ready"]::before{background:var(--cyan);box-shadow:none}
.invite-page .verification-state[data-state="verified"]{color:#d9ffe2}
.invite-page .verification-state[data-state="verified"]::before{background:var(--green);box-shadow:none}
.invite-page .verification-state[data-state="error"],
.invite-page .verification-state[data-state="expired"]{color:#ffd9d6}
.invite-page .verification-state[data-state="error"]::before,
.invite-page .verification-state[data-state="expired"]::before{background:var(--red);box-shadow:none}

/* Deliberate, compact final action. */
.invite-page .submit-row{
  grid-template-columns:minmax(240px,285px) minmax(0,1fr);
  gap:14px;
  padding-top:11px;
}
.invite-page .invite-submit{min-height:41px;box-shadow:inset 0 1px 0 rgba(255,255,255,.42)}
.invite-page .invite-status{font-size:10.8px}

@media (max-width:1080px){
  .invite-page .invite-process-grid{grid-template-columns:minmax(420px,.9fr) minmax(0,1.1fr)}
}
@media (max-width:900px){
  .invite-page .invite-process-grid{grid-template-columns:1fr}
  .invite-page .verification-row{align-items:flex-start}
}
@media (max-width:700px){
  .invite-page .verification-row{display:grid;grid-template-columns:1fr;gap:8px}
  .invite-page .verification-slot{width:300px;max-width:100%}
  .invite-page .verification-copy{padding-left:0;border-left:0}
}

/* PASS 168 — family polish. Architecture stays locked: 01–03 left, 04–06 right.
   Shared site.css owns hero/section/footer rhythm exactly as on the other tabs. */

/* Solid authority markers from the site's established gold/yellow language. */
.invite-page .process-number,
.invite-page .step-head b{
  border:1px solid var(--gold-dark);
  background:var(--gold);
  color:var(--text-inverse-authority);
  box-shadow:none;
  text-shadow:none;
  clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}
.invite-page .process-number{width:33px;height:32px;font-size:10.8px}
.invite-page .step-head b{width:24px;height:24px;flex-basis:24px;font-size:10px}

/* Readiness uses the normal PTF blue control family; checked is confirmed blue,
   while green remains reserved for actual live/system success such as Turnstile. */
.invite-page .precheck-label{background:transparent;box-shadow:none}
.invite-page .precheck-label:hover{
  background:rgba(91,166,210,.055);
  box-shadow:inset 3px 0 0 rgba(91,166,210,.50);
}
.invite-page .precheck-box{
  width:36px;height:36px;
  border:1px solid var(--border-control);
  background:linear-gradient(180deg,var(--sto-idle-top),var(--sto-idle-mid) 48%,var(--sto-idle-low) 52%,var(--sto-idle-tail));
  color:transparent;
  box-shadow:none;
  text-shadow:none;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}
.invite-page .precheck-copy strong{font-size:14.7px;line-height:1.16}
.invite-page .precheck-copy span{margin-top:4px;color:#c2d1d7;font-size:11.7px;line-height:1.30}
.invite-page .precheck-state{color:var(--steel2);font-size:9.6px}
.invite-page .precheck-input:checked+.precheck-label{
  background:linear-gradient(90deg,rgba(91,166,210,.095),rgba(91,166,210,.02) 68%,transparent);
  box-shadow:inset 4px 0 0 var(--steel);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{
  border-color:var(--fed-accent-bright);
  background:linear-gradient(180deg,var(--sto-hover-top),var(--sto-hover-mid) 48%,var(--sto-hover-low) 52%,var(--sto-hover-tail));
  color:var(--text-inverse);
  box-shadow:none;
}
.invite-page .precheck-input:checked+.precheck-label .precheck-state{color:var(--steel2)}
.invite-page .preflight-note{font-size:11.4px;line-height:1.38;color:#adc1ca}

/* Faction controls are ordinary site buttons while idle. Identity appears only
   after selection: Federation blue, Klingon red. */
.invite-page .faction-choice label{
  border:1px solid var(--border-control);
  background:linear-gradient(180deg,var(--sto-idle-top),var(--sto-idle-mid) 48%,var(--sto-idle-low) 52%,var(--sto-idle-tail));
  color:var(--text-inverse);
  text-shadow:0 1px rgba(255,255,255,.22);
  box-shadow:none;
}
.invite-page .faction-choice label:hover{
  background:linear-gradient(180deg,var(--sto-hover-top),var(--sto-hover-mid) 48%,var(--sto-hover-low) 52%,var(--sto-hover-tail));
  transform:none;box-shadow:none;
}
.invite-page .faction-choice input:checked+label{
  border-color:var(--fed-accent-bright);
  background:linear-gradient(180deg,#a7ddf4,#72bddf 48%,#4794bd 52%,#2e7399);
  color:var(--text-inverse);
  box-shadow:inset 0 0 0 1px rgba(184,231,255,.18);
}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border-color:var(--kdf-accent-bright);
  background:linear-gradient(180deg,#bd554e,#96352f 48%,#6c2421 52%,#441716);
  color:var(--text-primary);
  text-shadow:0 1px rgba(0,0,0,.42);
  box-shadow:inset 0 0 0 1px rgba(239,122,114,.18);
}

/* VERIFY HUMAN is also a normal site-blue control. The Turnstile iframe replaces
   it inside an immutable 300x65 viewport, so verification cannot resize either
   process panel in idle, challenge, success, expiry or retry states. */
.invite-page .verification-slot{
  width:300px;height:65px;min-width:300px;min-height:65px;max-height:65px;
  flex:0 0 300px;overflow:hidden;
}
.invite-page .invite-verify{
  border:1px solid var(--border-control);
  background:linear-gradient(180deg,var(--sto-idle-top),var(--sto-idle-mid) 48%,var(--sto-idle-low) 52%,var(--sto-idle-tail));
  color:var(--text-inverse);
  text-shadow:0 1px rgba(255,255,255,.22);
  box-shadow:none;
}
.invite-page .invite-verify:hover:not(:disabled){
  background:linear-gradient(180deg,var(--sto-hover-top),var(--sto-hover-mid) 48%,var(--sto-hover-low) 52%,var(--sto-hover-tail));
  filter:none;transform:none;
}
.invite-page .invite-verify[data-state="ready"]{border-color:var(--steel2);box-shadow:none}
.invite-page .invite-verify[data-state="verified"]{
  border-color:var(--steel2);
  background:linear-gradient(180deg,var(--sto-idle-top),var(--sto-idle-mid) 48%,var(--sto-idle-low) 52%,var(--sto-idle-tail));
  color:var(--text-inverse);
}
.invite-page .turnstile-wrap{
  width:300px;height:65px;min-width:300px;min-height:65px;max-height:65px;
  overflow:hidden;
}
.invite-page .turnstile-wrap iframe{
  display:block!important;
  width:300px!important;min-width:300px!important;max-width:300px!important;
  height:65px!important;min-height:65px!important;max-height:65px!important;
  border:0!important;
}

/* Keep the closing action compact and on-family. */
.invite-page .submit-row{grid-template-columns:minmax(245px,290px) minmax(0,1fr);gap:14px;padding-top:11px}
.invite-page .invite-submit{width:100%;min-height:41px}

@media (max-width:700px){
  .invite-page .verification-slot,
  .invite-page .turnstile-wrap{width:300px;min-width:0;max-width:100%}
}


/* PASS 169 — final family-rhythm + control-state correction.
   Architecture remains locked. This pass fixes visual state semantics, short-page
   footer behavior, and aligns Invite hero-to-section rhythm with the mature tabs. */

/* Match the established public-page vertical rhythm exactly on Invite. */
.invite-page .hero{padding-bottom:18px}
.invite-page .invite-section{padding-top:10px;padding-bottom:38px}


/* Readiness is a real checkbox affordance: hollow while incomplete, solid PTF
   blue only after confirmation. No illuminated/filled idle square. */
.invite-page .precheck-box{
  width:36px;height:36px;
  border:2px solid var(--steel);
  background:#061722;
  color:transparent;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.28);
  text-shadow:none;
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}
.invite-page .precheck-label:hover .precheck-box{border-color:var(--steel2);background:#081d2b}
.invite-page .precheck-input:checked+.precheck-label{
  background:linear-gradient(90deg,rgba(91,166,210,.095),rgba(91,166,210,.018) 72%,transparent);
  box-shadow:inset 4px 0 0 var(--steel);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{
  border-color:var(--steel2);
  background:var(--steel);
  color:var(--text-inverse);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-state{color:var(--steel2)}

/* Faction choices start neutral/authority-gold, so selection has meaningful
   faction identity: Federation turns blue; Klingon turns red. */
.invite-page .faction-choice label{
  border:1px solid var(--border-authority-strong);
  background:linear-gradient(180deg,#4b4217,#302a0e 49%,#28230b 52%,#1d1a09);
  color:#f8e994;
  text-shadow:none;
  box-shadow:inset 0 1px 0 rgba(255,242,124,.08);
}
.invite-page .faction-choice label:hover{
  border-color:var(--gold);
  background:linear-gradient(180deg,#5c501b,#3b3310 49%,#302a0d 52%,#242008);
  color:#fff2a8;
  transform:none;
  box-shadow:inset 0 1px 0 rgba(255,242,124,.12);
}
.invite-page .faction-choice input:checked+label{
  border-color:var(--fed-accent-bright);
  background:linear-gradient(180deg,#1d557c,#164662 49%,#103950 52%,#0b2b3e);
  color:#f3fbff;
  text-shadow:0 1px rgba(0,0,0,.45);
  box-shadow:inset 0 0 0 1px rgba(184,231,255,.14);
}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border-color:var(--kdf-accent-bright);
  background:linear-gradient(180deg,#7a2b27,#61211e 49%,#501b19 52%,#381312);
  color:#fff5f4;
  text-shadow:0 1px rgba(0,0,0,.45);
  box-shadow:inset 0 0 0 1px rgba(239,122,114,.14);
}

@media (max-width:760px){
  .invite-page .hero{padding-bottom:30px}
  .invite-page .invite-section{padding-top:24px;padding-bottom:26px}
}

/* PASS 170 — state semantics + family parity polish.
   Locked architecture: 01–03 readiness left, 04–06 request right.
   No backend, Turnstile, webhook, D1 or rate-limit behavior changes. */

/* Step markers use one geometry everywhere. 01–03 now match 04–06 exactly. */
.invite-page .process-number,
.invite-page .step-head b{
  width:24px;
  height:24px;
  min-width:24px;
  min-height:24px;
  flex:0 0 24px;
  display:inline-grid;
  place-items:center;
  border:1px solid var(--gold-dark);
  background:var(--gold);
  color:var(--text-inverse-authority);
  font-size:10px;
  font-weight:950;
  line-height:1;
  box-shadow:none;
  text-shadow:none;
  clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}
.invite-page .precheck{grid-template-columns:32px minmax(0,1fr);gap:10px}
.invite-page .process-number{justify-self:center}

/* Readiness semantics: hollow PTF blue while incomplete; solid green only when
   the user has explicitly confirmed the condition. Green is a state signal,
   not an idle component colour. */
.invite-page .precheck-box{
  width:36px;
  height:36px;
  border:2px solid var(--steel);
  background:#061722;
  color:transparent;
  box-shadow:none;
  text-shadow:none;
}
.invite-page .precheck-label:hover .precheck-box{
  border-color:var(--steel2);
  background:#081d2b;
}
.invite-page .precheck-input:checked+.precheck-label{
  background:linear-gradient(90deg,rgba(66,225,105,.065),rgba(66,225,105,.012) 72%,transparent);
  box-shadow:inset 4px 0 0 rgba(66,225,105,.62);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{
  border-color:#63eb83;
  background:#42d166;
  color:#06150a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28);
}
.invite-page .precheck-input:checked+.precheck-label .precheck-state{color:#82efa1}

/* Faction selection is a segmented choice, not a CTA. Idle is neutral PTF
   navy/steel; identity appears only in the persistent selected state. */
.invite-page .faction-choice label{
  border:1px solid rgba(91,166,210,.48);
  background:#0a1b27;
  color:#e4eef3;
  text-shadow:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.invite-page .faction-choice label:hover{
  border-color:var(--steel2);
  background:#10283a;
  color:#f4fbff;
  transform:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.invite-page .faction-choice input:checked+label{
  border:2px solid var(--fed-accent-bright);
  background:linear-gradient(180deg,#1d557c,#164662 49%,#103950 52%,#0b2b3e);
  color:#f4fbff;
  text-shadow:0 1px rgba(0,0,0,.45);
  box-shadow:inset 0 -3px 0 rgba(126,211,247,.52);
}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border:2px solid var(--kdf-accent-bright);
  background:linear-gradient(180deg,#7a2b27,#61211e 49%,#501b19 52%,#381312);
  color:#fff6f5;
  text-shadow:0 1px rgba(0,0,0,.45);
  box-shadow:inset 0 -3px 0 rgba(235,92,84,.56);
}


/* PASS 171 — control-weight polish.
   Architecture and behavior unchanged. Strengthens checkbox and faction-control
   silhouettes so they read like deliberate PTF controls rather than hairlines. */

/* Readiness: keep the hollow/green state semantics, increase physical weight. */
.invite-page .precheck-box{
  border-width:3px;
  border-color:#5aa9d1;
  background:#061722;
  box-shadow:inset 0 0 0 1px rgba(2,9,14,.72);
}
.invite-page .precheck-label:hover .precheck-box{
  border-color:#82cbed;
  background:#081d2b;
}
.invite-page .precheck-input:checked+.precheck-label .precheck-box{
  border-width:3px;
  border-color:#6bf08a;
  background:#42d166;
  color:#06150a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30);
}

/* Faction selector: same state logic, heavier persistent frame in every state.
   Border width stays constant so selection never causes layout movement. */
.invite-page .faction-choice label{
  border-width:2px;
  border-style:solid;
  border-color:#3f7899;
  background:#0a1b27;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.28);
}
.invite-page .faction-choice label:hover{
  border-color:#6bb4d8;
  background:#10283a;
  box-shadow:inset 0 0 0 1px rgba(107,180,216,.08);
}
.invite-page .faction-choice input:checked+label{
  border-width:2px;
  border-color:var(--fed-accent-bright);
  box-shadow:inset 0 0 0 1px rgba(184,231,255,.22),inset 0 -4px 0 rgba(126,211,247,.58);
}
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border-width:2px;
  border-color:var(--kdf-accent-bright);
  box-shadow:inset 0 0 0 1px rgba(239,122,114,.24),inset 0 -4px 0 rgba(235,92,84,.62);
}

/* PASS 172 — control geometry + footer placement contract.
   Architecture and backend behavior are locked. This pass removes decorative
   corner cuts from readiness/faction controls, matches their frame weight, and
   makes the Invite footer reliably settle at the viewport bottom on short
   screens without becoming fixed/sticky. */

/* Readiness controls: square, substantial, no chamfer/corner flourish. */
.invite-page .precheck-box{
  border-width:3px;
  clip-path:none;
  -webkit-clip-path:none;
  border-radius:0;
}

/* Faction segmented controls: same 3px physical frame as readiness boxes.
   Keep the idle/selected semantics from Pass 170; remove the clipped corner. */
.invite-page .faction-choice label{
  border-width:3px;
  clip-path:none;
  -webkit-clip-path:none;
  border-radius:0;
}
.invite-page .faction-choice input:checked+label,
.invite-page .faction-choice[data-faction="KDF"] input:checked+label{
  border-width:3px;
}


/* Preserve a deliberate content-to-footer gap when content itself is taller
   than the viewport; on short pages the auto margin supplies the extra space. */
.invite-page .invite-section{padding-bottom:34px}
@media (max-width:760px){
  .invite-page .invite-section{padding-bottom:26px}
}




/* PASS 173 — footer flow is intentionally owned only by shared site.css.
   Invite defines no page-shell, main-flex, sticky, fixed, or footer-margin rule. */
