/* sheet.css -- the ticker picker. Search field pinned to the TOP with results
   directly beneath: in tablet mode the on-screen keyboard takes the bottom
   ~44% of the viewport, so everything needed while typing lives in the upper
   half. The list simply gets shorter. */
#tickerSheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--scrim);
  display: flex; flex-direction: column; padding: var(--sp-5);
  box-sizing: border-box;
}
#tickerSheet[hidden] { display: none; }
#sheetInner {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
#sheetSearchRow {
  flex: 0 0 auto; display: flex; gap: var(--sp-2); align-items: center;
  padding: var(--sp-3); border-bottom: 1px solid var(--border);
}
#sheetSearch {
  flex: 1 1 auto; min-height: var(--tap); padding: 0 var(--sp-3);
  font: inherit; font-size: var(--fs-md); color: var(--text);
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius);
}
#sheetFilters {
  flex: 0 0 auto; display: flex; gap: var(--sp-2); align-items: center;
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border);
}
.chip {
  min-height: 32px; padding: 0 var(--sp-3); font: inherit; font-size: var(--fs-sm);
  color: var(--muted); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
}
.chip.active { background: var(--border); color: var(--text); }
#sheetSort { min-height: 0; height: 32px; }
#sheetList { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sheet-row {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 48px; padding: 0 var(--sp-3);
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.sheet-row.sel { background: var(--border); box-shadow: inset 2px 0 0 var(--accent); }
.sheet-name { flex: 1 1 auto; min-width: 0; }
.sheet-name b { display: block; font-size: var(--fs-base); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-name span { font-size: var(--fs-sm); color: var(--muted); }
.sheet-mcap { flex: 0 0 15%; text-align: right; font-size: var(--fs-sm); color: var(--muted); }
.sheet-badge { flex: 0 0 auto; font-size: var(--fs-micro); color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; }
.sheet-star {
  flex: 0 0 auto; min-width: var(--tap); min-height: var(--tap);
  font-size: var(--fs-md); color: var(--muted);
  background: none; border: none; cursor: pointer;
}
.sheet-star.added { color: var(--accent); }
mark { background: none; color: var(--accent); }
