/* What the record programs share (shared/records.js): the search box and its list, the user button, the example banner. */
.rec-search {
  position: relative; flex: 0 1 300px; min-width: 120px; height: 32px; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: text;
}
.rec-search:hover { border-color: var(--line-strong); }
.rec-search:focus-within { border-color: var(--prog); box-shadow: 0 0 0 3px var(--prog-soft); }
.rec-search-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; color: var(--muted); cursor: text; }
.rec-search-ic .material-symbols-outlined { font-size: 18px; }
.rec-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); }
.rec-search input::placeholder { color: var(--muted); opacity: 1; }
.rec-search input::-webkit-search-cancel-button { display: none; }
.rec-search:focus-within .rec-search-kbd, .rec-search.has-text .rec-search-kbd { display: none; }
.search-drop {
  position: fixed; z-index: 1200; padding: 6px; overflow: auto; cursor: default;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop-shadow);
}
.sd-group { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 8px 4px; }
.sd-item, .sd-all { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; }
.sd-item:hover, .sd-item.hi, .sd-all:hover, .sd-all.hi { background: var(--hover); }
.sd-text { min-width: 0; flex: 1; }
.sd-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-empty { padding: 8px; color: var(--muted); font-size: 13px; }
.sd-all { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 8px; }
.sd-all + .sd-all { border-top: 0; margin-top: 0; padding-top: 5px; }
.sd-all .material-symbols-outlined, .sd-item > .material-symbols-outlined { font-size: 18px; color: var(--muted); }
/* the user button: the person's picture, round */
.rec-user { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rec-user:hover { box-shadow: 0 0 0 3px var(--hover); }
.rec-user:focus-visible { outline: 2px solid var(--prog); outline-offset: 1px; }
.rec-user > * { width: 28px; height: 28px; font-size: 11.5px; }
/* the example banner – the same in every program */
.rec-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 7px 24px; background: var(--prog-soft); color: var(--text); font-size: 13px; flex: none; border-bottom: 1px solid var(--line); }
.rec-banner[hidden] { display: none !important; }
.rec-banner > .material-symbols-outlined { color: var(--prog-strong); font-size: 18px; }
.rec-banner .bn-text { flex: 1; min-width: 200px; }
.rec-banner .btn { padding: 3px 12px; font-size: 13px; }
.rec-banner .bn-close { margin-left: -4px; }
@media (max-width: 700px) {
  .rec-banner { padding: 6px 16px; }
  .rec-search { flex: 1 1 120px; min-width: 64px; margin-right: 0; }
  .rec-search-kbd { display: none; }
}
/* phones: the search box is an icon until it gets the focus, then it covers the header row */
@media (max-width: 520px) {
  .rec-search { flex: none; width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .rec-search:not(:focus-within) input { flex: 0 0 0; width: 0; opacity: 0; }
  .rec-search:focus-within { position: absolute; z-index: 5; left: 8px; right: 8px; top: 6px; width: auto; padding: 0 8px 0 4px; justify-content: flex-start; }
}
/* an empty page or list – the same in every record program (and in the shared panels' .empty-state, shared/chrome.css) */
.empty { text-align: center; padding: 56px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; }
