/* Pins and "Discuss" (public/pins.js). Only transform and opacity animate. */
.pin-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font: inherit; font-size: 12px; line-height: 1.2; padding: 4px 9px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease); }
.pin-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.pin-btn:active { transform: scale(.96); }
.pin-btn:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.pin-btn.on { background: var(--butter-soft); border-color: var(--butter-edge); color: var(--butter-ink); }
.pin-btn.on svg { fill: currentColor; }
.pin-btn.discuss { color: var(--pen); }

.urow-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
/* A row's small buttons wait behind "..." on their own line under the text, so they never squeeze it. */
.urow:has(> .row-more) { flex-wrap: wrap; row-gap: 8px; }
.urow > .row-more { flex: 1 0 100%; min-width: 0; margin: 0; }
.row-more { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 6px; }
.row-more .urow-actions { margin: 0; flex: 1 1 auto; justify-content: flex-end; }
.more-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); cursor: pointer; transition: transform .2s var(--ease), color .2s var(--ease); }
.more-btn:hover, .row-more.open .more-btn { color: var(--ink); border-color: var(--ink-3); }
.more-btn:active { transform: scale(.94); }
.more-btn:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }

/* In the chat a pin sits quietly in the time line until it is pointed at or on. */
.msg-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-meta .pin-btn { font-size: 11px; padding: 2px 7px; opacity: .55; }
.msg-meta .pin-btn.on, .msg-meta .pin-btn:hover, .msg-meta .pin-btn:focus-visible { opacity: 1; }
/* With a mouse, a message's Pin and Reply only show while it is pointed at, so the chat reads as a chat. A pinned
   message keeps its lit pin; a touchscreen has no pointing, so there they stay (and holding a message replies). */
@media (hover: hover) {
  .msg-meta .pin-btn:not(.on) { opacity: 0; transition: opacity .2s var(--ease); }
  .msg-row:hover .msg-meta .pin-btn, [data-key^="msg:"]:hover .msg-meta .pin-btn, .msg-meta:focus-within .pin-btn { opacity: .75; }
  .msg-meta .pin-btn:hover, .msg-meta .pin-btn:focus-visible { opacity: 1; }
}

.about-quote { max-width: 100%; font-size: 12px; line-height: 1.35; color: var(--ink-2); border-left: 3px solid var(--butter); padding: 2px 0 2px 8px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.about-quote span { color: var(--ink-3); }

.about-bar { pointer-events: auto; width: min(720px, 100%); display: flex; }
.about-bar:empty { display: none; }
.about-chip { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; background: var(--butter-soft); color: var(--butter-ink); border: 1px solid var(--butter-edge); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; box-shadow: 0 10px 20px -16px rgba(58,42,0,.6); animation: rise .3s var(--ease) both; }
.about-chip > svg, .about-label { flex: none; }
.about-label { opacity: .8; }
.about-chip b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-x { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
/* The x looks small but takes a 44px tap. */
.about-x::after { content: ""; position: absolute; inset: -9px; }
/* The default reply changes with every answer from Momo; it settles in place without rising each time. */
.about-chip.auto { animation: none; }
.about-x:hover { background: rgba(58,42,0,.08); }
.about-x:focus-visible { outline: 2px solid var(--pen); outline-offset: 1px; }
.dock .about-bar { width: 100%; }

/* Pinned strip on Today: a row that scrolls sideways inside itself, never the page. */
.pstrip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; padding: 2px 2px 8px; }
.pcard { flex: 0 0 272px; scroll-snap-align: start; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--lift); animation: rise .3s var(--ease) both; }
.pcard-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.pcard-kicker { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-top time { margin-left: auto; flex: none; }
.pcard-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-actions .unpin { margin-left: auto; }

@media (max-width: 860px) {
  .pcard { flex-basis: 78%; }
  .urow > .row-more { margin-left: 0; }
  .more-btn { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .about-chip { animation: none; }
}
