/* ==========================================================================
   h3-history.css
   --------------------------------------------------------------------------
   ظاهرِ تازه‌ی بخشِ «سوابق رندرهای شما» — مشترک بین هر سه صفحه:
       /h3  (ویدیوساز H3)   ·   /h3avatar (آواتار H3)   ·   /h3reference (مرجع)

   ایده‌ی طراحی:
     • هر سابقه فقط یک «قابِ تصویر» است (فریمِ خودِ همان ویدیو) + عنوان +
       دکمه‌ی «نمایش ویدیو». هیچ ویدیویی داخلِ فهرست لود نمی‌شود، پس فهرست
       سبک و تمیز می‌ماند.
     • با زدنِ «نمایش ویدیو» یک پنجره‌ی شیشه‌ای با انیمیشنِ نرم باز می‌شود،
       ویدیو همان‌جا پخش می‌شود و دکمه‌ی «دانلود ویدیو» دقیقاً وسطِ پایینِ
       همان پنجره است.
     • دکمه‌ی حذف برای هر سابقه + دکمه‌ی «پاک‌کردنِ همه‌ی سوابق»، و هر دو با
       یک پنجره‌ی تأییدِ کوچک (تأیید / انصراف).

   همه‌ی رنگ‌ها با fallback نوشته شده‌اند تا در هر سه صفحه با پالتِ خودِ
   صفحه هماهنگ شوند.
   ========================================================================== */

/* ---------- رنگ‌های محلیِ این بخش ---------- */
.h3hx,
.h3hx-modal,
.h3hx-ask,
.h3hx-toast {
  --hx-a1: var(--accent-gold, var(--accent-primary, #4A6CFA));
  --hx-a2: var(--accent-cyan, var(--accent-secondary, #0FD4A8));
  --hx-ink: var(--text-primary, #1A202C);
  --hx-dim: var(--text-secondary, #626F86);
  --hx-line: var(--panel-border, #EAEFF7);
  --hx-surface: var(--panel-bg, #FFFFFF);
  --hx-soft: var(--input-bg, #F6F8FB);
  --hx-danger: var(--danger-color, #E5484D);
  --hx-grad: linear-gradient(105deg, var(--hx-a1), var(--hx-a2));
  font-family: var(--app-font, inherit);
}

/* ==========================================================================
   ۱) ظرفِ سوابق
   ========================================================================== */
.h3hx { width: 100%; display: block; }
.h3hx[hidden] { display: none !important; }

/* --- نوارِ بالا: تعداد + پاک‌کردنِ همه --- */
.h3hx-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin: 0 0 .95rem; padding: .55rem .7rem .55rem .55rem;
  border-radius: 999px;
  background: var(--hx-soft);
  border: 1px solid var(--hx-line);
}
.h3hx-count {
  display: inline-flex; align-items: center; gap: .45rem; min-width: 0;
  font-size: .78rem; font-weight: 700; color: var(--hx-dim);
}
.h3hx-count b { color: var(--hx-ink); font-weight: 800; }
.h3hx-count .h3hx-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--hx-grad); box-shadow: 0 0 0 4px rgba(74, 108, 250, .12);
}
.h3hx-wipe {
  display: inline-flex; align-items: center; gap: .38rem; flex: 0 0 auto;
  padding: .42rem .85rem; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: .76rem; font-weight: 700; line-height: 1;
  color: var(--hx-danger); background: rgba(229, 72, 77, .08);
  border: 1px solid rgba(229, 72, 77, .22);
  transition: background .22s ease, transform .18s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.h3hx-wipe:hover { background: rgba(229, 72, 77, .15); transform: translateY(-1px); }
.h3hx-wipe:active { transform: translateY(0); }
.h3hx-wipe svg { width: 14px; height: 14px; }

/* --- فهرستِ کارت‌ها --- */
.h3hx-list { display: flex; flex-direction: column; gap: .8rem; }

/* ==========================================================================
   ۲) کارتِ یک سابقه
   ========================================================================== */
.h3hx-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center;
  padding: .8rem; border-radius: var(--radius-card, 20px);
  background: var(--hx-surface); border: 1px solid var(--hx-line);
  box-shadow: 0 2px 10px -6px rgba(26, 32, 44, .16);
  animation: h3hxUp .45s cubic-bezier(.22, 1, .36, 1) both;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.h3hx-card::before {           /* نوارِ رنگیِ کناره — امضای بصریِ کارت */
  content: ""; position: absolute; inset-block: 12px; inset-inline-start: 0;
  width: 3px; border-radius: 3px; background: var(--hx-grad);
  opacity: 0; transition: opacity .3s ease;
}
.h3hx-card:hover {
  border-color: rgba(74, 108, 250, .35); transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(26, 32, 44, .4);
}
.h3hx-card:hover::before { opacity: 1; }
.h3hx-card.is-going { animation: h3hxOut .38s ease forwards; }

@keyframes h3hxUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes h3hxOut { to { opacity: 0; transform: translateX(28px) scale(.96); margin-bottom: -84px; } }

/* --- قابِ تصویر --- */
.h3hx-shot {
  position: relative; width: 96px; height: 96px; flex: 0 0 auto; cursor: pointer;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--hx-line);
  background: linear-gradient(140deg, #EEF2FB, #E3ECFA 48%, #E6F8F3);
  -webkit-tap-highlight-color: transparent;
}
.h3hx-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .45s ease, transform .5s ease;
}
.h3hx-shot img.ready { opacity: 1; }
.h3hx-card:hover .h3hx-shot img.ready { transform: scale(1.06); }
.h3hx-shot::after {            /* درخششِ شیشه‌ایِ روی قاب */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .12));
}
/* حالتِ انتظار — درخششِ متحرک */
.h3hx-shot.loading::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%);
  transform: translateX(-100%); animation: h3hxShine 1.5s infinite;
}
@keyframes h3hxShine { to { transform: translateX(100%); } }

/* نشانِ پخش روی قاب */
.h3hx-shot .h3hx-badge-play {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; background: rgba(15, 20, 35, .48);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, .6);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), background .25s ease;
}
.h3hx-shot:hover .h3hx-badge-play { transform: scale(1.12); background: rgba(15, 20, 35, .66); }
.h3hx-shot .h3hx-badge-play svg { width: 15px; height: 15px; margin-inline-start: 2px; }

/* آیکونِ حالتِ خاصِ قاب (در حال ساخت / ناموفق / منقضی) */
.h3hx-shot .h3hx-shot-ico {
  position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; z-index: 2;
  display: flex; align-items: center; justify-content: center; color: var(--hx-dim);
}
.h3hx-shot .h3hx-shot-ico svg { width: 26px; height: 26px; }
.h3hx-shot.busy { background: linear-gradient(140deg, #E8EDFB, #DDE7FA); }
.h3hx-shot.busy .h3hx-ring {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; z-index: 2;
  border-radius: 50%; border: 3px solid rgba(74, 108, 250, .2);
  border-top-color: var(--hx-a1); animation: h3hxSpin .9s linear infinite;
}
@keyframes h3hxSpin { to { transform: rotate(360deg); } }

/* --- ستونِ متن --- */
.h3hx-body { min-width: 0; display: flex; flex-direction: column; gap: .42rem; }
.h3hx-row { display: flex; align-items: center; gap: .4rem; justify-content: space-between; }
.h3hx-title {
  font-size: .86rem; font-weight: 700; color: var(--hx-ink); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; min-width: 0;
}
.h3hx-meta {
  font-size: .7rem; color: var(--hx-dim); opacity: .9; line-height: 1.7;
  font-family: var(--mono-font, inherit);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.h3hx-note { font-size: .74rem; color: var(--hx-dim); line-height: 1.8; }

.h3hx-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem;
  font-size: .66rem; font-weight: 800; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap;
}
.h3hx-badge.ready { background: rgba(15, 212, 168, .14); color: #0B9C7C; }
.h3hx-badge.processing { background: rgba(74, 108, 250, .13); color: var(--hx-a1); }
.h3hx-badge.failed { background: rgba(229, 72, 77, .13); color: var(--hx-danger); }
.h3hx-badge.expired { background: rgba(138, 148, 166, .16); color: var(--hx-dim); }
.h3hx-badge i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto;
}
.h3hx-badge.processing i { animation: h3hxPulse 1.3s ease-in-out infinite; }
@keyframes h3hxPulse { 50% { opacity: .25; transform: scale(.7); } }

/* --- نوارِ پیشرفت --- */
.h3hx-bar-track { height: 5px; border-radius: 5px; background: var(--hx-soft); overflow: hidden; }
.h3hx-bar-track i { display: block; height: 100%; border-radius: 5px; background: var(--hx-grad); transition: width .5s ease; }

/* --- دکمه‌های کارت --- */
.h3hx-acts { display: flex; align-items: center; gap: .45rem; margin-top: .12rem; }
.h3hx-open {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .46rem .95rem; border: none; border-radius: 999px; color: #fff;
  font-family: inherit; font-weight: 800; font-size: .78rem; line-height: 1;
  background: var(--hx-grad); box-shadow: 0 8px 18px -10px rgba(74, 108, 250, .85);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.h3hx-open:hover { transform: translateY(-1px); filter: saturate(1.1); box-shadow: 0 12px 22px -10px rgba(74, 108, 250, .95); }
.h3hx-open:active { transform: translateY(0); }
.h3hx-open svg { width: 14px; height: 14px; }
.h3hx-kill {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%;
  background: transparent; color: var(--hx-dim);
  border: 1px solid var(--hx-line);
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.h3hx-kill:hover {
  color: var(--hx-danger); background: rgba(229, 72, 77, .09);
  border-color: rgba(229, 72, 77, .3); transform: rotate(-8deg);
}
.h3hx-kill svg { width: 15px; height: 15px; }

/* --- حالتِ خالی --- */
.h3hx-empty {
  text-align: center; color: var(--hx-dim); padding: 2.4rem 1.2rem;
  font-size: .85rem; line-height: 2.1; background: var(--hx-surface);
  border: 1px dashed var(--hx-line); border-radius: var(--radius-card, 20px);
}
.h3hx-empty .h3hx-empty-ico {
  width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--hx-a1);
  background: linear-gradient(140deg, rgba(74, 108, 250, .12), rgba(15, 212, 168, .12));
}
.h3hx-empty .h3hx-empty-ico svg { width: 26px; height: 26px; }

/* ==========================================================================
   ۳) پنجره‌ی پخشِ ویدیو
   ========================================================================== */
.h3hx-veil {
  position: fixed; inset: 0; z-index: 9800; opacity: 0; pointer-events: none;
  background: rgba(12, 17, 29, .55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: opacity .32s ease;
}
.h3hx-veil.on { opacity: 1; pointer-events: auto; }

.h3hx-modal {
  position: fixed; z-index: 9810; inset-inline: 0; bottom: 0; margin-inline: auto;
  width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--hx-surface); color: var(--hx-ink);
  border: 1px solid var(--hx-line); border-bottom: 0;
  border-radius: 26px 26px 0 0; box-shadow: 0 -22px 60px -24px rgba(9, 14, 26, .55);
  transform: translateY(102%); opacity: 0; visibility: hidden;
  transition: transform .44s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, visibility .44s;
}
.h3hx-modal.on { transform: none; opacity: 1; visibility: visible; }
@media (min-width: 720px) {
  .h3hx-modal {
    top: 50%; bottom: auto; border-radius: 26px; border-bottom: 1px solid var(--hx-line);
    transform: translateY(-46%) scale(.94);
    box-shadow: 0 34px 80px -30px rgba(9, 14, 26, .6);
  }
  .h3hx-modal.on { transform: translateY(-50%) scale(1); }
}

.h3hx-grip {
  width: 44px; height: 4px; border-radius: 4px; margin: .6rem auto .1rem;
  background: var(--hx-line); flex: 0 0 auto;
}
@media (min-width: 720px) { .h3hx-grip { display: none; } }

.h3hx-head {
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem .6rem; flex: 0 0 auto;
}
.h3hx-head .h3hx-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem;
  border-radius: 999px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--hx-grad);
  flex: 0 0 auto;
}
.h3hx-head .h3hx-chip svg { width: 12px; height: 12px; }
.h3hx-head .h3hx-htxt { min-width: 0; flex: 1 1 auto; }
.h3hx-head .h3hx-htitle {
  font-size: .82rem; font-weight: 700; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.h3hx-head .h3hx-hmeta { font-size: .68rem; color: var(--hx-dim); font-family: var(--mono-font, inherit); }
.h3hx-x {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--hx-line); background: var(--hx-soft); color: var(--hx-dim);
  font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.h3hx-x:hover { color: var(--hx-ink); background: var(--hx-line); transform: rotate(90deg); }

.h3hx-stage {
  margin: 0 1rem; border-radius: 18px; overflow: hidden; background: #0B1220;
  border: 1px solid var(--hx-line); flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.h3hx-stage video {
  width: 100%; max-height: 58vh; display: block; background: #0B1220; outline: none;
}

.h3hx-foot { padding: .9rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto; }
.h3hx-dl {
  display: flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
  width: min(320px, 100%); margin: 0 auto; padding: .82rem 1rem; border: none; border-radius: 16px;
  color: #fff; font-family: inherit; font-weight: 800; font-size: .88rem; text-decoration: none;
  background: var(--hx-grad); box-shadow: 0 14px 26px -14px rgba(74, 108, 250, .95);
  transition: transform .2s ease, filter .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.h3hx-dl:hover { transform: translateY(-2px); filter: saturate(1.08); }
.h3hx-dl:active { transform: translateY(0); }
.h3hx-dl svg { width: 17px; height: 17px; }
.h3hx-hint { text-align: center; font-size: .68rem; color: var(--hx-dim); margin: .6rem 0 0; }

/* دو دکمه‌ی کوچکِ دانلود: لینک مستقیم ۱ (روشِ قبلی) و لینک مستقیم ۲ (بله) */
.h3hx-dls { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.h3hx-dls .h3hx-dl { width: auto; flex: 1 1 140px; max-width: 200px; margin: 0; padding: .62rem .7rem; font-size: .76rem; border-radius: 12px; white-space: nowrap; }
.h3hx-dls .h3hx-dl svg { width: 14px; height: 14px; }
.h3hx-dls .h3hx-dl2 { background: linear-gradient(95deg, #12A37F, #1FBF8F); box-shadow: 0 14px 26px -14px rgba(18, 163, 127, .95); }
.h3hx-dls .h3hx-dl[disabled] { opacity: .65; cursor: default; }

/* ==========================================================================
   ۴) پنجره‌ی تأییدِ حذف
   ========================================================================== */
.h3hx-ask {
  position: fixed; z-index: 9900; inset-inline: 0; top: 50%; margin-inline: auto;
  width: min(360px, calc(100% - 2.2rem));
  background: var(--hx-surface); color: var(--hx-ink);
  border: 1px solid var(--hx-line); border-radius: 24px; padding: 1.4rem 1.2rem 1.1rem;
  box-shadow: 0 30px 70px -26px rgba(9, 14, 26, .6); text-align: center;
  transform: translateY(-46%) scale(.9); opacity: 0; visibility: hidden;
  transition: transform .38s cubic-bezier(.34, 1.4, .64, 1), opacity .25s ease, visibility .38s;
}
.h3hx-ask.on { transform: translateY(-50%) scale(1); opacity: 1; visibility: visible; }
.h3hx-ask-ico {
  width: 58px; height: 58px; margin: 0 auto .8rem; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--hx-danger); background: rgba(229, 72, 77, .1);
  animation: h3hxPop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes h3hxPop { from { transform: scale(.5); opacity: 0; } }
.h3hx-ask-ico svg { width: 28px; height: 28px; }
.h3hx-ask h4 { margin: 0 0 .45rem; font-size: .98rem; font-weight: 800; }
.h3hx-ask p { margin: 0 0 1.15rem; font-size: .8rem; line-height: 2; color: var(--hx-dim); }
.h3hx-ask-btns { display: flex; gap: .6rem; }
.h3hx-ask-btns button {
  flex: 1 1 0; padding: .72rem .6rem; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: .82rem; line-height: 1;
  transition: transform .18s ease, filter .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.h3hx-ask-btns button:active { transform: scale(.97); }
.h3hx-no { background: var(--hx-soft); color: var(--hx-ink); border: 1px solid var(--hx-line); }
.h3hx-no:hover { background: var(--hx-line); }
.h3hx-yes {
  color: #fff; border: none;
  background: linear-gradient(105deg, #F0555A, var(--hx-danger));
  box-shadow: 0 12px 24px -14px rgba(229, 72, 77, .95);
}
.h3hx-yes:hover { filter: saturate(1.1); transform: translateY(-1px); }

/* ==========================================================================
   ۵) پیامِ کوچک
   ========================================================================== */
.h3hx-toast {
  position: fixed; z-index: 9950; inset-inline: 0; margin-inline: auto;
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  width: max-content; max-width: calc(100% - 2.4rem);
  padding: .65rem 1.1rem; border-radius: 999px;
  background: rgba(16, 22, 36, .93); color: #fff; font-size: .78rem; font-weight: 700;
  box-shadow: 0 18px 34px -18px rgba(9, 14, 26, .85);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.h3hx-toast.on { opacity: 1; transform: none; }

/* ---------- قفلِ اسکرولِ پس‌زمینه ---------- */
body.h3hx-lock { overflow: hidden; }

/* ---------- موبایلِ باریک ---------- */
@media (max-width: 420px) {
  .h3hx-card { gap: .7rem; padding: .7rem; }
  .h3hx-shot { width: 82px; height: 82px; border-radius: 14px; }
  .h3hx-title { font-size: .8rem; }
  .h3hx-open { padding: .44rem .8rem; font-size: .74rem; }
  .h3hx-kill { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .h3hx-card, .h3hx-ask-ico { animation: none !important; }
  .h3hx-modal, .h3hx-ask, .h3hx-veil, .h3hx-toast { transition: opacity .2s ease !important; }
  .h3hx-shot.loading::before { animation: none; }
}

/* ==========================================================================
   ۶) پیامِ کوتاهِ «گام‌ها» — زیرِ اسلایدرِ Steps
   --------------------------------------------------------------------------
   وقتی کاربر گام را از حدِ معمول بالاتر می‌برد، این کادر با یک انیمیشنِ نرم
   باز می‌شود، ۱۵ ثانیه می‌ماند (با یک نوارِ زمانِ باریک زیرش) و خودش جمع
   می‌شود. در هر دو صفحه‌ی h3reference و h3avatar از همین کلاس‌ها استفاده
   می‌شود.
   ========================================================================== */
.h3tip {
  --tip-a1: var(--accent-gold, var(--accent-primary, #4A6CFA));
  --tip-a2: var(--accent-cyan, var(--accent-secondary, #0FD4A8));
  --tip-warm: #F59E0B;
  font-family: var(--app-font, inherit);
  position: relative; overflow: hidden; box-sizing: border-box;
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start;
  width: 100%; margin: 0; padding: 0 .95rem; max-height: 0; opacity: 0;
  border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, .09), rgba(74, 108, 250, .07));
  transition: max-height .55s ease-in-out, opacity .32s ease,
              margin .45s ease, padding .45s ease, border-color .3s ease;
}
.h3tip.show {
  max-height: 900px; opacity: 1; margin: .7rem 0 .2rem; padding: .85rem .95rem 1rem;
  border-color: rgba(245, 158, 11, .28);
}
.h3tip-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--tip-warm); background: rgba(245, 158, 11, .14);
}
.h3tip-ico svg { width: 19px; height: 19px; }
.h3tip-txt { min-width: 0; }
.h3tip-txt b {
  display: block; font-size: .82rem; font-weight: 800; line-height: 1.8;
  color: var(--text-primary, #1A202C); margin-bottom: .2rem;
}
.h3tip-txt p {
  margin: 0; font-size: .76rem; line-height: 2.05;
  color: var(--text-secondary, #626F86);
}
.h3tip-txt em {
  font-style: normal; font-weight: 800;
  color: var(--tip-a1);
}
.h3tip-time {
  position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--tip-a1), var(--tip-a2));
  transform-origin: right center; transform: scaleX(1);
}
.h3tip.show .h3tip-time { animation: h3tipTime 20s linear forwards; }
@keyframes h3tipTime { to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .h3tip { transition: opacity .2s ease; }
  .h3tip.show .h3tip-time { animation: none; }
}
