/* Search (search.js): a full-screen page over the app, opened from the header's magnifier. */
#mode-search.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.sr-root { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--bg);
  padding-top: env(safe-area-inset-top, 0px); }
.sr-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; }
.sr-inp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 12px; border-radius: var(--radius-sm);
  background: var(--bg2); border: max(1px, var(--card-bw, 1px)) solid var(--card-border, var(--border)); color: var(--text2); }
.sr-inp input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; }
.sr-inp input::-webkit-search-cancel-button { display: none; }
.sr-x { width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--bg3); color: var(--text2); font-size: 11px; cursor: pointer; flex-shrink: 0; }
.sr-cancel { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; padding: 8px 2px; }
.sr-chips { display: flex; gap: 6px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.sr-chips::-webkit-scrollbar { display: none; }
.sr-chips:not(:empty) { padding-bottom: 10px; }
.sr-chips .pk-chip { background: var(--bg2); }
.sr-chips .pk-chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.sr-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 16px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.sr-card { padding-top: 4px; padding-bottom: 4px; }
.sr-card .sec-t { margin: 8px 0 0; }
.sr-card .sec-t span { font-variant-numeric: tabular-nums; }
.sr-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.sr-card > .sr-row:first-child, .sr-card .sec-t + .sr-row { border-top: 0; }
.sr-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--bg3); color: var(--text2); }
.sr-ic.sr-session { color: var(--green); }
.sr-ic.sr-hiit { color: var(--blue); }
.sr-ic.sr-cardio { color: var(--cardio, var(--accent)); }
.sr-ic.sr-dim { background: none; }
.sr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-t b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-t small { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-t .pk-hl { font-weight: 800; }
.sr-tag { font-size: 10px; padding: 2px 7px; vertical-align: 2px; }
.sr-chev { font-style: normal; color: var(--text3); font-size: 18px; }
.sr-more { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; text-transform: none; letter-spacing: 0; }
.sr-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0 8px; }
.sr-jump button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: var(--radius-sm); background: var(--bg3);
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: center; line-height: 1.2; }
.sr-jump .sr-ic { background: var(--bg2); color: var(--accent); }
.sr-none { padding-top: 14px; padding-bottom: 14px; }
.sr-none b { display: block; font-size: 15px; }
.sr-none small { display: block; font-size: 13px; color: var(--text2); margin-top: 3px; }
/* No loose text on the page: hints sit on the card fill (scene themes). */
.sr-note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg2); box-shadow: 0 0 0 var(--card-bw, 0) var(--card-border, transparent);
  font-size: 12.5px; color: var(--text2); line-height: 1.4; }
/* The app (native.css): room for the keyboard. */
html.native.native-kb .sr-root { padding-bottom: var(--native-kb); }
