/* Search and quick look (find.js), as each of Glance's skins draws them in the dark: the sheet in the middle of the
   screen (src/ui/find/window.rs) and a thing looked at larger over it (src/ui/look.rs). Their colours and faces are
   the workbench's (.gs in bench.css). Sizes are Glance's DIPs. */

/* ---- the sheet, and quick look's: glass's a glass sheet as a lane is (.gs-glass in bench.css), chart paper's its
   paper ruled round with a soft shadow, Windows 11's acrylic with a dark hairline (window.rs `paint`) ---- */
.gs-sheet, .gs-look { position: absolute; border-radius: 24px; }
/* (Each a window of its own: what is in one never over the other. What is looked at over the sheet.) */
.gs-sheet { z-index: 0; }
.gs-look { z-index: 1; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
[data-look="paper"] :is(.gs-sheet, .gs-look) {
  border-radius: 16px; background: #14231f; box-shadow: 0 0 0 1px #263732, 0 8px 16px rgba(0, 0, 0, 0.3);
}
[data-look="win11"] :is(.gs-sheet, .gs-look) {
  border-radius: 8px; background: rgba(44, 44, 44, 0.78);
  -webkit-backdrop-filter: blur(30px) saturate(1.25); backdrop-filter: blur(30px) saturate(1.25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.35);
}
/* (The parts between its field, its kinds, its list and its foot ruled off.) */
.gs-rule { position: absolute; background: var(--gb-rule); pointer-events: none; }

/* ---- the field: what is searched for, typed at 19 DIPs, its caret, the clear button once something is typed ---- */
.gs-mark2 { color: var(--gb-text2); }
.gs .gs-input { position: absolute; margin: 0; padding: 0; border: 0; outline: none; background: none; color: var(--gb-text);
  caret-color: var(--gb-text); font: inherit; font-size: 19px; font-weight: 400; line-height: 56px;
  -webkit-user-select: text; user-select: text; cursor: text; }
.gs .gs-input::placeholder { color: var(--gb-text3); opacity: 1; }
.gs .gs-input[readonly] { pointer-events: none; }
.gs-caret { position: absolute; top: 17px; width: 1px; height: 22px; background: var(--gb-text); pointer-events: none; }
.gs-clear { position: absolute; color: var(--gb-text3); }
.gs-clear::before { content: ""; position: absolute; inset: 0 4px; border-radius: min(var(--gb-control), 8px); }
.gs-clear:hover::before { background: var(--gb-hover); }
.gs-clear:hover { color: var(--gb-text2); }

/* ---- its kinds, the one chosen marked as the panel's tabs are (window.rs `paint_chips`): on glass a pill of glass, on
   Windows 11 the accent's bar under it, on chart paper an ink line under it; the others' names fainter ---- */
.gs-chips { position: absolute; display: flex; align-items: flex-start; gap: 4px; padding: 7px 14px 0; }
.gs-chip { position: relative; z-index: 1; height: 26px; padding: 0 12px; font-size: 12.5px; font-weight: 400; line-height: 26px;
  color: var(--gb-text2); white-space: nowrap; }
.gs-chip:hover, .gs-chip[aria-pressed="true"] { color: var(--gb-text); }
.gs-chip-mark { position: absolute; top: 7px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.12); pointer-events: none; }
.gs-chip-mark::after { content: ""; position: absolute; inset: 0.5px; border-radius: inherit; padding: 1px;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
[data-look="paper"] .gs-chips { gap: 20px; padding-left: 26px; }
[data-look="paper"] .gs-chip { padding: 0; }
[data-look="paper"] .gs-chip-mark { top: 31px; height: 2px; border-radius: 0; background: var(--gb-text); }
[data-look="win11"] .gs-chip-mark { top: 30px; height: 3px; border-radius: 1.5px; background: var(--gb-accent); }
:is([data-look="paper"], [data-look="win11"]) .gs-chip-mark::after { content: none; }

/* ---- what is found: headings, names, the line of those not listed ---- */
.gs-list { position: absolute; overflow: hidden; }
.gs-lines { position: absolute; left: 0; top: 0; width: 100%; }
.gs-scroll { position: absolute; border-radius: 1.5px; background: var(--gb-text3); opacity: 0.6; }
.gs-head { position: absolute; display: flex; align-items: center; padding: 0 18px; font-size: 11.5px; font-weight: 600;
  color: var(--gb-text3); white-space: nowrap; }
.gs-head-more, .gs-head-all { margin-left: auto; font-weight: 400; }
.gs-head-all { color: var(--gb-accent); }
[data-look="paper"] .gs-head-all { color: var(--gb-text); }
.gs-others, .gs-none { position: absolute; display: flex; align-items: center; font-size: 11.5px; font-weight: 400; color: var(--gb-text3); white-space: nowrap; }
.gs-none { justify-content: center; font-size: 13px; }
.gs-row { position: absolute; }
.gs-row::before { content: ""; position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; border-radius: 6px; }
.gs-row.picked::before { background: rgba(255, 255, 255, 0.08); }
[data-look="paper"] .gs-row.picked::before { background: var(--gb-hover); }
/* (The name picked marked by the accent's bar at its left: window.rs `paint_row`.) */
.gs-row.picked::after { content: ""; position: absolute; left: 6px; top: calc(50% - 8px); width: 3px; height: 16px; border-radius: 1.5px; background: var(--gb-accent); }
[data-look="paper"] .gs-row.picked::after { background: var(--gb-text); }
.gs-icon { position: absolute; }
.gs-icon svg, .gs-icon img { display: block; }
.gs-thumb { border-radius: 3px; object-fit: cover; }
.gs-drawn { position: absolute; color: var(--gb-text2); stroke-width: 1.75; }
.gs-row-name, .gs-row-detail { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-row-name { font-size: 13.5px; font-weight: 400; color: var(--gb-text); }
.gs-row.best .gs-row-name { font-size: 15px; font-weight: 600; }
.gs-row-detail { font-size: 11.5px; font-weight: 400; color: var(--gb-text3); }
/* (Where what is typed meets a name: on the accent, a little rounded; on chart paper underlined.) */
.gs-name mark { color: inherit; background: rgba(153, 235, 255, 0.3); border-radius: 3px; padding: 0 1px; margin: 0 -1px; }
[data-look="paper"] .gs-name mark { background: none; padding: 0; margin: 0; border-radius: 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gs-meta { position: absolute; font-size: 11.5px; font-weight: 400; color: var(--gb-text3); text-align: right; white-space: nowrap; }
.gs-foot { position: absolute; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px;
  font-size: 11.5px; font-weight: 400; color: var(--gb-text3); white-space: nowrap; }
.gs-foot-l, .gs-foot-r { overflow: hidden; text-overflow: ellipsis; }

/* ---- quick look: its bar (its name, what is said of it, its buttons) and its body (look.rs `paint_bar`,
   `paint_body`). Windows 11's bar a little deeper than its sheet ---- */
.gs-look-band { position: absolute; background: rgba(0, 0, 0, 0.18); pointer-events: none; }
.gs-titles { position: absolute; }
.gs-look-title, .gs-look-about { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-look-title { height: 18px; font-size: 13px; font-weight: 650; color: var(--gb-text); }
.gs-look-about { font-size: 11.5px; font-weight: 400; color: var(--gb-text3); }
.gs-buttons { position: absolute; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.gs-button { position: relative; height: 30px; padding: 0 11px 0 31px; border-radius: 4px; font-size: 12.5px; font-weight: 600;
  line-height: 30px; white-space: nowrap; color: var(--gb-text); background: var(--gb-track); box-shadow: inset 0 0 0 1px var(--gb-rule); }
.gs-button .ic { left: 11px; top: 8px; stroke-width: 2; }
.gs-button.main { color: rgba(0, 0, 0, 0.9); background: var(--gb-accent); box-shadow: none; }
[data-look="paper"] .gs-button { border-radius: 6px; }
[data-look="paper"] .gs-button.main { color: #14231f; background: var(--gb-text); }
/* (On glass a pill, the main one of glass.) */
.gs-glass .gs-button { border-radius: 15px; }
.gs-glass .gs-button.main { color: var(--gb-text); background: rgba(255, 255, 255, 0.12); }
.gs-glass .gs-button.main::after { content: ""; position: absolute; inset: 0.5px; border-radius: inherit; padding: 1px;
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gs-count { margin-right: 4px; font-size: 11.5px; font-weight: 400; color: var(--gb-text3); white-space: nowrap; }
.gs-body { position: absolute; overflow: hidden; }
/* (A document shown on its previewer's pane: the sheet's colour laid over black.) */
.gs-pane { background: #282a32; }
[data-look="paper"] .gs-pane { background: #14231f; }
[data-look="win11"] .gs-pane { background: #2b2b2b; }
/* (The made-up document: a white page, its title and lines of words; a worksheet's cells.) */
.gs-page { position: absolute; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); padding: 9% 10%; overflow: hidden; }
.gs-page-title { margin-bottom: 7%; color: #1f2328; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-page-lines i { display: block; height: 6px; margin-bottom: 10px; border-radius: 3px; background: #d5dae0; }
.gs-page-lines i.gap { height: 0; margin-bottom: 14px; }
.gs-page.sheet .gs-page-lines i { width: 100% !important; height: 18px; margin: 0; border-radius: 0; border-bottom: 1px solid #d5dae0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #d5dae0 calc(25% - 1px) 25%); }
.gs-picture { position: absolute; display: block; }
.gs-words { padding: 2px 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--gb-text); white-space: pre-wrap;
  overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.gs-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gb-text3); }
.gs-lrow { position: absolute; }
.gs-lrow:hover { background: var(--gb-hover); }
.gs-lrow-name, .gs-lrow-small { position: absolute; top: 0; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-lrow-name { font-size: 13px; font-weight: 400; color: var(--gb-text); }
.gs-lrow-small { font-size: 12px; font-weight: 400; color: var(--gb-text3); }
.gs-lrow-small.end { text-align: right; }
.gs-cell { position: absolute; background: var(--gb-track); }
.gs-cell-name { position: absolute; font-size: 11.5px; font-weight: 400; color: var(--gb-text3); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
