/* Same palette and type as www.fastfin.com, composed like its hero: header on an amber rule, the prompts
   anchored low above a second rule, and a status table beneath it. Keys (Username:, STATUS, NEW USER) share
   one gutter (--K), so every value starts on the same edge. Two type sizes only: prompt (--P) and reply (--R).
   One gap (--G) around the rules. */
:root{--bg:#17294A;--fg:#E6EAF0;--muted:#8E9AB0;--soft:#B9C2D1;--accent:#F2A33A;--err:#F0A090;
 --sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
 --G:clamp(22px,5.2vh,84px);--P:clamp(20px,2.6vw,52px);--R:clamp(14px,1.25vw,22px);--K:calc(var(--P)*6);color-scheme:dark}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--sans);font-weight:300;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;padding:0 max(16px,5vw)}
a{color:var(--fg);text-decoration:none;border-bottom:1px solid var(--accent)}
a:focus-visible,button:focus-visible{outline:1px solid var(--accent);outline-offset:3px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#field{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.view{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;padding-block:var(--G)}
header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:var(--G);border-bottom:1px solid var(--accent);position:relative}
.mark{display:block;height:clamp(44px,5vw,96px);width:auto}
header .home{border:0;display:block}
.tlink{font-size:clamp(12px,1.05vw,18px);letter-spacing:.02em;color:var(--muted);border-bottom-color:transparent;white-space:nowrap}
.tlink:hover{color:var(--fg)}
.ct{position:absolute;right:0;bottom:-1px;transform:translateY(50%);background:var(--bg);padding-left:1.4em;font-family:var(--mono);font-size:clamp(10px,.78vw,14px);letter-spacing:.08em;color:var(--muted);white-space:nowrap}
.nojs{position:relative;z-index:1;padding:2em 0;font-family:var(--mono)}
.rise{flex:1;min-height:var(--G)}
.term{font-family:var(--mono)}

/* prompts: the field's own text and caret are invisible; app.js draws the line on character cells in .ov */
.lead{padding-left:var(--K);font-size:var(--R);line-height:1.45;color:var(--soft);max-width:calc(var(--K) + 34em);margin-bottom:calc(var(--P)*.85)}
.cf{position:relative;display:flex;align-items:baseline;font-size:var(--P);line-height:1.3}
.cf+.cf{margin-top:.2em}
.cf .pr{flex:none;width:var(--K);color:var(--muted)}
.cf input{flex:1;min-width:0;font:inherit;font-weight:300;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;background:none;border:0;border-radius:0;outline:0;padding:0}
.cf input::selection{background:rgba(242,163,58,.3)}
.cf input:-webkit-autofill{-webkit-text-fill-color:transparent;transition:background-color 99999s}
.cf .ov{position:absolute;left:var(--K);right:0;top:0;height:1.3em;overflow:hidden;pointer-events:none;white-space:nowrap}
.cf .mk{color:var(--fg)}
.cf .mv{font-style:normal;color:var(--muted)}
/* block cursor: one character cell wide, one em tall (descender to ascender), on the cell after the text */
.cc{position:absolute;left:0;top:.245em;width:1ch;height:1em;background:var(--accent);opacity:.85}
.cc.bl{animation:blink 1.06s steps(1) infinite}
.cf input:not(:focus)~.ov .cc{visibility:hidden}
/* before the field has focus (phones do not allow focus on load) the first prompt shows a steady, dimmer cursor */
.term:not(:focus-within) .cf:first-of-type input:placeholder-shown~.ov .cc{visibility:visible;opacity:.45;animation:none}
.cf button{align-self:center;font-family:inherit;font-size:var(--R);font-weight:300;color:var(--muted);background:none;border:0;cursor:pointer;white-space:nowrap;line-height:1;padding:.2em 0 .2em 1.2em;opacity:0;pointer-events:none;transition:opacity .3s ease,color .2s ease}
.cf:focus-within input:not(:placeholder-shown)~button{opacity:1;pointer-events:auto}
.cf button:hover{color:var(--fg)}
.cf.bad .pr{color:var(--err)}
.cf.wait{visibility:hidden}
.cf.gone{display:none}
.cf.gone+.cf{margin-top:0}
.term.sent .cf .cc{visibility:hidden}
.term.sent .cf button,.cf input:read-only~button{display:none}
.cf .ck{align-self:center;color:var(--accent);padding-left:.4em}
.cf .ck svg{display:block;width:.8em;height:.8em}

/* status table under the second rule */
.stat{display:grid;grid-template-columns:2fr 1fr;column-gap:3.5vw;margin-top:calc(var(--G) - .3em);padding-top:calc(var(--G) - .4em);border-top:1px solid var(--accent);font-size:var(--R);line-height:1.45;min-height:calc(var(--G) + 4.35em)}
.row{display:grid;grid-template-columns:var(--K) minmax(0,1fr)}
.meta .row{grid-template-columns:5em minmax(0,1fr)}
.row .k{color:var(--muted)}
.row .k.e{color:var(--err)}
.row .k.ok{color:var(--accent)}
.row .w{color:var(--muted)}
.row .ref{color:var(--accent)}
.meta .row span+span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .cc{position:static;display:inline-block;vertical-align:-.22em;margin-left:.2em;animation:blink 1.06s steps(1) infinite}
.foot{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:var(--G);font-size:clamp(12px,.9vw,15px);color:var(--muted)}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.cc.bl,.row .cc{animation:none}}
@media (max-width:700px){
 .cf .bt{display:none}
 .lead{padding-left:0}
 .rise{flex:none;min-height:0;height:var(--G)}
 .stat{grid-template-columns:1fr;min-height:0}
 .meta .row{grid-template-columns:var(--K) minmax(0,1fr)}
 .foot{margin-top:auto;padding-top:var(--G)}
}
