/* Shared portal presentation: static pages and the earlier React portal. */
body.tm-portal, div.tm-portal { --tm-cyan:#71eafa; --tm-line:#afbcff30; color:#f4f6fc; min-height:100svh; background:radial-gradient(ellipse at 14% 15%,#14346366,transparent 38rem),radial-gradient(ellipse at 90% 20%,#48205755,transparent 35rem),#070b19; font-family:Inter,system-ui,sans-serif; line-height:1.6; }
.tm-portal *, .tm-portal *::before, .tm-portal *::after { box-sizing:border-box; }
.tm-portal main, .tm-portal > .tm-inner { max-width:58rem; margin:auto; padding:1.5rem clamp(1.25rem,4vw,3rem) 2rem; }
.tm-header { margin-bottom:2.5rem; text-align:center; }
.tm-header nav { display:flex; justify-content:space-between; gap:1rem; font-size:.9rem; }
.tm-portal a { color:var(--tm-cyan); text-underline-offset:.25em; }
.tm-logo { display:block; width:min(100%,25rem); margin:1.6rem auto .4rem; }
.tm-logo img { display:block; width:100%; height:auto; object-fit:contain; }
.tm-tagline { color:#e4eafa; font-size:clamp(.875rem,2.8vw,1rem); font-weight:600; margin:0; }
.tm-portal .eyebrow, .tm-portal .section-label { color:var(--tm-cyan); font-size:.875rem; letter-spacing:.12em; font-weight:600; }
.tm-portal h1 { font-size:clamp(2rem,4.8vw,3rem); line-height:1.12; letter-spacing:-.035em; max-width:100%; color:white; text-shadow:none; margin:.75rem 0 1.25rem; }
.tm-portal h2 { line-height:1.3; }
.tm-portal .tm-content { padding:clamp(1.5rem,4vw,3rem); border:1px solid var(--tm-line); border-radius:1.5rem; background:linear-gradient(145deg,#101e37e6,#171329e6); box-shadow:0 24px 70px #0003; position:relative; }
.tm-content::before { content:""; position:absolute; height:2px; top:-1px; left:2rem; right:2rem; background:linear-gradient(90deg,#71eafa,#497cff,#af67ff,#dc57d5); border-radius:2px; }
.tm-portal .tm-content > :first-child { margin-top:0; }
.tm-portal .status { padding:1rem 1.25rem; border-left:3px solid #71eafa; line-height:1.65; background:#080e2070; border-radius:.7rem; border-left-width:3px; }
.tm-portal .status.bad { color:#f4e7ee; border-color:#f394c5; }
.tm-portal .tm-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.5rem; margin-top:1.75rem; }
.tm-portal button, .tm-portal .button, .tm-portal .primary-button { display:inline-flex; justify-content:center; align-items:center; min-height:3rem; border-radius:999px; padding:.8rem 1.4rem; background:linear-gradient(110deg,#71eafa,#8bbaff 55%,#b69bff); color:#08101e; border:1px solid transparent; font:600 1rem/1.35 Inter,system-ui,sans-serif; text-decoration:none; cursor:pointer; }
.tm-portal button.secondary, .tm-portal .tm-secondary { color:#c7ebff; background:transparent; }
.tm-portal a, .tm-portal button { touch-action:manipulation; }
.tm-portal :focus-visible { outline:3px solid #8ff2ff; outline-offset:5px; }
.tm-portal button:disabled { opacity:.55; cursor:default; }
.tm-portal input, .tm-portal select, .tm-portal textarea { font-size:1rem; }
.tm-portal .tm-footer { text-align:center; border-top:1px solid var(--tm-line); margin-top:3rem; padding:2rem 0 0; font-size:.875rem; color:#aab6ce; }
.tm-footer img { width:13rem; max-width:75%; height:auto; margin:0 auto 1.2rem; display:block; }
.tm-footer nav { display:flex; justify-content:center; flex-wrap:wrap; gap:1.25rem; }
.tm-footer p { margin:.9rem 0 0; }
.tm-portal .brand-hero { padding:0; }
.tm-portal .brand-hero h1 { font-size:clamp(2rem,5vw,3rem); }
.tm-portal #verifyNext { background:transparent; border:0; border-top:1px solid var(--tm-line); border-radius:0; padding:1.5rem 0 0; margin-top:1.5rem; }
.tm-portal #verifyNext h2 { font-size:1.45rem; }
.tm-portal #done { background:transparent; border:0; padding:0; }
.tm-portal .card, .tm-portal fieldset { border-color:var(--tm-line); }
.tm-portal .skip-link { position:absolute; top:1rem; left:1rem; padding:.5rem; background:#070b19; transform:translateY(-200%); z-index:10; }
.tm-portal .skip-link:focus { transform:translateY(0); }
.tm-portal .signin-shell { min-height:0; padding:0; display:block; }
.tm-portal .signin-card { width:100%; display:block; padding:0; border:0; background:none; box-shadow:none; }
.tm-portal .signin-copy { max-width:none; }
@media(max-width:600px) { .tm-header { margin-bottom:1.75rem; } .tm-logo { width:min(100%,20rem); margin-top:1.2rem; } .tm-portal .tm-content { padding:1.5rem 1.15rem; border-radius:1.1rem; } .tm-portal .tm-actions { align-items:stretch; flex-direction:column; text-align:center; } .tm-portal .tm-footer { margin-top:2rem; } .tm-portal .row { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .tm-portal * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Explicit A/D/E gate: shared portal tokens, readable documents and keyboard controls. */
.tm-agreement-gate { border-top: 2px solid var(--cyan, #66e6ff); }
.tm-agreement-gate h2 { margin-top: .5rem; }
.tm-agreement-document { margin: 1rem 0; padding: 1rem; border: 1px solid #40465d; border-radius: .75rem; }
.tm-agreement-document summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.tm-agreement-document .agreement { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; margin: 1rem 0; }
.tm-agreement-gate .check { display: flex; align-items: flex-start; gap: .75rem; margin: 1.25rem 0; line-height: 1.6; }
.tm-agreement-gate input[type=checkbox] { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .2rem; }
.tm-agreement-gate button { white-space: normal; max-width: 100%; }
.tm-agreement-gate :focus-visible { outline: 3px solid #66e6ff; outline-offset: 4px; }
@media(max-width:600px) { .tm-agreement-gate { padding: 1rem; } .tm-agreement-gate .tm-actions { flex-direction: column; align-items: stretch; } }
