/* One voice (the nugoo design system, nugoo design/source/native-os/design-system/tokens/tokens.json) for
   every page the sign-in service serves: the background, the door (sign in and code) and the
   signed-in shape (wordmark, left menu, title with one line, tiles of rows). Pages add only what is theirs. */
@font-face{font-family:NugooDesignVoice;src:url(/login/assets/fonts/ohno-softie-light.woff2) format('woff2');font-weight:300;font-display:optional}
@font-face{font-family:NugooDesignSans;src:url(/login/assets/fonts/rubik-latin.woff2) format('woff2');font-weight:300 900;font-display:optional}
:root{
  color-scheme:dark;
  --nugoo-render-background:#203531;
  --scene:var(--nugoo-render-background);
  --text:#ffffff;--support:#ffffffb8;--disabled:#ffffff73;--inverse:#20302c;
  --tile:#ffffff0d;--control:#ffffff14;--hover:#ffffff1f;--line:#ffffff24;
  --backdrop:#00000075;--shadow:0 12px 48px #00000040;
  --font:NugooDesignSans,Rubik,system-ui,sans-serif;--display:NugooDesignVoice,Ohno,Georgia,serif;
  --title:300 48px/1.18 var(--display);--heading:300 32px/38px var(--display);
  --body:400 16px/26px var(--font);--label:500 16px/26px var(--font);
  --small:400 14px/22px var(--font);--action:500 14px/22px var(--font);
  --panel-inset:24px;--section-gap:80px
}
@media (max-width:700px){:root{--title:300 34px/1.18 var(--display);--heading:300 28px/34px var(--display);--panel-inset:16px;--section-gap:48px}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--scene);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;background:transparent;color:var(--text);font:var(--body);-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
a{color:var(--text)}
:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The background: one still scene color per page; between pages a one-pixel canvas, stretched to the
   screen, fades evenly to the next color. A little grain against banding. */
#living{position:fixed;inset:0;width:100%;height:100%;z-index:-2;background:var(--scene)}
/* The background's color change: the old color lies on top and fades away over the new one (nugoo.js bloom). */
html[data-bloom] #living{background:var(--was);animation:500ms cubic-bezier(.2,0,0,1) both nv-bloom}
@keyframes nv-bloom{to{opacity:0}}
.grain{position:fixed;inset:0;z-index:-1;opacity:.07;mix-blend-mode:soft-light;pointer-events:none;background:url(/login/assets/grain.png)}

.wordmark{display:block;color:var(--text);text-decoration:none}
.wordmark svg{display:block;width:100%;height:auto}
.wordmark svg path{fill:currentColor}

/* Actions */
.action{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border:0;border-radius:999px;background:var(--text);color:var(--inverse);
  font:var(--action);padding:0 24px;cursor:pointer;white-space:nowrap;text-decoration:none}
.action:hover{opacity:.92}
.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border:0;border-radius:999px;background:var(--control);color:var(--text);
  font:var(--action);padding:0 16px;cursor:pointer;white-space:nowrap;text-decoration:none}
.quiet:hover{background:var(--hover)}
.quiet.round{width:44px;padding:0;flex:none}
.quiet.round.done{background:var(--text);color:var(--inverse)}
.link{border:0;background:none;padding:8px 4px;font:var(--small);color:var(--support);cursor:pointer;
  text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line)}
.link:hover{color:var(--text)}

/* The door: sign in and code. Wordmark, one field, one action, a little above the middle. */
.door{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-right,0px)) 22vh max(16px,env(safe-area-inset-left,0px))}
.door-inner{width:100%;max-width:344px;display:flex;flex-direction:column;align-items:center;gap:48px}
.door .wordmark{width:148px}
.door form{width:100%;display:flex;flex-direction:column;gap:12px;margin:0}
.field{height:48px;width:100%;border-radius:999px;border:1px solid var(--line);background:var(--control);padding:0 24px;font:var(--body);color:var(--text)}
.field::placeholder{color:var(--support)}
.field:hover{background:var(--hover)}
.say{margin:0;text-align:center;color:var(--support);text-wrap:balance}
.say b{font-weight:400;color:var(--text);overflow-wrap:anywhere}
.code-step{width:100%;display:flex;flex-direction:column;align-items:center;gap:24px}
.code-step form{align-items:stretch}
/* The code: the same pill as the email field, only taller, with the digits big and centered. Nothing
   clipped or narrow, so a thumb lands on it at once and paste and autofill work on every phone. */
#code{height:64px;padding:0 16px;text-align:center;font:400 28px/1 var(--font);font-variant-numeric:tabular-nums;
  letter-spacing:.3em;text-indent:.3em;caret-color:var(--text)}
#code:placeholder-shown{font:var(--body);letter-spacing:normal;text-indent:0}
/* The arrow inside the field's right end lights up at six digits and spins while signing in.
   Equal padding both sides keeps the digits centered. */
.code-box{position:relative;width:100%}
#code{padding:0 64px}
.code-go{position:absolute;top:8px;right:8px;height:48px;border:0;border-radius:999px;cursor:pointer;
  display:grid;place-items:center;transition:background .2s,color .2s,opacity .2s}
.code-go{width:48px;padding:0;background:transparent;color:var(--disabled)}
.code-box.ready .code-go,.code-box.sending .code-go{background:var(--text);color:var(--inverse)}
.code-box.sending .code-go svg{display:none}
.code-box.sending .code-go::after{content:"";width:20px;height:20px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;
  animation:code-spin .7s linear infinite}
@keyframes code-spin{to{transform:rotate(360deg)}}
/* "Skip the code next time" and "You're all set" (sign-in-ways.mjs): a picture, a line, one action, a way out. */
.offer{display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;width:100%}
.offer .big{display:block;opacity:.9}
.offer h1{margin:0;font:var(--heading);letter-spacing:-.02em;text-wrap:balance}
.offer p{margin:0;color:var(--support);text-wrap:balance}
.offer .action{width:100%;margin-top:16px}
.offer form{width:auto}
.action[disabled]{opacity:.6;cursor:default}
/* On a phone the door sits high, so the keyboard never covers the field and the page doesn't jump
   (a jump closes the iPhone Paste menu before it can be tapped). */
@media (max-width:700px){.door{place-items:start center;padding-top:72px}}
.links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 24px}
.links form{width:auto;display:block}

/* Signed in: the wordmark and menu on the left, the page in a 760px column. */
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;min-height:100dvh;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.side{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;display:flex;flex-direction:column;gap:48px;padding:32px 0 32px 16px}
.side .wordmark{width:86px}
.side nav{display:flex;flex-direction:column;gap:4px;flex:1}
.nav{display:flex;align-items:center;gap:12px;height:44px;padding:0 16px;margin-left:-16px;border:0;border-radius:999px;background:none;
  font:var(--action);color:var(--support);cursor:pointer;text-align:left;text-decoration:none;width:max-content;min-width:160px}
.nav:hover{background:var(--hover);color:var(--text)}
.nav[aria-current]{position:relative;isolation:isolate;background:none;color:var(--text)}
/* "You are here": its own shape under the current menu entry, so it can glide to the next one. */
.here{position:absolute;inset:0;z-index:-1;border-radius:999px;background:var(--control)}
.side form{margin:auto 0 0}
.nav.out{font-weight:400}
.nav .glyph{flex:none}
.menu-button{display:none}
.page{width:100%;max-width:760px;padding:80px 0 160px;min-width:0}
.page>header{display:flex;flex-direction:column;gap:8px;margin:0 0 32px}
h1{margin:0;font:var(--title);letter-spacing:-.025em;text-wrap:balance}
.page>header p,.lede{margin:0;color:var(--support)}
.tile{background:var(--tile);border-radius:24px;padding:4px var(--panel-inset)}
.entry{display:flex;align-items:center;gap:16px;padding:16px 0;min-width:0}
.entry+.entry{border-top:1px solid var(--line)}
.entry .what{flex:1;min-width:0;display:flex;flex-direction:column}
.entry .label{font:var(--label)}
.entry .value{color:var(--support);overflow-wrap:anywhere}
.entry .note{font:var(--small);color:var(--support)}

@media (max-width:700px){
  /* The menu button and its list keep their own shape and stay above the page, whatever a page sets on
     its own buttons (Connections and Passwords style every button as a wide pill). */
  .shell{display:block}
  .side{position:relative;z-index:10;height:auto;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:16px;padding:16px 0 0}
  .side .wordmark{grid-column:2;grid-row:1;justify-self:center}
  .menu-button{grid-column:1;grid-row:1;display:grid;place-items:center;width:44px;height:44px;min-width:0;padding:0;flex:none;border:0;border-radius:999px;font:inherit;background:var(--control);color:var(--text);cursor:pointer}
  .menu-button:hover{background:var(--hover)}
  .menu-button .x,.side.open .menu-button .lines{display:none}
  .side.open .menu-button .x{display:block}
  /* The menu is its own sheet lying above the page (Rene, Dec 2 2026): a lighter tint of the page color, it
     slides in whole from the left over the wordmark, nearly the full width, with a soft shadow on its edge so
     it reads as higher than the page. The X stays in the menu button's place; a tap on the page beside it closes
     it, and the page underneath keeps still and doesn't scroll. */
  .menu-button{position:relative;z-index:2}
  .side nav{position:fixed;top:0;bottom:0;left:0;width:calc(100% - 56px);max-width:400px;z-index:1;gap:4px;overflow-y:auto;overscroll-behavior:contain;
    padding:calc(env(safe-area-inset-top,0px) + 100px) 32px calc(env(safe-area-inset-bottom,0px) + 32px) calc(max(16px,env(safe-area-inset-left,0px)) + 16px);
    background:color-mix(in oklab,var(--scene) 86%,#fff);border-radius:0 24px 24px 0;box-shadow:none;visibility:hidden;transform:translateX(-100%);
    transition:transform 360ms var(--sheet-ease),box-shadow 360ms var(--sheet-ease),visibility 0s 360ms}
  .side nav::before{content:"";position:fixed;inset:0;z-index:-1;opacity:.07;mix-blend-mode:soft-light;pointer-events:none;background:url(/login/assets/grain.png)}
  .side.open nav{visibility:visible;transform:none;box-shadow:8px 0 32px #00000038,2px 0 8px #00000024;
    transition:transform 480ms var(--sheet-ease),box-shadow 480ms var(--sheet-ease),visibility 0s}
  .side nav .nav{width:auto;height:56px;margin:0 -16px;font:var(--label)}
  .side nav .nav[aria-current] .here{background:var(--hover)}
  html:has(.side.open){overflow:hidden}
  .side form{margin-top:auto;padding-top:24px}
  .page{padding:48px 0 160px}
  .page>header{margin-bottom:24px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Moving between pages (Rene, Nov 30 2026: "Map").
   Every page is one printed sheet: it moves as a whole and nothing lifts off it. The sheets lie on a map:
   the menu's pages stacked top to bottom in menu order, Brain's tabs side by side in tab order, a record to
   the right of the list it was opened from. Nothing moves until the next page is ready, and then its move runs
   whole (Rene: "you never want motion that is interrupted"): the page you leave stays as it is while the next
   loads; the new sheet comes in from where it lies, fading in, so the eye knows which way it went. Plain CSS on
   the real page, opacity and transform only; the background keeps its own color fade. nugoo.js names the move
   in html[data-move]. Reduce Motion: pages change at once. */
:root{--sheet-ease:cubic-bezier(.2,0,0,1);--from:none}
html[data-move] :is(main.page,.door-inner){animation:360ms cubic-bezier(0,0,.2,1) both nv-in,800ms var(--sheet-ease) both var(--from)}
/* A page prepared ahead (prerendered) keeps its sheet out of sight until it is shown. */
html[data-move=wait] :is(main.page,.door-inner){animation:none;opacity:0}
/* Brain's tabs, a search or more rows filter the same page (Rene, Dec 1 2026): the title, search and tabs stay
   as they are, and only what is below them fades in. */
html[data-move=filter] main.page{animation:none}
html[data-move=filter] main.page>:not(header,.acts,.tabs){animation:220ms cubic-bezier(0,0,.2,1) both nv-in}
html[data-move=menu-down]{--from:nv-from-below}
html[data-move=menu-up]{--from:nv-from-above}
html[data-move=tab-next]{--from:nv-from-right}
html[data-move=tab-prev]{--from:nv-from-left}
html[data-move=forward]{--from:nv-from-right-far}
html[data-move=back]{--from:nv-from-left-far}
@keyframes nv-in{from{opacity:0}}
@keyframes nv-from-below{from{transform:translateY(32px)}}
@keyframes nv-from-above{from{transform:translateY(-32px)}}
@keyframes nv-from-right{from{transform:translateX(32px)}}
@keyframes nv-from-left{from{transform:translateX(-32px)}}
@keyframes nv-from-right-far{from{transform:translateX(56px)}}
@keyframes nv-from-left-far{from{transform:translateX(-56px)}}
