.line {
  display: flex;
  align-items: center;
  gap: calc(var(--base-size) * 2);
  padding: calc(var(--base-size) * 1) 0;
  font-size: calc(var(--base-size) * 3.5);
  line-height: calc(var(--base-size) * 3.5);
  cursor: pointer;
}
.bar-list .line { padding: calc(var(--base-size) * 2) calc(var(--base-size) * 3); }
.bar-list .line:hover { background: var(--color-secondary-background); }
.bar-list .line.on    { background: var(--color-tertiary-background); }

.hit, .lit { box-sizing: content-box; padding: calc(var(--base-size) * 2); margin: calc(-2 * var(--base-size)); }
.hit { cursor: pointer; opacity: .5; }
:where(.line) .hit { display: none; }
:where(.line.on, .hits .line) .hit { display: block; }
@media (hover: hover) { .line:not(:hover) > .on-hover { visibility: hidden; } }
/* an icon that becomes its verb under the pointer: `at-rest` stands until the line is hovered, `in-place` takes its spot */
@media (hover: hover) { .line:not(:hover) > .in-place, .line:hover > .at-rest { display: none; } }
@media (hover: none) { .line > .at-rest { display: none; } }
.hit.off { opacity: .2; }
.hit:hover, .hit.on { opacity: 1; }
/* the icon under the pointer wears its box, and an open tab's icon, or the words that open it, keep it.
   webkit cuts an svg's drawing to any border-radius it has, so an icon's box is a painted circle instead */
.hit:hover, .hit.on, .lit {
  --box: color-mix(in srgb, var(--color-primary-foreground) 9%, transparent);
  border-radius: calc(var(--base-size) * 3);
  background: var(--box);
}
svg:is(.hit:hover, .hit.on, .lit) { border-radius: 0; background: radial-gradient(closest-side, var(--box) calc(100% - 1px), transparent); }

.line:has(.line-value) .line-label { flex: 0 1 auto; }
.chat-words { flex: 1 1 auto; max-height: calc(var(--base-size) * 3.5); }
.chat-words .line-label { flex: 0 0 auto; max-width: 100%; }

.line.open { align-items: flex-start; }
.line.done { opacity: .5; }
.line.wrap { align-items: flex-start; align-content: flex-start; row-gap: var(--base-size); padding: var(--base-size); }
.line.wrap.on { background: var(--color-secondary-background); }

.line.wrap .chat-words { max-height: none; flex: 1 1 0; }
.line.wrap .line-label { flex: 1 1 auto; }
.line.wrap .chat-place { order: 1; flex: 0 0 100%; font-size: calc(var(--base-size) * 3); line-height: calc(var(--base-size) * 3); }

html, [data-theme=light] {
  --lift-1: 0 2px 8px 0 rgba(0, 0, 0, .06);
  --lift-2: 0 4px 16px 0 rgba(0, 0, 0, .09);
  --lift-3: 0 6px 24px 0 rgba(0, 0, 0, .12);
}
[data-theme=dark] {
  --lift-1: 0 2px 8px 0 rgba(0, 0, 0, .3);
  --lift-2: 0 4px 16px 0 rgba(0, 0, 0, .35);
  --lift-3: 0 6px 24px 0 rgba(0, 0, 0, .45);
}
.card-thumb { background-clip: padding-box; border-color: color-mix(in srgb, var(--color-primary-foreground) 8%, transparent); transition: box-shadow .15s ease, transform .15s ease; }
[data-pile] > * { transition: transform .25s ease; }
.hover-group:hover .card-thumb { box-shadow: var(--lift-1); transform: scale(1.01) rotate(.4deg); }
.hover-group:nth-child(even):hover .card-thumb { transform: scale(1.01) rotate(-.4deg); }
.hover-group:active .card-thumb { box-shadow: var(--lift-2); }
.hover-group.on .card-thumb { box-shadow: var(--lift-3); }

.flying { z-index: 20; pointer-events: none; will-change: transform; }
.hover-group.flying .card-thumb { transform: none; box-shadow: var(--lift-3); }
.flying[data-pile] > * { box-shadow: var(--lift-2); }
.hover-group .card-thumb.bare { border-color: transparent; box-shadow: none; }

@keyframes focus-in { from { filter: blur(12px); } }
#ask:not(.hidden) { animation: focus-in .4s ease; }
#ask-ph { font-size: 3.5rem; opacity: .35; color: #fff; }
#ask-ph > div { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
#ask-ph span { transition: opacity .5s, filter .5s; }
#ask-say { font-size: 1.25rem; opacity: .35; color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
#ask-say:empty { display: none; }
#ask-ph .caret { display: inline-block; vertical-align: -.1em; width: .05em; height: .9em; background: currentColor; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@starting-style { #ask-ph span { opacity: 0; filter: blur(12px); } }
#ask:has(#ask-input:not(:placeholder-shown)) #ask-ph { opacity: 0; }

@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }
.moving { animation: breathe 1.8s ease-in-out infinite; }

@property --fill { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.filling {
  animation: none;
  transition: --fill .3s linear;
  mask-image: linear-gradient(to top, #000 calc(var(--fill) - 3%), rgb(0 0 0 / .3) calc(var(--fill) + 3%));
}
.pin { position: fixed; inset: 0; z-index: 9; display: flex; background: var(--color-primary-background); overflow: auto; pointer-events: auto; }
#stage, .pin { transition: filter .3s ease; }
.dimmed { filter: blur(calc(var(--base-size) * 9)); pointer-events: none; }
#stage:has(.pin) { filter: none; overflow: visible; }
body:has(.pin.dimmed) .bike-pins { filter: blur(calc(var(--base-size) * 9)); }
body:has(.pin.dimmed) .bike-pins > * { pointer-events: none !important; }
.bike-grid > :has(.pin) { z-index: 9; transform: none !important; }
#stage .card-thumb:has(> .pin) { overflow: visible; transform: none; transition: none; }

.card-thumb:empty { aspect-ratio: 16 / 9; }
.card-thumb:has(> .own) { width: fit-content; max-width: 100%; }
.moving > .card-thumb:empty, #stage.moving:empty { background: var(--color-secondary-background); }
.filling > .card-thumb:empty, #stage.filling:empty { background: linear-gradient(to top, var(--color-secondary-background) calc(var(--fill) - 3%), transparent calc(var(--fill) + 3%)); }

.message-body > * { margin-block: 0; }
.message-body > blockquote { padding-left: calc(var(--base-size) * 2); border-left: 2px solid currentColor; opacity: .7; }

.avatar {
  background: var(--avatar-bg, var(--color-secondary-background));
  color: var(--avatar-ink, inherit);
  /* a face is a button's size, 32, and its dot an icon's, 16 */
  font-size: calc(var(--base-size) * 4);
  line-height: 1;
}
.avatar-dot {
  width: calc(var(--base-size) * 4);
  height: calc(var(--base-size) * 4);
  font-size: calc(var(--base-size) * 2);
  transition: scale .12s ease;
}
.avatar-dot:hover {
  scale: 2;
  z-index: 1;
}
.faces > * + * { margin-inline-start: calc(var(--base-size) * -1); }
/* no one there is no row: an empty one would still take the bar's gap */
.faces:empty { display: none; }
.avatar-dot:not(:hover) :is(.avatar-letter, .avatar-eye) {
  display: none;
}
.bike-cursors > .avatar {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: auto;
  transition: translate .1s linear, scale .12s ease;
}
.avatar-lead {
  outline: 1.5px solid var(--avatar-bg, currentColor);
  outline-offset: 2px;
}
.avatar:has(.avatar-img) {
  background: none;
}
.avatar:has(.avatar-img) .avatar-letter {
  display: none;
}
.face-home:not(:has(.avatar-img)):hover {
  background: var(--face-ask, var(--avatar-bg));
}
.face-home:not(:has(.avatar-img)):hover .avatar-letter {
  display: none;
}
.face-home:not(:has(.avatar-img)):hover .eyes-ask {
  display: block;
  animation: eyes-open .32s cubic-bezier(.2,.8,.2,1);
}
@keyframes eyes-open {
  from { transform: scaleY(.05); }
}
.mirror-veil {
  z-index: 2147483646;
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: veil-in .3s ease-out;
}
.mirror-leaving {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background .3s ease-in;
}
.mirror-leaving > :not(.mirror) {
  visibility: hidden;
}
@keyframes veil-in {
  from { background: transparent; }
}
.mirror-video {
  transform: scaleX(-1);
  opacity: 0;
  transition: opacity .5s ease;
}
.mirror-on .mirror-video {
  opacity: 1;
}
.mirror-taking {
  animation: shutter .35s ease-out;
}
@keyframes shutter {
  30% { scale: .96; filter: brightness(1.6); }
}

.doc { max-width: calc(var(--base-size) * 180); margin-inline: auto; }

.research { --rail: calc(var(--base-size) * 60); --rail-gap: calc(var(--base-size) * 12); max-width: calc(var(--base-size) * 180 + var(--rail) + var(--rail-gap)); container-type: inline-size; }
.research-refs { display: flex; flex-wrap: wrap; gap: calc(var(--base-size) * 4); margin-block: calc(var(--base-size) * 4); white-space: normal; }
.research-ref { width: calc(var(--base-size) * 30); min-width: 0; }
.research-ref .text-s { line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@container (min-width: 700px) {
  .research > div { padding-inline-end: calc(var(--rail) + var(--rail-gap)); }
  .research-refs { flex-direction: column; flex-wrap: nowrap; float: inline-end; clear: inline-end; width: var(--rail); margin-block: 0 calc(var(--base-size) * 4); margin-inline-end: calc(-1 * (var(--rail) + var(--rail-gap))); }
  .research-ref { width: 100%; }
}

[data-block]:not([data-block="code"]) { white-space: pre-wrap; }

[data-block] {
  padding-inline: var(--base-size);
  margin-inline: calc(-1 * var(--base-size));
  border-radius: var(--base-size);
}
:is([data-block], [data-block] li)[data-bike-selected] {
  outline: none !important;
  background: var(--color-tertiary-background);
}

.bike-grid > * { position: absolute; }
.bike-grid > .corners { position: fixed; inset: 0; pointer-events: none; animation: corners-in .2s ease-in; }
.corners img { position: absolute; width: clamp(3rem, 7vw, 6.5rem); aspect-ratio: 338 / 376; mix-blend-mode: multiply; opacity: .9; }
.corners img:nth-child(1) { top: 2vmin; left: 2vmin; }
.corners img:nth-child(2) { top: 2vmin; right: 2vmin; transform: scaleX(-1); }
.corners img:nth-child(3) { bottom: 2vmin; left: 2vmin; transform: scaleY(-1); }
.corners img:nth-child(4) { bottom: 2vmin; right: 2vmin; transform: scale(-1); }
[data-theme=dark] .corners img { filter: invert(1); mix-blend-mode: screen; }
@keyframes corners-in { from { opacity: 0; } }
.card-plus .spoke { opacity: 0; transition: opacity .4s ease; }
.card-plus circle { stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset .4s ease; }
.hover-group:hover .card-plus .spoke { opacity: 1; transition-delay: .5s; }
.hover-group:hover .card-plus .spoke + .spoke { transition-delay: .9s; }
.hover-group:hover .card-plus circle { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease-in-out 1.4s; }

/* the bar stands at the top in the middle: its face stays while you move, and its card comes while it's open or a
   face is carried. closed, the faces stand at the very middle; open, they slide aside to where the card's first face is */
.bike-bar { top: 0; left: 50%; translate: -50% 0; z-index: 9999; max-width: 100vw; transition: opacity .32s ease, filter .32s ease; }
/* while files are picked, what they can do takes the bar's place: the bar goes, and the picked card stands where it stood */
.bike-bar > .bar-face { opacity: 0; left: 50%; translate: -50% 0; transition: opacity .2s, left .32s cubic-bezier(.2,.8,.2,1), translate .32s cubic-bezier(.2,.8,.2,1); }
:is(.bar-open, .bar-held) > .bar-face { left: calc(var(--base-size) * 4); translate: 0 0; }
@media (max-width: 768px) { :is(.bar-open, .bar-held) > .bar-face { left: calc(var(--base-size) * 3); } }
.bar-face > * { pointer-events: auto; }
:is(body.reaching, body.stranger) .bike-bar > .bar-face, :is(.bar-open, .bar-held) > .bar-face { opacity: 1; }
:is(.bar-open, .bar-held) .bar-peers { display: none; }
/* no one else here is no row: an empty one would still take the face's gap, and a lone face would sit off its middle */
.bar-peers:empty { display: none; }
/* the bar holds faces, and faces are round: its corners are too, in every browser, never a squircle's */
.bike-bar .bar-card { corner-shape: round; }
.bar-card {
  max-height: 100%;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(calc(var(--base-size) * -1.5));
  transition: opacity .32s ease, filter .32s ease, transform .32s ease;
}
:is(.bar-open, .bar-held) > .bar-card { opacity: 1; filter: none; transform: none; pointer-events: auto; }
/* one line between whatever the bar holds: its crumb, the open tab, each part of the tab */
.bar-card > * + *, .bar-list > :not(.hidden) ~ * { border-top: 1px solid var(--color-secondary-background); margin-top: calc(var(--base-size) * 2); padding-top: calc(var(--base-size) * 2); }
/* the crumb's line stands as close under it as the card's edge stands over it */
.bar-card > * + * { margin-top: var(--base-size); }
/* what holds nothing takes no room, its line with it */
.bar-list:not(:has(> :not(.hidden, :empty))), #beside:empty { display: none; }
/* in the bar a button is its own 32 box, a pill, not a circle borrowed past its icon: they stand side by side,
   spaced by their size. so do the crumb's, the gap between them taken back: two touch as the tools do, and a
   word stands as far from either */
.bar-tools .hit { margin: 0; }
.bar-crumb > .hit { margin-inline: calc(-1 * var(--base-size)); }
.bar-crumb > .bar-tools { margin-inline-start: calc(-1 * var(--base-size)); }
/* no tools is no row: an empty one would still take the crumb's gap, past the face */
.bar-tools:empty { display: none; }
.bike-bar :is(.hit:hover, .hit.on, .lit):not(svg) { border-radius: calc(var(--base-size) * 6); }
.unread { --dot: calc(var(--base-size) * 1.5); width: var(--dot); height: var(--dot); }
/* inside the @'s box, its middle just above the icon's top right corner; it takes no room in the row */
.bar-tools > .unread { pointer-events: none; align-self: flex-start; margin-left: calc(-1 * (var(--base-size) * 2 + var(--dot) / 2)); margin-right: calc(var(--base-size) * 2 - var(--dot) / 2); translate: 0 calc(var(--base-size) * 1.5 - 50%); }
.bike-bar[data-tab="mail"] .bar-card { min-width: min(calc(var(--base-size) * 100), calc(100vw - var(--base-size) * 6)); }
.bike-bar[data-tab="mail"] .bar-list { overflow: hidden; }
.bike-bar[data-tab="time"] .bar-card { width: min(calc(var(--base-size) * 240), calc(100vw - var(--base-size) * 6)); height: 100%; }
.bike-bar[data-tab="time"] .bar-list { flex: 1 1 0; overflow: hidden; }

/* a small face stands in the middle of a big face's column, and words with no face start past it */
#beside .line > .faces, #thread .avatar { margin-inline: calc(var(--base-size) * 1.5); }
#thread .avatar { margin-top: var(--base-size); }
#thread .indent { padding-left: calc(var(--base-size) * 8); }
#thread > :nth-child(2):empty { display: none; }
.bike-picks:empty { display: none; }

.bike-bar, .bike-grid { user-select: none; -webkit-user-select: none; }
.bike-bar input, .bike-bar textarea, .bike-bar [contenteditable],
.bike-grid input, .bike-grid textarea, .bike-grid [contenteditable] { user-select: text; -webkit-user-select: text; }
/* a file opened from its card is still in the grid, and its words are picked as anywhere */
.bike-grid .pin { user-select: text; -webkit-user-select: text; }

.bike-pdf-page a { position: absolute; z-index: 1; }
.textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; letter-spacing: normal; word-spacing: normal; -webkit-text-size-adjust: none; text-size-adjust: none; transform-origin: 0 0; z-index: 0; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; -webkit-user-select: text; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height)); --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.textLayer .markedContent { display: contents; }
.textLayer ::selection { background: rgba(0, 0, 255, .25); color: transparent; }

/* where a moved card or chat would land: a crumb outlined, a card lifted, a day or the grid it's already in left as they are */
[data-bike-hover] { outline: 2px solid var(--color-accent-primary); outline-offset: -2px; }
.bike-grid > .hover-group[data-bike-hover] > .card-thumb { transform: scale(1.04); box-shadow: var(--lift-2); }
:is(.bike-grid, .bike-grid > .hover-group, [data-day])[data-bike-hover]:not([data-bike-selected]) { outline: none !important; }
.bar-word { cursor: text; }
.bar-word[contenteditable="plaintext-only"] { outline: none; text-decoration: underline; }
