/* The presets, every device's way to them (cx-browser.js; ui/README.md, The presets): a sheet over the page while it is
   open (cx-browser.js place()), the page under it held still: on a wider screen from under the frame's bar (--cxb-top),
   PLAY and TEMPO in reach above it, down to the output strip and the keys at the window's foot (--cxo-h), as the master
   chain's modules open (cx-reverb.css), under them and under the output strip's own sheets; on a phone, held either way,
   the whole screen (below). Its head (the list's name, FIND, CLOSE), then the Showcase and the categories down its side
   where they fit whole, else along its top (.cxb-across), and the presets beside them in rows of one line (or tiles,
   where the device draws a picture of each), the one thing in it that scrolls; the chosen one lit in the device's accent,
   its row moving while it plays; on a phone a row takes two lines. In the frame's colours, each device's own accent. */
.cxb{position:fixed;z-index:50;left:0;right:0;top:var(--cxb-top,0px);bottom:var(--cxo-h,0px);display:flex;flex-direction:column;min-height:0;
  margin:0;border:0;border-top:1px solid var(--cxf-line-2);border-radius:0;background:var(--cxf-strip);color:var(--cxf-ink);
  box-shadow:0 -24px 48px rgba(0,0,0,.42);overflow:hidden}
.cxb[hidden]{display:none!important}
/* the page under it held still where it was (cx-browser.js hold()), the room of a scroll bar the window shows kept */
html.cxb-sheet{overflow:hidden}
html.cxb-sheet.cxb-gutter{scrollbar-gutter:stable}
/* while it is open, the intro over the device's picture steps aside (cx-helpers.js), back if it is put away unheard */
html.cxb-open .cxh-card.cxh-intro{visibility:hidden}
.cxb-head{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center;padding:10px var(--cxf-pad);border-bottom:1px solid var(--cxf-line)}
.cxb-find{flex:1 1 200px;min-width:0;min-height:40px;margin:0;padding:0 12px;border:1px solid var(--cxf-line-2);border-radius:4px;
  background:var(--cxf-bar);color:var(--cxf-ink);font:14px/1 var(--cxf-sans)}
.cxb-find::placeholder{color:var(--cxf-quiet)}
.cxb-close{min-height:40px;margin:0;padding:0 14px;border:1px solid var(--cxf-accent-line);border-radius:4px;background:none;
  color:var(--cxf-accent);font:11px/1 var(--cxf-mono);letter-spacing:.12em;cursor:pointer}
/* the list's name for itself, the strip that names it under the sheet; a phone's head alone (below): PLAY, where its head
   breaks, and the order as a menu */
.cxb-play,.cxb-break,.cxb-pick{display:none}
.cxb-heading{flex:0 1 auto;min-width:0;margin:0 6px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 12px/1 var(--cxf-mono);
  letter-spacing:.16em;color:var(--cxf-ink)}
/* (PLAY, the page's own as its bar draws it, in the accent: cx-frame.css .cxf-headplay, cx-play.js) */
.cxb-close:focus-visible{outline:2px solid var(--cxf-accent);outline-offset:2px}
/* SHARE, the page's own pressed from here (cx-share.js also()), since the sheet lies over the strip: the strip's sign in a
   box of the head's height, and its word that the link was copied under it, as the strip's is under its own */
.cxb-share-at{position:relative;display:inline-flex}
.cxb-share-at[hidden]{display:none}
.cxb-share{display:grid;place-items:center;width:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:1px solid var(--cxf-line-2);border-radius:4px;
  background:none;color:var(--cxf-ink);cursor:pointer}
.cxb-share svg{width:16px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cxb-share:disabled{cursor:default;color:var(--cxf-quiet);opacity:.6}
.cxb-share:active:not(:disabled){background:var(--cxf-accent-soft);color:var(--cxf-accent)}
.cxb-share:focus-visible{outline:2px solid var(--cxf-accent);outline-offset:2px}
.cxb-share-at .cxf-share-note{position:absolute;z-index:3;top:100%;right:0;margin:6px 0 0;padding:7px 9px;border:1px solid var(--cxf-line-2);border-radius:3px;
  background:var(--cxf-menu);box-shadow:0 10px 24px #0008;color:var(--cxf-ink);font:10px/1 var(--cxf-mono);letter-spacing:.12em;text-transform:uppercase;
  white-space:nowrap;pointer-events:none;transition:opacity .24s}
.cxb-share-at .cxf-share-note[hidden]{display:none}
.cxb-share-at .cxf-share-note.cxf-long{width:max-content;max-width:min(240px,calc(100vw - 32px));white-space:normal;line-height:1.5}
.cxb-share-at .cxf-share-note.cxf-error{border-color:var(--cxf-rec)}
.cxb-share-at .cxf-share-note.cxf-gone{opacity:0}
@media(prefers-reduced-motion:reduce){.cxb-share-at .cxf-share-note{transition:none}}
.cxb-body{display:grid;grid-template-columns:204px minmax(0,1fr);flex:1;min-height:0;padding:0 var(--cxf-pad)}
/* (a column as tall as its lists; cx-browser.js lay() sees whether they fit whole, and puts them along the top where
   they don't, so it never scrolls) */
.cxb-rail{display:flex;flex-direction:column;gap:2px;min-height:0;padding:8px 8px 8px 0;border-right:1px solid var(--cxf-line);overflow-y:auto;
  overscroll-behavior:contain}
.cxb-view{display:flex;flex:0 0 auto;justify-content:space-between;align-items:center;gap:10px;min-height:40px;margin:0;padding:0 10px;
  border:0;border-radius:4px;background:none;color:var(--cxf-muted);font:14px/1.2 var(--cxf-sans);text-align:left;cursor:pointer}
.cxb-view[aria-pressed=true]{background:#ffffff0f;color:var(--cxf-ink)}
.cxb-view.cxb-lead{color:var(--cxf-accent)}
.cxb-count{font:10.5px/1 var(--cxf-mono);color:var(--cxf-quiet);font-variant-numeric:tabular-nums}
.cxb-gap{display:block;flex:0 0 1px;margin:6px 2px;background:var(--cxf-line)}
/* the lists along its top where they don't fit whole down its side (cx-browser.js lay(): a short window): a row over
   the presets, wrapped so every list is in sight (moved through sideways on a phone, below), each a box of its own */
.cxb-across .cxb-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.cxb-across .cxb-rail{flex-direction:row;flex-wrap:wrap;gap:6px;padding:8px 0;border-right:0;border-bottom:1px solid var(--cxf-line);overflow:visible}
.cxb-across .cxb-view{border:1px solid var(--cxf-line-2)}
.cxb-across .cxb-gap{display:none}
/* and where even then the presets have less room than the tallest of them (KEYS opened under a short window: lay()), all
   under its head scrolls as one, the lists and ORDER with the presets, so each of them can still be seen whole */
.cxb-tight .cxb-body{display:block;overflow-y:auto;overscroll-behavior:contain}
.cxb-tight .cxb-pane{display:block}
.cxb-tight .cxb-list{overflow:visible}
.cxb-pane{display:flex;flex-direction:column;min-width:0;min-height:0}
.cxb-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-height:53px;padding:6px 10px 6px 14px;
  border-bottom:1px solid var(--cxf-line)}
.cxb-titles{min-width:0;flex:1 1 160px}
.cxb-title{min-width:0;margin:0;font:10.5px/1.3 var(--cxf-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--cxf-quiet)}
.cxb-about{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:12.5px/1.35 var(--cxf-sans);color:var(--cxf-muted)}
/* a link's note (a list it asked for not here), in the device's accent until the first press */
.cxb-about.cxb-noted{color:var(--cxf-accent)}
.cxb-order{display:flex;align-items:center;gap:4px}
.cxb-k{margin-right:4px;font:10px/1 var(--cxf-mono);letter-spacing:.12em;color:var(--cxf-quiet)}
.cxb-switch{min-height:40px}
.cxb-list{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
/* (its words in the family's type whatever a device's page does to its buttons and fields: one device's, in its
   own monospace, had set its rows in it) */
.cxb .cxb-row{font:15px/1.25 var(--cxf-sans);letter-spacing:0;text-transform:none}
.cxb .cxb-view{font:14px/1.2 var(--cxf-sans);letter-spacing:0;text-transform:none}
.cxb .cxb-find{font:14px/1 var(--cxf-sans);letter-spacing:0;text-transform:none}
.cxb .cxb-close{font:11px/1 var(--cxf-mono);letter-spacing:.12em}

/* a row: its place (or, while it plays, three bars moving), its name, its sentence where the device gives one, its
   category where the list mixes them, then the device's facts (--cxb-facts, their widths) */
.cxb-row{display:grid;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;
  padding:0 14px;border:0;border-bottom:1px solid var(--cxf-line);border-radius:0;background:none;color:var(--cxf-ink);text-align:left;cursor:pointer;
  font:15px/1.25 var(--cxf-sans)}
/* (the columns from 761 px; a phone's two lines below) */
@media (min-width:761px){
  .cxb-row{grid-template-columns:28px minmax(0,1fr) var(--cxb-facts)}
  .cxb-mixed:not(.cxb-tiles) .cxb-row{grid-template-columns:28px minmax(0,1fr) 150px var(--cxb-facts)}
  .cxb-lined .cxb-list:not(.cxb-tiles) .cxb-row{grid-template-columns:28px minmax(0,.9fr) minmax(0,1.7fr) var(--cxb-facts)}
  .cxb-lined .cxb-mixed:not(.cxb-tiles) .cxb-row{grid-template-columns:28px minmax(0,.9fr) minmax(0,1.7fr) 130px var(--cxb-facts)}
}
.cxb-n{position:relative;font:10.5px/1 var(--cxf-mono);color:var(--cxf-quiet);font-variant-numeric:tabular-nums}
.cxb-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cxb-dot{display:inline-block;width:6px;height:6px;margin:0 8px 2px 0;border-radius:50%;background:var(--cxf-accent);vertical-align:middle}
.cxb-line{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:13px/1.35 var(--cxf-sans);color:var(--cxf-muted)}
.cxb-cat,.cxb-fact{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/1.3 var(--cxf-mono);letter-spacing:.06em;
  color:var(--cxf-muted)}
.cxb-cat{display:none}
.cxb-mixed .cxb-cat{display:block}
.cxb-end{text-align:right;font-variant-numeric:tabular-nums}
.cxb-said{display:none}
.cxb-row[aria-current=true]{background:var(--cxf-accent-soft)}
.cxb-row[aria-current=true] .cxb-name{color:var(--cxf-accent)}
.cxb-row:focus-visible{outline:2px solid var(--cxf-accent);outline-offset:-2px}
@media(hover:hover){.cxb-row:hover{background:#ffffff08}.cxb-view:hover{color:var(--cxf-ink)}}
.cxb-eq{display:none;align-items:flex-end;gap:2px;height:12px}
.cxb-eq i{display:block;width:3px;height:4px;background:var(--cxf-accent)}
.cxb-sounding .cxb-at{display:none}
.cxb-sounding .cxb-eq{display:flex}
@media (prefers-reduced-motion:no-preference){
  .cxb-sounding .cxb-eq i{animation:cxb-eq .9s ease-in-out infinite alternate}
  .cxb-sounding .cxb-eq i:nth-child(2){animation-delay:-.3s}
  .cxb-sounding .cxb-eq i:nth-child(3){animation-delay:-.6s}
}
@keyframes cxb-eq{from{height:3px}to{height:12px}}
.cxb-none{margin:0;padding:24px 14px;color:var(--cxf-quiet);font-size:14px}

/* tiles, where the device draws a picture of each (Matter / Field's studies): the picture over the name, its category
   and facts under it, its sentence on two lines at most */
/* (each row of tiles its whole height, the list scrolling: a tile clips its own overflow, so a row left to the grid would
   be squeezed into the list's height, every tile in sight at once) */
.cxb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-auto-rows:max-content;gap:10px;align-content:start;padding:10px}
.cxb-tiles .cxb-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"pic pic" "name n" "said said" "line line";
  gap:4px 10px;align-items:center;min-height:0;padding:0 0 10px;border:1px solid var(--cxf-line);border-radius:6px;overflow:hidden}
.cxb-tiles .cxb-pic{grid-area:pic;display:block;aspect-ratio:16 / 5;margin-bottom:4px;background:#0000002e;overflow:hidden}
.cxb-tiles .cxb-pic>*{display:block;width:100%;height:100%;object-fit:cover}
.cxb-tiles .cxb-name{grid-area:name;padding-left:10px}
.cxb-tiles .cxb-n{grid-area:n;padding-right:10px}
.cxb-tiles .cxb-said{grid-area:said;display:-webkit-box;overflow:hidden;padding:0 10px;white-space:normal;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;font:10.5px/1.3 var(--cxf-mono);letter-spacing:.06em;color:var(--cxf-muted)}
/* each fact whole, the line breaking after a dot (saidLine) */
.cxb-tiles .cxb-said>.cxb-part,.cxb-tiles .cxb-said>.cxb-sep{white-space:nowrap}
.cxb-tiles .cxb-line{grid-area:line;display:-webkit-box;padding:0 10px;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  font-size:12.5px}
.cxb-tiles .cxb-row[aria-current=true]{border-color:var(--cxf-accent-line)}

/* a phone, held either way (cx-browser.js phone()): open, a screen of its own over the whole page (place()), the page
   under it held still where it was: its own head, FIND with the order beside it, the lists, then the presets, the one
   thing a swipe moves; the bar, the strip, the output strip and the keys out of sight under it (26 Nov 2026, Cyrus's
   recording of Matter / Field on his iPhone: "This is a mess of an experience"; then, of it as a sheet between the bar's
   PLAY row and the output strip: "It's also a menu in a menu vibe"; a phone on its side had opened it under the page's
   foot, out of sight) */
@media (max-width:760px),(max-height:560px){
  html.cxb-sheet .cxb:not([hidden]){position:fixed;z-index:70;inset:0;margin:0;border:0;border-radius:0;box-shadow:none;
    padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
  /* its head: the list's name, FIND and the order, PLAY and CLOSE (on two lines on an upright phone, below); FIND and the
     order 16 px, so a phone never zooms into them as they are used */
  .cxb-head{padding:10px 12px}
  .cxb-heading{margin-right:4px}
  .cxb-body{padding:0}
  .cxb-rail{padding:8px}
  /* the lists along its top on a phone on its side too where they don't fit whole down its side (cx-browser.js
     across()), moved through sideways as on an upright phone (below) */
  .cxb-across .cxb-rail{flex-wrap:nowrap;padding:8px 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .cxb-across .cxb-rail::-webkit-scrollbar{display:none}
  .cxb-play{display:inline-flex}
  .cxb-pick{display:block}
  .cxb .cxb-find{font-size:16px}
  /* (in the family's look for a menu, its caret kept, whatever a device's page gives its own menus: Matter / Field's are
     the whole width of their box) */
  .cxb .cxb-pick{width:auto;min-width:0;min-height:40px;padding:0 30px 0 12px;border:1px solid var(--cxf-line-2);border-radius:4px;
    background-color:var(--cxf-bar);color:var(--cxf-ink);font:16px/1 var(--cxf-sans);letter-spacing:0;text-transform:none}
  /* over the presets, a line only where there is something to say that the lists do not: how many a search found, a
     category's own sentence, a link's note; ORDER is the menu in the head */
  .cxb-bar{min-height:0}
  .cxb-order{display:none}
  .cxb:not(.cxb-finding) .cxb-title{display:none}
  .cxb:not(.cxb-finding) .cxb-bar:not(:has(.cxb-about:not([hidden]))){display:none}
}
@media (max-width:760px){
  /* the head on two lines: the list's name, PLAY and CLOSE; then FIND, with the order beside it where it fits and under it
     where it does not */
  .cxb-head{gap:10px 8px}
  .cxb-heading{order:1;flex:1 1 auto;margin-right:0}
  .cxb-play{order:2}
  .cxb-share-at{order:3}
  .cxb-close{order:4}
  .cxb-break{display:block;order:5;flex:0 0 100%;height:0}
  .cxb-find{order:6;flex:999 1 150px}
  .cxb-pick{order:7;flex:1 0 auto;max-width:100%}
  .cxb-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .cxb-rail{flex-direction:row;gap:6px;padding:8px 12px;border-right:0;border-bottom:1px solid var(--cxf-line);overflow-x:auto;overflow-y:hidden;
    scrollbar-width:none}
  .cxb-rail::-webkit-scrollbar{display:none}
  .cxb-view{border:1px solid var(--cxf-line-2)}
  .cxb-k,.cxb-gap{display:none}
  .cxb-about{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .cxb-about[hidden]{display:none}
  /* a row on two lines: its name, then its sentence, or its category and facts */
  .cxb-list:not(.cxb-tiles) .cxb-row{grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;row-gap:3px;min-height:54px;padding:8px 12px}
  .cxb-list:not(.cxb-tiles) .cxb-n{grid-row:1 / span 2}
  .cxb-list:not(.cxb-tiles) :is(.cxb-cat,.cxb-fact,.cxb-line){display:none}
  .cxb-list:not(.cxb-tiles) .cxb-said{display:block;grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font:10.5px/1.3 var(--cxf-mono);letter-spacing:.06em;color:var(--cxf-muted)}
  .cxb-lined .cxb-list:not(.cxb-tiles) .cxb-said{font:12.5px/1.35 var(--cxf-sans);letter-spacing:0}
  .cxb-tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;padding:8px}
}
