  /* ---------- crews (crews.md, public/js/crew.js): the Social pane's Crew · Friends tabs, the room, the no-crew page, the create and Say sheets, the Crews tab ----------
     Loaded after sunday.css, before skins.css: the pane's cards sit on account.css's .acard / .ccard / .frow / .fbtns / .more rules and
     quests.css's .qtabs; every class here is its own (cr…), so nothing else moves. */
  .crewtabs { margin-top: 4px; margin-bottom: 4px; }
  #crewPane[hidden], #socialPane[hidden] { display: none; }
  /* the emblem disc: the shape in the crew's colour (--ec) on an ink-outlined cream disc; .rim adds the tier's ring (--rim) */
  .cremb { display: inline-grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #FFF4D6; border: 3px solid var(--ink2); box-shadow: 0 3px 0 var(--ink2); }
  .cremb svg { width: 68%; height: 68%; display: block; fill: var(--ec); stroke: var(--ink2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
  .cremb svg .pip { fill: #FFF4D6; stroke: var(--ink2); } .cremb svg [fill="none"] { fill: none; }
  .cremb.sm { width: 40px; height: 40px; border-width: 2px; box-shadow: 0 2px 0 var(--ink2); } .cremb.sm svg { stroke-width: 3; }
  .cremb.lg { width: 84px; height: 84px; border-width: 4px; box-shadow: 0 4px 0 var(--ink2); }
  .cremb.rim { box-shadow: 0 0 0 4px var(--rim), 0 3px 0 4px var(--ink2); } .cremb.lg.rim { box-shadow: 0 0 0 5px var(--rim), 0 4px 0 5px var(--ink2); } .cremb.sm.rim { box-shadow: 0 0 0 3px var(--rim), 0 2px 0 3px var(--ink2); }
  /* the intro card (no crew) and the crew cards for joining */
  .crintro { display: flex; flex-direction: column; gap: 8px; } .crintro b { font: 400 24px/1.1 var(--lilita); } .crintro small { font: 800 14px/1.35 var(--nunito); color: #5a4a1a; } .crintro .abtn { margin-top: 6px; }
  .crjoin input { font-family: var(--mono); font-size: 14px; padding: 0 10px; text-transform: uppercase; }
  .crrow { display: flex; align-items: center; gap: 12px; } .crrow .who { flex: 1; min-width: 0; } .crrow .who b { display: block; font: 400 20px/1.1 var(--lilita); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .crrow .who small { display: block; margin-top: 4px; font: 800 13px/1.3 var(--nunito); color: #D6F2E0; } .crrow .who .crfr { color: #FFD93B; }
  .crcard .crrow { flex-wrap: wrap; } .crcard .crrow .who { flex: 1 1 140px; } .crcard .abtn.sm, .crcard .crtag { flex: 0 0 auto; margin-left: auto; } .crtag { font: 800 13px/1.2 var(--nunito); color: #D6F2E0; text-align: right; } /* (a long name keeps its line: the button drops under the row at 360 px) */
  .abtn.sm { min-height: 44px; padding: 0 14px; font-size: 18px; border-width: 3px; border-radius: 14px; box-shadow: 0 3px 0 var(--ink2); }
  /* the head: the emblem with the tier rim, the name in the gold marker, "18 of 25 · Gold · 640 🏆", the code with Copy / Share / Edit, the line */
  .crhead { margin-top: 10px; } .crhead .crrow .who b, .crhead .crrow .who small { color: var(--ink2); } .crhead .crrow .who small { color: #5a4a1a; }
  .crname { font: 400 clamp(26px, 8vw, 34px)/1.05 var(--marker); color: var(--lob-yellow); text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 4px 0 var(--ink2); overflow-wrap: anywhere; }
  .crcode { margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(27,18,6,.18); } .crcode .lbl { font: 800 11px/1.2 var(--nunito); letter-spacing: .06em; text-transform: uppercase; color: #6B5A3A; } .crcode .fcode { display: block; margin-top: 4px; font: 500 22px/1.2 var(--mono); color: var(--ink2); }
  .crcode .btns { display: flex; gap: 8px; margin-top: 10px; } .crcode .btns .abtn { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .crsub { display: block; margin-top: 10px; font: 800 13px/1.35 var(--nunito); color: #5a4a1a; }
  /* the goal and the weekend cards (dark, on account.css's .acard) */
  .crgoal, .crwknd { margin-top: 12px; } .crgh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; } .crgh small { margin-left: auto; } /* (the head wraps when its end time is long: the live weekend's "ends Sun Nov 8, 10 PM ET" at 390 px) */ .crgh b { font: 400 20px/1.1 var(--lilita); } .crgh small { font: 800 13px/1.2 var(--nunito); color: #D6F2E0; text-align: right; white-space: nowrap; }
  .crgoal .abar { margin-top: 10px; } .crgt { margin-top: 8px; font: 400 22px/1.1 var(--lilita); color: #FFD23F; } .crgoal.met .crgt { color: #7ED957; } .crgs { display: block; margin-top: 6px; font: 800 13px/1.35 var(--nunito); color: #D6F2E0; }
  .crwknd.crlive { background: #3B1F5C; } /* (not `.live`: that is the console's LIVE pill) */ .crscore { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; font: 400 22px/1.15 var(--lilita); color: #D6F2E0; text-align: center; flex-wrap: wrap; } .crscore .lead { color: #FFD23F; } .crscore .dot { color: #fff; }
  /* the members: account.css's friend card with a role tag, the online dot, Watch / Join and Send energy; the ⋯ menu of a captain or co-captain */
  .crmem.me { border-color: #FFD23F; } .crrole { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FFD23F; color: var(--ink2); font: 800 11px/1.3 var(--nunito); letter-spacing: .04em; text-transform: uppercase; vertical-align: 3px; } .crrole.co { background: #3FA9F5; color: #fff; }
  .crmenu { display: grid; gap: 8px; margin-top: 10px; } .crmenu:empty { display: none; }
  .crmem .fbtns > span:empty { display: none; } .crmem .fbtns:has(> span:empty) { grid-template-columns: 1fr; }
  /* the feed: newest at the bottom, each line a small picture, the name and the words; a moment the server wrote reads a shade dimmer */
  .crfeed { max-height: 360px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
  .crline { display: flex; align-items: flex-start; gap: 8px; font: 800 14px/1.35 var(--nunito); color: #fff; } .crline .avw { flex: 0 0 auto; margin-top: 1px; } .crline .crq { display: grid; place-items: center; background: #cbbf9e; color: #6B5A3A; }
  .crline .crtx { min-width: 0; overflow-wrap: anywhere; } .crline .crtx b { font-weight: 800; color: #FFD93B; } .crline .crtx small { display: inline; margin-left: 6px; font-size: 11px; color: #9FD3B5; white-space: nowrap; }
  .crline.auto .crtx { color: #D6F2E0; }
  .crsay { margin-top: 12px; } .crleave { margin-top: 12px; }
  /* the create / edit sheet: the swatches (a ring on the one picked), the emblems six across, Open / By request as an option row */
  .crswatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .crswatch { aspect-ratio: 1; width: 100%; padding: 0; border-radius: 50%; background: var(--ec); border: 3px solid var(--ink2); box-shadow: 0 3px 0 var(--ink2); transition: none; } .crswatch.on { box-shadow: 0 0 0 4px #FFD23F, 0 3px 0 4px var(--ink2); } .crswatch:hover:not(:disabled) { filter: none; } .crswatch:active:not(:disabled) { transform: translateY(2px); }
  .crembs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .crembbtn { display: grid; place-items: center; padding: 4px 0; background: transparent; border-radius: 14px; border: 3px solid transparent; transition: none; } .crembbtn.on { border-color: #FFD23F; background: rgba(255,210,63,.12); } .crembbtn:hover:not(:disabled) { filter: none; } .crembbtn:active:not(:disabled) { transform: translateY(2px); }
  .crembbtn .cremb.sm { width: 42px; height: 42px; }
  #crewOpen > button { display: flex; flex-direction: column; gap: 2px; min-height: 60px; } #crewOpen > button small { font: 800 11px/1.2 var(--nunito); text-shadow: none; opacity: .85; }
  .crewsheet .tsfield { font-size: 24px; }
  /* the Say sheet: the twelve lines, two across */
  .crlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .crlinebtn { min-height: 52px; padding: 6px 10px; background: #06281A; color: #fff; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 3px 0 var(--ink2); font: 400 18px/1.1 var(--lilita); white-space: normal; transition: none; } .crlinebtn:hover:not(:disabled) { filter: none; } .crlinebtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink2); }
  /* the Leaderboard's Crews tab: five tabs wrap to two rows; your crew's card, the tier ladder, the rows with the emblem */
  #boardTabs.five { flex-wrap: wrap; border-radius: 26px; } #boardTabs.five .qtab { flex: 1 1 30%; min-width: 0; }
  .crme { display: flex; align-items: center; gap: 12px; } .crme > span:nth-child(2) { flex: 1; min-width: 0; } .crme .abtn { flex: 0 0 auto; }
  .wrow2.crrow2 { grid-template-columns: 28px 40px minmax(0, 1fr) auto; }
  /* the Friends tab: a friend's crew emblem beside the name, and the Join crew / Ask to join rows of the ⋯ menu (account.js draws them) */
  .frow .who .crfe { display: inline-block; vertical-align: middle; margin-left: 6px; } .frow .who .crfe .cremb { width: 22px; height: 22px; border-width: 2px; box-shadow: none; }
  .fmenu:has(> [data-crew]) { display: grid; gap: 8px; }
  @media (max-width: 379px) { .crswatches { gap: 6px; } .crembs { gap: 6px; } .crembbtn .cremb.sm { width: 38px; height: 38px; } .crcode .btns .abtn { font-size: 16px; padding: 0 6px; } .crname { font-size: 24px; } }
