/* Shared by the game app (app/index.html, after css/main.css) and the practice term (pages/play.html): the turn bar,
   the HR Department's job tabs, the leaderboard, the turn recap, Reception's family names (Xen, 8 Oct: the practice
   term looks like the real game). Moved here from app/app.css; app.css still overrides parts for the app's layout. */
@keyframes sp-blink { 50% { opacity: .2; } }
.app-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
@media (min-width: 640px) { .app-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .app-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } .app-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-kpis dt { font: 400 15px/1.2 var(--f-ui); color: var(--text-dim); }
.app-kpis dd { margin: 0; font: 400 26px/1.1 var(--f-num); color: var(--white); overflow-wrap: anywhere; }
.app-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 480px; overflow-y: auto; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.app-row .check { align-items: center; }
/* Xen, 29 Sep: "All lawyers" is a wide panel, 3 lawyers a row, with job tabs + counts */
@media (min-width: 1000px) {
  .office-panel.is-wide { width: min(1240px, calc(100% - 24px)); left: 12px; right: 12px; margin: 0 auto; }
  .office-panel.is-wide .play-lawyers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 999px) {
  .office-panel.is-wide .play-lawyers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.office-panel.is-wide .play-lawyer { gap: 10px; padding: 10px; }
.office-panel.is-wide .play-jobs .btn, .office-panel.is-wide .play-jobs button { padding-left: 2px; padding-right: 2px; }
.law-jobs .chip .num { margin-left: 4px; }
.law-jobs .chip[aria-pressed="true"] .num { font-weight: 700; }
.app-kpis .kpi-sub { display: block; margin-top: 2px; font: 400 13px/1.2 var(--f-ui); color: var(--text-dim); }
.office-panel.is-wide .play-lawyer { align-items: stretch; }
.office-panel.is-wide .play-lbody { display: flex; flex-direction: column; }
.office-panel.is-wide .play-lbody > p.dim { min-height: 2.6em; }
.office-panel.is-wide .play-lbody .law-gear { margin-top: auto; }
@media (min-width: 1000px) { .app-kpis:not(.app-kpis--2) { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
/* turn recap (Xen, 29 Sep): five slides about your firm's turn, browsable turn by turn */
.recap-new { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.recap-new #recap-new-btn { flex: 1 1 auto; justify-content: flex-start; text-align: left; }
.recap-new #recap-new-btn::before { content: ""; flex: 0 0 10px; height: 10px; margin-right: 10px; background: var(--ink); animation: sp-blink 900ms steps(2) infinite; }
.recap-dlg { width: min(820px, calc(100vw - 16px)); padding: 16px 16px 12px; display: none; }
.recap-dlg[open] { display: flex; flex-direction: column; gap: 10px; }
.recap-head { display: grid; gap: 10px; padding: 0 40px; }
.recap-turns { display: flex; align-items: center; justify-content: center; gap: 10px; }
/* Xen, 30 Sep: cleaner turn switcher. Plain chevrons, shown only when there is another turn to go to */
.recap-arrow { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; font: 400 30px/1 var(--f-ui); color: var(--mist); }
.recap-arrow:hover { color: var(--pad); } .recap-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.recap-arrow[hidden] { display: block; visibility: hidden; }
.recap-latest { justify-self: center; padding: 0; border: 0; background: none; cursor: pointer; font: 400 14px/1.2 var(--f-ui); color: var(--sky); text-decoration: underline; }
.recap-latest[hidden] { display: none; }
.recap-title { flex: 0 1 auto; min-width: 0; text-align: center; }
.recap-title h2 { margin: 0; font: 400 clamp(20px, 5vw, 28px)/1.1 var(--f-display); letter-spacing: .02em; color: var(--white); }
.recap-title p { margin: 2px 0 0; }
.recap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.rc-step { display: block; width: 100%; height: 6px; min-height: 0; padding: 0; border: 0; cursor: pointer; background: var(--slate); }
.rc-step.done { background: var(--steel); }
.rc-step[aria-current="step"] { background: var(--pad); }
.rc-step:disabled { cursor: default; opacity: .5; }
.rc-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.recap-slide { min-height: min(48vh, 380px); max-height: calc(100vh - 220px); overflow-y: auto; overflow-x: hidden; padding: 16px 18px; background: var(--ink); cursor: pointer; }
.recap-slide.rc-anim { animation: rc-in 220ms steps(4, end); }
@keyframes rc-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.recap-slide a, .recap-slide button { cursor: pointer; }
.recap-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recap-foot #recap-go { margin-left: auto; }
.recap-skip { padding: 4px 2px; border: 0; background: none; cursor: pointer; font: 400 15px/1.2 var(--f-ui); color: var(--mist); text-decoration: underline; }
.recap-skip:hover { color: var(--pad); }
.recap-foot [hidden] { display: none; }
.rc-kicker { margin: 0 0 4px; font: 400 14px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--pad); }
.rc-kicker .num { color: var(--mist); margin-right: 6px; }
.rc-big { margin: 0 0 10px; font: 400 clamp(22px, 5vw, 30px)/1.15 var(--f-ui); color: var(--white); }
.rc-big .num { font-family: var(--f-num); color: var(--pad); }
.rc-big .num.down { color: var(--rose); } .rc-big .num.up { color: var(--mint); }
.rc-empty { color: var(--text-dim); margin: 16px 0; }
.recap-slide .play-sub { margin: 14px 0 6px; }
.recap-dlg .up { color: var(--mint); }
/* 1. orders */
/* orders: four tiles instead of share bars (Xen, 30 Sep: cleaner) */
.rc-tiles { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rc-tile { display: grid; gap: 2px; padding: 10px 12px; background: var(--navy); box-shadow: inset 0 4px 0 var(--jc); }
.rc-tile-job { font: 400 15px/1.2 var(--f-ui); color: var(--jc); }
.rc-tile b { font: 400 32px/1.1 var(--f-num); color: var(--white); }
.rc-tile.is-zero b { color: var(--steel); }
@media (max-width: 560px) { .rc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc-unpaid { margin: 4px 0 8px; padding: 12px 14px; background: color-mix(in srgb, var(--rose) 12%, var(--navy)); box-shadow: inset 4px 0 0 var(--rose); }
.rc-unpaid p { margin: 0 0 8px; } .rc-unpaid b { color: var(--white); }
.rc-unpaid-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rc-unpaid .rc-job { margin-left: 4px; }
#bar-upkeep { margin-top: 10px; border-left-color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, transparent); }
#bar-upkeep p { margin: 0 0 8px; }
.rc-jobs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.rc-job-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.rc-jl { grid-row: span 2; align-self: stretch; display: grid; place-items: center; font: 400 20px/1 var(--f-ui); color: var(--ink); background: var(--jc); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.rc-jt { font-size: 17px; } .rc-jt b { color: var(--white); font-size: 22px; }
.rc-bar { height: 10px; background: var(--navy); box-shadow: 0 0 0 2px var(--slate); }
.rc-bar span { display: block; height: 100%; background: var(--jc); }
.j-bill { --jc: var(--pad); } .j-discovery { --jc: var(--sky); } .j-litigate { --jc: var(--rose); } .j-poach { --jc: var(--lilac); }
/* 2. evidence found */
.rc-finds { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.rc-find { position: relative; display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tg) 60%, var(--slate)); overflow: hidden; isolation: isolate; }
.rc-find .itile { flex: 0 0 64px; }
.rc-find-txt { display: grid; gap: 1px; min-width: 0; } .rc-find-txt b { overflow-wrap: anywhere; }
.rc-find.grand { box-shadow: 0 0 0 2px var(--tg), 0 0 14px 2px color-mix(in srgb, var(--tg) 55%, transparent); }
.rc-rays { position: absolute; z-index: -1; left: 40px; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tg) 40%, transparent) 0 10deg, transparent 10deg 28deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 65%); mask: radial-gradient(circle, #000 10%, transparent 65%); animation: spin 14s linear infinite; }
.rc-mult { display: inline-block; justify-self: start; padding: 0 5px; font: 400 14px/18px var(--f-num); color: var(--ink); background: var(--pad); box-shadow: 0 0 0 1px var(--ink); }
/* 3. court & poaching: one row per lawyer */
.rc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rc-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; background: var(--navy); box-shadow: inset 3px 0 0 var(--jc); }
.rc-row.compact { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 4px 8px; }
.rc-card { width: 48px; height: 64px; image-rendering: pixelated; display: block; box-shadow: 0 0 0 2px var(--ink); }
.rc-card.big { width: 72px; height: 96px; }
.rc-row.compact .rc-card { width: 36px; height: 48px; }
.rc-card--none { background: var(--slate); }
.rc-row-main { min-width: 0; }
.rc-row-main p { margin: 0; }
.rc-name b { color: var(--white); overflow-wrap: anywhere; }
.rc-job { font: 400 13px/1 var(--f-ui); padding: 1px 5px; color: var(--ink); background: var(--jc); vertical-align: 1px; }
.rc-detail { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--paper); }
.rc-detail .firm-tag img { width: 18px; height: 18px; }
.rc-odds { color: var(--mist); }
.rc-row-end { display: grid; justify-items: end; gap: 3px; text-align: right; }
.rc-nums { font-size: 14px; color: var(--mist); white-space: nowrap; }
.rc-nums .num { color: var(--white); }
.rc-badge { display: inline-block; padding: 2px 6px; font: 400 14px/1.1 var(--f-ui); letter-spacing: .06em; white-space: nowrap; color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.b-won { background: var(--mint); } .b-loss { background: var(--mist); } .b-lost { background: var(--rose); } .b-gold { background: var(--pad); }
.b-none { background: var(--steel); color: var(--white); } .b-work { background: var(--navy); color: var(--paper); box-shadow: 0 0 0 2px var(--slate); }
@media (max-width: 560px) {
  .rc-row, .rc-row.compact { grid-template-columns: 36px minmax(0, 1fr); }
  .rc-row .rc-card { width: 36px; height: 48px; }
  .rc-row-end { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .rc-nums { white-space: normal; }
}
/* 4. comings and goings */
.rc-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-move { display: flex; gap: 12px; align-items: flex-start; padding: 10px; background: var(--navy); box-shadow: inset 3px 0 0 var(--steel); }
.rc-move.is-gained { box-shadow: inset 3px 0 0 var(--pad); }
.rc-move p { margin: 0 0 4px; } .rc-move > div { min-width: 0; }
/* 5. the bill */
.rc-bill { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 18px; margin-bottom: 10px; }
.rc-bill th { text-align: left; font-weight: 400; color: var(--mist); padding: 3px 0; }
.rc-bill td { text-align: right; font: 400 22px/1.1 var(--f-num); color: var(--white); padding: 3px 0; }
.rc-bill .rc-net th, .rc-bill .rc-net td { border-top: 2px solid var(--slate); padding-top: 6px; color: inherit; }
.rc-bill .rc-net.up td { color: var(--mint); } .rc-bill .rc-net.down td { color: var(--rose); }
.rc-totals { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rc-totals b { color: var(--pad); font-size: 20px; }
.rc-share { margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--slate); }
.rc-share p { margin: 0 0 6px; }
.rc-share-line { color: var(--white); overflow-wrap: anywhere; cursor: text; user-select: all; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.rc-head .rc-see { min-height: 30px; padding: 2px 10px; }
@media (max-width: 560px) {
  .recap-dlg { padding: 12px 10px 10px; }
  .recap-head { padding-right: 34px; }
  .recap-turns { flex-wrap: nowrap; gap: 4px; }
  .recap-turns .btn { min-width: 36px; padding: 6px 8px; }
  .recap-title { flex: 1 1 0; }
  .recap-title h2 { font-size: 17px; }
  .recap-slide { padding: 10px 8px; max-height: calc(100vh - 230px); }
  .rc-move .rc-card.big { width: 48px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .recap-slide.rc-anim, .rc-rays, .recap-new #recap-new-btn::before { animation: none; }
}
/* Xen, 29 Sep: the trophy shelf (Partner's office) and family names (Reception) */
.trophy-box, .fam-box { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--slate); }
.trophy-box h3:focus { outline: none; }
.trophy-box h3:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.trophy-top { margin: 14px 0 8px; }
.fam-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 6px; }
.fam-name { font: 400 20px/1.1 var(--f-ui); color: var(--white); }
.fam-now .num { font-family: var(--f-num); font-size: 20px; }
.fam-now .up { color: var(--mint); }
.fam-sub { margin: 10px 0 4px; font: 400 15px/1.2 var(--f-ui); color: var(--mist); letter-spacing: .04em; }
.fam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fam-list li { padding: 1px 8px; background: var(--slate); box-shadow: 0 0 0 1px var(--ink); }
.fam-list li.is-top { background: var(--pad); color: var(--ink); }
.fam-list .num { font-family: var(--f-num); opacity: .85; }
.fam-tiers { overflow-wrap: anywhere; }
/* Leaderboard */
.sb-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; margin-bottom: 8px; }
.sb-head p { margin: 0; }
.sb-season b { font: 400 22px/1 var(--f-ui); color: var(--pad); }
.sb-season .num, .sb-pool .num { font-family: var(--f-num); font-size: 18px; }
.sb-count { color: var(--mist); }
.sb-pool b { color: var(--white); }
.sb-tabs { margin: 4px 0 8px; }
.sb-wrap { overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sb-table th, .sb-table td { padding: 5px 6px; border-bottom: 1px solid var(--slate); text-align: left; vertical-align: middle; }
.sb-table thead th { font: 400 14px/1.1 var(--f-ui); color: var(--mist); letter-spacing: .04em; }
.sb-table .num { text-align: right; font-family: var(--f-num); font-size: 17px; }
.sb-table abbr { text-decoration: underline dotted; cursor: help; }
.sb-rank { width: 2.5em; color: var(--pad); }
.sb-table tr.is-you td { background: color-mix(in srgb, var(--pad) 16%, transparent); }
.sb-table tr.is-you td:first-child { box-shadow: inset 3px 0 0 var(--pad); }
.sb-pin tr.sb-gap td { border-bottom: 0; padding: 0 6px; color: var(--fog); text-align: center; line-height: 1; }
.sb-you-tag { display: inline-block; padding: 0 5px; font: 400 13px/16px var(--f-ui); color: var(--ink); background: var(--pad); vertical-align: 1px; }
.sb-sub, .sb-why { display: block; }
.sb-why { color: var(--rose); }
.sb-elig { text-align: center !important; }
.sb-ok { color: var(--mint); font-weight: 700; }
.sb-no { color: var(--fog); }
.sb-noface { display: inline-block; width: 24px; height: 24px; background: var(--slate); box-shadow: 0 0 0 1px var(--ink); }
.firm-tag.sm img, .firm-tag.sm .sb-noface { width: 18px; height: 18px; flex-basis: 18px; }
.firm-tag.sm b { font-weight: 400; color: var(--mist); }
.sb-law { display: inline-flex; gap: 8px; align-items: center; }
.sb-law .rc-card { width: 30px; height: 40px; flex: 0 0 30px; }
.sb-empty { font: 400 22px/1.2 var(--f-ui); color: var(--pad); margin: 6px 0; }
.sb-claim { --c: var(--pad); margin: 3px 3px 12px; padding: 10px 12px; background: var(--navy); }
.sb-claim.is-done { --c: var(--slate); }
.sb-claim p { margin: 0 0 6px; }
.sb-claim .up { color: var(--mint); }
.sb-explain { display: grid; gap: 4px 20px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
@media (min-width: 900px) { .office-panel.is-wide .sb-explain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sb-pts { border-collapse: collapse; width: 100%; font-size: 15px; margin: 4px 0 8px; }
.sb-pts th, .sb-pts td { padding: 3px 6px; border-bottom: 1px solid var(--slate); text-align: left; font-weight: 400; }
.sb-pts td.num, .sb-pts th.num { text-align: right; }
@media (max-width: 480px) {
  .sb-table { font-size: 14px; }
  .sb-table th, .sb-table td { padding: 4px 3px; }
  .sb-table thead th:last-child { font-size: 12px; }
  .sb-law .rc-card { display: none; }
}
/* Xen, 15 Oct: a firm's name on one line (cut with … when long), its tags beside it */
.sb-table .firm-tag { white-space: nowrap; align-items: center; max-width: 100%; vertical-align: middle; }
.sb-table .firm-tag b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.sb-table td .sb-rival-tag, .sb-table td .sb-you-tag { white-space: nowrap; }
.sb-table thead th { white-space: normal; }
.sb-table tr.is-you .faint, .sb-table tr.is-you .firm-tag.sm b, .sb-table tr.is-you .sb-why { color: var(--paper); }
@media (max-width: 560px) {
  .sb-table thead th { font-size: 12px; }
  .sb-table .firm-tag img, .sb-table .sb-noface { width: 18px; height: 18px; flex-basis: 18px; }
  .sb-table .num { font-size: 15px; }
  .sb-rank { width: 1.6em; }
}
/* Xen, 1 Oct: disabled buttons look disabled (the shared .btn styles only covered aria-disabled) */
.btn:disabled { background: var(--slate); color: var(--mist); box-shadow: none; cursor: not-allowed; }
.rank-why { display: block; flex-basis: 100%; color: var(--pad); margin-top: 4px; }

/* Xen, 2 Oct: Rank up all; the lawyers table keeps Unstake in view (it sticks to the right edge when the table is wider than the window) */
.rank-all { margin-left: 6px; }
.rank-all-why { color: var(--pad); margin-left: 6px; }
.sb-table .sb-points { color: var(--pad); }
.sb-table th, .sb-table td { vertical-align: middle; }
.sb-rules { margin: 10px 0 0; text-align: right; }

/* Xen, 3 Oct: Reception buttons look like buttons; the locked-token callout */
.front-btns { gap: 10px; margin: 8px 0 10px; }
.vest-callout { margin: 0 0 8px; font-size: 15px; }

/* Xen, 8 Oct: how the points were made (leaderboard). A column on wide screens; under the name on narrow ones. */
.sb-table td.sb-how { font: 400 14px/1.35 var(--f-ui); color: var(--mist); cursor: help; }
.sb-table th.sb-how { white-space: nowrap; }
.sb-how-job { white-space: nowrap; }
.sb-how-job b { color: var(--paper); font-weight: 400; }
.sb-how-line { display: none; margin-top: 2px; color: var(--mist); }
@media (max-width: 760px) {
  .sb-table .sb-how { display: none; }
  .sb-how-line { display: block; white-space: normal; }
  .sb-how-line .sb-how-job { white-space: normal; }
  .sb-table .firm-tag b { max-width: 13ch; }          /* one line on a phone: long names end in … (full name on hover) */
}

/* the practice term (pages/play.html), Xen 8 Oct: the bar looks like the app's office bar: as wide as the office, the
   numbers on one line on the left, the buttons on the right; the "turn is in" button sits bottom-left as in the app */
.play-top { width: min(100% - 32px, 1400px); margin-inline: auto; padding-bottom: 12px !important; }
@media (min-width: 1000px) {
  .play-bar .window__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; padding: 8px 14px; }
  .play-bar .app-kpis { display: flex; flex-wrap: nowrap; flex: none; gap: 2px 22px; }
  .play-bar .app-kpis > div { white-space: nowrap; }
  .play-bar .app-kpis dt { font-size: 13px; }
  .play-bar .app-kpis dd { font-size: 22px; }
  .play-bar .app-kpis .kpi-sub { display: none; }
  .play-bar .app-kpis #k-bal .kpi-sub { display: inline; margin-left: 6px; }
  .play-bar .app-actions { flex: 1 1 auto; margin: 0; justify-content: flex-end; }
  .play-bar #queued { flex: 1 0 100%; margin: 2px 0 0; padding: 3px 8px; font-size: 14px; }
  .play-bar #queued:empty { display: none; }
  .play-bar .case-bar { flex: 1 0 100%; margin: 2px 0 0; padding: 4px 10px; font-size: 14px; }
  .play-bar .case-fx { display: inline; margin-left: 6px; }
  .play .recap-new { position: fixed; left: 16px; bottom: 16px; z-index: 55; width: min(460px, 92vw); flex-wrap: nowrap; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
  .play .recap-new #recap-new-btn { white-space: normal; }
}

/* the guide docked at the top of the screen (phones, when what it points at is in the lower half) */
.guide.is-docked.is-top { top: var(--dock-top, 8px) !important; bottom: auto; }

/* X78 (Xen, 9 Oct): the recap's front page and rivals */
.rc-news { display: grid; gap: 12px; }
.rc-mast { margin: 0; padding-bottom: 6px; border-bottom: 3px double var(--slate); font: 400 clamp(22px, 5vw, 32px)/1 var(--f-display); color: var(--white); letter-spacing: .02em; }
.rc-mast span { display: block; margin-top: 4px; font: 400 14px/1.2 var(--f-ui); color: var(--mist); letter-spacing: .1em; text-transform: uppercase; }
.rc-mine { padding: 10px 12px; background: var(--navy); box-shadow: inset 4px 0 0 var(--pad); }
.rc-mine.down { box-shadow: inset 4px 0 0 var(--rose); }
.rc-mine-k { margin: 0 0 2px; font: 400 13px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--pad); }
.rc-mine-t { margin: 0; font-size: 18px; line-height: 1.35; color: var(--white); }
.rc-heads { margin: 0; padding: 0 0 0 22px; display: grid; gap: 8px; font-size: 17px; line-height: 1.35; }
.rc-heads li::marker { color: var(--pad); font-family: var(--f-num); }
.rc-heads .firm-tag img { width: 18px; height: 18px; }
.rc-rev { font-size: 12px; padding: 1px 5px; vertical-align: 1px; }
.sb-rival-tag { display: inline-block; padding: 0 5px; font: 400 12px/16px var(--f-ui); color: var(--white); background: var(--red-d); vertical-align: 1px; margin-left: 4px; }
.sb-rival-tag.is-hunt { background: var(--wood-d); }
.sb-rivals { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--slate); }
.sb-rivals p { margin: 4px 0; }
.sb-rival-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }

/* X79 (Xen, 9 Oct): Case of the turn, Most Wanted, hot streaks and close calls */
.case-bar { margin: 8px 0 0; padding: 6px 10px; background: var(--ink); box-shadow: inset 4px 0 0 var(--pad); color: var(--white); font-size: 15px; line-height: 1.35; }
.case-bar[hidden] { display: none; }
.case-k { font: 400 12px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--pad); }
.case-name { color: var(--white); }
.case-fx { display: block; color: var(--mist); font-size: 14px; }
.rc-case { margin: 0; }
.sb-tag { display: inline-block; padding: 0 5px; margin-left: 4px; font: 400 12px/16px var(--f-ui); vertical-align: 1px; white-space: nowrap; color: var(--ink); }
.sb-tag.is-wanted { background: var(--pad); }
.sb-tag.is-hot { background: var(--rose); }
.sb-tag.is-job { background: var(--sky); }                 /* X80: a Sue/Poach job streak */
.sb-tag.is-held { background: var(--fog); }                /* X80: held through a one-turn detour */
.sb-bounties { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--slate); }
.sb-bounties p { margin: 4px 0; }
.sb-bounty-list { margin: 0 0 6px; padding: 0 0 0 22px; display: grid; gap: 6px; }
.sb-bounty-list li { display: flex; gap: 8px; align-items: center; }
.sb-bounty-list li::marker { color: var(--pad); font-family: var(--f-num); }
.sb-bounty-list .rc-card { width: 30px; height: 40px; }
.sb-who { display: flex; gap: 8px; align-items: center; width: 100%; padding: 2px 6px; margin-left: -6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sb-who:hover, .sb-who:focus-visible { background: var(--navy); }
.sb-who:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.scout-dlg { width: min(460px, calc(100vw - 24px)); padding: 44px 14px 14px; }
.scout-dlg .play-lawyers { margin: 0; grid-template-columns: minmax(0, 1fr); }
.scout-meta { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.scout-meta .sb-tag { margin-left: 0; }
.scout-foot { margin: 10px 0 0; }
.lc-job.is-static { cursor: default; }
.lc-job.is-static:not(.is-on):hover { background: none; }
.lc-job.is-static.is-on:hover { background: var(--paper); }
.rc-close { margin: 0 0 12px; padding: 8px 12px; background: var(--navy); box-shadow: inset 4px 0 0 var(--sky); }
.rc-close .rc-mine-k { color: var(--sky); }
.rc-close ul { margin: 4px 0 0; padding: 0 0 0 18px; display: grid; gap: 4px; color: var(--white); line-height: 1.35; }
.rc-close li.up::marker { color: var(--mint); }
.rc-close li.down::marker { color: var(--rose); }

/* Xen, 11 Oct: the Office view menu (at most 100 lawyers on the map, calm office) */
.view-menu { position: fixed; z-index: 70; width: min(320px, calc(100vw - 16px)); padding: 10px 12px; background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 2px var(--steel), 0 6px 0 rgba(0, 0, 0, .35); }
.view-menu[hidden] { display: none; }
.view-menu .check { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; font-size: 15px; }
.view-menu p { margin: 2px 0 8px 26px; }

/* Xen, 15 Oct: points by source (leaderboard): a stacked bar and the three biggest sources; the details in the tooltip */
.sb-table td.sb-how { min-width: 200px; width: 34%; }
.sb-src-bar { display: flex; height: 8px; margin: 2px 0 5px; background: var(--slate); overflow: hidden; }
.sb-src-bar i { display: block; height: 100%; }
.sb-src-top { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 400 13px/1.3 var(--f-ui); color: var(--mist); }
.sb-src-k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sb-src-k i { display: inline-block; width: 8px; height: 8px; }
.sb-src-k b { color: var(--paper); font-weight: 400; font-size: 14px; }
.src-sue { background: var(--sky); } .src-poach { background: var(--lilac); } .src-dig { background: var(--mint); }
.src-bill { background: var(--pad); } .src-bounty { background: var(--rose); } .src-firm { background: var(--fog); }
.sb-how-line .sb-src-bar { max-width: 220px; }
.sb-table td.sb-firm-cell { white-space: nowrap; }
.sb-table td.sb-firm-cell .sb-why, .sb-table td.sb-firm-cell .sb-how-line { white-space: normal; }

/* Xen, 18 Oct: crafting bench above the locker (app and practice term): one row per tier, label | Craft 1 | All */
.craft-bench { margin: 8px 0 12px; padding: 8px 10px; background: rgba(0, 0, 0, .18); }
.craft-bench:empty { display: none; }
.craft-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.craft-sub { display: block; font-size: 14px; line-height: 1.25; }
.craft-head .chip { flex: none; }
.craft-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; }
.craft-rows li { display: contents; }
.craft-bench .btn--sm { min-height: 32px; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
.craft-bench > p { margin: 6px 0 0; }

/* Xen, 18 Oct: equip picker: a lawyer the gear does nothing for is dimmed */
.law-row.meh .law-row-n { opacity: .65; }

/* Xen, 18 Oct: clearer item states. A word on each locker tile for what happens next turn (or that it is worn / in a
   room), a numbered badge on the items picked for crafting, and the picks shown in a tray by the bench */
.itile-st { position: absolute; left: 2px; bottom: 9px; padding: 0 3px; font: 400 11px/13px var(--f-ui); text-transform: uppercase;
  color: var(--white); background: var(--steel); box-shadow: 0 0 0 1px var(--ink); pointer-events: none; }
.itile-st.st-equip, .itile-st.st-room, .itile-st.st-use { background: var(--green-d); }
.itile-st.st-craft { background: var(--pad); color: var(--ink); }
.itile-st.st-repair { background: var(--sky); color: var(--ink); }
.itile-st.st-worn, .itile-st.st-in-room { background: var(--ink); color: var(--mint); }
.itile.picked { box-shadow: inset 0 0 0 3px var(--pad), 0 0 0 2px var(--pad); }
.itile-pick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 24px; height: 24px; padding: 0 4px;
  font: 400 20px/24px var(--f-num); text-align: center; background: var(--pad); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.itile.sm .itile-pick { min-width: 18px; height: 18px; font-size: 15px; line-height: 18px; }
.item-grid.selecting .itile { cursor: crosshair; }
.item-grid.selecting .itile.nocraft { opacity: .3; cursor: not-allowed; }
.craft-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--slate); }
.tray-slot { width: 44px; height: 44px; box-shadow: inset 0 0 0 2px var(--steel); background: var(--ink); }
.chip-sep { display: inline-block; width: 1px; align-self: stretch; margin: 0 4px; background: var(--steel); }
.craft-all { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--slate); }
.craft-all .btn--sm { min-height: 34px; }

/* Xen, 20 Oct: the item card says who wears the piece */
.idlg-status { margin: 2px 0 8px; font-size: 16px; }
.st-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: var(--steel); box-shadow: 0 0 0 1px var(--ink); vertical-align: middle; }
.st-dot.on { background: var(--mint); } .st-dot.next { background: var(--sky); }
.link-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.idlg-reqs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; }
.req { padding: 1px 7px; white-space: nowrap; background: var(--slate); color: var(--paper); }
.req-rank { background: var(--pad); color: var(--ink); }
.req-rank.no { background: var(--rose); color: var(--ink); }
.req-group { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Xen, 1 Nov: rarity on/off chips in the HR Department and the Lawyers tab */
.law-grades .chip--grade { font-weight: 600; }
.law-grades .chip--grade .num { margin-left: 4px; }
.law-grades .chip--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line, rgba(255,255,255,.2)); }
#lb-tools .law-grades { margin-top: 6px; }
.law-grades .chip--grade:not([aria-pressed="true"]).t-uncommon { color: var(--mint); }
.law-grades .chip--grade:not([aria-pressed="true"]).t-rare { color: var(--sky); }
.law-grades .chip--grade:not([aria-pressed="true"]).t-epic { color: var(--lilac); }
.law-grades .chip--grade:not([aria-pressed="true"]).t-legendary { color: var(--pad); }
.law-grades .chip--grade:not([aria-pressed="true"]).t-royalty { color: var(--rose); }
/* Xen, 2 Nov: a lawyer row on the Lawyers leaderboard opens the scout card, like the Bounties list */
.sb-table button.sb-law { display: flex; width: calc(100% + 6px); }
/* Xen, 2 Nov: a bench tier whose spare copies are all crafting stays listed */
.craft-busy { color: var(--mint); }
.craft-rows .craft-done { grid-column: span 2; color: var(--text-dim); text-align: right; }
