/* ══════════════════════════════════════════════════════════════════════════
   JOB DECK · the app, in the Ashraf Builds language

   This replaces the Job Deck web-app system that was here. BACKGROUND.md §5
   records the two guidelines as deliberately separate, with sign-in as the
   border: Ashraf Builds public, Job Deck behind the login. Ashraf has moved
   that border. The whole product is Ashraf Builds now, so the accent is
   #E87420 and not #F5501A, and the ground is paper and not grey.

   TOKENS ARE VERBATIM from "Ashraf Builds Design System (standalone).html"
   and checked against the live ashrafbuilds.com. Nothing invented.

   ── NO TILES ───────────────────────────────────────────────────────────
   The thing that got thrown out: a stack of rounded white rectangles, each
   with a hairline round it, one per role. That is the shape an LLM reaches
   for and it encodes nothing true about a list of jobs. It was rejected once
   already on the marketing pages (§5b, "so much AI slop visually with the
   tiles and shit") and it came straight back here.

   What replaces it is what CLAUDE.md asks for: typography and spacing for
   hierarchy. A list is ONE surface with rules between the rows, not forty
   boxes. The only boxes left in this file are the ones that are genuinely a
   container for something else: a modal, and the dark nav pill.

   The one typeface is DM Sans. ashrafbuilds.com sets the set-apart word in
   Fraunces italic and that is the most characterful thing in the system, but
   §9 records Ashraf asking for "all the font the same, no Fraunces or
   whatever" for this product specifically. An explicit instruction beats an
   inference from the parent brand; say the word and it goes back in.
   ══════════════════════════════════════════════════════════════════════════ */

:root{
  /* Ashraf Builds, from the system file */
  --paper:#f5f2ee;
  --dark:#111;
  --ink:#1a1a1a;
  --mid:#555;
  --muted:#999;

  --orange:#E87420;
  --orange-dark:#d4681a;
  --orange-burnt:#c25510;
  --blue:#2C4685;
  --brown:#8B3A0F;

  /* Derived, and only these. Rules on paper, not a second grey ramp. */
  --rule:rgba(0,0,0,.09);
  --rule-strong:rgba(0,0,0,.16);
  --wash:rgba(0,0,0,.035);        /* the faintest possible fill, for hover */
  --tint:rgba(232,116,32,.10);    /* orange at the strength of a highlight */

  --pos:#1F6B4A;
  --neg:#B4231A;

  /* Provenance. One colour per source, shared with board.html. */
  --src-linkedin:#2C4685;
  --src-jj:#1F6B4A;
  --src-wttj:#8B3A0F;

  --r-pill:50px;
  --r-card:24px;
  --r-tile:18px;
  --r-small:12px;

  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  --wordmark:'Podkova',Georgia,serif;
  --mono:ui-monospace,Menlo,Consolas,monospace;

  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);
     font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6{margin:0;font-weight:600;line-height:1.08;letter-spacing:-.035em;
                  text-wrap:balance}
p{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input,textarea,select{font:inherit}
/* DM Sans ships without an italic axis, so the browser would slant the
   upright. §9: emphasis is carried some other way. */
em,i:not(.wm){font-style:normal}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:4px}

/* ══ The chrome: wordmark left, dark pill centre, you on the right ═══════
   Taken straight off ashrafbuilds.com, where the nav is a black pill
   floating on the paper with the current page as a lighter pill inside it.
   It is the most recognisable thing in the system and it is why every page
   in the product now looks like it belongs to the same thing. */
.appbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:16px;
        padding:14px clamp(14px,3vw,30px);background:var(--paper)}
.appbar .mark{display:flex;align-items:center;gap:8px;color:var(--ink);flex:0 0 auto}
.appbar .mark svg{width:22px;height:24px;flex:0 0 auto}
.appbar .wm{font-family:var(--wordmark);font-weight:700;font-size:16px;letter-spacing:-.02em}
/* #E87420 is the brand's own orange and the wordmark carries it wherever it
   appears. It is also the accent now, so there is one orange in the product. */
.appbar .wm i{font-style:normal;color:var(--orange)}
.appbar .sp{flex:1}

.nav{display:flex;align-items:center;gap:2px;background:var(--dark);
     border-radius:var(--r-pill);padding:5px 6px;max-width:100%;
     overflow-x:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a,.nav .soon{display:inline-flex;align-items:center;gap:7px;
     padding:7px 14px;border-radius:var(--r-pill);font-size:13.5px;
     color:rgba(255,255,255,.62);white-space:nowrap;
     transition:color .14s var(--ease),background .14s var(--ease)}
.nav a:hover{color:#fff}
.nav a.on{background:rgba(255,255,255,.14);color:#fff;font-weight:500}
.nav .soon{color:rgba(255,255,255,.24);cursor:default;user-select:none}
.nav .n{font-size:11.5px;color:rgba(255,255,255,.45);font-variant-numeric:tabular-nums}
.nav a.on .n{color:var(--orange)}

.avatar{width:34px;height:34px;border-radius:999px;background:var(--dark);color:#fff;
        display:flex;align-items:center;justify-content:center;
        font-size:12.5px;font-weight:500;flex:0 0 auto}

/* ══ Page head. On the paper, no band, no second surface. ════════════════ */
.wrap{max-width:1240px;margin:0 auto;padding:0 clamp(14px,3vw,30px) 80px}
.pagehead{padding:18px 0 22px}
.pagehead h1{font-size:clamp(30px,4vw,46px)}
/* The lede is clamped to two lines so the list starts at the same height on
   every page. It used to run to one line on one and three on another, and
   the whole page lurched as you moved between tabs. */
.pagehead .lede{font-size:16px;line-height:1.5;color:var(--mid);margin-top:10px;
                max-width:56ch;height:48px;overflow:hidden;
                display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pagehead .tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
                 margin-top:20px;min-height:46px}
.pagehead .tools .searchbox{flex:1;min-width:200px;max-width:380px}

/* A small uppercase label. DM Sans, not mono: §9. */
.lab{display:inline-block;font-size:10.5px;font-weight:500;letter-spacing:.14em;
     text-transform:uppercase;color:var(--muted)}
/* The only monospace: a string read character by character. */
.token{font-family:var(--mono);font-size:12px;color:var(--mid);
       background:var(--wash);border-radius:6px;padding:2px 7px;word-break:break-all}

/* The orange highlight, used exactly as the home page uses it: a marker over
   the one phrase that matters. Never more than one on a view. */
.hl{background:var(--orange);color:#fff;padding:1px 9px 3px;
    border-radius:var(--r-small);box-decoration-break:clone;
    -webkit-box-decoration-break:clone}

/* ══ Buttons. Pills, the way the site sets them. ═════════════════════════ */
.b{display:inline-flex;align-items:center;justify-content:center;gap:9px;
   height:46px;padding:0 24px;border-radius:var(--r-pill);
   font-size:15px;font-weight:500;letter-spacing:-.005em;white-space:nowrap;
   transition:background .14s var(--ease),border-color .14s var(--ease),
              color .14s var(--ease)}
.b svg{width:15px;height:15px;flex:0 0 auto;transition:transform .2s var(--ease)}
.b:hover svg{transform:translateX(3px)}
.b-dark{background:var(--dark);color:#fff}
.b-dark:hover{background:#000}
.b-accent{background:var(--orange);color:#fff}
.b-accent:hover{background:var(--orange-dark)}
.b-outline{border:1.5px solid var(--ink);color:var(--ink)}
.b-outline:hover{background:var(--ink);color:var(--paper)}
.b-quiet{border:1px solid var(--rule-strong);color:var(--mid)}
.b-quiet:hover{border-color:var(--ink);color:var(--ink)}
.b-ghost{color:var(--mid)}
.b-ghost:hover{color:var(--ink);background:var(--wash)}
.b-sm{height:38px;padding:0 18px;font-size:14px}
.b-xs{height:32px;padding:0 14px;font-size:13px;gap:6px}
.b[disabled]{background:var(--wash);border-color:transparent;color:var(--muted);
             cursor:not-allowed}
.b[disabled]:hover{background:var(--wash);color:var(--muted)}

/* ══ Inputs ══════════════════════════════════════════════════════════════ */
.field{display:block;margin-bottom:18px}
.field > .lab{margin-bottom:8px}
.field input,.field textarea,.field select{
  width:100%;height:46px;padding:0 18px;border-radius:var(--r-pill);
  border:1px solid var(--rule-strong);background:#fff;color:var(--ink);
  font-size:15px;transition:border-color .14s var(--ease),box-shadow .14s var(--ease)}
.field textarea{height:auto;border-radius:var(--r-small);padding:13px 16px;
                line-height:1.65;resize:vertical;min-height:96px}
.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--orange);box-shadow:0 0 0 3px var(--tint)}
.field .help{font-size:13px;color:var(--muted);margin-top:7px}
.field .help.err,.field .help.over{color:var(--neg);font-weight:500}

.searchbox{position:relative}
.searchbox svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);
               width:16px;height:16px;color:var(--muted);pointer-events:none}
.searchbox input{padding-left:44px;height:46px;width:100%;border-radius:var(--r-pill);
                 border:1px solid var(--rule-strong);background:#fff;font-size:15px}
.searchbox input::placeholder{color:var(--muted)}
.searchbox input:focus{outline:none;border-color:var(--orange);
                       box-shadow:0 0 0 3px var(--tint)}

/* ══ Tags and segments ═══════════════════════════════════════════════════ */
.tag{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 13px;
     border-radius:var(--r-pill);font-size:13px;color:var(--mid);
     border:1px solid var(--rule-strong);white-space:nowrap}
.tag.solid{background:var(--dark);color:#fff;border-color:var(--dark)}
.tag.accent{background:var(--tint);color:var(--orange-burnt);border-color:transparent;
            font-weight:500}
.tag.fill{background:var(--orange);color:#fff;border-color:var(--orange);font-weight:500}
.tag.pos{color:var(--pos);border-color:rgba(31,107,74,.32)}
.tag.neg{color:var(--neg);border-color:rgba(180,35,26,.32)}
.tag .swatch{width:7px;height:7px;border-radius:999px;flex:0 0 auto}

/* The segmented control, as a pill of pills, matching the nav. */
.seg{display:inline-flex;border:1px solid var(--rule-strong);
     border-radius:var(--r-pill);padding:3px}
.seg:empty{display:none}
.seg button{height:34px;padding:0 16px;border-radius:var(--r-pill);font-size:13.5px;
            color:var(--mid);transition:background .18s var(--ease),color .18s var(--ease)}
.seg button:hover{color:var(--ink)}
.seg button.on{background:var(--ink);color:var(--paper);font-weight:500}

/* ══ THE LIST. One surface, rules between rows, no boxes. ════════════════
   The whole point of this file. Each role is a row on the paper, divided
   from the next by a hairline. Hierarchy comes from the type: the role at
   19px/600, the employer at 14.5px, everything else at 12.5px and grey. */
.jobs{border-top:1px solid var(--rule)}

.job{display:grid;grid-template-columns:auto minmax(0,1fr) auto;
     gap:4px 18px;padding:20px 10px;border-bottom:1px solid var(--rule);
     transition:background .14s var(--ease)}
.job > *{min-width:0}
.job:hover{background:var(--wash)}

/* A decided role steps back. It stays, because watching it move to the
   panel on the right is the feedback that the press worked, but it stops
   competing with the ones still to do.

   The CONTENT fades, not the row. opacity on .job creates a stacking
   context and a child cannot climb back out of it, so dimming the whole
   row took the decision buttons with it and the chosen one rendered grey
   instead of ink: the dim hid the very thing it was confirming. */
.job.decided .logo{opacity:.5}
.job.decided .role,.job.decided .co,.job.decided .blurb,
.job.decided .meta,.job.decided .facts,.job.decided .pay{opacity:.45}
.job.decided:hover .logo,.job.decided:hover .role,.job.decided:hover .co,
.job.decided:hover .blurb,.job.decided:hover .meta,.job.decided:hover .facts,
.job.decided:hover .pay{opacity:1}
/* The mark that says which way you went: a short bar in the left margin,
   not a border round a box. */
.job.decided .logo::before{content:'';position:absolute;left:-11px;top:3px;bottom:3px;
  width:3px;border-radius:2px;background:var(--ink)}
.job.is-super .logo::before{background:var(--orange)}

.logo{width:44px;height:44px;border-radius:var(--r-small);flex:0 0 auto;position:relative;
      display:grid;place-items:center;
      color:#fff;font-size:14px;font-weight:600;letter-spacing:-.02em}
.logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
          background:#fff;border-radius:inherit}
/* Plenty of logos are a white mark on white and would float with no edge. */
.logo::after{content:'';position:absolute;inset:0;border-radius:inherit;
             box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}

.job .role{font-size:19px;font-weight:600;letter-spacing:-.03em;line-height:1.25;
           overflow-wrap:anywhere}
.job .role a:hover{color:var(--orange)}
.job .role .go{font-size:12px;color:var(--muted);margin-left:5px;vertical-align:2px}
.job .co{font-size:14.5px;color:var(--mid);margin-top:4px;font-weight:500}
.job .blurb{font-size:13.5px;color:var(--mid);margin-top:3px;max-width:62ch;
            overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.job .meta{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:9px}
.job .where{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.job .when{font-size:13px;color:var(--muted)}
.job .pay{font-size:14px;font-weight:500;margin-top:5px;font-variant-numeric:tabular-nums}

/* The provenance line. No rule above it: it is the same row, set quieter,
   not a separate compartment. */
.job .facts{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:10px;
            font-size:12.5px;color:var(--muted)}
.job .facts .dot{color:var(--rule-strong)}
.job .facts a,.job .facts span{overflow-wrap:anywhere}
.job .facts .dom{color:var(--mid);border-bottom:1px solid var(--rule)}
.job .facts .dom:hover{color:var(--orange);border-bottom-color:var(--orange)}
.job .facts .nodom{color:var(--muted)}
.job .facts .bg{font-size:12.5px;color:var(--orange-burnt);font-weight:500}
.job .facts .bg:hover{text-decoration:underline}
.job .facts .why{color:var(--mid)}

.job .side{display:flex;flex-direction:column;align-items:flex-end;
           justify-content:center;gap:10px;flex:0 0 auto}
.job .decide{display:flex;gap:7px}

/* ══ Rails and filters. Text, not tinted blocks. ═════════════════════════ */
.withrail{display:grid;grid-template-columns:186px minmax(0,1fr);gap:34px;
          align-items:start}
.withrail.haspicked{grid-template-columns:186px minmax(0,1fr) 250px}
@media (max-width:1280px){
  .withrail.haspicked{grid-template-columns:186px minmax(0,1fr)}
  .withrail.haspicked .picked-col{display:none}
}

.rail-col{position:sticky;top:76px;display:flex;flex-direction:column}
.rail-col .grp{padding:16px 0;border-top:1px solid var(--rule)}
.rail-col .grp:first-child{border-top:none;padding-top:4px}
.rail-col h6{margin:0 0 9px;font-size:10.5px;font-weight:500;letter-spacing:.14em;
             text-transform:uppercase;color:var(--muted)}
.filt{display:flex;align-items:center;gap:9px;width:100%;text-align:left;
      min-height:29px;padding:3px 0;font-size:14px;color:var(--mid);
      transition:color .12s var(--ease)}
.filt:hover{color:var(--ink)}
.filt .n{margin-left:auto;font-size:12.5px;color:var(--muted);
         font-variant-numeric:tabular-nums}
.filt .swatch{width:8px;height:8px;border-radius:999px;flex:0 0 auto}
/* Selected is ink and weight. The ORANGE is kept for a filter that is
   actually narrowing something, which is the one worth noticing, so the
   four that are on by default do not spend the accent. */
.filt.on{color:var(--ink);font-weight:600}
.filt.on.narrowing{color:var(--orange-burnt)}
.filt.on.narrowing .n{color:var(--orange-burnt)}

/* ══ What you picked, on the right. Rows, not cards. ═════════════════════ */
.picked-col{position:sticky;top:76px;max-height:calc(100vh - 110px);
            display:flex;flex-direction:column;min-height:0}
.picked-col h6{margin:0 0 4px;font-size:10.5px;font-weight:500;letter-spacing:.14em;
               text-transform:uppercase;color:var(--muted);display:flex;gap:8px}
.picked-col h6 .n{margin-left:auto;color:var(--orange);letter-spacing:0;font-size:11.5px}
.picked-col .scroll{overflow-y:auto;min-height:0;border-top:1px solid var(--rule)}
.pcard{display:flex;gap:10px;align-items:flex-start;padding:11px 2px;
       border-bottom:1px solid var(--rule);transition:opacity .12s var(--ease)}
.pcard:hover{opacity:.62}
.pcard .logo{width:28px;height:28px;border-radius:8px;font-size:10.5px}
.pcard .t{display:block;font-size:13px;font-weight:500;line-height:1.3;
          letter-spacing:-.015em}
.pcard .c{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.pcard .mark{width:6px;height:6px;border-radius:999px;background:var(--orange);
             flex:0 0 auto;margin-top:5px}
.picked-col .none{font-size:13px;color:var(--muted);line-height:1.6;padding:12px 2px 0}
.picked-col .go{margin-top:14px;flex:0 0 auto;align-self:flex-start}

/* ══ Tables. Rules, no outer box. ════════════════════════════════════════ */
.scroller{overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:940px}
th{text-align:left;font-size:10.5px;font-weight:500;letter-spacing:.12em;
   text-transform:uppercase;color:var(--muted);padding:0 14px 10px;
   border-bottom:1px solid var(--rule-strong);white-space:nowrap}
td{padding:16px 14px;border-bottom:1px solid var(--rule);font-size:14px;
   vertical-align:top}
tbody tr:hover{background:var(--wash)}
th:first-child,td:first-child{padding-left:2px}

/* ══ The boards. Columns under a heading, not filled boxes. ══════════════ */
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(196px,1fr);
       gap:26px;overflow-x:auto;padding:0 clamp(14px,3vw,30px) 12px;align-items:start;
       margin:0 calc(-1 * clamp(14px,3vw,30px));
       -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 44px),transparent 100%);
       mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 44px),transparent 100%)}
.board.fits{-webkit-mask-image:none;mask-image:none}
/* Seven stages at 196px do not fit a 1240px wrap, so on a desktop Rejected
   sat behind the fade and the notes tab with nothing to say the row
   scrolled. The tracker runs the board out to the window edges (bleed(), it
   sets the margins inline, since the spare width is not knowable in CSS
   without vw, which counts the scrollbar) and the columns give up 30px. All
   seven fit at 1440; at 1366 the last one shows under the fade, which is
   the cue to scroll. */
@media (min-width:1200px){.board{grid-auto-columns:minmax(166px,1fr);gap:18px}}
.col{min-height:90px}
.col > h3{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;
          padding-bottom:9px;margin-bottom:8px;border-bottom:1px solid var(--rule-strong)}
.col > h3 .dot{width:7px;height:7px;border-radius:999px;flex:0 0 auto}
.col > h3 .c{margin-left:auto;font-size:12px;color:var(--muted);font-weight:400;
             font-variant-numeric:tabular-nums}
.col.over > h3{border-bottom-color:var(--orange);color:var(--orange-burnt)}
.tk{display:flex;gap:10px;align-items:flex-start;padding:10px 2px;
    border-bottom:1px solid var(--rule);cursor:grab;
    transition:opacity .12s var(--ease)}
.tk:hover{opacity:.62}
.tk:active{cursor:grabbing}
.tk.dragging{opacity:.3}
.tk .logo{width:28px;height:28px;border-radius:8px;font-size:10.5px}
.tk .t{font-size:13px;font-weight:500;line-height:1.3;letter-spacing:-.015em}
.tk .c{font-size:12px;color:var(--muted);margin-top:2px}
.tk .ev{font-size:11.5px;color:var(--mid);margin-top:5px}
.tk .ev.bad{color:var(--neg)}
.tk .ev.good{color:var(--pos)}
.colempty{font-size:12.5px;color:var(--muted);padding:6px 2px;line-height:1.55}

/* ══ Empty, loading, notes ═══════════════════════════════════════════════ */
.empty{padding:64px 10px;max-width:52ch}
.empty .big{font-size:21px;font-weight:600;letter-spacing:-.03em;color:var(--ink)}
.empty .small{font-size:15px;color:var(--mid);margin-top:10px;line-height:1.6}
.empty .small a{color:var(--orange-burnt);border-bottom:1px solid var(--tint)}
.loading{padding:56px 10px;color:var(--muted);font-size:15px}

.note{display:flex;gap:12px;align-items:flex-start;border-radius:var(--r-small);
      padding:14px 18px;font-size:14px;line-height:1.6}
.note.warn{background:rgba(232,116,32,.09);color:var(--orange-burnt)}
.note.bad{background:rgba(180,35,26,.08);color:var(--neg)}
.note.ok{background:rgba(31,107,74,.08);color:var(--pos)}
.note.flat{background:var(--wash);color:var(--mid)}

.topline{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding-bottom:12px}
.topline .n{font-size:14px;font-weight:500}
.topline .sp{flex:1}
.clearf{font-size:13.5px;color:var(--muted)}
.clearf:hover{color:var(--orange)}

/* ══ Toast ═══════════════════════════════════════════════════════════════ */
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(14px);
       background:var(--dark);color:#fff;border-radius:var(--r-pill);
       padding:12px 24px;font-size:14.5px;z-index:90;opacity:0;pointer-events:none;
       transition:opacity .18s var(--ease),transform .18s var(--ease);
       max-width:min(90vw,520px)}
.toast.up{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.bad{background:var(--neg)}

/* ══ Modal. A real container, so it keeps its edges. ═════════════════════ */
.scrim{position:fixed;inset:0;background:rgba(17,17,17,.46);z-index:80;
       display:flex;align-items:center;justify-content:center;padding:20px;
       opacity:0;transition:opacity .16s var(--ease)}
.scrim.up{opacity:1}
.modal{background:var(--paper);border-radius:var(--r-card);width:min(580px,100%);
       max-height:min(86vh,780px);display:flex;flex-direction:column;overflow:hidden}
.modal header{display:flex;align-items:center;gap:12px;padding:24px 28px 14px}
.modal header h2{font-size:21px;flex:1}
.modal .body{padding:0 28px 6px;overflow-y:auto;flex:1}
/* Sticky, because the extension's popup once shipped with its send button
   below the fold and nobody could find it. */
.modal footer{display:flex;gap:10px;justify-content:flex-end;padding:18px 28px 24px;
              border-top:1px solid var(--rule);background:var(--paper)}
.xbtn{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;
      justify-content:center;color:var(--muted);flex:0 0 auto}
.xbtn:hover{background:var(--wash);color:var(--ink)}
.xbtn svg{width:15px;height:15px}

/* ══ Fit score ═══════════════════════════════════════════════════════════ */
.score{display:flex;flex-direction:column;align-items:flex-end;line-height:1}
.score .n{font-size:22px;font-weight:600;letter-spacing:-.045em;
          font-variant-numeric:tabular-nums}
.score .l{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
          color:var(--muted);margin-top:5px}
.score.high .n{color:var(--pos)}
.score.low .n{color:var(--muted)}

/* ══ Phone ═══════════════════════════════════════════════════════════════ */
@media (max-width:760px),(max-height:500px) and (pointer:coarse){
  .wrap{padding:0 14px 60px}
  .appbar{flex-wrap:wrap;gap:10px;padding:12px 14px 0}
  .appbar .wm{display:none}
  .nav{order:10;flex:0 0 100%;width:100%;margin-top:4px}
  .pagehead{padding:14px 0 18px}
  .pagehead h1{font-size:30px}

  /* .withrail.haspicked is 0,2,0 and a media query adds no specificity, so a
     bare .withrail here loses to it and the rail column survives onto the
     phone, pushing the page wider than the screen. BACKGROUND.md §7.5. */
  .withrail,.withrail.haspicked{grid-template-columns:minmax(0,1fr);gap:16px}
  .rail-col{position:static;flex-direction:row;overflow-x:auto;gap:18px;
            padding-bottom:6px;scrollbar-width:none;border-bottom:1px solid var(--rule)}
  .rail-col::-webkit-scrollbar{display:none}
  .rail-col .grp{display:flex;gap:14px;padding:6px 0;border:none;flex:0 0 auto}
  .rail-col h6{display:none}
  .filt{width:auto;white-space:nowrap}

  .job{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:18px 2px}
  .job .side{grid-column:1/-1;flex-direction:row;align-items:center;
             justify-content:flex-start;flex-wrap:wrap;gap:9px;margin-top:4px}
  .job .decide{flex-wrap:wrap}
  .job .facts{grid-column:1/-1}
  .job .blurb{white-space:normal}
  .modal{width:100%;max-height:92vh}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ── Notes: the tab on the right edge of every v2 page, and its panel ──────
   Paper and hairlines, like the tracker drawer. The tab is quiet until there
   is something open in it, when the count shows in orange. */
.notes-tab{position:fixed;right:0;top:46%;z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:14px 7px;background:var(--paper);border:1px solid var(--rule-strong);border-right:0;
  border-radius:10px 0 0 10px;cursor:pointer;color:var(--mid);font:inherit}
.notes-tab span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:11px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase}
.notes-tab .n{font-size:11.5px;font-weight:600;color:var(--orange-burnt);font-variant-numeric:tabular-nums}
.notes-tab .n:empty{display:none}
.notes-tab:hover,.notes-tab.on{color:var(--ink);border-color:var(--ink)}
/* Above the tracker drawer, on its open edge, so a note can be written about the role on screen. */
body:has(.drawer.up) .notes-tab{z-index:75;right:min(560px,100%)}
@media (max-width:640px){body:has(.drawer.up) .notes-tab{right:0}}
.notes{position:fixed;top:0;right:0;bottom:0;z-index:80;width:min(380px,100%);background:var(--paper);
  border-left:1px solid var(--rule-strong);display:flex;flex-direction:column;
  transform:translateX(100%);visibility:hidden;transition:transform .2s cubic-bezier(.2,.7,.2,1),visibility .2s}
.notes.up{transform:none;visibility:visible}
@media (prefers-reduced-motion:reduce){.notes{transition:none}}
.notes header{display:flex;align-items:center;gap:12px;padding:20px 22px 14px}
.notes header h2{font-size:18px;letter-spacing:-.03em}
.notes header .seg button{height:28px;padding:0 11px;font-size:12.5px}
.notes header .x{margin-left:auto;background:none;border:0;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;padding:4px}
.notes-add{padding:0 22px 16px;border-bottom:1px solid var(--rule)}
.notes-add textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:72px;padding:10px 12px;font:inherit;font-size:14px;
  line-height:1.5;background:#fff;border:1px solid var(--rule-strong);border-radius:var(--r-small)}
.notes-add textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px var(--tint)}
.notes-add .row{display:flex;align-items:center;gap:10px;margin-top:8px}
.notes-add .where{font-size:12px;color:var(--muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notes-list{overflow-y:auto;flex:1;padding:4px 22px 40px}
.notes-list ul{list-style:none;margin:0;padding:0}
.notes-list li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:13px 0;border-top:1px solid var(--rule)}
.notes-list ul li:first-child{border-top:0}
.notes-list .tick{width:16px;height:16px;margin-top:3px;border-radius:999px;border:1.5px solid var(--rule-strong);background:none;cursor:pointer;padding:0}
.notes-list .tick:hover{border-color:var(--pos)}
.notes-list li.done .tick{background:var(--pos);border-color:var(--pos)}
.notes-list .body p{margin:0;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.notes-list li.done .body p{color:var(--muted)}
.notes-list .meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:5px;font-size:11.5px;color:var(--muted)}
.notes-list .reply{margin-top:7px;font-size:12.5px;line-height:1.5;color:var(--pos)}
.notes-list .reply::before{content:'Done: ';font-weight:600}
.notes-list .del{background:none;border:0;color:var(--muted);font-size:17px;line-height:1;cursor:pointer;padding:0 2px;opacity:0}
.notes-list li:hover .del,.notes-list .del:focus-visible{opacity:1}
.notes-list .none{font-size:13.5px;color:var(--muted);padding:14px 0}
.notes-list details.done{margin-top:14px;border-top:1px solid var(--rule-strong);padding-top:10px}
.notes-list details.done summary{cursor:pointer;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600}
.notes-list details.done summary span{letter-spacing:0}
@media (max-width:640px){.notes-tab{top:auto;bottom:90px}}
