/* Reuse the Windows desktop chrome, pixel icon assets, and installed system fonts. */
body.theme-31 #desktop .desktop-icons .desktop-icon span { font-size: 11px !important; overflow-wrap: normal !important; word-break: normal !important; }
body.theme-31 #desktop #win-stocks, body.theme-31 #desktop #win-chart {
  width: min(840px, calc(100vw - 16px)) !important;
  height: min(620px, calc(100dvh - var(--taskbar-h, 36px) - 20px)) !important;
  min-width: 0 !important; min-height: 0 !important;
}
body.theme-31 #desktop .market-body {
  display: block !important; background: #c0c0c0 !important; color: #111;
  padding: 12px !important; height: calc(100% - 48px) !important;
  overflow: auto !important; min-width: 0; box-sizing: border-box;
  font: 12px/1.45 Tahoma, 'MS Sans Serif', Arial, sans-serif;
}
.market-body p { margin: 7px 0; }
.stock-header { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.stock-header img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.stock-header strong { font-size: 20px; color: #000080; }
.stock-header p { margin: 2px 0; }
.stock-network { padding: 5px 8px; background: #000080; color: white; font-weight: bold; }
.market-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; }
.market-toolbar label { display: flex; align-items: center; gap: 5px; min-width: 0; }
.market-toolbar input, .market-toolbar select { font: inherit; background: #fff; color: #111; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 5px; min-width: 0; max-width: 100%; }
.market-toolbar input { width: 205px; }
.market-toolbar .ui-btn { font: inherit; min-height: 28px; }
.stock-list-label { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.stock-table-wrap { max-height: 245px; overflow: auto; border: 2px solid; border-color: #808080 #fff #fff #808080; background: white; }
.stock-table-wrap table { min-width: 690px; }
.stock-table-wrap th { position: sticky; top: 0; background: #dfdfdf; z-index: 1; }
.stock-table-wrap td, .stock-table-wrap th { padding: 6px 8px; }
.stock-table-wrap th { overflow-wrap: normal; word-break: normal; }
.stock-table-wrap th:first-child, .stock-table-wrap td:first-child { min-width: 64px; white-space: nowrap; }
.stock-table-wrap td:nth-child(2) { min-width: 200px; }
.stock-table-wrap td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-table-wrap tr.selected td { background: #000080; color: #fff; }
.stock-select { font: bold 12px Tahoma, sans-serif; border: 0; background: transparent; color: #000080; padding: 4px 0; text-decoration: underline; cursor: pointer; }
.selected .stock-select { color: #fff; }
.stock-select:focus-visible { outline: 1px dotted currentColor; outline-offset: 3px; }
.stock-chart-tools { justify-content: space-between; border-bottom: 1px solid #888; margin-top: 14px; }
#stockDetail h2 { font: bold 15px Tahoma, sans-serif; margin: 12px 0 4px; }
.stock-price { font: bold 24px 'Courier New', monospace; color: #000080; font-variant-numeric: tabular-nums; }
.stock-chart { background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; margin-top: 9px; }
.stock-chart svg { display: block; width: 100%; min-height: 170px; font-family: Tahoma, sans-serif; }
.stock-caption { color: #414141; font-size: 11px; }
.stock-chart .stock-caption { padding: 0 10px 6px; }
.stock-links { display: flex; flex-wrap: wrap; gap: 12px; }
.market-body a { color: #000080; }
.dex-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
#dexContent h2 { font: bold 18px Tahoma, sans-serif; text-transform: capitalize; }
.dex-frame { display: block; width: 100%; height: 460px; margin: 10px 0; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; box-sizing: border-box; }
@media (max-width: 640px) {
  body.theme-31 #desktop .market-body { padding: 8px !important; }
  .market-toolbar label:first-child { flex: 1 0 100%; }
  .market-toolbar input { flex: 1; width: auto; }
  .stock-chart-tools label:first-child { flex: initial; }
  .stock-table-wrap { max-height: 230px; }
  .stock-header strong { font-size: 18px; }
  .dex-frame { height: 420px; }
}
