.flip-page .page-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 640px) {
.flip-page .page-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lock-glyph {
  width: 13px;
  height: 13px;
  flex: none;
  fill: var(--gold-ink);
}
.locked-row-art .lock-glyph {
  width: 16px;
  height: 16px;
}
.locked-heading .lock-glyph {
  width: 18px;
  height: 18px;
}
.ff-head { margin: 0 0 6px; }
.ff-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(540px, auto); gap: 30px; align-items: center; }
.ff-head h1 { max-width: 900px; margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1; font-weight: 700; color: #f7fbff;
  text-shadow: 0 0 30px rgba(255, 255, 255, .08), 0 0 22px rgba(0, 229, 255, .12); }
.ff-lede { font-size: 1rem; color: #b8c6d0; line-height: 1.55; margin: 0; max-width: 64ch; }
.ff-band { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 15px;
  align-items: end; padding: 17px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.ff-band b { display: block; font-family: var(--font-display); font-size: 1.16rem; font-weight: 700;
  line-height: 1; color: var(--cyan); }
.ff-band div.lead b { font-size: 1.9rem; }
.ff-band div.sage b { color: var(--sage); }
.ff-band div.gold b { color: var(--gold); }
.ff-band div.red b { color: var(--red); }
.ff-band span { display: block; font-size: var(--t-small); color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }
.ff-band div:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
.ff-status { font-family: var(--font-mono); font-size: var(--t-micro); color: var(--dim); margin: 18px 0 0; }
.ff-status.is-warning { color: var(--gold); }
.ff-sec { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; margin: 26px 0 0;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ff-sec h2 { font-family: var(--font-display); font-size: var(--t-title); font-weight: 700;
  letter-spacing: .02em; color: var(--ink); margin: 0; line-height: 1; }
.ff-sec em { font-style: normal; font-size: var(--t-base); color: var(--dim); }
.ff-sec .ct { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-body); color: var(--dim); font-variant-numeric: tabular-nums; }
.ff-sorts { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ff-sort:last-child { border-right: 0; }
.ff-sort + .ff-sort { padding-left: 18px; }
.ff-sort b { display: block; font-family: var(--font-display); font-size: var(--t-lead); font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ff-sort small { display: block; font-size: var(--t-body); line-height: 1.45; color: var(--dim); }
.ff-sort.is-active { box-shadow: inset 0 3px 0 var(--sage); }
.ff-sort.is-active b { color: var(--sage); }
.ff-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 15px 0 6px; }
.ff-ctl { display: inline-flex; align-items: center; gap: 8px; }
.ff-ctl span { font-family: var(--font-display); font-size: var(--t-small); letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); }
.ff-ctl select, .ff-ctl input { font-family: var(--font-body); font-size: var(--t-base); padding: 8px 11px;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(13, 21, 29, .7); color: var(--ink); }
.ff-ctl input { min-width: 190px; }
.ff-shown { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-body); color: var(--dim); font-variant-numeric: tabular-nums; }
.ff-dock { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; align-items: start; }
.ff-row { display: grid; grid-template-columns: 34px 48px minmax(0, 1fr) 138px 128px; gap: 15px;
  align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(45, 58, 70, .55);
  text-decoration: none; color: inherit; }
.ff-row:hover { background: rgba(95, 199, 223, .04); }
.ff-row.is-picked { background: rgba(95, 199, 223, .08); box-shadow: inset 3px 0 0 var(--cyan); }
.ff-row.is-picked .ff-who strong { color: var(--cyan-ink); }
.ff-n { font-family: var(--font-display); font-size: var(--t-lead); font-weight: 700; color: var(--dim); }
.ff-row img { width: 48px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; background: rgba(45, 58, 70, .45); }
.ff-who strong { display: block; font-size: 1.0625rem; color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-who > span { display: block; font-family: var(--font-mono); font-size: var(--t-body); color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ff-speed { text-align: right; font-family: var(--font-mono); font-size: var(--t-body); color: var(--sage); }
.ff-speed small { display: block; font-size: var(--t-micro); color: var(--dim); margin-top: 3px; }
.ff-day { text-align: right; }
.ff-day b { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--sage); line-height: 1; }
.ff-day small { display: block; font-family: var(--font-mono); font-size: var(--t-micro); color: var(--dim); margin-top: 4px; }
.ff-fall { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  font-family: var(--font-display); font-size: var(--t-micro); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 101, 124, .14); color: var(--red); }
.ff-row.is-falling .ff-day b { color: var(--gold); }
.ff-none { font-size: var(--t-base); color: var(--muted); line-height: 1.6; margin: 18px 0; }
.ff-rail { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(8, 14, 22, .6); padding: 18px 19px; }
.ff-rail-empty strong { display: block; font-family: var(--font-display); font-size: var(--t-lead);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.ff-rail-empty span { font-size: var(--t-base); color: var(--muted); line-height: 1.55; }
.ff-rtop { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 14px; }
.ff-rtop img { width: 76px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 5px; }
.ff-rtop strong { display: block; font-size: 1.125rem; color: var(--ink); font-weight: 600; }
.ff-rtop small { display: block; font-family: var(--font-mono); font-size: var(--t-body); color: var(--muted); margin-top: 4px; line-height: 1.5; }
.ff-tick { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: var(--t-base);
  padding: 13px 0; margin: 0 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ff-tick dt { color: var(--muted); }
.ff-tick dd { margin: 0; font-family: var(--font-mono); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ff-tick dd.gold { color: var(--gold); }
.ff-tick dd.dim { color: var(--dim); }
.ff-tick dt.net, .ff-tick dd.net { font-weight: 600; color: var(--sage); }
.ff-rail p { font-size: var(--t-base); color: var(--muted); line-height: 1.55; margin: 0 0 11px; }
.ff-rail p b { color: var(--ink); font-weight: 600; }
.ff-alarm { font-size: var(--t-base); line-height: 1.55; margin: 0 0 11px; padding: 11px 13px;
  border-left: 2px solid var(--red); background: rgba(255, 101, 124, .07); color: #ffc9d2; }
.ff-alarm b { color: #fff; font-weight: 600; }
.ff-warn { font-size: var(--t-body); color: var(--dim); line-height: 1.5; margin: 0;
  padding-top: 11px; border-top: 1px solid rgba(45, 58, 70, .5); }
.ff-methodrow { margin: 24px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.ff-why { position: relative; font-family: var(--font-body); font-size: var(--t-small); text-transform: none;
  letter-spacing: .02em; padding: 0; border: 0; background: none; color: var(--cyan); cursor: pointer;
  border-bottom: 1px dashed rgba(95, 199, 223, .45); }
.ff-why::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }
.ff-why::after { content: ""; position: absolute; inset: -13px -10px; }
.ff-why[aria-expanded="true"] { color: var(--muted); border-bottom-color: transparent; }
.ff-fold { font-size: var(--t-small); color: var(--muted); line-height: 1.6; margin: 12px 0 0; max-width: 88ch;
  padding: 13px 15px; border-left: 2px solid rgba(95, 199, 223, .4); background: rgba(95, 199, 223, .045); }
.ff-row.is-locked { opacity: .55; }
.ff-lockart { display: grid; place-items: center; width: 48px; aspect-ratio: 5 / 7;
  border-radius: 4px; background: rgba(45, 58, 70, .38); }
.ff-lockart .lock-glyph { width: 15px; height: 15px; fill: var(--steel); }
.ff-row.is-locked i { display: block; height: 9px; border-radius: 999px; background: rgba(45, 58, 70, .55); }
@media (max-width: 1100px) {
.ff-dock { grid-template-columns: 1fr; }
.ff-rail { position: static; margin-top: 20px; }
}
@media (max-width: 1271px) {
.ff-hero { grid-template-columns: 1fr; gap: 0; }
.ff-band { display: none; }
}
@media (max-width: 640px) {
.ff-sort + .ff-sort { padding-left: 12px; }
.ff-row { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.ff-n { display: none; }
.ff-row img, .ff-lockart { width: 44px; grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.ff-who { grid-column: 2; grid-row: 1; }
.ff-who strong { white-space: normal; overflow: visible; line-height: 1.25; }
.ff-speed { grid-column: 2; grid-row: 2; text-align: left;
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ff-speed small { margin-top: 0; }
.ff-day { grid-column: 2; grid-row: 3; text-align: left;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ff-day small { margin-top: 0; }
.ff-fall { margin-top: 0; }
.ff-ctl input { min-width: 0; }
.ff-ctl { flex: 1 1 auto; }
}
.ff-close, .ff-dim { display: none; }
/* v931-phone-ticket: the trade ticket rises from the bottom on phones */
@media (max-width: 760px) {
  /* top: auto matters: the desktop rail is sticky at top: 90px, and a fixed box
     with BOTH top and bottom set anchors at the top, so translateY(100%) left a
     194px strip of the ticket permanently docked above the bottom edge. */
  .ff-rail { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; height: auto; border: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; background: rgba(8, 14, 22, .96); backdrop-filter: blur(10px); max-height: min(72vh, 560px); max-height: min(72dvh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -8px 40px rgba(0, 0, 0, .45); }
  .ff-rail.is-open { transform: none; }
  .ff-rail::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
  .ff-rail .ff-rail-empty { display: none; }
  .ff-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
  .ff-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: 50%; }
  .ff-dim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .28); }
  .ff-dim[hidden] { display: none; }
  body.ff-sheet-open .ff-boardcol { padding-bottom: 44vh; padding-bottom: 44dvh; }
  .ff-row.is-picked { box-shadow: inset 3px 0 0 var(--cyan); }
  .ff-close { display: block; }
  .ff-dim:not([hidden]) { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ff-rail { transition: none; } }

.ff-rail .ff-scenario { font: 600 12px var(--font-mono); line-height: 1.5; color: var(--cyan-ink); margin: 16px 0 10px; }
.ff-history { opacity: .95; }
.ff-tick dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ff-tick dd.is-loss { color: var(--red); }
.ff-rail .ff-close:focus-visible { outline-offset: -4px; }
@media (max-width: 760px) {
  .ff-rail { z-index: 121; }
  .ff-dim { z-index: 120; }
}
@media (max-width: 900px) { .ff-ctl input, .ff-ctl select, .ff-sort { min-height: 44px; } }
