/* Pittsburgh-only consumers of the existing shared table-preference attributes. */
#pittsburgh-app.pitt-table-preferences {--pitt-panel-font:14px;--pitt-control-motion:160ms}
html[data-panel-scale=small] #pittsburgh-app.pitt-table-preferences {--pitt-panel-font:12px}
html[data-panel-scale=large] #pittsburgh-app.pitt-table-preferences {--pitt-panel-font:16px}
#pittsburgh-app.pitt-table-preferences #game-panel :is(.muted,.turn-status,.hand-card span,.hand-card small,.filter-row label,.filter-row select,.filter-row button,.action-option,.primary,.turn-controls button,.player-stat,.inventory table,.market-state,.journal,#scoring,details>summary,#action-count,#phase-description,#phase-title,.hand-column h3,.hand-column h3 small,.mt-tab) {font-size:var(--pitt-panel-font);line-height:1.55}
#pittsburgh-app.pitt-table-preferences #game-panel :is(button,select) {min-height:36px}
#pittsburgh-app.pitt-table-preferences #game-panel :is(button,summary) {transition:background-color var(--pitt-control-motion) ease,border-color var(--pitt-control-motion) ease,box-shadow var(--pitt-control-motion) ease}
#pittsburgh-app.pitt-table-preferences #game-panel :is(.mt-action-scroll,.mt-pane,.legal-actions) {scroll-padding:10px;min-height:0}
#pittsburgh-app.pitt-table-preferences .pitt-owner-description {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
#pittsburgh-app.pitt-table-preferences [data-pitt-color=teal] {--pitt-seat-shape:'●'}
#pittsburgh-app.pitt-table-preferences [data-pitt-color=orange] {--pitt-seat-shape:'▲'}
#pittsburgh-app.pitt-table-preferences [data-pitt-color=purple] {--pitt-seat-shape:'■'}
#pittsburgh-app.pitt-table-preferences [data-pitt-color=yellow] {--pitt-seat-shape:'◆'}
/* 色弱辅助 (li 2026-11-16 「色弱优化一下」): the seats' borders and routes in the colour-blind-safe set (tokens.css --cb-*), and the shape on the
   piece's top edge, centred, clear of the level in its top-left corner */
html[data-color-assist=on] #pittsburgh-app {--pitt-seat-teal:var(--cb-teal);--pitt-seat-orange:var(--cb-orange);--pitt-seat-purple:var(--cb-purple);--pitt-seat-yellow:var(--cb-yellow)}
html[data-color-assist=on] #pittsburgh-app.pitt-table-preferences :is(.map-slot,.map-link,.map-oil)[data-pitt-color]::after {content:var(--pitt-seat-shape);position:absolute;left:50%;top:0;transform:translate(-50%,-75%);z-index:4;color:var(--text);background:var(--surface);border:1px solid currentColor;border-radius:2px;min-width:1.15em;min-height:1.15em;line-height:1.1;font-size:max(7px,.7cqw);text-align:center;pointer-events:none}
html[data-color-assist=on] #pittsburgh-app.pitt-table-preferences .player-stat[data-pitt-color]::before {content:var(--pitt-seat-shape) ' ' attr(data-pitt-seat);font-weight:700;color:var(--gold-hi)}
#pittsburgh-app.pitt-table-preferences .pitt-city-count {position:absolute;transform:translate(-50%,-50%);z-index:3;pointer-events:auto;margin:0;font:600 max(7px,.7cqw)/1.2 sans-serif;color:var(--text);background:var(--surface);border:1px solid var(--gold);border-radius:3px}
#pittsburgh-app.pitt-table-preferences .pitt-city-count>summary {padding:2px 4px;list-style:none;font:inherit;white-space:nowrap;cursor:pointer}
#pittsburgh-app.pitt-table-preferences .pitt-city-count>summary::-webkit-details-marker {display:none}
#pittsburgh-app.pitt-table-preferences .pitt-city-count[open] {z-index:8}
#pittsburgh-app.pitt-table-preferences .pitt-city-count>p {position:absolute;left:0;top:100%;width:clamp(160px,20vw,240px);padding:10px;font:12px/1.6 sans-serif;background:var(--surface);color:var(--text);border:1px solid var(--edge-strong);border-radius:5px;box-shadow:0 4px 14px color-mix(in srgb,var(--ink) 33%,transparent);white-space:normal}
html[data-city-counts=off] #pittsburgh-app.pitt-table-preferences .pitt-city-count {display:none}
#pittsburgh-app.pitt-table-preferences .pitt-print-mat {display:none;margin:0 0 12px}
#pittsburgh-app.pitt-table-preferences .pitt-print-mat img {display:block;width:100%;height:auto;max-width:none}
#pittsburgh-app.pitt-table-preferences .pitt-print-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#pittsburgh-app.pitt-table-preferences .pitt-print-canvas {position:relative;min-width:480px}
#pittsburgh-app.pitt-table-preferences #game-panel .pitt-mat-spot {position:absolute;transform:translate(-50%,-50%);width:8.7%;height:10.9%;min-height:0;padding:0;border:1px solid transparent;border-radius:4px;background:transparent}
#pittsburgh-app.pitt-table-preferences #game-panel .pitt-mat-spot:is(:hover,:focus-visible) {border-color:var(--gold);background:color-mix(in srgb,var(--gold) 15%,transparent);outline:2px solid var(--gold);outline-offset:0}
#pittsburgh-app.pitt-table-preferences .pitt-mat-selected {outline:2px solid var(--gold);outline-offset:-2px;background:var(--ui-selected)}
#pittsburgh-app.pitt-table-preferences .pitt-print-mat figcaption {font-size:var(--pitt-panel-font);line-height:1.6;margin-top:8px;color:var(--muted)}
.pitt-table-settings .table-appearance {margin:14px 0}
.pitt-table-settings .seg {display:flex;gap:4px;flex-wrap:wrap}
.pitt-table-settings .seg button {min-height:36px;flex:1;min-width:0}
.pitt-table-settings .menu-label {display:block;margin:0 0 6px}
.pitt-table-settings .menu-switch {display:flex;align-items:center;gap:10px;margin:12px 0}
.pitt-table-settings .menu-switch>input {width:22px;height:22px;margin-left:auto;flex:none}
/* Existing shared shell transitions use the same injected motionDuration API. */
body:has(#pittsburgh-app.pitt-table-preferences) .platform-menu-views {transition:transform var(--pitt-menu-motion,360ms) var(--m-ease)}
@media(min-width:1101px) {
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible {grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);align-items:start}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible>.board-column {grid-column:1;grid-row:1}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible>.lobby {grid-column:1;grid-row:2}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible>#game-panel {grid-column:2;grid-row:1/span 2}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible .play-controls {grid-template-columns:minmax(0,1fr);gap:10px}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible .hand {flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
  html[data-hand-layout=side] #pittsburgh-app.pitt-table-visible .hand-card {flex:none}
  html[data-hand-layout=bottom] #pittsburgh-app.pitt-table-visible .play-controls {grid-template-columns:minmax(0,1fr)}
  html[data-hand-layout=bottom] #pittsburgh-app.pitt-table-visible .action-column {grid-row:1}
  html[data-hand-layout=bottom] #pittsburgh-app.pitt-table-visible .hand-column {grid-row:2}
  html[data-hand-layout=bottom] #pittsburgh-app.pitt-table-visible .hand {flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
  html[data-hand-layout=bottom] #pittsburgh-app.pitt-table-visible .hand-card {flex:none}
}
@media(max-width:1100px) {
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=print] .pitt-print-mat {display:block}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory table {display:block;margin-top:0}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory tbody {display:contents}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory tr:has(td) {display:grid;grid-template-columns:minmax(0,1fr);padding:10px;margin:8px 0;border:1px solid var(--edge-strong);border-radius:6px;background:var(--surface)}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory tr:has(th) {display:none}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory td {display:block;border:0;padding:3px;white-space:normal}
  #pittsburgh-app.pitt-table-preferences[data-pitt-phone-mat=cards] #inventory td::before {content:attr(data-pitt-column) ': ';font-weight:600;color:var(--muted)}
  #pittsburgh-app.pitt-table-preferences #inventory {overflow:auto}
}
@media(max-width:900px) {
  body.mobile-table-active #pittsburgh-app.pitt-table-preferences .mt-tabs {min-height:36px}
  body.mobile-table-active #pittsburgh-app.pitt-table-preferences .mt-tab {min-width:0;white-space:normal;padding:5px 3px}
  body.mobile-table-active #pittsburgh-app.pitt-table-preferences .mt-pane-industry>details {margin:0}
  body.mobile-table-active #pittsburgh-app.pitt-table-preferences .mt-action-footer {flex:none}
  body.mobile-table-active #pittsburgh-app.pitt-table-preferences .mt-action-footer button {height:auto;white-space:normal}
}
@media(prefers-reduced-motion:reduce) {
  html:not([data-motion]) #pittsburgh-app.pitt-table-preferences,html[data-motion=system] #pittsburgh-app.pitt-table-preferences {--pitt-control-motion:0ms}
}
