/* The pages' styles (TDD 4.6, UX design 3 and 7). Roles from tokens.css only:
   no colors of their own. Copied from the approved mocks, with their frames'
   container queries made window media queries. */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--background);color:var(--text);font:1rem/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow-wrap:break-word}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
a{color:var(--link)}
h1,h2,h3{font-weight:500;letter-spacing:-.02em;line-height:1.15;margin:0}
p{margin:0 0 1rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Buttons: the main pill (the cta roles), and the quiet pill (.q). */
.btn{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.9375rem;font-weight:500;line-height:1.2;min-height:42px;padding:.45rem 1.2rem;border-radius:999px;border:1px solid var(--cta-edge);background:var(--cta);color:var(--cta-text);cursor:pointer;text-align:center;text-decoration:none}
.btn:hover{background:var(--cta-hover)}
.btn.q{background:var(--veil);color:var(--text);border-color:var(--veil-edge)}
.btn.q:hover{background:var(--veil-hover)}
@media(pointer:coarse),(max-width:40rem){.btn{min-height:44px}}
@media(forced-colors:active){.btn{border-color:ButtonText}}
@media(prefers-reduced-motion:no-preference){.btn{transition:background-color .15s}}

/* The sign-in frame (UX design 3.1): the dusk picture behind one card, the
   same in every theme (the body carries the night scene). */
body.signin{min-height:100vh;min-height:100dvh;display:grid;justify-items:center;align-content:safe center;padding:clamp(1.25rem,4vw,3rem) 1rem;background:var(--sky-1)}
.scene{position:fixed;inset:0;z-index:0}
.scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
@media(max-width:40rem){.scene img{object-position:50% 100%}}
.card{position:relative;z-index:1;width:100%;max-width:25rem;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:clamp(1.25rem,5vw,2rem);text-align:center}
.brand{font-size:1.25rem;font-weight:550;letter-spacing:-.01em;margin:0 0 1.25rem}
.card h1{font-size:1.5rem;margin:0 0 .75rem}
.card p{color:var(--muted)}
.card p.brand{color:var(--text)}
.btns{display:grid;gap:.6rem;margin-top:1.1rem}
.btns form{margin:0;display:grid}

/* The dashboard home (UX design 3.3). */
.app{background:var(--background);color:var(--text)}
.dtop{background:var(--surface);border-bottom:1px solid var(--line)}
.skip{position:absolute;left:-999px}
.skip:focus{position:static;display:inline-block;margin:.5rem;background:var(--surface);color:var(--text);padding:.6rem 1rem;border:1px solid var(--control);border-radius:10px}
.aw{max-width:72rem;margin-inline:auto;padding-inline:1.25rem}
.dtop .aw{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;align-items:center;justify-content:space-between;padding-block:.6rem}
.dtop .brand{margin:0}
.menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem}
.mi{font:inherit;font-size:.9375rem;font-weight:500;min-height:42px;padding:.35rem .8rem;border-radius:999px;border:1px solid transparent;background:none;color:var(--text);cursor:pointer;text-align:left}
.mi:hover{background:var(--veil)}
.mi[aria-current=page]{background:var(--veil-hover);border-color:var(--veil-edge)}
.mi small{display:block;font-size:.75rem;color:var(--muted);font-weight:400;line-height:1.2}
.mi:hover small{color:var(--text)}
.ib{display:inline-flex;align-items:center;gap:.35rem;font:inherit;font-size:.9375rem;font-weight:500;min-height:42px;padding:.35rem .8rem;border-radius:999px;border:1px solid var(--veil-edge);background:var(--veil);color:var(--text);cursor:pointer}
.ib:hover,.ib[aria-expanded=true]{background:var(--veil-hover)}
@media(pointer:coarse),(max-width:40rem){.mi,.ib{min-height:44px}}
.ic{width:1.35rem;height:1.35rem;flex:none}
.ic.sm{width:1rem;height:1rem}
.mbtn{display:none}
@media(max-width:60rem){
 html[data-js] .mbtn{display:inline-flex;margin-left:auto}
 .dtop nav{order:5;flex-basis:100%}
 html[data-js] .dtop nav:not(.open){display:none}
 html[data-js] .dtop nav.open{border-top:1px solid var(--line);padding-top:.5rem}
 html[data-js] .dtop nav .menu{flex-direction:column;gap:.15rem}
 html[data-js] .dtop nav .mi{width:100%;border-radius:10px;min-height:44px}
}
.acct{position:relative;margin-left:auto}
.pm{background:var(--surface);border:1px solid var(--control);border-radius:12px;padding:.4rem;min-width:15rem}
.pm .left{margin:0;padding:.5rem .7rem .55rem;border-bottom:1px solid var(--line);margin-bottom:.3rem;color:var(--muted);font-size:.9375rem}
.pm ul{list-style:none;margin:0;padding:0}
.pm form{margin:0}
/* The theme group in the account menu (UX design 3.5): a line above and
   below, the "Theme" heading quiet, a tick before the chosen word and its
   space kept on the others, no fill for the chosen one. */
.mg{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:.3rem 0;padding:.3rem 0}
.mg fieldset{border:0;margin:0;padding:0;min-width:0}
.glab{display:block;float:none;padding:.35rem .7rem .15rem;font-size:.8125rem;font-weight:400;color:var(--muted)}
.mg .mitem::before{content:"";display:inline-block;width:1.25em;flex:none}
.mg .mitem[aria-checked=true]::before,.mg .mitem[aria-pressed=true]::before{content:"\2713";content:"\2713"/""}
.mitem{display:flex;align-items:center;width:100%;min-height:44px;padding:.4rem .7rem;border:0;border-radius:8px;background:none;font:inherit;font-size:.9375rem;font-weight:500;color:var(--text);text-align:left;cursor:pointer}
.mitem:hover{background:var(--veil)}
html[data-js] .pop{position:absolute;right:0;top:calc(100% + .4rem);z-index:5}
html[data-js] .pop:not(.open){display:none}
html:not([data-js]) .pop{margin-top:.4rem}
html:not([data-js]) .acct{display:flex;flex-direction:column;align-items:flex-end}
html:not([data-js]) [data-refresh]{display:none}
@media(max-width:60rem){html[data-js] .mbtn~.acct{margin-left:0}}
/* At 320 (UX 3.3, 3.4, 3.5; dat-uxd's 0.1.4 run, 320 finding): brand, Menu
   and the account button must stay on one row, or the account button wraps
   to the left and its right-held menu runs off screen. Under 22rem Menu
   shows its icon only (the word stays for screen readers) and the gap
   narrows, which frees about 70px of the 280 there. */
@media(max-width:22rem){
 .dtop .aw{column-gap:.5rem}
 html[data-js] .mbtn span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* Script off, Refresh sign-in is hidden, so the time left's line would sit
   on the group's top line: one line, not two. */
html:not([data-js]) .mg{border-top:0}
.dmain{padding-block:clamp(1.5rem,4vw,2.75rem) 2rem}
.hello h1{font-size:clamp(1.9rem,4vw,2.6rem)}
.hello p{color:var(--muted);margin:.4rem 0 0}
.grid{display:grid;align-items:start;gap:1.25rem;margin-top:clamp(1.25rem,3vw,2rem)}
.grid>*{min-width:0}
@media(min-width:60.0625rem){.grid{grid-template-columns:1.35fr 1fr}.wide2{grid-column:1/-1}}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(1rem,3vw,1.5rem)}
.panel h1,.panel h2{font-size:1.3rem;margin-bottom:.5rem}
.panel h2:focus-visible{outline-offset:5px}
.panel>p{margin-bottom:.9rem}
.empty{border:1px dashed var(--control);border-radius:12px;padding:1rem;color:var(--muted);margin:0}
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-top:1.5rem}
.tl{display:inline-flex;align-items:center;min-height:42px;padding:0;border:0;background:none;font:inherit;font-size:.9375rem;font-weight:500;color:var(--text);text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px;cursor:pointer}
@media(pointer:coarse),(max-width:40rem){.tl{min-height:44px}}
.tl:hover{text-decoration-thickness:2px}
.stop{display:flex;flex-wrap:wrap;gap:.2rem .5rem;align-items:center}
.stop span{color:var(--muted);font-size:.9375rem}
.status{margin:0;padding:0 1.25rem}
.status:not(:empty){padding-block:.75rem;background:var(--surface);border-top:1px solid var(--line);font-weight:550}

/* The star test page (UX design 3.6): only behind the "how it will look
   later" band, in test builds. */
.band{background:var(--glow);border:1px solid var(--line);border-radius:10px;padding:.6rem .9rem;margin:0 0 .9rem;font-weight:550}
.asks{list-style:none;margin:0;padding:0}
.asks>li{position:relative;padding:1rem 0 1rem 2.25rem;border-top:1px solid var(--line)}
.asks h2{font-size:inherit;font-weight:550;letter-spacing:0;margin-bottom:.2rem}
.from{font-size:.9375rem;color:var(--muted);margin:0 0 .35rem}
.asks p{margin-bottom:.6rem}
.spark{position:absolute;left:0;top:1.05rem;width:1.5rem;height:1.5rem;fill:var(--spark);stroke:var(--spark-edge);stroke-width:1.25;stroke-linejoin:round}
.done .spark{display:none}
@media(prefers-reduced-motion:no-preference){.spark{animation:tw .9s ease-out .2s 1 both}.asks>li:hover .spark,.asks>li:focus-within .spark{animation:tw .9s ease-out .2s 1 both,tw2 .9s ease-out 1}@keyframes tw{0%,100%{transform:none}35%{transform:scale(1.25) rotate(20deg)}70%{transform:scale(.94) rotate(-5deg)}}@keyframes tw2{0%,100%{transform:none}35%{transform:scale(1.25) rotate(20deg)}70%{transform:scale(.94) rotate(-5deg)}}}
.cho{display:flex;flex-wrap:wrap;gap:.5rem}
@media(max-width:40rem){.cho .btn{padding-inline:.9rem}}
.res{font-weight:550;margin:.6rem 0}
.res:empty{margin:0}
