/* The CLEAR App's frame (since v1.81), round the App page and its tool pages (Video Editor, Contacts, Funding Bids,
   Snakes and Ladders): tokens, the top bar and tabs on phones and tablets, the sidebar on laptops, the More sheet and the
   footer. Drawn by tools/app_shell.py, run by js/shell.js. Loaded after /css/chrome.css (and /css/hub.css on tool pages). */
:root{
  --ca-purple:#3d2b96;--ca-purple-d:#2e2073;--ca-purple-dd:#1e1552;--ca-pink:#c03d73;--ca-teal:#2c8aa8;--ca-green:#1f9d78;--ca-orange:#e07a2a;--ca-mint:#73dcb2;
  --ca-bg:#f5f4fb;--ca-lav:#ebe9f9;--ca-ink:#191d2c;--ca-body:#3b4254;--ca-dim:#5f6678;--ca-line:#e8e6f1;--ca-line2:#c9c6d9;
  --ca-bad:#a01d4a;--ca-bad-bg:#fde6ee;--ca-ok:#0a7a5c;--ca-ok-bg:#dcf6ec;
  --ca-r:20px;--ca-shadow:0 1px 2px #1f24330a,0 8px 24px #3d2b960f;--ca-shadow-lg:0 2px 6px #1f24330d,0 22px 48px #3d2b961f;
  --ca-bar:58px;--ca-tabs:64px;--ca-side:264px;--ca-ease:cubic-bezier(.2,.75,.2,1);
}
html[data-contrast="high"]{--ca-bg:#fff;--ca-lav:#fff;--ca-body:#000;--ca-ink:#000;--ca-dim:#1a1a1a;--ca-line:#000;--ca-line2:#000}
html{scroll-padding-top:calc(var(--ca-bar) + 16px)}
/* phones and tablets: a field scrolled to (Tab, Next, an error) stops clear of the tabs and the Back/Next bar */
@media (max-width:1023px){html{scroll-padding-bottom:calc(var(--ca-tabs) + env(safe-area-inset-bottom) + 16px)}}
@media (max-width:1023px) and (min-height:560px){html{scroll-padding-bottom:calc(var(--ca-tabs) + env(safe-area-inset-bottom) + 96px)}}
@media (min-width:1024px){html{scroll-padding-top:20px;scroll-padding-bottom:20px}.cg-selbar{top:12px!important}}
body.ca{background:var(--ca-bg);color:var(--ca-body);min-height:100vh;min-height:100dvh;-webkit-font-smoothing:antialiased}
.ca h1,.ca h2,.ca h3{color:var(--ca-ink);letter-spacing:-.01em}
.ca-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ic{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic .fill,.ic.fill{fill:currentColor;stroke:none}
symbol .fill{fill:currentColor;stroke:none}
.ca :focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* ---------- phones and tablets: the slim purple bar along the top */
.ca-bar{position:sticky;top:0;z-index:40;background:linear-gradient(120deg,#46329f,var(--ca-purple) 55%,#33247f);color:#fff;padding-top:env(safe-area-inset-top);box-shadow:0 4px 18px #1e15521f}
.ca-barin{max-width:1200px;margin:0 auto;height:var(--ca-bar);display:flex;align-items:center;gap:16px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
.ca-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:600;font-size:1.15rem;letter-spacing:.01em;flex:none;border-radius:10px}
.ca-brand svg{width:30px;height:auto}
.ca-brand b{font-weight:400;opacity:.85}
/* v1.101: on a 320px phone a longer page name ("CLEAR Gallery") pushed the buttons off the screen; it may now shrink */
.ca-brand{flex:0 1 auto;min-width:0}
.ca-brand span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:360px){.ca-barin{gap:8px}}
.ca-nav{display:none!important}
.ca-barbtns{margin-left:auto;display:flex;align-items:center;gap:8px}
.ca-ib{width:44px;height:44px;border-radius:50%;border:0;background:#ffffff1f;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .15s}
.ca-ib:hover{background:#ffffff33}
.ca-acct{position:relative}
.ca-avatar{width:42px;height:42px;border-radius:50%;border:2px solid #ffffffb3;background:linear-gradient(135deg,#d64a87,var(--ca-pink));color:#fff;font:600 .98rem var(--font);cursor:pointer;display:grid;place-items:center;flex:none}
.ca-avatar:hover{border-color:#fff}
.ca-avatar.sm{width:38px;height:38px;font-size:.9rem;cursor:default}
.ca-acctmenu{position:absolute;right:0;top:calc(100% + 10px);min-width:240px;background:#fff;color:var(--ca-body);border-radius:16px;box-shadow:var(--ca-shadow-lg);padding:8px;z-index:50;animation:ca-pop .18s var(--ca-ease)}
.ca-acctmenu .who{margin:0;padding:10px 12px 12px;border-bottom:1px solid var(--ca-line);display:flex;flex-direction:column;line-height:1.35}
.ca-acctmenu .who strong{color:var(--ca-ink)}
.ca-acctmenu .who span{font-size:.88rem;color:var(--ca-dim)}
.ca-menuitem{display:flex;align-items:center;gap:10px;width:100%;margin-top:6px;padding:11px 12px;border:0;background:none;border-radius:10px;font:500 1rem var(--font);color:var(--ca-ink);cursor:pointer;text-align:left}
.ca-menuitem:hover{background:var(--ca-lav);color:var(--ca-purple)}
.ca-bar :focus-visible{outline-color:#fff}
.a11y{top:calc(var(--ca-bar) + 12px)}
body.signed-out .ca-bar{display:none}

/* ---------- phones and tablets: app-style tabs along the bottom */
.ca-tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;background:#ffffffeb;-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-top:1px solid var(--ca-line);padding:0 4px env(safe-area-inset-bottom);box-shadow:0 -6px 24px #1f24330d}
.ca-tabs a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:var(--ca-tabs);color:var(--ca-dim);text-decoration:none;font-size:.78rem;font-weight:500;-webkit-tap-highlight-color:transparent}
.ca-tabs a .ic{width:24px;height:24px;transition:transform .2s var(--ca-ease)}
.ca-tabs a[aria-current="page"]{color:var(--ca-purple);font-weight:600}
.ca-tabs a[aria-current="page"] .ic{background:var(--ca-lav);border-radius:999px;width:56px;padding:2px 16px;box-sizing:border-box;height:28px}
.ca-tabs a:active .ic{transform:scale(.9)}
.ca-tabs .ca-badge{position:absolute;top:8px;left:calc(50% + 8px);min-width:18px;height:18px;padding:0 5px;font-size:.68rem}
body.has-tabs{padding-bottom:calc(var(--ca-tabs) + env(safe-area-inset-bottom))}
/* typing on a phone: the keyboard is up, so the tabs and the Back/Next bar get out of the way instead of
   floating over the field (iPhone moves fixed bars about while the keyboard is open). body.typing is set in app.js. */
@media (max-width:1023px){body.typing .ca-tabs{display:none}body.typing .ca-wizacts{position:static}}
.ca-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--ca-pink);color:#fff;font-size:.74rem;font-weight:700;line-height:1;box-sizing:border-box}
.ca-badge[hidden]{display:none}

/* ---------- laptops: the sidebar */
.ca-side{display:none}
@media (min-width:1024px){
  .ca-tabs,.ca-bar{display:none!important}
  body.has-tabs{padding-bottom:0}
  body.has-side{padding-left:var(--ca-side)}
  .ca-side:not([hidden]){display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:var(--ca-side);z-index:45;padding:22px 16px 18px;box-sizing:border-box;color:#fff;
    background:radial-gradient(circle at 10% 0%,#5a44c255,transparent 45%),radial-gradient(circle at 100% 100%,#c03d7333,transparent 50%),linear-gradient(180deg,#36268a,var(--ca-purple-dd));overflow-y:auto}
  .a11y{top:16px}
}
.ca-sbrand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:600;font-size:1.25rem;padding:4px 10px 22px;border-radius:12px}
.ca-sbrand svg{width:36px;height:auto;flex:none}
.ca-sbrand b{font-weight:400;opacity:.8}
.ca-sidenav:not([hidden]){display:flex;flex-direction:column;gap:4px}
.ca-sidenav a{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 14px;border-radius:12px;color:#ffffffc7;text-decoration:none;font-weight:500;transition:background .15s,color .15s}
.ca-sidenav a .ic{width:21px;height:21px}
.ca-sidenav a:hover{background:#ffffff14;color:#fff}
.ca-sidenav a[aria-current="page"]{background:#ffffff24;color:#fff;font-weight:600}
.ca-sidenav a[aria-current="page"]::before{content:"";position:absolute;left:-16px;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:var(--ca-mint)}
.ca-sidenav .ca-badge{margin-left:auto}
.ca-sidefoot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:18px}
.ca-sidelink{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:none;color:#ffffffc7;font:500 .95rem var(--font);cursor:pointer;text-align:left}
.ca-sidelink:hover{background:#ffffff14;color:#fff}
.ca-sidelink .ic{width:20px;height:20px}
.ca-me{display:flex;align-items:center;gap:10px;padding:10px;border-radius:16px;background:#ffffff14}
.ca-me .who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ca-me .who strong{color:#fff;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ca-me .who span{color:#ffffffb3;font-size:.8rem}
.ca-me .ca-ib{width:38px;height:38px;flex:none}
.ca-side :focus-visible{outline-color:var(--ca-mint)}


/* ---------- footer */
.ca-foot{color:var(--ca-dim);font-size:.85rem;border-top:1px solid var(--ca-line);background:#fff}
.ca-footin{max-width:1080px;margin:0 auto;padding:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px}
.ca-foot a{color:var(--ca-purple)}
.ca-foot .ver{font-variant-numeric:tabular-nums;opacity:.8}

/* ---------- the sidebar's "Tools" heading */
.ca-sidehead{margin:14px 0 4px;padding:0 14px;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ffffff8a}

/* ---------- More (phones and tablets): a sheet with the pages that aren't tabs */
.ca-tabs .ca-moretab[aria-expanded="true"],.ca-tabs .ca-moretab.on{color:var(--ca-purple);font-weight:600}
.ca-tabs .ca-moretab.on .ic{background:var(--ca-lav);border-radius:999px;width:56px;padding:2px 16px;box-sizing:border-box;height:28px}
.ca-more{position:fixed;inset:0;z-index:60}
.ca-more[hidden]{display:none}
.ca-moreback{position:absolute;inset:0;background:#1f243366;animation:ca-fade .2s ease-out}
.ca-morebox{position:absolute;left:0;right:0;bottom:0;max-height:85vh;max-height:85dvh;overflow-y:auto;background:#fff;border-radius:24px 24px 0 0;
  padding:10px 16px calc(var(--ca-tabs) + env(safe-area-inset-bottom) + 12px);box-shadow:0 -12px 40px #1f243333;animation:ca-sheet .25s var(--ca-ease)}
.ca-morebox::before{content:"";display:block;width:44px;height:5px;border-radius:3px;background:#0002;margin:0 auto 8px}
.ca-morehead{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.ca-morehead h2{margin:0;font-size:1.25rem;color:var(--ca-ink)}
.ca-ib.dark{background:var(--ca-lav);color:var(--ca-purple)}
.ca-ib.dark:hover{background:#dcd8f3}
.ca-moregrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ca-moreitem{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:12px 6px;border-radius:18px;
  background:var(--ca-bg);border:1px solid var(--ca-line);color:var(--ca-ink);text-decoration:none;font-weight:600;font-size:.88rem;text-align:center;line-height:1.25}
.ca-moreitem .ic{width:26px;height:26px;color:var(--ca-purple)}
.ca-moreitem[aria-current="page"]{background:var(--ca-lav);border-color:var(--ca-purple)}
.ca-moreitem .ca-badge{position:absolute;top:8px;right:8px}
.ca-moreitem[hidden]{display:none}
@media (min-width:600px){.ca-morebox{max-width:560px;margin:0 auto}.ca-moregrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1024px){.ca-more{display:none!important}}
@keyframes ca-sheet{from{transform:translateY(100%)}to{transform:none}}
@keyframes ca-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ca-moreback,.ca-morebox{animation:none}}
html[data-motion="reduce"] .ca-moreback,html[data-motion="reduce"] .ca-morebox{animation:none}

/* ---------- tool pages (Video Editor, Contacts, Funding Bids, Snakes and Ladders) */
body.ca-tool{-webkit-font-smoothing:antialiased}
/* until shell.js knows who is signed in, only the frame shows */
body.ca-wait main,body.ca-wait .ca-foot{visibility:hidden}
body.ca-tool .ca-bar{flex:none}
body.ca-tool .ca-foot{margin-top:24px}
.ic.big{width:44px;height:44px}
/* the tool can't be used: switched off, or this person has no access */
.ca-blocked{padding:56px 16px}
.ca-blocked[hidden]{display:none}
.ca-blockedbox{max-width:520px;margin:0 auto;background:#fff;border-radius:var(--ca-r);box-shadow:var(--ca-shadow);padding:36px 28px;text-align:center}
.ca-blockedbox .ic{color:var(--ca-purple)}
.ca-blockedbox h1{margin:12px 0 8px;font-size:1.6rem;color:var(--ca-ink)}
.ca-blockedbox p{margin:0 0 22px;line-height:1.6}
.ca-blockedbtn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;background:var(--ca-purple);color:#fff;font-weight:600;text-decoration:none}
.ca-blockedbtn:hover{background:var(--ca-purple-d)}
/* phones and tablets: things the tools pin to the bottom of the window sit above the tabs */
@media (max-width:1023px){
  body.ca-tool .fb-acts.sticky{bottom:calc(var(--ca-tabs) + env(safe-area-inset-bottom))}
  body.ca-tool .fb-toast,body.ca-tool .ct-toast{bottom:calc(var(--ca-tabs) + env(safe-area-inset-bottom) + 16px)}
}
@keyframes ca-pop{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}

/* ---------- back to the CLEAR Projects site (v1.84): sidebar, account menu, More, and the sign-in screen */
a.ca-sidelink,a.ca-menuitem{text-decoration:none;box-sizing:border-box}
.ca-moreback2{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;min-height:50px;border-radius:14px;border:1px solid var(--ca-line2);color:var(--ca-purple);font-weight:600;text-decoration:none}
.ca-moreback2:hover{background:var(--ca-lav)}
.ca-moreback2 .ic{width:22px;height:22px}

/* ---------- Refresh (since v1.94): in the top bar on phones, top-right corner on laptops; a pink dot when a newer
   version is out (html.ck-has-new, set by common.js) */
.ca-refresh{position:relative}
.ca-refresh .dot,.ca-refreshfix .dot{display:none;position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--ca-pink);box-shadow:0 0 0 2px #fff}
html.ck-has-new .ca-refresh .dot,html.ck-has-new .ca-refreshfix .dot{display:block}
.ca-refreshfix{display:none}
@media (min-width:1024px){
  .ca-refreshfix{position:absolute;top:14px;right:18px;z-index:44;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 13px;border:1px solid var(--ca-line);border-radius:999px;background:#fff;color:var(--ca-purple);font:600 .95rem var(--font);box-shadow:var(--ca-shadow, 0 6px 18px #1f24331a);cursor:pointer;transition:background .15s}
  .ca-refreshfix:hover{background:var(--ca-lav)}
  .ca-refreshfix .ic{width:19px;height:19px}
  .ca-refreshfix .dot{top:-2px;right:-2px}
  body.signed-out .ca-refreshfix,body.ca-wait .ca-refreshfix{display:none}
  body.has-side:not(.signed-out){padding-top:56px}   /* room above the page for Refresh */
  .ca-refreshfix{top:10px}
}
.ca-refreshing .ic{animation:ca-spin .8s linear infinite}
@keyframes ca-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ca-refreshing .ic{animation:none}}
.ca-menuitem[hidden]{display:none}

/* ---------- phones and tablets, tidied (v1.116, owner's request: "easier to navigate and use, nothing in the way").
   The top bar slides away while scrolling down and back on scrolling up (body.ca-barhide, set in shell.js); the bar says
   which page you're on (CLEAR Expenses…); smaller phones get slightly smaller bar buttons; phones held sideways get a
   slimmer bar and tabs (icon beside the label), so the page keeps most of the screen. */
@media (max-width:1023px){
  .ca-bar{transition:transform .25s var(--ca-ease),box-shadow .25s}
  body.ca-barhide .ca-bar{transform:translateY(calc(env(safe-area-inset-top) - 100%));box-shadow:none}
  .ca-tabs a{font-size:.76rem}
}
@media (prefers-reduced-motion:reduce){.ca-bar{transition:none}}
html[data-motion="reduce"] .ca-bar{transition:none}
@media (max-width:360px){
  .ca-ib{width:40px;height:40px}
  .ca-avatar{width:38px;height:38px;font-size:.9rem}
  .ca-brand{font-size:1.05rem;gap:8px}
  .ca-brand svg{width:26px}
  .ca-barbtns{gap:6px}
}
@media (max-width:1023px) and (max-height:500px){
  :root{--ca-bar:48px;--ca-tabs:50px}
  .ca-ib{width:38px;height:38px}
  .ca-avatar{width:36px;height:36px;font-size:.88rem}
  .ca-brand svg{width:26px}
  .ca-tabs a{flex-direction:row;gap:8px;font-size:.84rem}
  .ca-tabs a .ic{width:22px;height:22px}
  .ca-tabs a[aria-current="page"] .ic,.ca-tabs .ca-moretab.on .ic{width:44px;height:26px;padding:2px 11px}
  .ca-tabs .ca-badge{top:4px;left:calc(50% + 4px)}
  .ca-morebox{max-height:92vh;max-height:92dvh}
  .ca-moreitem{min-height:72px;padding:8px 6px}
}

/* ---------- the dock and Me (v1.119, owner's choice "iPhone home screen"): Home, Expenses, Events and Me along the
   bottom; Me (the sheet that was More) shows who is signed in and their account, like an iPhone app's profile tab. */
.ca-tabs .ca-moretab .ca-tabav{display:none}
.ca-tabs .ca-moretab.has-av .ca-tabav{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#d64a87,var(--ca-pink));color:#fff;font-size:.68rem;font-weight:700;letter-spacing:.02em}
.ca-tabs .ca-moretab.has-av>.ic{display:none}
.ca-tabs .ca-moretab[aria-expanded="true"] .ca-tabav,.ca-tabs .ca-moretab.on .ca-tabav{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ca-purple)}
.ca-tabs .ca-moretab.on .ic{background:none;width:24px;padding:0}
@media (max-width:1023px){
  .ca-bar #a11yBtn,.ca-bar .ca-acct{display:none!important}   /* both are in Me now */
}
.ca-meprofile{display:flex;align-items:center;gap:14px;padding:6px 4px 16px}
.ca-meprofile .ca-avatar{width:56px;height:56px;font-size:1.2rem;cursor:default;border-color:#fff;box-shadow:var(--ca-shadow)}
.ca-meprofile p{margin:0;display:flex;flex-direction:column;line-height:1.35;min-width:0}
.ca-meprofile strong{font-size:1.15rem;color:var(--ca-ink);overflow-wrap:anywhere}
.ca-meprofile span{color:var(--ca-dim);font-size:.92rem}
.ca-melist{background:var(--ca-bg);border:1px solid var(--ca-line);border-radius:16px;overflow:hidden;margin-bottom:14px}
.ca-meitem{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:0 16px;border:0;background:none;color:var(--ca-ink);font:500 1.02rem var(--font);text-decoration:none;text-align:left;cursor:pointer;box-sizing:border-box}
.ca-meitem+.ca-meitem{border-top:1px solid var(--ca-line)}
.ca-meitem>.ic:first-child{width:22px;height:22px;color:var(--ca-purple)}
.ca-meitem span{flex:1}
.ca-meitem .go{width:18px;height:18px;color:var(--ca-line2)}
.ca-meitem:hover{background:var(--ca-lav)}
.ca-meitem.out{color:var(--ca-bad);justify-content:center}
.ca-meitem.out span{flex:none}
.ca-meitem.out .ic{color:var(--ca-bad)}
.ca-meitem[hidden]{display:none}
