/* D-242: the shared skin for the three pages of the gate: login, set-password and account.
   Extracted from login.html so the three cannot drift apart. The sky, sun, hill and lot are the
   hero's, from directions/round3/src/home.html; the tokens are the shell's, from src/page.html. */

/* D-232: the one public page, and the first thing anyone sees of Camber.
   It borrows the product's own sky: the four time-of-day gradients, the sun and its halos, the hill
   and the road of cars are the hero's, from directions/round3/src/home.html. Tokens are the shell's,
   from directions/round3/src/page.html. Nothing here names a person or a role. */

:root{
 --card:#ffffff;--soft:#f6f7f9;--line:#e6e8ec;--ink:#1d1b19;--ink2:#6a6d75;--ink3:#3a3531;
 --petrol:#14535c;--bright:#1fa9b3;--cta:#ffbd24;--ctaink:#2f2000;--ctaedge:#a65d00;
 --bad:#c2312b;--badtint:#fbe6e4;
 /* the hero's own sky, unchanged */
 --sky:linear-gradient(180deg,#cdc6ee 0%,#f3cfc9 52%,#ffe3bd 100%);
 --sun:#ffb454;--onsky:#3f4852;--hill:rgba(255,255,255,.5);
 --road:#cfd8e0;--roadedge:#e3e9ee;--whl:#4b5662;--hub:#dfe5ea;--win:rgba(60,72,86,.5);
 --sx:16%;--sy:20%;
}
:root[data-tod=morning]{--sky:linear-gradient(180deg,#bfe1fb 0%,#dcedfa 48%,#fff1d6 100%);--sun:#ffc94a;--sx:15%;--sy:24%}
:root[data-tod=afternoon]{--sky:linear-gradient(180deg,#aedafb 0%,#d8ecfc 52%,#fff6e3 100%);--sun:#ffc94a;--sx:9%;--sy:11%}
:root[data-tod=evening]{--sky:linear-gradient(180deg,#cdc6ee 0%,#f3cfc9 52%,#ffe3bd 100%);--sun:#ffb454;--sx:16%;--sy:20%}
:root[data-tod=night]{--sky:linear-gradient(180deg,#131933 0%,#242b52 55%,#40416d 100%);
 --onsky:#d8ddf3;--hill:rgba(255,255,255,.13);--road:#1c2142;--roadedge:#626694;
 --whl:#39405c;--hub:#c9d0e6;--win:rgba(28,33,66,.62);--sx:11%;--sy:14%}

/* out50 (DS-5, O45-08): Outfit from this site, never Google: the two files Google served these pages (Outfit v15, its
   latin and latin-ext subsets, the same bytes), at the same weights (300 to 700), unicode ranges and display swap, with the
   same fallbacks. SIL OFL; its licence is beside the files (app/fonts/OFL.txt). */
@font-face{font-family:'Outfit';src:url('/fonts/outfit-v15-latin-ext.woff2') format('woff2');font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Outfit';src:url('/fonts/outfit-v15-latin.woff2') format('woff2');font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

*,*::before,*::after{box-sizing:border-box}
/* out46 (O45-06, D-455): these pages follow the phone's text size as the app does. The root is the system body size
   (-apple-system-body on Apple platforms, 106.25% elsewhere: 17px at a 16px default) and every size is N times --ts,
   which is 1px at the default iPhone size, so the default renders as before. Reading text grows without a cap; headings
   stop at 1.6 times and never go under the body size (D-466); a field or button grows with its words and stops at 88px. */
html{font-size:106.25%;-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:hidden}
@supports (font:-apple-system-body){html{font:-apple-system-body;font-family:'Outfit',system-ui,sans-serif}}
:root{--ts:calc(1rem / 17)}
body{margin:0;min-height:100dvh;position:relative;isolation:isolate;overflow-x:hidden;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 padding:40px 16px 128px;background:var(--sky);color:var(--ink);
 font-family:'Outfit',system-ui,sans-serif;font-size:calc(15 * var(--ts));line-height:1.45;font-weight:400;
 font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
svg{display:block}
h1,p{margin:0}

/* the night sky gets the hero's stars */
body::before{content:"";position:absolute;inset:0;z-index:-5;pointer-events:none;opacity:0}
:root[data-tod=night] body::before{opacity:1;background-image:
 radial-gradient(1.6px 1.6px at 8% 18%,rgba(255,255,255,.9) 50%,transparent 52%),
 radial-gradient(1.2px 1.2px at 17% 42%,rgba(255,255,255,.7) 50%,transparent 52%),
 radial-gradient(1.8px 1.8px at 26% 12%,rgba(255,255,255,.85) 50%,transparent 52%),
 radial-gradient(1.1px 1.1px at 34% 30%,rgba(255,255,255,.6) 50%,transparent 52%),
 radial-gradient(1.5px 1.5px at 43% 9%,rgba(255,255,255,.8) 50%,transparent 52%),
 radial-gradient(1.2px 1.2px at 52% 26%,rgba(255,255,255,.65) 50%,transparent 52%),
 radial-gradient(1.7px 1.7px at 61% 14%,rgba(255,255,255,.9) 50%,transparent 52%),
 radial-gradient(1.1px 1.1px at 68% 38%,rgba(255,255,255,.55) 50%,transparent 52%),
 radial-gradient(1.4px 1.4px at 76% 8%,rgba(255,255,255,.8) 50%,transparent 52%),
 radial-gradient(1.2px 1.2px at 83% 30%,rgba(255,255,255,.6) 50%,transparent 52%),
 radial-gradient(1.6px 1.6px at 93% 16%,rgba(255,255,255,.85) 50%,transparent 52%),
 radial-gradient(1.1px 1.1px at 97% 44%,rgba(255,255,255,.5) 50%,transparent 52%),
 radial-gradient(1.3px 1.3px at 5% 52%,rgba(255,255,255,.5) 50%,transparent 52%),
 radial-gradient(1.2px 1.2px at 58% 50%,rgba(255,255,255,.45) 50%,transparent 52%)}

/* the sun, with the hero's two halos */
.sun{position:absolute;z-index:-4;right:var(--sx);top:var(--sy);width:96px;height:96px;pointer-events:none}
.sun i{position:absolute;border-radius:50%;display:block}
.sun .halo2{inset:-60px;background:radial-gradient(circle,rgba(255,214,110,.26) 0 60%,rgba(255,214,110,0) 72%)}
.sun .halo1{inset:-24px;background:rgba(255,211,100,.34)}
.sun .disc{inset:0;background:radial-gradient(circle at 40% 34%,#ffe38f 0%,var(--sun) 72%)}
:root[data-tod=night] .sun .halo2{background:radial-gradient(circle,rgba(222,228,255,.2) 0 60%,rgba(222,228,255,0) 72%)}
:root[data-tod=night] .sun .halo1{background:rgba(222,228,255,.16)}
:root[data-tod=night] .sun .disc{background:radial-gradient(circle at 38% 32%,#fffdf3 0%,#e7e1cd 72%);
 box-shadow:inset -10px -8px 0 rgba(160,160,190,.22)}

/* the hill the hero sits the lot on */
.hill{position:absolute;z-index:-3;left:-8%;width:116%;bottom:56px;height:190px;border-radius:50%;
 background:var(--hill);pointer-events:none}

/* the lot along the bottom: the hero's road and its car row */
.horizon{position:absolute;z-index:-2;left:0;right:0;bottom:0;height:64px;pointer-events:none}
.road{position:absolute;left:0;right:0;bottom:0;height:18px;background:var(--road);border-top:2px solid var(--roadedge)}
.hcars{position:absolute;left:34px;right:34px;bottom:10px;height:30px;overflow:hidden;
 display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 14px}
.hcar{width:64px;height:30px;color:#fbfcfd;flex:none}
/* D-244 on the sign-in strip too: the last sand car is repainted the paint booth's silver (D-244, Sep 21). */
.hcar.c2{color:#e4eaf0}.hcar.c3{color:#c9d5df}.hcar.c4{color:#9aa4a9}.hcar.c5{color:#aebdca}
.hcar.pk{color:var(--bright);--win:rgba(255,255,255,.78);filter:drop-shadow(0 0 7px rgba(31,169,179,.6))}
:root[data-tod=night] .hcar{color:#eef1f8}
:root[data-tod=night] .hcar.c2{color:#dfe5f1}
:root[data-tod=night] .hcar.c3{color:#c4cde0}
:root[data-tod=night] .hcar.c4{color:#9ea8b8}
:root[data-tod=night] .hcar.c5{color:#b6c1d6}
:root[data-tod=night] .hcar.pk{color:var(--bright);--win:rgba(255,255,255,.82)}

/* D-251: the clean bar from inside the app, the wordmark and nothing else. #1d1a17 is the
   prototype shell's own bar colour and the dark end of the sidebar family (--side:#1f1c1a). The bar
   carries the wordmark, so the sign over the door would be the same mark twice: there is none. */
.topbar{position:fixed;top:0;left:0;right:0;z-index:60;height:58px;
 display:flex;align-items:center;padding:0 24px;background:#1d1a17}
.topbar .mark{color:#f3f0ea;display:flex;align-items:center}
.topbar .mark svg{width:132px;height:auto}
:root[data-bar] body{padding-top:94px}
:root[data-bar] .card{margin-top:0}
.wrap{width:100%;max-width:404px;display:flex;flex-direction:column;align-items:center}
/* S4/C3: hold invitation controls until /api/me confirms the viewer. */
#admin-only{display:none}

/* the card. Fields take the search bar's pill; the button takes the hero CTA. */
.card{width:100%;background:var(--card);border-radius:28px;padding:32px 28px 28px;
 box-shadow:0 10px 30px rgba(24,22,40,.14),0 1px 3px rgba(24,22,40,.07)}
h1{font-size:min(clamp(calc(28 * var(--ts)),3.4vw,calc(34 * var(--ts))),max(45px,calc(16 * var(--ts))));font-weight:600;letter-spacing:-0.02em;line-height:1.08}
.lede{margin-top:7px;color:var(--ink2);font-size:calc(14.5 * var(--ts))}
.bad{margin-top:18px;padding:11px 15px;border-radius:15px;background:var(--badtint);color:var(--bad);
 font-size:calc(14 * var(--ts));font-weight:500}
form{margin-top:22px}
.field+.field{margin-top:12px}
/* the label sits on the card's own column with the heading, the note and the button; indented
   to the typed text it made a third left edge and read as a slip (D-240, Sep 21, both ways) */
label{display:block;margin:0 0 7px 2px;font-size:calc(11 * var(--ts));font-weight:600;letter-spacing:.12em;
 text-transform:uppercase;color:var(--ink2)}
/* 16px, not the page's 15: iOS Safari zooms the whole page into any field set smaller than 16px
   on focus, which is the "card goes full screen" seen on a phone (D-240, Sep 21) */
input{width:100%;min-height:max(50px,min(calc(50 * var(--ts)),88px));padding:0 18px;border-radius:25px;border:1.5px solid #848b98;
 background:var(--soft);color:var(--ink);font:inherit;font-size:max(16px,calc(16 * var(--ts)));font-weight:500}
input::placeholder{color:#a8abb3;opacity:1;font-weight:400}
input:hover{border-color:#5f6774}
/* the focus ring is petrol, not Marigold or turquoise: 8.67:1 on white, and it no longer
   cancels the page's own outline the way `outline:0` did */
input:focus{border-color:var(--petrol);background:var(--card)}
/* keyboard focus draws the ring on the border line, not outside the field: a ring outside ate
   the gap between the label and the field (D-240, Sep 21). One 2px petrol edge, nothing grows. */
input:focus-visible{outline:2px solid var(--petrol);outline-offset:-2px;border-color:var(--petrol)}
.btn{width:100%;min-height:max(52px,min(calc(52 * var(--ts)),88px));margin-top:20px;border-radius:26px;border:1px solid var(--ctaedge);
 background:var(--cta);color:var(--ctaink);font:inherit;font-size:calc(15.5 * var(--ts));font-weight:600;cursor:pointer}
.btn:hover{background:#ffc945}
.btn:active{transform:translateY(1px)}
.btn[aria-busy=true],.btn:disabled{background:#f0d391;border-color:#c9903a;color:#5b4a1e;
 cursor:default;transform:none}
:focus-visible{outline:3px solid var(--petrol);outline-offset:2px}

/* Codex: someone with no account must be told what to do, and never whether their address exists */
.need{margin-top:6px;padding-top:16px;border-top:1px solid var(--line);
 color:var(--ink2);font-size:calc(12.8 * var(--ts));line-height:1.5}
.need b{color:var(--ink);font-weight:600}

.sent{margin-top:18px;padding:11px 15px;border-radius:15px;background:#e1f1f2;color:#0f4750;
 font-size:calc(14 * var(--ts));font-weight:500}
.linkish{display:block;margin:10px auto 0;min-height:44px;padding:12px 10px;border:0;background:none;
 font:inherit;font-size:calc(13.5 * var(--ts));font-weight:500;color:var(--petrol);text-decoration:underline;
 text-underline-offset:3px;cursor:pointer}
.linkish:hover{color:var(--ink)}
.ways{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 4px;margin-top:6px}
.ways form{margin:0}.ways .linkish{margin:0;padding:12px 8px}
.ways i{width:4px;height:4px;border-radius:2px;background:#aeb9c2;flex:none}

@media (max-width:520px){
 /* Codex: at 430 a lot of sky came before the form. Start the page at the top and space it on
    purpose, so the card is the first thing under the wordmark rather than the third. */
 body{justify-content:flex-start;padding:22px 16px 104px}
 .wrap{max-width:none}
 .card{padding:26px 20px 24px;border-radius:24px}
 .topbar{height:52px;padding:0 16px}
 .topbar .mark svg{width:104px}
 :root[data-bar] body{padding-top:70px}
 /* the card fills the width under the bar, so the sun sits low in the open ground at the left,
    above the lot; seen on a phone and kept (D-240, Sep 21) */
 .sun{width:64px;height:64px;right:auto;left:22px;top:auto;bottom:150px}
 .sun .halo2{inset:-34px}.sun .halo1{inset:-14px}
 .hill{bottom:46px;height:130px}
 .horizon{height:52px}
 /* a phone shows one row: smaller cars, packed from the left like a lot row, not spread across
    the width with a gap the eye reads as missing cars; the road is deep enough for the wheels */
 .road{height:22px}
 .hcars{left:12px;right:12px;gap:0 7px;height:22px;bottom:11px;justify-content:flex-start}
 .hcar{width:46px;height:22px}
}
/* A keyboard open on a phone can leave 300px of viewport. Centring would push the card under the
   lot; from here down the page simply starts at the top and scrolls. */
@media (max-height:620px){
 body{justify-content:flex-start;padding-top:18px;padding-bottom:28px}
 .horizon,.hill{display:none}
 :root[data-bar] body{padding-top:66px}
}

@media (prefers-reduced-motion:no-preference){
 .card{animation:rise .7s cubic-bezier(.16,.84,.28,1) both}
 .card{animation-delay:.1s}
 @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}

/* ---------------------------------------------------------------- D-242: accounts
   The account page is the only one with a list on it, so it takes a wider card and a few
   extra rows. Everything else it wears is the login page's. */
.wrap.wide{max-width:560px}
.card.wide{padding:32px 30px 26px}
h2.sub{margin:30px 0 4px;font-size:calc(16 * var(--ts));font-weight:600;letter-spacing:-0.01em}
.lede.quiet{font-size:calc(13.5 * var(--ts))}
.row{display:flex;gap:12px;align-items:flex-end}
.row .grow{flex:1 1 auto;min-width:0}
.row .field{margin-bottom:0}
select{width:100%;min-height:max(50px,min(calc(50 * var(--ts)),88px));padding:0 40px 0 16px;border-radius:25px;border:1.5px solid #848b98;
 background:var(--soft);color:var(--ink);font:inherit;font-weight:500;appearance:none;cursor:pointer;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none' stroke='%236a6d75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 15px center}
select:hover{border-color:#5f6774}
select:focus{border-color:var(--petrol);background-color:var(--card)}
select:focus-visible{outline:3px solid var(--petrol);outline-offset:2px;border-color:#848b98}
/* D-438: who is signed in, under the page's heading: the name, then "Organization, Role" */
.you{margin-top:12px}
.you b{display:block;font-weight:600;font-size:calc(15 * var(--ts))}
.you span{display:block;margin-top:2px;color:var(--ink2);font-size:calc(13.5 * var(--ts))}
.you [hidden]{display:none}
.people{list-style:none;margin:10px 0 0;padding:0}
.people li{display:flex;align-items:center;gap:10px;padding:11px 4px;border-top:1px solid var(--line)}
.people li b{font-weight:600;font-size:calc(14.5 * var(--ts));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people li span{color:var(--ink2);font-size:calc(13 * var(--ts));white-space:nowrap}
.people li .state{margin-left:auto;font-style:normal;font-size:calc(11 * var(--ts));font-weight:600;letter-spacing:.08em;
 text-transform:uppercase;padding:4px 10px;border-radius:11px;white-space:nowrap}
.people li .state.on{background:#e2f4ea;color:#14683f}
.people li .state.off{background:#f8efcf;color:#6f502f}
/* D-254: when the invitation went, and the way to send it again */
.people li .when{font-size:calc(12.5 * var(--ts));color:var(--ink2)}
.people li .again{border:0;background:none;padding:6px 2px;font:inherit;font-size:calc(12.5 * var(--ts));
 font-weight:500;color:var(--petrol);text-decoration:underline;text-underline-offset:3px;
 white-space:nowrap;cursor:pointer}
.people li .again:hover{color:var(--ink)}
.people li .again:disabled{color:var(--ink2);text-decoration:none;cursor:default}
.foot-note{margin-top:22px;font-size:calc(13 * var(--ts));color:var(--ink2)}
.foot-note a{color:var(--petrol);text-decoration:underline;text-underline-offset:3px}
.foot-note a:hover{color:var(--ink)}
@media (max-width:520px){
 .card.wide{padding:26px 20px 22px}
 .row{flex-direction:column;align-items:stretch;gap:12px}
 .people li{flex-wrap:wrap}
 .people li .state{margin-left:0}
}

/* D-455: Your access, drawn with Driver's Seat's own tool rows */
.people.access{border:0;display:grid;gap:14px;margin:14px 0 6px;padding:0;list-style:none}
.acc-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.acc-n{border-radius:14px;padding:12px 12px 10px;background:var(--soft);display:grid;gap:2px}
.acc-n b{font-size:min(calc(24 * var(--ts)),max(38px,calc(16 * var(--ts))));line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
/* out46 (O45-18): the count's label is the app's --ink3, a step darker: 10.5:1 on the Works in tile (--ink2 was 4.47:1) */
.acc-n span{font-size:calc(12.5 * var(--ts));color:var(--ink3)}
.acc-n.lv-approve{background:#e5f3ea}.acc-n.lv-approve b{color:#14683f}
.acc-n.lv-act{background:#e3f1f2}.acc-n.lv-act b{color:var(--petrol)}
.acc-group{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--card)}
.acc-h{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:12px 14px 10px}
.acc-h small{font-size:calc(12.5 * var(--ts));color:var(--ink2)}
.lv{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;font-size:calc(12.5 * var(--ts));font-weight:600;background:var(--soft);color:var(--ink)}
.lv.lv-approve{background:#e2f4ea;color:#14683f}.lv.lv-act{background:#e1f1f2;color:var(--petrol)}
.acc-tools{list-style:none;margin:0;padding:0}
.acc-tools li{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 14px;border-top:1px solid var(--line)}
.acc-tools .tic{flex:none;width:36px;height:36px;border-radius:10px;background:var(--soft);display:grid;place-items:center;color:var(--petrol)}
.acc-tools .tn{flex:1;min-width:0;font-size:calc(15 * var(--ts));font-weight:500}
.acc-tools .tag{font-style:normal;font-size:calc(11.5 * var(--ts));font-weight:600;padding:3px 8px;border-radius:999px;background:#f8efcf;color:#6f502f;white-space:nowrap}
.acc-tools .tag.fin{background:#e2f4ea;color:#14683f}
.acc-off{border-radius:14px;background:var(--soft);padding:12px 14px}
/* out46 (O45-18): the opener is a 44px row (it grows with the text and stops at 88px, D-466) */
.acc-off summary{cursor:pointer;font-size:calc(14 * var(--ts));font-weight:500;min-height:max(44px,min(calc(44 * var(--ts)),88px))}
.acc-off p{margin-top:8px;font-size:calc(13.5 * var(--ts));color:var(--ink2)}
.acc-spend{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:16px;padding:12px 14px;background:var(--card)}
.acc-spend .tic{flex:none;width:36px;height:36px;border-radius:10px;background:#fff4d6;display:grid;place-items:center;color:#8a5a00}
.acc-spend p{display:grid;gap:2px;font-size:calc(13.5 * var(--ts));color:var(--ink2)}
.acc-spend b{font-size:calc(15 * var(--ts));font-weight:600;color:var(--ink)}
.acc-off summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px}
.acc-off summary::-webkit-details-marker{display:none}
.acc-off summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--ink2);border-bottom:2px solid var(--ink2);transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.acc-off[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}

/* out46 (O45-06, D-455): at large text sizes Your access's rows stack, as the app's do (a container query in rem, never a
   media query). The list is the container: 14.5rem never trips at the default size, even on a 320-wide phone (the list
   is 248px there), and trips from about 1.35 times on a 402-wide one. The counts take a row each (the page sets their
   columns inline, so this outranks it), and a tool's name takes its row's whole width, under its icon and its tag */
.people.access{container-type:inline-size}
@container (max-width:14.5rem){
 .acc-sum{grid-template-columns:minmax(0,1fr)!important}
 .acc-tools li{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
 .acc-tools .tic{margin-right:auto}
 .acc-tools .tn{flex:1 1 100%;order:2;white-space:normal}
 .acc-tools .tag{white-space:normal}
}
