/* The overview board. Rows are 14px apart, with no gap of their own; each tile keeps 28px clear beneath it and 28px beside it.
   dash.js (ROW, GAP) uses the same figures. */
.dash-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-top:36px}
.dash-top h1{margin:0}
.dash-acts{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.dash-tip{font-size:.8125rem;color:var(--muted);margin-right:6px}
.dash{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:minmax(14px,auto);gap:0 28px;margin-top:22px;align-items:start}
html.dash-wait .dash{visibility:hidden}

.tile{margin:0 0 28px;min-width:0;container:tile/inline-size;display:flex;flex-direction:column}
.tile-h{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;margin-bottom:12px}
.tile-t{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-tools{display:none;flex:none;gap:2px}
.tile-b{min-width:0}
.tile.bare>.tile-h{display:none}
.tile.fixed>.tile-b{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}
.tile .lead{margin:0 0 20px}
.tile .conv{max-width:none}
.tile .quote .big{font-family:var(--font-num);font-variant-numeric:tabular-nums;font-weight:700;font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.1}
.tile .quote .chg{font-family:var(--font-num);font-variant-numeric:tabular-nums;font-weight:600;font-size:1.0625rem}
.tile .after .btn+.btn,.tile .after a.btn+a.btn{margin-left:0}
.tile .after{flex-wrap:wrap}
.tile.fixed .credit{flex:none}
.skel{border-radius:var(--r);background:var(--panel);opacity:.5}
.badge{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--panel);color:var(--muted);font-size:.625rem;font-weight:700;letter-spacing:.02em}
.tile.new{animation:tilenew 2.4s ease-out}
@keyframes tilenew{from{box-shadow:0 0 0 3px var(--brass)}to{box-shadow:0 0 0 3px transparent}}
@media (prefers-reduced-motion:reduce){.tile.new{animation:none}}

/* Columns give way to the width of the tile, not of the screen. */
@container tile (max-width:900px){.c-1h,.c-vol{display:none}.band[data-set=all]{--who:200px}.band[data-set=all] .who .loc{display:none}}
@container tile (max-width:700px){.c-7d,.c-mc{display:none}}
@container tile (max-width:520px){
  .c-rank,.c-spark,.c-g{display:none}
  .movers{grid-template-columns:1fr}
  .band,.band[data-set=all]{--who:128px;padding:10px 12px 12px}
  .ticks .t3{display:none}
  .conv-row{grid-template-columns:1fr auto 1fr}.conv-row label:first-child{grid-column:1/-1}
}

/* Narrow screens: one column, in order. */
@media (max-width:899px){
  .dash{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .dash>.tile{grid-column:1/-1!important;grid-row:auto!important;margin-bottom:36px}
}

/* Customising */
.dash.editing .tile{border:1px dashed var(--line2);border-radius:var(--r);padding:10px 14px 14px;background:var(--bg)}
.dash.grid-stack .tile{border:0;margin:0}
.dash.grid-stack .grid-stack-item-content{border:1px dashed var(--line2);border-radius:var(--r);background:var(--bg)}
.dash.editing .tile.bare>.tile-h{display:flex}
.dash.editing .tile-tools{display:flex}
.dash.editing .tile-t a{pointer-events:none;text-decoration:none}
.dash.editing .tile-b{pointer-events:none}
.dash.editing .tile-b [data-act]{pointer-events:auto}
.dash.editing .mob{display:inline-grid}
.dash.grid-stack{display:block;margin:8px -14px 0}
.dash.grid-stack .mob{display:none}
.dash.grid-stack .tile-h{cursor:move;touch-action:none}
.dash.grid-stack .grid-stack-item-content{overflow:visible}
.dash.grid-stack .tile.fixed{height:100%}
.dash.grid-stack .grid-stack-placeholder>.placeholder-content{border:2px dashed var(--brass);border-radius:var(--r);background:none}
.dash.grid-stack .ui-resizable-handle{opacity:.55}

/* "Add a tile" and the pickers in tile settings */
.add-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.add-list button{font:inherit;color:var(--ink);text-align:left;width:100%;height:100%;display:flex;flex-direction:column;gap:3px;background:none;border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;cursor:pointer}
.add-list button:hover:not(:disabled){border-color:var(--ink)}
.add-list button:disabled{opacity:.5;cursor:default}
.add-list span{font-size:.8125rem;color:var(--muted)}
.pick-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0 3px 2px;border-bottom:1px solid var(--line)}
.pick-list span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-btns{display:flex;flex:none}
.pick input{margin-top:10px}
.pick-found li{padding:2px 0}
.pick-found button{font:inherit;color:var(--ink);width:100%;text-align:left;background:none;border:0;border-radius:var(--r-sm);padding:7px 8px;cursor:pointer}
.pick-found button:hover,.pick-found button:focus-visible{background:var(--panel)}
