/* Shared UI for the long distance love-note tools (engine-u20-love-notes.js). Tokens only, so dark mode works. */
.tool .lv-ib {
  width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; border-radius: 22px; padding: 0;
  background: var(--surface); color: rgb(var(--ink) / .75); box-shadow: inset 0 0 0 1px rgb(var(--ink) / .1);
  transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.tool .lv-ib .tool-icon { width: 20px; height: 20px; }
.tool .lv-ib:active { transform: scale(.96); }
@media (hover: hover) { .tool .lv-ib:hover { color: rgb(var(--ink)); background: var(--surface-2); } }
.tool .lv-ib[aria-pressed="true"] { color: var(--link); background: var(--surface-2); }
.tool .lv-ib[aria-pressed="true"] .tool-icon { fill: currentColor; }
.tool .lv-ib.is-playing { color: #fff; background: rgb(var(--accent)); box-shadow: none; }
.tool .lv-ib.lv-ib-solid { background: rgb(var(--ink)); color: var(--surface); box-shadow: none; }

.tool .lv-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 50; margin: 0;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 20px; background: rgb(var(--ink)); color: var(--surface);
  font-size: 15px; line-height: 20px; font-weight: 750; box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.tool .lv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.tool .lv-seg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool .lv-seg { display: inline-flex; padding: 3px; border-radius: 22px; background: rgb(var(--ink) / .07); }
.tool .lv-seg button {
  min-height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; font-weight: 750; color: rgb(var(--ink) / .6);
  background: transparent; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tool .lv-seg button[aria-checked="true"] { background: var(--surface); color: rgb(var(--ink)); box-shadow: 0 1px 3px rgb(var(--ink) / .14); }

@media (prefers-reduced-motion: reduce) {
  .tool .lv-ib, .tool .lv-toast { transition: none; }
}
.tool .lv-half { font-size: 13px; line-height: 1; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tool .lv-ib .tool-icon[viewBox] path[d^="M5 12h.01"] { stroke-width: 3.2; }
