
.hart-fit {
  --h-azure: #1560A8; --h-azure-deep: #0B4F8F; --h-sky: #A9D4FF; --h-glow: #A9D4FF; --h-tint: #EAF2FC;
  --h-ink: #141C28; --h-grey: #556172; --h-line: #DCE7F3; --h-white: #fff; --h-soft-hover: #D3E6FA;
  --h-edge: rgba(15, 45, 82, .10); --h-chk-edge: rgba(15, 45, 82, .30);
  --h-sh-page: 0 3px 8px rgba(6, 42, 77, .30), 0 18px 34px -6px rgba(6, 42, 77, .45), 0 44px 80px -10px rgba(6, 42, 77, .65);
  --h-sh-chip: 0 2px 6px rgba(6, 42, 77, .25), 0 10px 20px -8px rgba(6, 42, 77, .5);
  --h-sh-card: 0 2px 8px rgba(15, 45, 82, .14), 0 20px 40px -14px rgba(6, 42, 77, .50);
  --h-cursor-fx: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
  --h-pause-bg: rgba(255, 255, 255, .14); --h-pause-hover: rgba(255, 255, 255, .24);
  --h-font: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position: relative; width: 100%; max-width: 584px; aspect-ratio: 584 / 488; justify-self: center;
}
.hart-fit .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hart { position: absolute; left: 0; top: 0; width: 584px; height: 488px; transform: scale(var(--fit, 1)); transform-origin: top left; }

.hart__pause { position: absolute; right: 0; top: 0; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--h-pause-bg); color: var(--h-white);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s cubic-bezier(.22, 1, .36, 1); }
.hart__pause svg { width: 12px; height: 12px; }
.hart__pause svg[hidden] { display: none; }
.hart__pause:hover { background: var(--h-pause-hover); }
.hart__pause[hidden] { display: none; }
.hart__pause:focus-visible { outline: 2px solid var(--h-white); outline-offset: 2px; }

.bubs { position: absolute; inset: -40px -60px -20px -70px; pointer-events: none; }
.bub { position: absolute; border-radius: 50%; width: var(--s); height: var(--s); left: calc(var(--x) + 70px); top: calc(470px + 40px); opacity: 0; background: var(--f);
  animation: bub-rise var(--d) cubic-bezier(.35, .1, .45, 1) var(--dl) infinite;
  --w14: rgba(255, 255, 255, .14); --w16: rgba(255, 255, 255, .16);
  --m18: rgba(169, 212, 255, .18); --m20: rgba(169, 212, 255, .20); }
.bub--r1 { --s: 40px; --x: -34px; --f: var(--w16); --d: 9s; --dl: 0s; }
.bub--r2 { --s: 24px; --x: 8px; --f: var(--m20); --d: 7.5s; --dl: -3s; }
.bub--r3 { --s: 62px; --x: 382px; --f: var(--m18); --d: 11s; --dl: -5s; }
.bub--r4 { --s: 32px; --x: 470px; --f: var(--w14); --d: 8.5s; --dl: -1.5s; }
.bub--r5 { --s: 22px; --x: 540px; --f: var(--w16); --d: 7s; --dl: -4.5s; }
.bub--r6 { --s: 50px; --x: -60px; --f: var(--m20); --d: 10s; --dl: -7s; }
@keyframes bub-rise {
  0% { opacity: 0; transform: translateY(0) scale(.2); }
  12% { opacity: 1; transform: translateY(-40px) scale(.85); }
  80% { opacity: 1; transform: translateY(-390px) scale(1.08); }
  88% { opacity: 1; transform: translateY(-420px) scale(1.25); }
  100% { opacity: 0; transform: translateY(-430px) scale(1.6); }
}

.hart__ats { position: absolute; z-index: 1; left: 26px; top: calc(477px - 330px * .0739 - 28px); display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 6px;
  border-radius: 6px; background: var(--h-azure); color: var(--h-white); font: 650 13px/1 var(--h-font); letter-spacing: 0; white-space: nowrap; box-shadow: var(--h-sh-chip); }
.hart__ats i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--h-white); }
.hart__ats svg { width: 10px; height: 10px; fill: none; stroke: var(--h-azure); stroke-width: 2.4; }

.hart__page, .hart__frame { position: absolute; left: 40px; top: 10px; width: 330px; aspect-ratio: 1000 / 1415; border-radius: 4px; }
.hart__page { background: var(--h-white); overflow: hidden; box-shadow: 0 0 0 1px rgba(169, 212, 255, .75), var(--h-sh-page); }
.hart__frame { box-shadow: 0 0 0 8px var(--h-sky); opacity: .22; animation: frame-pulse 3.2s ease-in-out infinite alternate; }
@keyframes frame-pulse { from { opacity: .22; transform: scale(1); } to { opacity: .3; transform: scale(1.015); } }
.hart__lay { position: absolute; inset: 0; background: var(--h-white); }
.hart__lay img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hart__lay--t { background: none; pointer-events: none; }
.hart__hl { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 2px; background: rgba(169, 212, 255, .55);
  transform-origin: left center; transform: scaleX(0); opacity: 0; mix-blend-mode: multiply; }
.hart__hl--1 { --x: 9.97%; --y: 40.54%; --w: 56.38%; --h: 1.82%; }
.hart__hl--2 { --x: 66.78%; --y: 27.38%; --w: 13.04%; --h: 1.82%; }
.hart__hl--3 { --x: 9.97%; --y: 44.68%; --w: 52.39%; --h: 1.82%; }

.hc { position: absolute; background: var(--h-white); color: var(--h-ink); border-radius: 12px; border: 1px solid var(--h-edge); box-shadow: var(--h-sh-card);
  padding: 14px 16px; font: 400 13px/1.45 var(--h-font); letter-spacing: 0; text-align: left; opacity: 0; transform-origin: 18% 50%; }
.hc p, .hc ul { margin: 0; }
.hc__k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h-azure-deep); }
.hc__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hc__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--h-tint); color: var(--h-azure-deep); font-size: 11px; font-weight: 650; white-space: nowrap; }
.hc__tag--must { background: var(--h-azure); color: var(--h-white); }

.hc--tpl { left: 274px; top: 40px; width: 306px; }
.hc__chips { display: flex; align-items: center; gap: 8px; }
.hc__chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--h-tint); color: var(--h-azure-deep); font-size: 12px; font-weight: 650; white-space: nowrap;
  transition: background-color .25s, color .25s; }
.hc__chip.is-on { background: var(--h-azure); color: var(--h-white); }
.hc__chip--more { background: transparent; color: var(--h-grey); padding: 0 2px; }

.hc--ai { left: 274px; top: 330px; width: 306px; }
.hc--ai .hc__txt { position: relative; min-height: 58px; }
.hc--ai .hc__txt p { margin: 0; position: absolute; inset: 0; transition: opacity .35s; }
.hc--ai .hc__txt .is-new { opacity: 0; color: var(--h-ink); }
.hc--ai .hc__txt .is-old { color: var(--h-grey); }
.hc--ai.is-done .hc__txt .is-old { opacity: 0; }
.hc--ai.is-done .hc__txt .is-new { opacity: 1; }
.hc--ai .hc__tag { opacity: 0; transition: opacity .3s; }
.hc--ai.is-done .hc__tag { opacity: 1; }
.hc__btn { position: relative; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 164px; padding: 0 12px; border-radius: 8px;
  background: var(--h-tint); color: var(--h-azure-deep); font: 600 13px/1 var(--h-font); transition: transform .12s, background .2s; }
.hc__btn svg { width: 14px; height: 14px; }
.hc__btn.is-press { transform: scale(.95); background: var(--h-soft-hover); }
.hc__btn .hc__dots { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; gap: 4px; }
.hc__btn .hc__dots i { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: hc-dot .9s infinite ease-in-out; }
.hc__btn .hc__dots i:nth-child(2) { animation-delay: .15s; } .hc__btn .hc__dots i:nth-child(3) { animation-delay: .3s; }
.hc__btn.is-busy .hc__dots { display: flex; } .hc__btn.is-busy .lbl, .hc__btn.is-busy svg { visibility: hidden; }
@keyframes hc-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.hc--ad { left: 274px; top: 96px; width: 306px; }
.hc--ad .hc__sub { margin: -4px 0 8px; color: var(--h-grey); font-size: 12px; }
.hc__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hc__rows li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 8px; border-radius: 8px; background: rgba(234, 242, 252, .55); }
.hc__rows li span.t { flex: 1; font-weight: 550; }
.hc__chk { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--h-chk-edge); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.hc__chk svg { width: 10px; height: 10px; stroke: var(--h-white); stroke-width: 2.4; fill: none; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(.22, 1.6, .36, 1); }
.hc__rows li.is-on .hc__chk { background: var(--h-azure); border-color: var(--h-azure); }
.hc__rows li.is-on .hc__chk svg { opacity: 1; transform: none; }
.hc__foot { margin: 8px 0 0; font-size: 12px; color: var(--h-grey); }
.hc__foot b { color: var(--h-azure-deep); }

.hc--ats { left: 274px; top: 346px; width: 306px; display: flex; align-items: center; gap: 14px; }
.hc__atsw { flex: 1; min-width: 0; }
.hc__atsh { display: flex; align-items: center; gap: 6px; }
.hc__gain { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--h-azure); color: var(--h-white); font-size: 11px; font-weight: 700; opacity: 0; }
.hc--ats .hc__s-new { display: none; }
.hc--ats.is-final .hc__s-new { display: block; }
.hc--ats.is-final .hc__s-old { display: none; }
.hc__fix { margin-top: 4px; font-size: 12px; color: var(--h-grey); }
.hc__fix b { color: var(--h-ink); font-weight: 650; }
.hc--ats .hc__band { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--h-tint); color: var(--h-azure-deep); font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .25s; }
.hc--ats.is-scored .hc__band { opacity: 1; }
.hc--ats .hc__l1 { font-weight: 650; margin-top: 4px; }
.hc--ats .hc__l2 { font-size: 12px; color: var(--h-grey); }

.hart .score-ring { --sr-scale: .6; --fs-stat: 30px; position: relative; flex: none; width: calc(112px * var(--sr-scale)); height: calc(112px * var(--sr-scale)); border-radius: 50%; }
.hart .score-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hart .score-ring__track { fill: none; stroke: var(--h-line); stroke-width: 4; }
.hart .score-ring__arc { fill: none; stroke: var(--h-azure); stroke-width: 12; stroke-linecap: butt; transform: rotate(-90deg); transform-box: view-box; transform-origin: 50% 50%; }
.hart .score-ring__val { position: absolute; inset: 0; pointer-events: none; }
.hart .score-ring__val .score-ring__n { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(var(--fs-stat) * var(--sr-scale)); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (forced-colors: active) { .hart .score-ring__arc { stroke: Highlight; } }

.hcur { position: absolute; width: 22px; height: 22px; left: 0; top: 0; opacity: 0; pointer-events: none; filter: var(--h-cursor-fx); fill: var(--h-ink); stroke: var(--h-white); stroke-width: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .hart__frame { animation: none; }
  .bub { animation: none; opacity: 0; }
  .hc__btn .hc__dots i { animation: none; }
  .hart__pause { display: none; }
}
@media print { .bub, .hart__frame { animation: none; } }

@media (max-width: 639px) {
  .hart-fit { --z: calc(.8462 / var(--fit, 1)); }
  .hart__pause { top: calc(100% + 6px); }
  .hc { zoom: var(--z); left: auto; right: 0; font-size: 13px; padding: 10px 12px; }
  .hc__k, .hc__tag, .hc__gain, .hc--ats .hc__band, .hc--ad .hc__sub, .hc__foot, .hc__fix, .hc--ats .hc__l2 { font-size: 13px; }
  .hc__tag, .hc__gain, .hc--ats .hc__band { height: 26px; }
  .hc--tpl, .hc--ad { top: 0; }
  .hc__top { margin-bottom: 6px; }
  .hc--ad .hc__sub { display: none; }
  .hc__rows li { min-height: 26px; }
  .hc__chip { font-size: 13px; padding: 0 8px; }
  .hc__chips { gap: 6px; }
  .hc--ai { top: 187px; }
  .hc--ats { top: 201px; }
  .hart__page, .hart__frame { left: 12px; }
  .hart__ats { zoom: var(--z); left: 0; top: auto; bottom: calc(14px / var(--z)); }
}
@keyframes hart-late-show { to { visibility: visible; } }
@media (max-width: 639px) and (scripting: enabled) { .hart-fit:not(.is-fit) .hart { visibility: hidden; animation: hart-late-show 1ms linear 3s forwards; } }
@media (max-width: 374px) { .hart-fit { aspect-ratio: auto; height: 290px; } }
