:root { --fg: #1c1b19; --mute: rgba(28, 27, 25, .52); --faint: rgba(28, 27, 25, .28); --bg: #d7d4ce; }
body.dark { --fg: #ebe7e1; --mute: rgba(235, 231, 225, .52); --faint: rgba(235, 231, 225, .26); --bg: #0c0c0d; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); transition: background .8s; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--fg); -webkit-font-smoothing: antialiased; font-weight: 400; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
a { color: var(--fg); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--fg); }

#copy { position: fixed; left: 64px; bottom: 60px; width: 380px; transition: opacity .35s; }
#copy.out { opacity: 0; }
#big { font-size: 112px; line-height: .9; font-weight: 200; letter-spacing: -.04em; margin: 0 0 14px -4px; font-variant-numeric: tabular-nums; }
#big:empty { display: none; }
#big small { font-size: 20px; letter-spacing: 0; font-weight: 400; color: var(--mute); margin-left: 10px; }
#line { font-size: 23px; line-height: 1.32; margin: 0; letter-spacing: -.008em; }
#line:empty { display: none; }
#sub { font-size: 16px; line-height: 1.45; margin: 8px 0 0; color: var(--mute); }
#sub:empty { display: none; }
#panel { margin: 22px 0 0; font-size: 15px; line-height: 1.45; max-height: 52vh; overflow: auto; }
#panel:empty { display: none; }
#acts { margin: 22px 0 0; font-size: 16px; }
#acts:empty { display: none; }
#acts a { margin-right: 26px; }

#panel .row { display: flex; gap: 14px; padding: 5px 0; cursor: pointer; color: var(--faint); transition: color .3s; }
#panel .row.done { color: var(--mute); }
#panel .row.on { color: var(--fg); }
#panel .row .n { width: 58px; flex: none; font-variant-numeric: tabular-nums; }
#panel .row .t { flex: 1; }
#panel .detail { color: var(--mute); margin: 4px 0 8px 72px; font-size: 14px; }
#panel .opts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 6px; font-size: 16px; }
#panel .opts a.sel { text-decoration-color: var(--fg); text-decoration-thickness: 2px; }
#panel input[type=text] { font: inherit; font-size: 17px; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--faint); padding: 4px 0; width: 100%; outline: none; margin-bottom: 8px; }
#panel .qs { margin-top: 18px; font-size: 13px; color: var(--faint); line-height: 1.6; }
#panel .qs span { display: block; }
#panel .qs span.done { color: var(--mute); }
#panel .qs span.on { color: var(--fg); }
#panel .prof { padding: 8px 0; cursor: pointer; color: var(--mute); transition: color .3s; }
#panel .prof.on { color: var(--fg); }
#panel .prof .r { font-size: 13px; color: var(--mute); display: block; margin-top: 2px; }

#nav { position: fixed; top: 26px; left: 64px; right: 64px; display: flex; justify-content: space-between; font-size: 14px; color: var(--mute); }
#nav a { color: var(--mute); margin-right: 22px; }
#nav #restart { margin-right: 0; }
#navl:empty + #restart { display: none; }
#note { position: fixed; right: 64px; bottom: 60px; margin: 0; font-size: 13px; color: var(--mute); max-width: 260px; text-align: right; transition: opacity .4s; }

#labels { position: fixed; inset: 0; pointer-events: none; }
.lab { position: absolute; left: 0; top: 0; font-size: 13px; line-height: 1.3; color: var(--mute); white-space: nowrap; transform: translate(-50%, -50%); transition: color .3s; }
.lab b { font-weight: 400; color: var(--fg); margin-left: 6px; font-variant-numeric: tabular-nums; }
.lab.pick { pointer-events: auto; cursor: pointer; font-size: 17px; color: var(--fg); text-align: center; }
.lab.pick span { display: block; font-size: 13px; color: var(--mute); margin-top: 3px; }
.lab.num { font-size: 14px; color: var(--fg); }

#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  #copy { left: 22px; right: 22px; bottom: 26px; width: auto; }
  #big { font-size: 76px; margin-bottom: 8px; }
  #line { font-size: 20px; }
  #sub { font-size: 15px; }
  #panel { margin-top: 14px; max-height: 30vh; font-size: 14px; }
  #panel .qs { display: none; }
  #acts { margin-top: 16px; }
  #nav { left: 22px; right: 22px; top: 18px; }
  #nav #restart { display: none; }
  #nav a { margin-right: 18px; }
  #note { left: 22px; right: auto; top: 44px; bottom: auto; text-align: left; font-size: 12px; max-width: 300px; }
  .lab { font-size: 11px; }
  .lab.pick { font-size: 15px; }
}
#panel .row.one .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#panel .row.one.on .t { white-space: normal; }

/* ---- app additions ---- */
#nav .here { color: var(--fg); margin-right: 22px; }
#nav a { margin-right: 22px; }
#panel .hd { margin: 16px 0 4px; font-size: 13px; color: var(--mute); }
#panel .hd:first-child { margin-top: 0; }
#panel .warn { margin-top: 14px; font-size: 13px; color: var(--mute); }
#panel .row .t .co { display: block; font-size: 13px; color: var(--mute); }
#panel .row.one .t .co { display: inline; margin-left: 8px; }
#panel .rd { margin: 0 0 12px; }
#panel .rd label { display: block; font-size: 13px; color: var(--mute); }
#panel .rd .from { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
#panel select, #panel textarea { font: inherit; font-size: 16px; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--faint); padding: 4px 0; width: 100%; outline: none; }
#panel select option { color: #111; }
#panel textarea { border: 1px solid var(--faint); padding: 8px; resize: vertical; box-sizing: border-box; }
#panel .rd input[type=text] { margin-bottom: 0; }
#panel .sk { padding: 3px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
#panel .sk .why { flex-basis: 100%; padding-left: 18px; font-size: 12px; color: var(--faint); }
#panel .sk em { font-style: normal; color: var(--mute); }
#panel .mk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--mute); }
#panel .mk.on { background: var(--fg); border-color: var(--fg); }
#panel .sq, #panel .ri { display: inline-block; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--mute); box-sizing: border-box; }
#panel .sq.on, #panel .ri.on { background: var(--fg); border-color: var(--fg); }
#panel .ri { border-radius: 50%; }
#panel .flags { color: var(--mute); }
#panel .post { margin-top: 14px; }
#panel .prof.dim { cursor: default; font-size: 13px; }
#panel .prof .r + .r { margin-top: 4px; }
#panel #jq { margin-bottom: 4px; }
@media (max-width: 760px) {
  #nav .here, #nav a { margin-right: 16px; }
  #panel .sk .why { display: none; }
}
#acts a { display: inline-block; white-space: nowrap; margin-bottom: 6px; }
#panel .acc { font-size: 13px; color: var(--mute); }
#nav .crumb { color: var(--mute); margin: 0 22px 0 -22px; }
#nav .crumb::before { content: ", "; }
.lab.pick { max-width: 280px; white-space: normal; }
@media (max-width: 760px) { .lab.pick { max-width: 230px; } }
#panel .vd { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1.5px solid var(--mute); box-sizing: border-box; vertical-align: 0; }
#panel .vd.enough { background: #7f9672; border-color: #7f9672; }
#panel .vd.short { background: #a85b4b; border-color: #a85b4b; }
#panel .row.area .n { width: 82px; white-space: nowrap; }
#panel .row.area { color: var(--mute); }
#panel .row.area.on, #panel .row.area.short { color: var(--fg); }
#panel .row.mv { padding-left: 24px; }
#panel #jobtext { margin-bottom: 4px; }

/* ---- Orbit workspace (lay-orbit) ---- */
#obar, #opin, #ohov { display: none; }
body.orbit #obar { display: flex; flex-direction: column; position: fixed; left: 64px; width: 300px; top: 340px; bottom: 30px; transition: opacity .8s; }
body.orbit.ohand #obar { opacity: 0; transition: none; }
body.orbit #opin:not([hidden]) { display: block; }
body.orbit #ohov:not([hidden]) { display: block; }
body.orbit #copy { top: 74px; bottom: auto; width: 380px; }
body.orbit #big { font-size: 88px; margin-bottom: 8px; }
body.orbit #line { font-size: 19px; }
body.orbit #sub { font-size: 14px; max-width: 360px; }
body.orbit #sub a { color: var(--mute); }
body.orbit #sub .onote { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--faint); }
body.orbit #note { top: 56px; bottom: auto; right: 64px; font-size: 12px; }
#owords { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--mute); margin: 10px 0 8px; }
#owords a { color: var(--faint); text-decoration: none; margin-right: 14px; cursor: pointer; }
#owords a:hover { color: var(--mute); }
#owords a.sel { color: var(--fg); }
#owords .count { color: var(--faint); }
#ohid { margin: 0 0 4px; font-size: 12px; line-height: 1.4; color: var(--mute); }
#ohid:empty { display: none; }
#oq { display: block; flex: none; width: 100%; box-sizing: border-box; height: 32px; font: inherit; font-size: 15px; line-height: 1.3; color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--faint); padding: 6px 0; outline: none; resize: none; overflow: hidden; }
#oq:focus { border-bottom-color: var(--mute); }
#oq::placeholder { color: var(--faint); }
#oerr { margin: 6px 0 0; font-size: 13px; color: #c98f80; }
#oerr:empty { display: none; }
#oerr.busy { color: var(--mute); }
#onote { display: none; }
#onote:empty { display: none !important; }
#opin { position: fixed; width: 280px; max-height: 44vh; overflow: auto; font-size: 13px; line-height: 1.4; color: var(--fg); }
#opin .hd { margin: 10px 0 3px; font-size: 12px; color: var(--mute); }
#opin .hd:first-child { margin-top: 0; }
#opin .sk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 1px 0; }
#opin .sk em { font-style: normal; color: var(--mute); }
#opin .sk .why { flex-basis: 100%; padding-left: 18px; font-size: 11.5px; color: var(--faint); }
#opin .sq, #opin .ri { display: inline-block; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--mute); box-sizing: border-box; }
#opin .ri { border-radius: 50%; }
#opin .sq.on, #opin .ri.on { background: var(--fg); border-color: var(--fg); }
#opin .fl { margin: 10px 0 6px; color: var(--mute); }
#opin a { display: inline-block; margin-top: 4px; }
#opin .pnote { display: none; }
#ohov { position: fixed; left: 0; top: 0; pointer-events: none; text-align: center; font-size: 13px; line-height: 1.3; max-width: 230px; text-shadow: 0 0 6px #0c0c0d, 0 0 2px #0c0c0d; }
#ohov b { display: block; font-weight: 300; font-size: 26px; }
#ohov span { display: block; color: var(--mute); }
.lab.rim, .lab.tag, .lab.pop, .lab.scrub { pointer-events: auto; cursor: pointer; text-shadow: 0 0 6px #0c0c0d, 0 0 2px #0c0c0d; }
.lab.tag { font-size: 12px; color: #c98f80; max-width: 170px; white-space: normal; text-align: center; line-height: 1.3; }
.lab.pop { width: 290px; white-space: normal; text-align: left; font-size: 13px; line-height: 1.38; color: var(--fg); cursor: default; padding-bottom: 10px; }
.lab.pop .ph { color: var(--mute); margin-bottom: 4px; }
.lab.pop .pm { display: flex; gap: 10px; padding: 3px 0; color: var(--mute); cursor: pointer; }
.lab.pop .pm:hover, .lab.pop .pm.on { color: var(--fg); }
.lab.pop .pm .n { flex: none; width: 62px; font-variant-numeric: tabular-nums; }
.lab.pop .pm.none { cursor: default; }
.lab.scrub { width: 340px; cursor: default; }
.lab.scrub .cap { font-size: 12px; color: var(--mute); text-align: center; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab.scrub .trk { position: relative; display: flex; justify-content: space-between; align-items: center; height: 20px; cursor: ew-resize; touch-action: none; }
.lab.scrub .trk::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 1px solid var(--faint); }
.lab.scrub .trk i { position: relative; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mute); background: #0c0c0d; box-sizing: border-box; }
.lab.scrub .trk i.on { background: var(--mute); }
.lab.scrub .trk i.cur { background: var(--fg); border-color: var(--fg); width: 11px; height: 11px; }
@media (max-width: 760px) {
  body.orbit #obar { left: 22px; right: 22px; bottom: 12px; }
  body.orbit #copy { top: 48px; bottom: auto; left: 22px; right: 22px; width: auto; }
  body.orbit #big { font-size: 50px; margin-bottom: 2px; }
  body.orbit #line { font-size: 15px; }
  body.orbit #sub { font-size: 12.5px; max-width: none; }
  body.orbit #sub .onote { display: none; }
  body.orbit #note { display: none; }
  #onote { display: block; margin: 0 0 4px; font-size: 11px; color: var(--faint); }
  .lab.rim { font-size: 11px; }
  #opin { max-height: none; }
  .lab.rim { white-space: normal; max-width: 124px; text-align: center; line-height: 1.25; }
  #owords { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  #owords { font-size: 12px; gap: 2px 14px; }
  #owords a { margin-right: 10px; }
  #owords .count { display: none; }
  #oq { font-size: 15px; }

  #opin .pnote { display: block; margin-top: 8px; font-size: 11.5px; color: var(--faint); }
  .lab.pop { width: calc(100vw - 44px); overflow-y: auto; box-sizing: border-box; }
  .lab.scrub { width: 260px; }
}

/* ---- round 2: the side column, the list, the load ---- */
body.orbit #sub .onote { display: none; }
#opin .pnote { display: block; margin-top: 10px; font-size: 11.5px; line-height: 1.45; color: var(--faint); }
#olist { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; font-size: 13px; line-height: 1.3; }
#olist .orow { display: flex; gap: 10px; padding: 3px 0; cursor: pointer; color: var(--mute); }
#olist .orow .n { flex: none; width: 22px; font-variant-numeric: tabular-nums; color: var(--faint); }
#olist .orow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#olist .orow .co { margin-left: 8px; color: var(--faint); }
#olist .orow.hov, #olist .orow.hov .n { color: var(--fg); }
#olist .orow.pin, #olist .orow.pin .n { color: var(--fg); }
#olist .orow.pin .t { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
#ohid { margin-top: 10px; }
#oload { display: none; }
body.oloading #oload { display: block; position: fixed; left: 50%; bottom: 13%; transform: translateX(-50%); text-align: center; width: 520px; max-width: calc(100vw - 44px); }
#oload p { margin: 0; }
#oload .bb { font-size: 15px; color: var(--mute); margin-bottom: 6px; animation: opop .8s both; }
#oload .go { font-size: 21px; color: var(--fg); animation: opop .6s both; }
#oload .skip { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--faint); text-decoration-color: var(--faint); }
body.oloading #copy { top: 74px; bottom: auto; width: 380px; }
body.oloading #big { font-size: 88px; margin-bottom: 14px; }
body.oloading #panel { max-height: 60vh; }
#panel .lrow { display: flex; gap: 14px; padding: 4px 0; color: var(--mute); font-size: 14px; line-height: 1.4; }
#panel .lrow .n { flex: none; width: 58px; color: var(--faint); }
#panel .lrow.on { color: var(--fg); font-size: 16px; animation: opop .6s both; }
#panel .lrow .add { display: block; margin-top: 3px; font-size: 13px; color: var(--mute); }
@keyframes opop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #oload .bb, #oload .go, #panel .lrow.on { animation: none; } }
@media (max-width: 760px) {
  body.orbit #obar { top: auto !important; left: 22px; right: 22px; width: auto; bottom: 12px; display: flex; flex-direction: column; }
  body.orbit #obar #oq { order: 5; }
  body.orbit #obar #oerr { order: 6; }
  #owords { flex-direction: column; flex-wrap: nowrap; overflow: visible; white-space: normal; margin: 0 0 4px; gap: 2px; }
  #owords > span { display: flex; flex-wrap: wrap; gap: 0 12px; }
  #owords a { margin-right: 0; }
  #olist { display: none; }
  #ohid { margin-top: 0; }
  #opin { width: auto; right: 22px; }
  body.oloading #oload { bottom: 8%; }
  body.oloading #copy { top: 48px; left: 22px; right: 22px; width: auto; }
  body.oloading #big { font-size: 56px; margin-bottom: 6px; }
  body.oloading #panel .lrow:not(.on) { display: none; }
  #oload .go { font-size: 18px; }
}
@media (max-width: 760px) {
  body.oloading #note { top: auto; bottom: 18px; left: 22px; right: 22px; text-align: center; max-width: none; font-size: 11px; }
  body.oloading #oload { bottom: 9%; }
}

/* ---- round 3: featured job, sets, saved ---- */
#ofeat { display: none; }
body.orbit #ofeat:not([hidden]) { display: block; position: fixed; font-size: 13px; line-height: 1.4; text-align: left; text-shadow: 0 0 6px #0c0c0d; }
#ofeat .fh { font-size: 11.5px; color: var(--mute); margin-bottom: 2px; }
#ofeat .fa { display: flex; gap: 14px; white-space: nowrap; }
#ofeat .fa a { color: var(--fg); cursor: pointer; }
#ofeat .fa a.on { text-decoration-color: var(--fg); }
#ofeat .fx { margin-top: 4px; font-size: 11.5px; color: var(--faint); }
#owords .count a { color: var(--mute); margin: 0 0 0 8px; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
#owords .count a[hidden] { display: none; }
#olist .orow .sv { flex: none; font-size: 12px; color: var(--faint); opacity: 0; text-decoration: none; cursor: pointer; }
#olist .orow:hover .sv { opacity: 1; }
#olist .orow.saved .sv { opacity: 1; color: var(--mute); }
#osaved { flex: none; margin-top: 12px; font-size: 13px; line-height: 1.3; max-height: 32vh; overflow-y: auto; scrollbar-width: none; }
#osaved .sh { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
#osaved .sh a { color: var(--mute); cursor: pointer; }
#osaved .sh a[data-s=tog] { color: var(--fg); text-decoration: none; }
#osaved .sh .fl { color: var(--mute); }
#osaved .srow { display: flex; gap: 10px; padding: 3px 0; cursor: pointer; color: var(--mute); }
#osaved .srow .n { flex: none; width: 22px; color: var(--faint); font-variant-numeric: tabular-nums; }
#osaved .srow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#osaved .srow .co { margin-left: 8px; color: var(--faint); }
#osaved .srow:hover, #osaved .srow.pin { color: var(--fg); }
#osaved .srow .rm { flex: none; font-size: 12px; color: var(--faint); opacity: 0; }
#osaved .srow:hover .rm { opacity: 1; }
#osaved .sn { margin: 6px 0 0; font-size: 11.5px; color: var(--faint); }
#sub .who { display: block; margin-top: 6px; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) {
  #ofeat .fa { gap: 12px; font-size: 13px; }
  #osaved { order: 2; margin: 0 0 4px; max-height: none; }
  #osaved .sl, #osaved .sn { display: none; }
  #osaved.open .sl { display: block; max-height: 26vh; overflow-y: auto; }
  #osaved.open .sn { display: block; }
  #osaved .srow .rm { opacity: 1; }
  #olist .orow .sv { opacity: 1; }
}
#panel .psw { display: flex; gap: 16px; font-size: 14px; margin-bottom: 4px; }
#panel .psw span { color: var(--mute); }
#panel .psw a { color: var(--mute); cursor: pointer; }
#panel .psw a.sel { color: var(--fg); text-decoration-color: var(--fg); }
#panel .pdef { font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
/* the copy never runs over the nav on short windows: it scrolls inside its own column */
#copy { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
#copy::-webkit-scrollbar { display: none; }
#sub .who + .who { margin-top: 2px; }
#panel .who { font-size: 12px; line-height: 1.45; color: var(--faint); margin: 0 0 8px; }
#panel .who:first-of-type { margin-top: 10px; }
