/* what pittsburgh adds to birmingham's sheets (li 2026-11-06: 「全部统一」): the page is birmingham's lobby, waiting room and table;
   only the map's own pieces differ (oil fields, pipelines, five resources, a 100-step track), plus the river picture behind the lobby */
#app > [hidden], #app [hidden] { display: none !important; }

/* the lobby's picture (li 2026-11-06: B, the river survey map, by gpt at birmingham's sizes): night for 原版 and 深色, paper for
   浅色, the quiet side under the form. the paths are root paths so they are served from pittsburgh's own assets */
#app[data-game="pittsburgh"] { --lobby-bg-wide: url("/pittsburgh/assets/lobby/pitt-lobby-night-wide.webp?v=7305b13d6c1ea54a"); --lobby-bg-tall: url("/pittsburgh/assets/lobby/pitt-lobby-night-tall.webp?v=d91130258013602c"); }
:root[data-table-theme="light"] #app[data-game="pittsburgh"] { --lobby-bg-wide: url("/pittsburgh/assets/lobby/pitt-lobby-paper-wide.webp?v=7e180d8df390111d"); --lobby-bg-tall: url("/pittsburgh/assets/lobby/pitt-lobby-paper-tall.webp?v=c7113ddfb613defa"); }

/* the menu trigger is a button (the shell's drawer is a dialog), dressed as birmingham's summary */
#app .topbar .pitt-site-menu { display: inline-flex; }
#app .topbar .pitt-site-menu > button {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 4px 14px 4px 10px; border: 0; border-radius: 14px;
  background: none; box-shadow: none; color: var(--text-2); text-align: left; transition: background .16s;
}
#app .topbar .pitt-site-menu > button[aria-expanded="true"] { background: var(--m-hover, color-mix(in srgb, var(--text) 6%, transparent)); }
@media (hover: hover) { #app .topbar .pitt-site-menu > button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); } }
#app .topbar .pitt-site-menu > button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
#app .topbar .pitt-site-menu .site-menu-icon { width: 20px; height: 20px; color: var(--text-2); }
#app .topbar .pitt-menu-slot { display: contents; }

#app .room-wait .pitt-room-row { display: flex; gap: 8px; flex-wrap: wrap; }
#app .room-wait .seat-backup { margin: 0; padding: 8px 10px; border-radius: var(--r-md, 8px); background: var(--surface-2); font: 12px/1.4 var(--mono, monospace); overflow-wrap: anywhere; }
#app .lobby-play .pitt-recover > summary { cursor: pointer; }
#app .lobby-play .pitt-recover form { display: grid; gap: 8px; margin-top: 10px; }
/* a page that waits at load (app.js bootWaitLine: 正在恢复登录… / 正在回到房间… / 正在进入房间…): birmingham's frame (lobby.css #app > .boot-wait)
   in the lobby's place, across the page and over the lobby's picture as the page drew them, one quiet line in the muted ink that shows only
   when the wait passes 0.4 s, so a quick answer never flashes it; no spinner. 动画 减弱 / 关闭: it just appears */
#app[data-game="pittsburgh"] .lobby > .boot-wait { grid-column: 1 / -1; display: grid; place-items: center; width: 100%; max-width: none; min-height: 50vh; min-height: 50dvh; margin: 0; padding: 24px 16px; }
#app[data-game="pittsburgh"] .lobby > .boot-wait .boot-wait-line { margin: 0; font-size: 14px; letter-spacing: .04em; color: var(--muted); animation: boot-wait-in .24s ease-out .4s both; }
html[data-motion-still] #app[data-game="pittsburgh"] .lobby > .boot-wait .boot-wait-line { animation-duration: 1ms; }
/* the rooms to go back to are birmingham's #lobby-rooms (lobby.css .reconnect); a long 恢复 line wraps inside its button */
#app .lobby .reconnect .saved-room > button:first-child { min-width: 0; overflow-wrap: anywhere; }
/* birmingham's room lines and buttons are its --surface-2 fill, which reads on birmingham's backdrop (quiet paper on the form's side)
   but not on pittsburgh's river map, drawn edge to edge and in light the very colour of that fill (tokens.css --surface-2 #efede6).
   so the public rooms sit on a card as the rooms to go back to do (lobby.css #app .lobby .reconnect: --surface, --edge, --r-lg,
   --sh-1), and the lines on it keep birmingham's fill */
#app[data-game="pittsburgh"] .lobby .pitt-lobby-public { padding: 14px 16px 16px; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
/* the 关闭房间 box (birmingham's room-close.mjs, id pitt-close-room) at birmingham's width; its buttons are birmingham's .close-room-actions */
.platform-dialog.pitt-close-room { width: min(460px, calc(100vw - 32px)); }
.platform-dialog.pitt-close-room p { margin: 14px 0; line-height: 1.7; }
/* the public rooms under the card: birmingham's lobby-live.mjs rows (styled there only inside its drawer), with the heading of the
   rooms to go back to (lobby.css .reconnect > small); each row the room and its line, 入座 and 观战 at its end */
#app .lobby .pitt-lobby-public > small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
#app .lobby .pitt-lobby-public .public-room-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* each row a filled line like a room to go back to (polish.css .lobby button:not(.primary)): --surface-2, its buttons on --surface */
#app .lobby .pitt-lobby-public .public-room { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 16px; border: 1px solid var(--edge-strong); border-radius: 5px; background: var(--surface-2); }
#app .lobby .pitt-lobby-public .public-room-actions button { background: var(--surface); }
#app .lobby .pitt-lobby-public .public-room-info { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
#app .lobby .pitt-lobby-public .public-room-info strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#app .lobby .pitt-lobby-public .public-room-info span { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
#app .lobby .pitt-lobby-public .public-room-actions { display: flex; flex: none; gap: 6px; }
#app .lobby .pitt-lobby-public .public-room-actions button { width: auto; margin: 0; padding: 0 14px; white-space: nowrap; }

/* the map: pittsburgh's spaces sit closer than birmingham's (4.5% apart at the nearest), its routes are drawn on the board */
#app .pitt-board .slot { width: 4.15%; }
#app .pitt-board.pitt-mod-board .slot { width: 4%; }
#app .pitt-board .slot:not(.built):not(.legal) { pointer-events: auto; }
#app .pitt-board .slot.built img { border-width: 1.5px; }
/* a route is its tile laid along the line (link-tiles.mjs, li 2026-11-07): about an industry space long, turned with the route by
   table-view.mjs, in its owner's colour; an open one is that shape's outline while a network or a payment picks it. sized by the
   board, so it keeps its share of the map at every zoom */
#app .pitt-board .link.pitt-link { width: 4.3%; height: auto; min-height: 0; aspect-ratio: 142 / 72; padding: 0; border-radius: 999px; overflow: visible; }
#app .pitt-board .link.pitt-link[data-kind="pipeline"] { aspect-ratio: 142 / 60; }
#app .pitt-board .link.pitt-link.built { background: transparent; box-shadow: 0 0 0 calc(max(1px, .12cqw) * var(--pitt-edge, 1)) var(--player), 0 max(1px, .15cqw) max(3px, .4cqw) var(--map-badge); }
/* 玩家色边框 (the shared setting, public/table-preferences.mjs edges): the pipes and rails scale their own line by it; the tiles follow tabletop.css */
html[data-piece-edge="thin"] { --pitt-edge: .5; }
html[data-piece-edge="thick"] { --pitt-edge: 1.75; }
html[data-piece-edge="bold"] { --pitt-edge: 2.5; }
#app .pitt-board .link.pitt-link img { border-radius: 999px; object-fit: fill; }
/* what a heavy train carries (a cube of its resource), as an industry's count: a badge on the tile's lower edge, kept upright */
#app .pitt-board .link.pitt-link > .amount { position: absolute; right: 10%; bottom: -14%; min-width: max(7px, 1.3cqw); height: max(7px, 1.3cqw); padding: 0 .2em; border-radius: 3px; background: var(--map-badge); color: var(--map-badge-ink); box-shadow: 0 0 0 1px var(--map-badge-edge); font: 700 max(5.5px, 1cqw)/max(7px, 1.3cqw) var(--sans); text-align: center; pointer-events: none; rotate: calc(var(--link-angle, 0deg) * -1); }
/* a payment's sources (pay-pick.mjs): the tiles, oil fields, heavy trains and pipelines it can take from glow as birmingham's beer
   for a sale does, the rest of the built map steps back; a market it can buy from is birmingham's .market-source over the cube. the
   rings and glows grow with the map (cqw), so a source still stands out among the tiles' own white frames at 400%; the picked one
   wears the gold of the list's picked row */
#app .pitt-board.picking-pay :is(.slot, .link).legal, #app .pitt-board .market-source.pitt-market-source { z-index: 6; box-shadow: 0 0 0 max(3px, .42cqw) var(--map-pick), 0 0 max(14px, 2cqw) max(4px, .6cqw) var(--map-pick-glow); animation: map-pick-glow 1.6s ease-in-out infinite; }
#app .pitt-board.picking-pay :is(.slot.built:not(.legal):not(.selected) img, .link.built:not(.legal):not(.selected), .pitt-merchant) { filter: saturate(.35) brightness(.5); }
#app .pitt-board.picking-pay :is(.slot, .link).legal.selected, #app .pitt-board .market-source.pitt-market-source.selected { z-index: 7; animation: none; outline: max(4px, .45cqw) solid var(--gold); outline-offset: max(2px, .2cqw); box-shadow: 0 0 0 max(3px, .42cqw) var(--map-pick), 0 0 max(14px, 1.4cqw) max(4px, .4cqw) var(--gold); }
#app .pitt-board .market-source.pitt-market-source { width: 1.9%; border: 0; border-radius: 3px; background: color-mix(in srgb, var(--map-pick) 18%, transparent); }
@media (prefers-reduced-motion: reduce) { #app .pitt-board .market-source.pitt-market-source { animation: none; } }
#app .pitt-board .pitt-cube { position: absolute; z-index: 2; width: 1.15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 2px; box-shadow: 0 1px 2px #0009, inset 0 0 0 1px #0004; pointer-events: none; }
#app .pitt-board .pitt-cube[data-resource="coal"], :is(.mat-card, .industry-panel, .pitt-slot-resources) .pitt-res[data-resource="coal"], body > .motion-flight[data-resource="coal"] { background: #2b2a28; }
#app .pitt-board .pitt-cube[data-resource="iron"], :is(.mat-card, .industry-panel, .pitt-slot-resources) .pitt-res[data-resource="iron"], body > .motion-flight[data-resource="iron"] { background: #d27b3e; }
#app .pitt-board .pitt-cube[data-resource="steel"], :is(.mat-card, .industry-panel, .pitt-slot-resources) .pitt-res[data-resource="steel"], body > .motion-flight[data-resource="steel"] { background: #9aa7b0; }
#app .pitt-board .pitt-cube[data-resource="coke"], :is(.mat-card, .industry-panel, .pitt-slot-resources) .pitt-res[data-resource="coke"], body > .motion-flight[data-resource="coke"] { background: #5d5044; }
#app .pitt-board .pitt-cube[data-resource="oil"], :is(.mat-card, .industry-panel, .pitt-slot-resources) .pitt-res[data-resource="oil"], body > .motion-flight[data-resource="oil"] { background: #141414; border-radius: 50%; }
/* an auto-sold cube flying from its tile to its market space (market-delivery.mjs through pitt-market.mjs), its price floating up */
#app .pitt-board .market-delivery-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 18; overflow: visible; }
#app .pitt-board .delivery-market-transfer { fill: none; stroke: #efcf92aa; stroke-width: .22; stroke-dasharray: .6 1.2; stroke-linecap: round; }
#app .pitt-board .pitt-delivery-cube { stroke: #0006; stroke-width: .08; filter: drop-shadow(0 .3px .25px #000c); }
#app .pitt-board .pitt-delivery-cube[data-resource="coal"] { fill: #2b2a28; }
#app .pitt-board .pitt-delivery-cube[data-resource="iron"] { fill: #d27b3e; }
#app .pitt-board .pitt-delivery-cube[data-resource="steel"] { fill: #9aa7b0; }
#app .pitt-board .pitt-delivery-cube[data-resource="coke"] { fill: #5d5044; }
#app .pitt-board .pitt-delivery-cube[data-resource="oil"] { fill: #141414; }
#app .pitt-board .delivery-coin { fill: #fff0bc; stroke: #25180b; stroke-width: .32; paint-order: stroke; font: bold 2.2px system-ui, sans-serif; }
/* the oil left on a revealed field sits over the routes and pieces around it (TR's player sheet 11-08: 「油田中油的数量可能会被图标挡住，得缩小才能
   看到」); still under a pick's highlight (6, 7) */
#app .pitt-board .pitt-oil-left { position: absolute; z-index: 5; transform: translate(-50%, -160%); padding: 0 .3em; border: 1px solid var(--map-badge-edge, transparent); border-radius: 3px; background: var(--map-badge, #1d1a16); color: var(--map-badge-ink, #f3e6c8); font: 600 max(7px, 1.1cqw)/1.4 var(--sans); pointer-events: none; }
#app .pitt-board .pitt-merchant { position: absolute; z-index: 2; width: 3.6%; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: transparent; }
#app .pitt-board .pitt-merchant img { width: 100%; height: 100%; object-fit: contain; display: block; }
#app .pitt-board .pitt-merchant.sale-target { box-shadow: 0 0 0 2px var(--gold), 0 0 14px #efba52a0; }
#app .pitt-board .pitt-merchant.sale-target.sale-selected { box-shadow: 0 0 0 3px var(--gold), 0 0 18px #efba52d0; }
#app .table .player-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* a half-width card beside the open 产业板 (industry-mat.css) has no room for four figures in a row: two by two */
html #app[data-mat-cards="2"]:not([data-players-collapsed="true"]) > .table > .sidebar > .player .player-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
#app .lobby-play .join-row:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr) auto auto; }
#app .pitt-board :is(.option-hover, .city-hover) { outline: 2px solid #fff; outline-offset: 2px; }

/* 产业板, 弃牌堆 and 计分明细 are birmingham's #inspector, #scores and phone tabs (tabletop.css, industry-panel.css, table-info.css; li
   2026-11-07: 「都按照伯明翰的风格来更新」): what pittsburgh's panel adds is a resource as the map's cube, a crown jewel's scoring under
   its dash and an eighth column, what else a flip gives (pitt-industry-panel.mjs) */
.industry-panel .pitt-res { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent); }
.ip-board-facts .pitt-res { width: 10px; height: 10px; margin: 0 2px 0 4px; vertical-align: -1px; }
.ip-cost-values .ip-caption { margin: 0; }
.ip-metric.ip-vp .ip-caption { font-size: 12px; }
.ip-flip-values { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.5; color: var(--ip-reward); }
@media (max-width: 760px) {
  .ip-row .ip-flip { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--ip-line); }
  .ip-row .ip-flip .ip-flip-values { flex-direction: row; flex-wrap: wrap; gap: 2px 12px; }
  .ip-row:has(.ip-flip) .ip-metric.ip-links { border-right: 0; }
}

/* what app.js owns rides at the foot of the action panel (table-view.mjs) */
#app .pitt-room-dock { display: grid; gap: 10px; margin-top: 12px; }
#app .pitt-room-dock:empty { display: none; }
#app .pitt-room-dock .pitt-bot-controls { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-md, 10px); background: var(--surface-2); }
#app .pitt-room-dock .pitt-bot-controls p { margin: 0; font-size: 13px; }
#app .pitt-room-dock .pitt-social-room { display: grid; gap: 6px; }
#app .pitt-room-dock .pitt-social-tools { display: flex; gap: 6px; flex-wrap: wrap; }
#app .pitt-room-dock .pitt-social-tools button:empty, #app .pitt-room-dock .pitt-social-tools button[hidden] { display: none; }

/* the printed 产业板 (pittsburgh-mat.mjs on birmingham's industry-mat.css; li 2026-11-06: 「匹兹堡的产业版没有原版」). the board's
   own ratio is the mat's style; a pile's ×N sits at the top of its tile, where the art has nothing printed: pittsburgh's top-right
   corner holds the oil a sale needs */
#app .mat-board[data-mat="pittsburgh"] .mat-count.badge { right: auto; left: 50%; transform: translateX(-50%); border-radius: 0 0 5px 5px; border-width: 0 1px 1px; }
/* a resource on the square's card is the map's cube */
.mat-card .pitt-res { flex: none; width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent); }
#app .score-card .rematch-ui, #app .score-card .pitt-seed-share { margin-top: 12px; display: grid; gap: 8px; }

/* in the left rail the room box keeps 公开房间 (the chat is birmingham's room-chat.mjs); the spectators are already listed under 观战席 */
#app .sidebar .pitt-social-room { display: grid; gap: 6px; margin: 4px 0 10px; }
#app .sidebar .pitt-social-room .pitt-spectators { display: none; }
#app .sidebar .pitt-social-room .pitt-social-tools:not(:has(button:not([hidden]))) { display: none; }
/* the bot controls (in the room dock or the 局势 sidebar) are 44 px touch targets on a phone (gpt-gtr measured 32 px at 390 wide) */
@media (pointer: coarse) { body #bot-controls :is(#pause-bots, #step-bot) { min-height: 44px; } }
/* 牌计数 in the rail (the phone's 局势 tab; the map's tools are hidden there), as birmingham's table footer has it */
.pitt-table .round-note .pitt-rail-counts{margin-top:6px}
.pitt-table .round-note .card-counts-button{min-height:32px;padding:4px 10px;font-size:12px}
@media (pointer:coarse){.pitt-table .round-note .card-counts-button{min-height:44px}}
/* the round's spending rolls like the stats above it (motion.mjs [data-roll-stat]); it keeps the line's weight */
#app .pitt-table .player-meta b[data-roll-stat] { font-weight: inherit; display: inline-block; }
/* the waiting room is birmingham's (room-wait.mjs): its cards sit straight in the lobby panel */
#app .pitt-room-wait { display: contents; }
#app .room-wait .seat-name { cursor: default; text-decoration: none; }
#app .room-wait .pitt-seed-setting { display: grid; gap: 8px; }
#app .room-wait .pitt-seed-setting > button { justify-self: start; }

/* the room chat in the 在线 panel's 聊天 tab is birmingham's (room-chat.mjs, its .room-chat-panel.in-drawer in room-chat.css) */
/* 发展 in birmingham's 研发 panel (workflow.css): the picked tile, one slot for a free develop, the finish button under the tiles */
.develop-candidate.selected { border-color: var(--gold); background: var(--ui-selected); }
.develop-choices.single { grid-template-columns: 1fr; }
.development-panel .develop-finish { width: 100%; margin-top: 9px; }
/* The optional second route must not hide the way to finish the first. */
#app .network-finish { display:block; width:100%; min-height:44px; margin:0 0 10px; padding:10px; font-size:max(14px,var(--pitt-panel-font,14px)); white-space:normal; }
/* Shared panel zoom can shrink a phone's CSS pixels. Keep the hit area and
   text at their physical minimum, with 1px of height for subpixel rounding;
   never cancel the user's larger panel setting. */
@media (max-width:1100px) {
  #app .pitt-table .network-finish { flex-shrink:0; min-height:calc(45px / min(1,var(--panel-zoom,1))); font-size:calc(max(14px,var(--pitt-panel-font,14px)) / min(1,var(--panel-zoom,1))); }
}

/* Observed rewards, Pittsburgh only (the round spending is birmingham's .board-spent, tabletop.css). Map pieces retain map scale;
   the rail's 44px detail button is the phone's way in, from the 局势 tab. */
/* the seat's cash and income plate under each portrait: on a narrow map the portraits are ~29px apart and the one-line pill ($29 +14)
   is wider, so neighbours overlapped (li 2026-11-24: 「资金和收入大小互相overlap了」). below 560px the plate stacks cash over income, which is
   ~13px wide, so it fits the portrait's column whatever the digits; wider boards keep birmingham's one line.
   the oil badge on the same narrow map (li 2026-11-24: 「2和3的显示在100%下会遮挡一部分地图上的图标」): the board is ~350px there, so the 7px floor
   made it ~10x12px, big against the printed icons beside the field. a 5.5px floor and a tighter box (~8x9px) cover a third of that area and the
   fill lets the printed icon show through; it still sits above the field. wider boards keep the rule above (gpt 11-24: change the phone only) */
@container (max-width: 560px) {
  #app .pitt-board .pitt-oil-left { transform: translate(-50%, -150%); padding: 0 .25em; background: color-mix(in srgb, var(--map-badge, #1d1a16) 76%, transparent); font: 600 max(5.5px, 1.05cqw)/1.2 var(--sans); }
  #app .pitt-board .turn-purse { top: 80%; flex-direction: column; gap: .18em; padding: .3em .4em; border-radius: 6px; font-size: max(6.5px, 1.85cqw); line-height: 1.05; }
  #app .pitt-board .turn-purse > b, #app .pitt-board .turn-purse > i { display: block; text-align: center; }
}
/* birmingham's badge, smaller: four sit in a row between the map's southern cities and the portraits */
#app .pitt-board .board-spent.pitt-turn-spent { width: 4.8%; height: 3.9%; }
#app .pitt-board .pitt-quality-board { position:absolute; z-index:3; transform:translate(-50%,-50%); width:7.4%; height:auto; min-width:0; min-height:0; aspect-ratio:236/174; border:0; padding:0; background:var(--map-badge); color:var(--map-badge-ink); border-radius:8% 8% 2% 2%; overflow:visible; }
#app .pitt-board .pitt-quality-board img { display:block; width:100%; height:100%; object-fit:contain; }
#app .pitt-board .pitt-quality-board > span { position:absolute; left:50%; bottom:-20%; transform:translateX(-50%); white-space:nowrap; padding:0 .25em; border-radius:2px; font:700 max(8px,1.2cqw)/1.3 var(--sans); background:var(--map-badge); color:var(--map-badge-ink); }
#app .pitt-board .pitt-quality-board.claimed img { opacity:.4; filter:grayscale(1); }
#app .pitt-board .slot .pitt-field-face { display:block; width:100%; height:100%; object-fit:contain; border:0; }
#app .pitt-board .slot .pitt-field-face.pitt-field-settled, .pitt-board-state .pitt-reward-row.pitt-field-settled > img { opacity:.5; filter:grayscale(.35); }
/* History stays inside the original slot; its full settled status is in the slot's label and reward details. */
#app .pitt-board .slot .pitt-field-history { position:absolute; right:0; bottom:0; padding:0 .12em; border-radius:2px; background:var(--map-badge); color:var(--map-badge-ink); font:700 max(7px,1cqw)/1 var(--sans); pointer-events:none; }
#app .pitt-board .slot .pitt-field-revealer { position:absolute; left:0; top:0; width:24%; aspect-ratio:1; border-radius:50%; background:var(--pitt-revealer); box-shadow:0 0 0 max(.5px,.08cqw) var(--map-badge-ink); pointer-events:none; }
.pitt-board-state .pitt-revealer-dot { display:inline-block; width:.75em; height:.75em; margin-right:.4em; border-radius:50%; background:var(--pitt-revealer); box-shadow:0 0 0 1px var(--edge-strong); vertical-align:baseline; }
#app .pitt-board-state-button { min-height:44px; font-size:14px; white-space:normal; }
#app .sidebar > .pitt-board-state-button { width:100%; margin:8px 0; }
dialog.pitt-board-state { width:min(640px,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); box-sizing:border-box; padding:0; border:1px solid var(--edge); border-radius:var(--r-lg,12px); background:var(--surface); color:var(--text); overflow:auto; }
dialog.pitt-board-state::backdrop { background:var(--modal-scrim,rgba(0,0,0,.6)); }
.pitt-board-state > header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--edge); background:var(--surface); }
.pitt-board-state h2 { margin:0; font-size:20px; }
.pitt-board-state header button { flex:none; min-height:44px; min-width:64px; font-size:14px; }
.pitt-board-state-body { padding:0 16px 16px; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.pitt-board-state-body h3 { margin:18px 0 8px; font-size:18px; }
.pitt-board-state-body h4 { margin:0; font-size:16px; }
.pitt-board-state-body p { margin:4px 0; }
.pitt-reward-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--edge); }
.pitt-reward-row > img { flex:none; width:88px; max-height:82px; object-fit:contain; }
.pitt-reward-row > div { min-width:0; }
@media (max-width:1100px) { #app .mobile-wallet .pitt-wallet-whiskey { display:block; font-size:12px; } }
/* the seat's whiskey as the rail wallet's fourth cell (table-view.mjs panelHtml): the hand bar's cell shows only in the side layout,
   which 浮动 and 底部 are not */
#app .action-wallet[data-whiskey] { grid-template-columns: 1.15fr 1fr 1fr .85fr; }

/* A mixed iron/steel producer shows the two public stocks independently. Keep
   the existing slot target and its full text label; these compact marks are visual only.
   one row of a colour chip and a number hung off the tile's corner, the size of birmingham's single count: two rows with their
   words covered the tile and its neighbour on a phone (li 2026-11-08); the words stay in the slot's title and label */
#app .pitt-board .slot .amount.pitt-slot-resources { display:flex; flex-direction:row; align-items:center; gap:.25em; width:max-content; height:auto; min-height:0; padding:.05em .2em; font:700 max(5px,.85cqw)/1 var(--sans); transform:translate(35%,50%); pointer-events:none; }
#app .pitt-board .pitt-slot-stock { display:flex; align-items:center; justify-content:flex-start; gap:.15em; white-space:nowrap; }
#app .pitt-board .pitt-slot-stock > span { display:none; }
#app .pitt-board .pitt-slot-stock .pitt-res { display:inline-block; flex:none; width:.65em; height:.65em; border-radius:1px; box-shadow:0 0 0 .5px var(--map-badge-ink); }
#app .pitt-board .pitt-slot-stock b { font:inherit; }

/* the 产业板's trains and pipelines (pitt-industry-panel.mjs linksHtml; TR's player sheet 11-08: 「匹兹堡的管子情况该在哪看呀，产业板里看不出来」),
   in the look of the tracks' table above it */
.pitt-links { margin:16px 0 0; }
.pitt-links h3 { margin:0 0 8px; font:600 17px/1.3 var(--serif); color:#f3ddb5; }
.pitt-links-scroll { overflow-x:auto; }
.pitt-links table { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--ip-line); border-radius:8px; overflow:hidden; background:#211d16; font-size:13px; color:#ddd0b8; }
.pitt-links thead th { padding:10px 8px; text-align:left; font-size:12px; font-weight:500; color:#d6c6a7; background:#30291d; border-bottom:1px solid var(--ip-line); }
.pitt-links tbody th, .pitt-links tbody td { padding:8px; text-align:left; vertical-align:middle; border-bottom:1px solid var(--ip-line); line-height:1.5; }
.pitt-links tbody tr:last-child > * { border-bottom:0; }
.pitt-links tbody tr:nth-child(even) { background:#282219; }
.pitt-links tbody th { font-weight:500; color:#f3ddb5; white-space:nowrap; }
.pitt-links td b { font-size:14px; color:#f6e7ca; }
.pitt-links em { display:block; margin-top:2px; font-size:12px; font-style:normal; }
.pitt-links .ip-empty { color:#c1b4a0; }
.pitt-links .pitt-link-locked { color:#efa48b; }
.pitt-links tr.is-empty > * { color:#a69c89; }
/* and in the table themes, as table-appearance.css themes the tracks' table */
html[data-table-theme]:not([data-table-theme="original"]) :is(.pitt-links h3, .pitt-links tbody th, .pitt-links td b) { color: var(--text); }
html[data-table-theme]:not([data-table-theme="original"]) :is(.pitt-links table, .pitt-links thead th, .pitt-links .ip-resource) { color: var(--muted); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links table { background: var(--surface); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links thead th { background: var(--surface-2); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links td { color: var(--text); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links .pitt-link-locked { color: var(--ui-error); }
html[data-table-theme]:not([data-table-theme="original"]) .pitt-links tr.is-empty > * { color: var(--muted); }
/* an english name on a phone's folded hand (~34px card) breaks only at a space or a syllable's soft hyphen (table-view.mjs
   HAND_BREAKS), not mid-syllable 「Clev|e-…」 (TR 11-09); birmingham's two-line clip stays, the opened sheet is unchanged */
@media (max-width: 1100px) and (orientation: portrait), (max-width: 1100px) and (min-height: 601px) {
  html:lang(en) #app[data-hand-size="compact"]:not([data-sheet-size="expanded"]) .pitt-table .mobile-hand-panel > .hand .card-name { overflow-wrap: normal; hyphens: manual; }
}

/* the seat's trains and pipelines to lay, under its money in the rail (table-view.mjs linkStripHtml): a line of small tiles each kind, what a
   tile does in a word under it; a locked one pale with a dashed edge */
#app .pitt-link-strip { display: grid; gap: 6px; margin: 0 0 10px; padding: 7px 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--surface-2); }
#app .pitt-link-row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: start; gap: 8px; }
#app .pitt-link-row > h4 { margin: 0; padding-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
#app .pitt-link-row > ul { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px 8px; margin: 0; padding: 0; list-style: none; }
#app .pitt-link-row li { display: grid; justify-items: center; gap: 2px; width: 46px; }
#app .pitt-link-row img { display: block; width: 44px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--edge-strong); }
#app .pitt-link-row li > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.2; color: var(--text-2); }
#app .pitt-link-row li > span > b { margin-left: 2px; color: var(--text); font-variant-numeric: tabular-nums; }
/* a locked one: its tile alone, smaller (its title says what it is and what unlocks it), so the ones to lay now lead */
#app .pitt-link-row li.is-locked { width: 34px; opacity: .45; }
#app .pitt-link-row li.is-locked img { width: 32px; }
#app .pitt-link-row li.is-locked > span { display: none; }
#app .pitt-link-row li.is-locked img { box-shadow: none; outline: 1px dashed var(--edge-strong); outline-offset: 1px; filter: grayscale(.6); }
/* 每周挑战 (li 2026-11-21): the tag beside the era and the map's heading, and its bots' pause on the bar over the map (the phone's main view),
   with 继续机器人 (the bar itself takes no taps: the map under it does) */
#app .era-progress-weekly { font-weight: 700; white-space: nowrap; }
#app .era-progress-paused { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 12px; line-height: 17px; color: var(--danger); }
#app .era-progress-paused button { pointer-events: auto; min-height: 32px; padding: 2px 10px; font-size: 12px; }
#app .pitt-weekly-tag { margin-left: 6px; font-size: .62em; font-weight: 600; color: var(--danger); white-space: nowrap; }

/* every player's mat on a phone (pitt-industry-panel.mjs gridHtml, li 2026-11-21: 「其次就是产业板和局势没有像伯明翰一样加上总览？」): birmingham's
   .industry-grid (table-info.css), with pittsburgh's longer cells: a branched track's two levels 「IV/V」 and a special industry's ◆ do not fit
   one 60px column with the count, so the count drops under the levels when it must, and two levels part at their 「/」; nothing is cut */
@media (max-width: 1100px) {
  #app .pitt-industry-grid td { white-space: normal; text-overflow: clip; line-height: 1.2; }
  #app .pitt-industry-grid td > .pig-levels > b, #app .pitt-industry-grid td > small { display: inline-block; white-space: nowrap; }
  /* faded well back, as birmingham's (li 2026-11-27: 「灰色和亮色的区别不是很大」) */
  #app .pitt-industry-grid td b.ig-off { color: var(--muted); font-weight: 400; opacity: .45; }
  #app .pitt-industry-grid .pig-mark { margin-left: 1px; font-size: 9px; font-style: normal; vertical-align: 2px; color: var(--gold); }
  #app .pitt-industry-grid b.ig-off .pig-mark { color: inherit; }
  /* a name too long for its column takes a second line, as birmingham's landscape dock has it (table-info.css): at 320px 「自动玩家 1」 needs
     about 64px of a 58px column and read 「自动玩…」 on all three bots, whose names differ only in the part that was cut (review 11-21). the
     chips stand on one line at their foot, so the colours stay level when one of them wraps */
  #app .pitt-industry-grid thead th { vertical-align: bottom; white-space: normal; }
  #app .pitt-industry-grid .ig-chip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  /* the 产业板 tab's fold over the player picker: one line until it is opened */
  #app .pitt-grid-fold { margin: 0 0 10px; }
  #app .pitt-grid-fold > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; list-style: none; }
  #app .pitt-grid-fold > summary > span { flex: none; }
  #app .pitt-grid-fold > summary > small { min-width: 0; margin-left: auto; overflow: hidden; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
  #app .pitt-grid-fold > summary::-webkit-details-marker { display: none; }
  #app .pitt-grid-fold > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; margin-left: 6px; }
  #app .pitt-grid-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
}

/* a phone's action sheet: the step's own buttons (what to confirm, 结束回合 / 重置本回合) are its pinned foot, so they are above the bottom bar at any sheet
   height without pulling the grip; the tabs stay at its top; the trains and pipelines, the explanations and the 行动记录 scroll between them
   (a reviewer 11-26: at 320x568 the fixed strip left 58 px and 结束回合 sat behind the tab bar) */
@media (max-width: 1100px) {
  #app .action-panel .action-content { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-padding-bottom: 60px; }
  #app .action-panel .action-content > * { flex-shrink: 0; }
  #app .action-panel .action-content > .action-tabs { position: sticky; top: 0; z-index: 2; background: var(--surface); padding-bottom: 4px; margin-bottom: 0; }
  #app .action-panel .action-content .action-body { flex: 0 0 auto; overflow: visible; }
  #app .action-panel .action-content > .action-footer { position: sticky; bottom: 0; z-index: 2; margin-top: auto; background: var(--surface); }
  #app .action-panel .action-content > .review-footer { padding-bottom: 4px; }
  #app .action-panel .pitt-link-strip { margin: 0 0 6px; }
}
.action-footer .develop-finish { width: 100%; margin: 4px 0 2px; }

/* 悔棋 (a 练习局 with one person): one quiet button under the action area, birmingham's .undo-turn */
.undo-turn { margin-top: 10px; display: flex; justify-content: flex-end; }
.undo-turn button { padding: 5px 10px; font-size: 12px; }
