:root{
    --graphite:#18181A; --graphite-2:#232326; --ink:#1A1A1C;
    --voltage:#D6F436; --voltage-deep:#84A800; --asleep:#A8A8A6;
    --paper:#FAF8F3; --muted:#9c9c97; --line:#313134;
  }
  *{margin:0;padding:0;box-sizing:border-box}
  /* the grant screen's shell: card + legal line centred, the line under the card */
  body{font-family:"Manrope",-apple-system,sans-serif;background:var(--graphite);color:#EDEDEA;line-height:1.6;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px}
  .card{width:440px;max-width:100%;background:var(--graphite-2);border:1px solid var(--line);border-radius:20px;padding:36px 32px 32px;text-align:left}
  /* every state heads with the big mark over the title (comp v8) */
  .head{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:16px;text-align:center;position:relative}
  .head .t{font-size:24px;font-weight:800;color:#fff;letter-spacing:-.01em;position:relative}
  .head .t:empty{display:none}
  .eyeL{transform-box:fill-box;transform-origin:center}
  .wink .eyeL{animation:wink .5s ease .1s}
  @keyframes wink{0%,100%{transform:scaleY(1)}45%,65%{transform:scaleY(.14)}}
  /* the mark carries the state: voltage eyes = live, asleep = gone */
  .mark.asleep .eyeL,.mark.asleep .eyeR{fill:var(--asleep)}
  /* the fanfare (R8 S1): crisp voltage sparks behind the mark, no glow. They
     fly out once when the invite or You're in lands, then settle faint. */
  .markwrap{position:relative;width:56px;height:56px;margin:0 auto}
  .markwrap svg.mark{position:relative;z-index:1;width:56px;height:56px;display:block}
  .markwrap svg.burst{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;pointer-events:none;z-index:0;opacity:0}
  .burst line{stroke:var(--voltage);stroke-width:3.2;stroke-linecap:round}
  .burst circle{fill:var(--voltage)}
  .burst.faint{opacity:.45}
  .burst.fly{animation:fly .9s ease-out both,settle .4s ease-out .9s both}
  @keyframes fly{from{transform:scale(.55);opacity:0}to{transform:scale(1);opacity:1}}
  @keyframes settle{from{opacity:1}to{opacity:.45}}
  .nofx .burst{display:none}
  p{font-size:13.5px;color:var(--muted);font-weight:500;margin-bottom:12px}
  p b{color:#fff;font-weight:800}
  .top{text-align:center;margin-bottom:22px}
  .top .lead{font-size:15px;color:#C9C9C4;font-weight:600;max-width:32ch;margin:0 auto 4px}
  .top p{font-size:14.5px;color:#C9C9C4;max-width:30ch;margin:0 auto 6px}
  .top p.quiet{color:#7e7e7a;font-size:12.5px;font-weight:600}
  .top .note{margin:6px auto 0;max-width:30ch}
  /* message states (not an invite, used, error): the grant's centred, roomy card */
  .card.msg{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
  .card.msg .head{gap:14px;margin-bottom:10px}
  .card.msg .head .t{font-size:21px}
  .card.msg p{font-size:14.5px;color:#C9C9C4;max-width:30ch;margin:0 auto 14px}
  .card.msg p.quiet{margin-bottom:0;color:#7e7e7a}
  .card.msg button.ghost{margin:6px 0 14px}
  .quiet{font-size:12.5px;color:#7e7e7a;font-weight:600}
  .quiet a,.sub a{color:#9c9c97}
  .sub{font-size:12px;color:#7e7e7a;font-weight:600;margin-top:7px}
  /* the deal box: the ask card's shape, icon rows, few words */
  .ask{background:var(--graphite);border:1px solid var(--line);border-radius:13px;padding:6px 16px 16px;margin:0 0 18px}
  .ask .irow{display:flex;align-items:center;gap:11px;margin-top:11px;font-size:13.5px;color:#EDEDEA;font-weight:700}
  .ask .irow .capv{color:var(--voltage);font-weight:800}
  .ask .ic{flex:none;width:27px;height:27px;border-radius:8px;background:var(--graphite-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
  .ask .ic svg{width:15px;height:15px;display:block}
  /* the form: a work state, left-aligned */
  label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin:12px 0 5px}
  .paste{width:100%;background:var(--graphite);border:1px solid var(--line);border-radius:11px;color:#EDEDEA;font-family:"SF Mono",Consolas,Menlo,monospace;font-size:12.5px;padding:12px 13px;outline:none}
  .paste::placeholder{color:#5f5f5c}
  .paste:focus{border-color:#5a5a30}
  .paste + .sub{margin-top:5px}
  .note{font-size:12px;color:var(--muted);font-weight:600;margin-top:6px}
  .note:empty{display:none}
  .note.err{color:#F2A6A6}
  button.main{width:100%;border:0;background:var(--voltage);color:var(--ink);font-family:"Manrope",sans-serif;font-weight:800;font-size:14.5px;border-radius:11px;padding:13px 0;cursor:pointer;margin-top:18px}
  button.main:disabled{opacity:.45;cursor:default}
  button.ghost{border:1px solid var(--line);background:transparent;color:#EDEDEA;font-family:"Manrope",sans-serif;font-weight:700;font-size:12.5px;border-radius:9px;padding:7px 12px;cursor:pointer;white-space:nowrap}
  /* in-flight: a small ring before the words; reduced motion gets a still dot */
  .spin{display:inline-block;width:12px;height:12px;border:2px solid #5a5a30;border-top-color:var(--voltage);border-radius:50%;margin-right:7px;vertical-align:-2px;animation:spin .8s linear infinite}
  @keyframes spin{to{transform:rotate(360deg)}}
  /* the launch-directory opt-in: a checkbox row, then the icon picker it reveals */
  .check{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:13.5px;font-weight:700;color:#EDEDEA;cursor:pointer;user-select:none;position:relative}
  .check input{position:absolute;opacity:0;width:0;height:0}
  .check .box{flex:none;width:18px;height:18px;border-radius:5px;border:1px solid #4a4a4e;background:var(--graphite);display:flex;align-items:center;justify-content:center}
  .check .box svg{width:12px;height:12px;display:none}
  .check input:checked + .box{background:var(--voltage);border-color:var(--voltage)}
  .check input:checked + .box svg{display:block}
  .check input:focus-visible + .box{outline:2px solid #5a5a30;outline-offset:1px}
  .check + .sub{margin:4px 0 0 28px}
  .iconrow{display:flex;align-items:center;gap:12px;margin:12px 0 0 28px}
  .iconrow[hidden]{display:none}
  .iconrow .tile{flex:none;width:44px;height:44px;border-radius:11px;background:var(--graphite);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;color:#fff;overflow:hidden}
  .iconrow .tile img{width:100%;height:100%;object-fit:cover;display:block}
  .iconrow .sub{margin:0}
  .iconrow input{display:none}
  /* registered: the section label, the block (folded peek + fade), the copy button */
  .sect{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8a8a86;margin:0 0 8px}
  .block{width:100%;background:var(--graphite);border:1px solid var(--line);border-radius:11px;color:#EDEDEA;font-family:"SF Mono",Consolas,Menlo,monospace;font-size:11.5px;line-height:1.55;padding:12px 13px;white-space:pre-wrap;word-break:break-word}
  .block .k{color:var(--muted)}
  .block.folded{max-height:66px;overflow:hidden;position:relative;cursor:pointer}
  .block.folded::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(rgba(24,24,26,0),var(--graphite))}
  .unfold{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px;font-size:12px;font-weight:700;color:#9c9c97;cursor:pointer;background:none;border:0;width:100%;font-family:"Manrope",sans-serif}
  .unfold svg{width:14px;height:14px}
  button.copy{width:100%;border:0;background:var(--voltage);color:var(--ink);font-family:"Manrope",sans-serif;font-weight:800;font-size:14px;border-radius:11px;padding:12px 0;margin:10px 0 22px;cursor:pointer}
  .kv{margin-bottom:16px}
  .kv .v,.secret{display:flex;align-items:center;gap:10px}
  .kv code,.secret code{flex:1;min-width:0;background:var(--graphite);border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-family:"SF Mono",Consolas,Menlo,monospace;font-size:12px;color:#EDEDEA;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .kv .lines{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .quiet-link{display:block;margin-top:18px;font-size:12.5px;color:#9c9c97;font-weight:700;text-decoration:none}
  .quiet-link:hover{text-decoration:underline}
  a{color:var(--voltage);font-weight:700;text-decoration:none}
  a:hover{text-decoration:underline}
  .foot{font-size:11px;color:#8a8a86;margin-top:16px;text-align:center}
  .foot a{color:#8a8a86;font-weight:600}
  @media (prefers-reduced-motion:reduce){
    .spin{animation:none;border:0;width:6px;height:6px;background:var(--voltage);vertical-align:1px}
    .burst.fly{animation:none;opacity:.45}
  }
  /* the register page (OPEN-REGISTRATION-SITE): the landing modal's how-are-you-building
     tiles as the invite page's form rows, and the human check above the button */
  .product-register fieldset.kind{border:0;margin:0;padding:0;min-width:0}
  .product-register .kind legend{display:block;font-size:12px;font-weight:700;color:var(--muted);margin:12px 0 5px;padding:0}
  .product-register .choice{display:flex;gap:13px;align-items:flex-start;background:var(--graphite);border:1px solid #4B4B4E;padding:15px;border-radius:11px;cursor:pointer;margin:10px 0 0;color:#EDEDEA}
  .product-register .choice:has(input:checked){border-color:var(--voltage)}
  .product-register .choice input{accent-color:var(--voltage);margin-top:4px;flex:none}
  .product-register .choice strong{display:block;font-size:14px;color:var(--paper)}
  .product-register .choice small{display:block;font-size:12px;line-height:1.7;color:#B8B8B2;margin-top:5px}
  .product-register .human-label{font-size:12px;font-weight:700;color:var(--muted);margin:18px 0 5px}
  .product-register .ts{min-height:0}
