/* Copyright (c) 2026 Astoria Insight. All rights reserved. */
/* CREW JOBS (dist/jobs.js) in the console look, Tahoma, no emoji. Out of the way (Max, Oct 16: "the job box is kind of in the
   way"): one slim bar on top of the bottom keys on a phone (the page makes room for it, so it never covers BUY), a pill in the
   bottom-left corner on a desktop. The whole job opens in a sheet only when you tap it; the crew desk's pager says the same. */
.job-bar-line{position:fixed;left:0;right:0;bottom:var(--nav-h,0px);z-index:7;display:flex;align-items:center;gap:8px;height:40px;box-sizing:border-box;
  margin:0;padding:0 12px;border:0;border-top:1px solid #2a5f8f;border-radius:0;background:linear-gradient(#0d2440,#081629);color:#eef7ff;text-align:left;overflow:hidden;cursor:pointer;
  font:700 11px/1 Tahoma,Verdana,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.06em;touch-action:manipulation;animation:job-in .25s ease-out}
.job-bar-line[hidden]{display:none}
@keyframes job-in{from{transform:translateY(100%)}}
.job-bar-line>*{position:relative}
.job-bar-line .job-fill{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#ffb23f22,#ffb23f3d);transition:width .4s}
.job-bar-line b{flex:0 0 auto;color:#ffcf6b;font-weight:800;letter-spacing:.14em}
.job-bar-line span{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#bfeaff}
.job-bar-line em{flex:0 0 auto;color:#ff9a8a;font-style:normal;font-weight:800;font-size:13px}
.job-bar-line small{flex:0 0 auto;padding:4px 8px;border:1px solid #2a5f8f;border-radius:3px;color:#7fd4ff;font:800 10px/1 Tahoma,Verdana,sans-serif;letter-spacing:.14em}
.job-bar-line.offer{border-top-color:#ffcf6b;box-shadow:0 -6px 16px -8px #ffb23f99}
.job-bar-line.offer small{border-color:#000;background:linear-gradient(180deg,#ffd77a,#ffb23f 50%,#e08a00);color:#2a1600}
.job-bar-line.won{border-top-color:#6bff8f;background:linear-gradient(#0f3a22,#08200f)}
.job-bar-line.won b{color:#6bff8f}.job-bar-line.won span{color:#d9ffe3}
.job-bar-line.blown{border-top-color:#ff6b6b}
.job-bar-line.blown b{color:#ff9a8a}
/* the page makes room for the bar above the keys, and toasts move up over it */
@media(max-width:720px){html.job-bar-on{scroll-padding-bottom:calc(var(--nav-h) + 52px)}html.job-bar-on body{padding-bottom:calc(var(--nav-h) + 40px)}html.job-bar-on .toast{bottom:calc(var(--nav-h) + 52px)}}
@media(min-width:721px){.job-bar-line{left:16px;right:auto;bottom:16px;width:380px;height:44px;border:1px solid #2a5f8f;border-left:4px solid #7fd4ff;border-radius:6px;box-shadow:0 0 0 1px #000,0 8px 24px #000a}
  .job-bar-line.offer{border-color:#ffcf6b}.job-bar-line.won{border-color:#6bff8f}.job-bar-line.blown{border-color:#ff6b6b}}

/* the sheet: the whole job, the pay with your streak and TAKE THE JOB / PASS */
.job-sheet{position:fixed;inset:0;z-index:92;display:grid;place-items:center;padding:16px;background:#020611d0}
.job-card{width:min(380px,100%);box-sizing:border-box;padding:14px 16px 12px;border:1px solid #2a5f8f;border-left:4px solid #ffcf6b;border-radius:6px;
  background:linear-gradient(#0b1f38,#071223);box-shadow:0 0 0 1px #000,0 18px 50px #000c;color:#eef7ff;font-family:Tahoma,Verdana,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.job-card header{display:flex;align-items:baseline;gap:8px;justify-content:space-between}
.job-card header b{color:#ffcf6b;font:800 13px/1 Tahoma,Verdana,sans-serif;letter-spacing:.16em}
.job-card header span{color:#8cc4ea;font:700 10px/1.2 Tahoma,Verdana,sans-serif;letter-spacing:.12em;text-align:right}
.job-card .job-clock{color:#ff9a8a;font:800 15px/1 Tahoma,Verdana,sans-serif;font-style:normal}
.job-card .job-text{margin:10px 0 6px;font:600 15px/1.35 Tahoma,Verdana,sans-serif}
.job-card .job-ask{margin:0 0 8px;color:#bfeaff;font:700 12px/1.4 Tahoma,Verdana,sans-serif;letter-spacing:.03em}
.job-card .job-pay{margin:0 0 4px;color:#ffcf6b;font:800 12px/1.3 Tahoma,Verdana,sans-serif;letter-spacing:.08em}
.job-card .job-pay span{color:#8cc4ea;font-weight:700}
.job-card .job-rec{margin:0 0 4px;color:#8cc4ea;font:700 10px/1.3 Tahoma,Verdana,sans-serif;letter-spacing:.12em}
.job-card .job-prog{margin:4px 0 8px;color:#eef7ff;font:700 11px/1.3 Tahoma,Verdana,sans-serif;letter-spacing:.06em}
.job-meter{height:8px;border:1px solid #2a5f8f;border-radius:2px;background:#061426;overflow:hidden}
.job-meter i{display:block;height:100%;background:linear-gradient(90deg,#ffb23f,#ffe08a);transition:width .4s}
.job-card .job-note{display:block;margin-top:8px;color:#8cc4ea;font:700 9.5px/1.3 Tahoma,Verdana,sans-serif;letter-spacing:.08em}
.job-acts{display:flex;gap:6px;margin-top:10px}
.job-acts button{flex:1 1 0;min-height:46px;border:1px solid #000;border-radius:4px;background:linear-gradient(180deg,#ffd77a,#ffb23f 50%,#e08a00);color:#2a1600;
  font:800 12px/1 Tahoma,Verdana,sans-serif;letter-spacing:.1em;cursor:pointer;touch-action:manipulation}
.job-acts button.pass{background:#12304f;color:#bfeaff;box-shadow:inset 0 0 0 1px #2a5f8f}
.job-acts [data-job="take"]+.pass{flex:0 0 auto;padding:0 16px}
@media(prefers-reduced-motion:reduce){.job-bar-line{animation:none}.job-bar-line .job-fill,.job-meter i{transition:none}}
