/* Plays tab. Everything is scoped under .pl-root and built on the custom
   properties from styles.css, so light and dark themes both work. */

.pl-root {
  display: grid; gap: 16px; min-width: 0;
  --pl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pl-gold: var(--gold, #c97a1e);
  --pl-soft: var(--surface-2, var(--bg));
  --pl-strong: var(--border-strong, var(--border));
  --pl-accent-soft: var(--accent-soft, var(--pl-soft));
  --pl-danger-soft: var(--danger-soft, transparent);
}
@media (min-width: 720px) { .pl-root { gap: 20px; } }
.pl-root [hidden] { display: none !important; }

.pl-vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.pl-ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Card headers ---- */
.pl-card-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 12px; margin-bottom: 16px;
}
.pl-root .pl-card-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.pl-root .pl-card-head h2:focus { outline: none; }
.pl-summary { margin: 0; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.pl-editing-note {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 10px;
  border-radius: 999px; background: var(--pl-accent-soft); color: var(--text);
  font-size: 0.85rem; font-weight: 600;
}
.pl-form-card { transition: box-shadow 200ms var(--pl-ease), border-color 200ms var(--pl-ease); }
.pl-form-card.is-editing { border-color: var(--accent); box-shadow: 0 0 0 3px var(--pl-accent-soft), var(--shadow, none); }

/* ---- Fields ---- */
.pl-form { display: grid; gap: 20px; }
.pl-root input:not([type="checkbox"]):not([type="radio"]),
.pl-root select,
.pl-root textarea {
  width: 100%; min-width: 0; min-height: 46px;
  transition: border-color 140ms, box-shadow 140ms, background-color 140ms;
}
.pl-root input:not([type="checkbox"]):not([type="radio"]):hover,
.pl-root select:hover,
.pl-root textarea:hover { border-color: var(--muted); }
.pl-root textarea { display: block; resize: vertical; min-height: 68px; line-height: 1.45; }
.pl-root select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938678' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.pl-root input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.pl-root input[type="number"]::-webkit-inner-spin-button,
.pl-root input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pl-root input[type="date"] { font-variant-numeric: tabular-nums; }
.pl-root input[type="search"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938678' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 18px;
}
.pl-root .is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.pl-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.pl-root .pl-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.pl-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pl-optional { font-weight: 400; opacity: 0.85; }
.pl-optional::before { content: "· "; }
.pl-mode {
  font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pl-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
.pl-field-game { grid-column: 1 / -1; }
@media (min-width: 620px) {
  .pl-fields { grid-template-columns: 2fr 1fr 1fr; }
  .pl-field-game { grid-column: auto; }
}
.pl-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---- Messages ---- */
.pl-error {
  display: flex; align-items: flex-start; gap: 6px; margin: 0;
  font-size: 0.875rem; line-height: 1.35; color: var(--danger); font-weight: 600;
}
.pl-error .pl-ico { margin-top: 0.05em; }
.pl-root [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--pl-danger-soft); }
.pl-form-error {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--pl-danger-soft); color: var(--danger); font-weight: 600; font-size: 0.925rem;
}
.pl-form-error:empty { display: none; }

.pl-flash {
  display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; padding: 10px 14px;
  border-radius: 10px; background: var(--pl-accent-soft); color: var(--text); font-weight: 550;
}
.pl-flash:has(#pl-flash:empty) { display: none; }
.pl-flash p { margin: 0; min-width: 0; }
.pl-flash .pl-ico {
  width: 22px; height: 22px; padding: 3px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); stroke-width: 3;
}
.pl-flash.is-error { background: var(--pl-danger-soft); color: var(--danger); }
.pl-flash.is-error .pl-ico { background: none; color: inherit; padding: 0; stroke-width: 2; }

/* ---- Player picker ---- */
.pl-players, .pl-coop { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.pl-players legend, .pl-coop legend {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  width: 100%; padding: 0; margin-bottom: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em;
}
.pl-count { font-weight: 500; font-variant-numeric: tabular-nums; }

.pl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
  padding: 4px 8px 4px 12px; min-height: 56px;
  border: 1px solid var(--border); border-radius: 12px; background: transparent;
  transition: background-color 160ms var(--pl-ease), border-color 160ms var(--pl-ease), box-shadow 160ms var(--pl-ease);
}
.pl-row:hover { border-color: var(--pl-strong); }
.pl-row.is-in { background: var(--pl-soft); border-color: var(--pl-strong); }
.pl-row.is-winner { background: var(--winner); border-color: var(--pl-gold); box-shadow: inset 3px 0 0 var(--pl-gold); }
.pl-row .pl-error { flex-basis: 100%; padding: 2px 0 8px; }

.pl-root label.pl-tick {
  position: relative; display: flex; align-items: center; gap: 10px;
  flex: 1 1 130px; min-width: 0; min-height: 46px;
  color: var(--text); font-size: 1rem; font-weight: 500; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Native inputs stay in the page (focusable, announced) but are drawn by a sibling. */
.pl-root input.pl-check {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  margin: 0; padding: 0; opacity: 0; cursor: pointer;
}
.pl-box {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1.5px solid var(--pl-strong); border-radius: 8px; background: var(--surface);
  color: var(--accent-text);
  transition: background-color 140ms, border-color 140ms, transform 140ms var(--pl-ease);
}
.pl-box .pl-ico { width: 16px; height: 16px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: opacity 120ms, transform 160ms var(--pl-ease); }
.pl-check:checked + .pl-box { background: var(--accent); border-color: var(--accent); }
.pl-check:checked + .pl-box .pl-ico { opacity: 1; transform: none; }
.pl-tick:active .pl-box { transform: scale(0.92); }
.pl-check:focus-visible + .pl-box,
.pl-check:focus-visible + .pl-win-face,
.pl-check:focus-visible + .pl-switch-track { outline: 3px solid var(--accent); outline-offset: 2px; }

.pl-avatar {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--c); color: var(--on);
  font-size: 0.78rem; font-weight: 700; line-height: 1; letter-spacing: 0.02em; user-select: none;
  transition: opacity 160ms, filter 160ms;
}
.pl-avatar.is-small { width: 20px; height: 20px; font-size: 0.6rem; letter-spacing: 0; }
.pl-row:not(.is-in) .pl-avatar { opacity: 0.45; filter: saturate(0.6); }
.pl-name { overflow-wrap: anywhere; line-height: 1.25; transition: color 160ms; }
.pl-row:not(.is-in) .pl-name { color: var(--muted); }
.pl-row.is-in .pl-name { font-weight: 650; }

.pl-extra { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 0; }
.pl-root .pl-extra input.pl-score {
  width: 88px; min-height: 44px; padding: 6px 12px; text-align: right;
  font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums;
}
.pl-root .pl-extra input.pl-score::placeholder { font-size: 0.95rem; font-weight: 400; }

.pl-root label.pl-win { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pl-win-face {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--pl-strong); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  transition: background-color 140ms, border-color 140ms, color 140ms, transform 140ms var(--pl-ease);
}
.pl-win:hover .pl-win-face { color: var(--text); }
.pl-win:active .pl-win-face { transform: scale(0.96); }
.pl-check:checked + .pl-win-face { background: var(--pl-gold); border-color: var(--pl-gold); color: #fff; }
.pl-row.is-winner .pl-win-face { border-color: var(--pl-gold); }
/* Next to a score field the toggle is just the trophy, so the row stays on one line. */
.pl-extra.has-score .pl-win-face { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.pl-extra.has-score .pl-win-face .pl-ico { width: 20px; height: 20px; }
.pl-extra.has-score input.pl-score { width: 80px; }

.pl-root label.pl-switch {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px;
  margin-top: 4px; padding: 0 4px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pl-switch-track {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: var(--pl-strong); transition: background-color 160ms;
}
.pl-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transition: transform 180ms var(--pl-ease);
}
.pl-check:checked + .pl-switch-track { background: var(--accent); }
.pl-check:checked + .pl-switch-track::after { transform: translateX(18px); }
.pl-switch-text { display: grid; line-height: 1.3; color: var(--text); font-size: 0.95rem; font-weight: 600; }
.pl-switch-text small { color: var(--muted); font-size: 0.825rem; font-weight: 400; }

/* ---- Co-op outcome ---- */
.pl-segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 14px; background: var(--pl-soft); border: 1px solid var(--border);
}
.pl-root .pl-segmented label { display: block; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pl-segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.pl-segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  border-radius: 10px; color: var(--muted); font-size: 1rem; font-weight: 650;
  transition: background-color 160ms, color 160ms, box-shadow 160ms;
}
.pl-segmented label:hover span { color: var(--text); }
.pl-segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow, 0 1px 3px rgb(0 0 0 / 0.15)); }
.pl-segmented input[value="won"]:checked + span { background: var(--accent); color: var(--accent-text); }
.pl-segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Result preview ---- */
.pl-result { display: grid; gap: 8px; }
.pl-preview {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  border-radius: 12px; border: 1px dashed var(--pl-strong); background: transparent;
  transition: background-color 200ms var(--pl-ease), border-color 200ms var(--pl-ease);
}
.pl-preview-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pl-soft); color: var(--muted);
  transition: background-color 200ms, color 200ms, transform 260ms var(--pl-ease);
}
.pl-preview-icon .pl-ico { width: 20px; height: 20px; }
.pl-preview-icon > span { display: grid; }
.pl-preview-icon > .pl-i-win, .pl-preview.is-win .pl-preview-icon > .pl-i-wait { display: none; }
.pl-preview.is-win .pl-preview-icon > .pl-i-win { display: grid; }
.pl-preview-body { min-width: 0; display: grid; gap: 1px; }
.pl-preview-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.pl-preview p { margin: 0; color: var(--muted); overflow-wrap: anywhere; line-height: 1.35; }
.pl-preview.is-final { border-style: solid; border-color: var(--border); background: var(--pl-soft); }
.pl-preview.is-final p { color: var(--text); font-weight: 650; font-size: 1.05rem; }
.pl-preview.is-win { background: var(--winner); border-color: var(--pl-gold); }
.pl-preview.is-win .pl-preview-icon { background: var(--pl-gold); color: #fff; transform: rotate(-6deg) scale(1.04); }
.pl-preview.is-win .pl-preview-label { color: var(--text); opacity: 0.7; }

/* ---- Submit ---- */
.pl-actions { display: flex; gap: 10px; }
.pl-root .pl-actions .btn { min-height: 50px; font-size: 1.05rem; border-radius: 12px; }
.pl-root .pl-actions .btn.primary {
  flex: 1; gap: 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), inset 0 -2px 0 rgb(0 0 0 / 0.12);
  transition: background-color 160ms, filter 160ms, transform 80ms;
}
.pl-root .pl-actions .btn.is-saved { pointer-events: none; }
.pl-root .pl-actions .btn.is-saved .pl-ico { stroke-width: 3; }
@media (min-width: 620px) {
  .pl-actions { justify-content: flex-end; }
  .pl-root .pl-actions .btn.primary { flex: none; min-width: 200px; }
}

/* ---- History ---- */
.pl-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pl-field-search { grid-column: 1 / -1; }
@media (min-width: 620px) {
  .pl-filters { grid-template-columns: 1.4fr 1fr 1fr; }
  .pl-field-search { grid-column: auto; }
}
.pl-link-btn {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; margin: -6px 0 -6px -8px; padding: 0 10px 0 8px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
  transition: background-color 140ms;
}
.pl-link-btn:hover { background: var(--pl-accent-soft); }

.pl-day { margin-top: 20px; }
.pl-root .pl-day-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--border);
  font-family: var(--font-body, inherit); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.pl-day-count { font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--muted); font-size: 0.8rem; }

.pl-list { list-style: none; margin: 0; padding: 0; }
.pl-play {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center;
  margin: 0 -8px; padding: 14px 8px; border-radius: 12px;
  transition: background-color 160ms;
}
.pl-play + .pl-play { box-shadow: 0 -1px 0 var(--border); border-radius: 0 0 12px 12px; }
.pl-play.is-editing { background: var(--pl-accent-soft); }
.pl-play.is-new { animation: pl-new 2.2s var(--pl-ease); }
@keyframes pl-new {
  0% { background: var(--winner); transform: translateY(-6px); opacity: 0; }
  12% { transform: none; opacity: 1; }
  45% { background: var(--winner); }
  100% { background: transparent; }
}

.pl-mono {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: hsl(var(--hue, 160) 42% 34%); color: #fff;
  font-family: var(--font-display, inherit); font-size: 1.15rem; font-weight: 700; line-height: 1;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.18); user-select: none;
}
.pl-play-main { min-width: 0; display: grid; gap: 1px; }
.pl-play-game { font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.pl-play-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
.pl-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--pl-soft); color: var(--text); font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.pl-tag.is-winner { background: var(--winner); }
.pl-tag.is-winner .pl-ico { color: var(--pl-gold); }
.pl-tag.is-accent { background: var(--accent); color: var(--accent-text); }

.pl-play-actions { display: flex; gap: 2px; margin-right: -4px; }
.pl-icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 0; border-radius: 10px; background: none; color: var(--muted);
  transition: background-color 140ms, color 140ms, transform 80ms;
}
.pl-icon-btn .pl-ico { width: 20px; height: 20px; stroke-width: 1.8; }
.pl-icon-btn:hover { background: var(--pl-soft); color: var(--text); }
.pl-icon-btn.is-danger:hover { background: var(--pl-danger-soft); color: var(--danger); }
.pl-icon-btn:active { transform: scale(0.94); }

.pl-chips { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; min-height: 28px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 0.875rem; line-height: 1.2; overflow-wrap: anywhere;
}
.pl-chip-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-chip-score::before { content: "·"; margin-right: 6px; font-weight: 400; color: var(--muted); }
.pl-chip.is-winner { background: var(--winner); border-color: var(--pl-gold); font-weight: 650; }
.pl-chip.is-winner .pl-ico { width: 15px; height: 15px; color: var(--pl-gold); }
.pl-notes {
  grid-column: 1 / -1; margin: 0; padding-left: 12px; border-left: 2px solid var(--border);
  color: var(--muted); font-size: 0.925rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line;
}
.pl-notes mark { background: var(--winner); color: var(--text); border-radius: 3px; padding: 0 2px; }

.pl-root .btn.pl-more { width: 100%; margin-top: 16px; gap: 10px; min-height: 48px; }
.pl-more-rest { color: var(--muted); font-weight: 500; font-size: 0.875rem; }
.pl-empty { padding: 28px 8px 16px; }
.pl-root .pl-empty-title { margin: 0; font-size: 1.3rem; }
.pl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* ---- Undo toast ---- */
.pl-toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 25;
  /* Sit above the bottom tab bar on phones. */
  bottom: calc(var(--nav-h, 0px) + 20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 6px; overflow: hidden;
  width: max-content; max-width: min(460px, calc(100vw - 24px)); padding: 7px 7px 7px 18px;
  border-radius: 14px; background: var(--text); color: var(--surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.28), 0 2px 6px rgb(0 0 0 / 0.2);
  font-size: 0.95rem;
}
@media (min-width: 720px) { .pl-toast { bottom: 28px; } }
.pl-toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-right: 6px; line-height: 1.3; }
.pl-toast-msg b { font-weight: 650; }
.pl-toast-btn, .pl-toast-close {
  flex: none; min-height: 40px; cursor: pointer; border: 0; border-radius: 10px;
  color: inherit; background: color-mix(in srgb, currentColor 16%, transparent);
  transition: background-color 140ms, transform 80ms;
}
.pl-toast-btn { padding: 0 16px; font-weight: 700; }
.pl-toast-close { display: grid; place-items: center; width: 40px; padding: 0; background: none; }
.pl-toast-btn:hover, .pl-toast-close:hover { background: color-mix(in srgb, currentColor 28%, transparent); }
.pl-toast-btn:active, .pl-toast-close:active { transform: scale(0.96); }
.pl-root .pl-toast :focus-visible { outline: 3px solid var(--surface); outline-offset: -3px; border-radius: 10px; }
.pl-toast-bar { display: none; }

/* ---- Motion (the shared reduced-motion rule in styles.css switches all of this off) ---- */
@media (prefers-reduced-motion: no-preference) {
  .pl-extra, .pl-flash.is-fresh, .pl-row > .pl-error, .pl-field > .pl-error, .pl-players > .pl-error, .pl-coop .pl-error {
    animation: pl-rise 200ms var(--pl-ease);
  }
  .pl-form-error { animation: pl-rise 200ms var(--pl-ease); }
  .pl-toast.is-fresh { animation: pl-toast-in 260ms var(--pl-ease); }
  .pl-toast-bar {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: currentColor; opacity: 0.35; transform-origin: left center;
    animation: pl-countdown var(--pl-life, 10s) linear var(--pl-elapsed, 0ms) forwards;
  }
  .btn.is-saved .pl-ico { animation: pl-pop 320ms var(--pl-ease); }
}
@keyframes pl-rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes pl-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes pl-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes pl-countdown { to { transform: scaleX(0); } }
