  .cv-hist-empty { color: var(--muted); font-size: 12.5px; }
  .hp-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    width: min(420px, calc(100vw - 24px));
    direction: rtl;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text);
    background:
      radial-gradient(circle at 28% 24%, rgba(177,140,255,.13), transparent 35%),
      radial-gradient(circle at 100% 58%, rgba(122,162,255,.12), transparent 36%),
      linear-gradient(180deg, rgba(28,31,38,.97), rgba(17,19,24,.99)),
      var(--panel);
    border-left: 1px solid rgba(122,162,255,.20);
    box-shadow: -34px 0 88px rgba(0,0,0,.58), inset 1px 0 0 rgba(255,255,255,.04);
    transform: translateX(106%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .32s cubic-bezier(.2,.82,.2,1),
      opacity .22s ease,
      visibility .22s ease;
  }
  .hp-panel.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hp-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(38,42,51,.95);
    background: rgba(22,24,29,.78);
    backdrop-filter: blur(20px);
  }
  .hp-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
    font-weight: 900;
  }
  .hp-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.4;
  }
  .hp-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }
  .hp-close:hover {
    color: var(--text);
    border-color: rgba(122,162,255,.35);
    background: rgba(122,162,255,.09);
  }
  .hp-current-pin {
    margin: 12px 18px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(74,222,128,.24);
    background: rgba(74,222,128,.055);
    box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  }
  .hp-current-pin[hidden] { display: none; }
  .hp-current-pin > div { min-width: 0; }
  .hp-pin-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    color: var(--ok);
    margin-bottom: 1px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .hp-pin-title::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    color: #d8ffe6;
    background: rgba(74,222,128,.18);
    border: 1px solid rgba(74,222,128,.26);
    font-size: 12px;
    line-height: 1;
  }
  .hp-pin-sub {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hp-pin-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(74,222,128,.075);
    color: var(--ok);
    border: 1px solid rgba(74,222,128,.22);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
  }
  .hp-feed {
    --hp-card-h: 148px;
    --hp-feed-gap: 12px;
    --hp-scroll-spacer-h: 46%;
    flex: 1;
    min-height: 0;
    padding: 0 18px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: var(--hp-feed-gap);
    align-content: start;
    scroll-snap-type: y proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(122,162,255,.34) transparent;
  }
  .hp-feed::-webkit-scrollbar { width: 8px; }
  .hp-feed::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(122,162,255,.28);
  }
  .hp-scroll-spacer {
    height: var(--hp-scroll-spacer-h);
    min-height: 0;
    pointer-events: none;
    scroll-snap-align: none;
  }
  .hp-card {
    position: relative;
    display: grid;
    grid-template-columns: 108px 1fr;
    align-items: center;
    gap: 12px;
    height: var(--hp-card-h);
    min-height: var(--hp-card-h);
    max-height: var(--hp-card-h);
    box-sizing: border-box;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background:
      linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
      rgba(14,15,18,.28);
    box-shadow: 0 14px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
    scroll-snap-align: center;
    overflow: hidden;
    cursor: pointer;
    transform-origin: center;
    will-change: transform;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .hp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 0%, rgba(122,162,255,.10), transparent 42%);
    opacity: .6;
    pointer-events: none;
  }
  .hp-card:hover {
    border-color: rgba(122,162,255,.26);
    background:
      linear-gradient(135deg, rgba(122,162,255,.07), rgba(255,255,255,.02)),
      rgba(14,15,18,.32);
  }
  .hp-card.active {
    z-index: 2;
    border-color: rgba(122,162,255,.42);
    background:
      linear-gradient(135deg, rgba(122,162,255,.115), rgba(177,140,255,.065)),
      rgba(255,255,255,.050);
    box-shadow:
      0 18px 42px rgba(0,0,0,.30),
      0 0 0 1px rgba(122,162,255,.34),
      0 0 18px rgba(122,162,255,.08);
    transform: scale(1.02);
  }
  .hp-mini-preview {
    position: relative;
    z-index: 1;
    height: 104px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f5ef, #e9e4d8);
    box-shadow: 0 12px 28px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.68);
  }
  .hp-mini-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.42) 44%, transparent 68%);
    opacity: .42;
    transform: translateX(120%);
    animation: hp-thumb-shimmer 1.7s ease-in-out infinite;
  }
  .hp-mini-preview.loaded::before { display: none; }
  @keyframes hp-thumb-shimmer {
    0% { transform: translateX(120%); }
    100% { transform: translateX(-120%); }
  }
  .hp-mini-skeleton {
    position: absolute;
    inset: 9px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 10px 9px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(250,248,242,.54));
    box-shadow: inset 0 0 0 1px rgba(17,24,39,.06);
    pointer-events: none;
  }
  .hp-mini-skeleton span {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(71,85,105,.26);
  }
  .hp-mini-skeleton span:first-child {
    width: 48%;
    height: 9px;
    margin: 0 auto 4px;
    background: rgba(17,24,39,.66);
  }
  .hp-mini-preview.loaded .hp-mini-skeleton { display: none; }
  .hp-mini-preview iframe {
    width: 720px;
    height: 980px;
    border: 0;
    background: #fff;
    transform: scale(.145);
    transform-origin: top right;
    pointer-events: none;
  }
  .hp-mini-error {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
  }
  .hp-mini-preview.error .hp-mini-error { display: grid; }
  .hp-card-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .hp-card-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }
  .hp-version {
    font-weight: 900;
    color: var(--text);
  }
  .hp-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 1.1;
    border: 1px solid rgba(255,255,255,.10);
    color: var(--accent);
    background: rgba(122,162,255,.08);
    white-space: nowrap;
  }
  .hp-badge.ok {
    color: var(--ok);
    border-color: rgba(74,222,128,.28);
    background: rgba(74,222,128,.08);
  }
  .hp-badge.warn {
    color: var(--warn);
    border-color: rgba(251,191,36,.25);
    background: rgba(251,191,36,.08);
  }
  .hp-badge.purple {
    color: var(--accent-2);
    border-color: rgba(177,140,255,.25);
    background: rgba(177,140,255,.08);
  }
  .hp-card-title {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    line-height: 1.32;
    font-size: 14px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .hp-card-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
  }
  .hp-watching {
    display: none;
    width: max-content;
    margin: 5px 0 0;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(177,140,255,.10);
    border: 1px solid rgba(177,140,255,.26);
    font-size: 11.5px;
    font-weight: 900;
    opacity: 0;
    transition: opacity .18s ease;
  }
  .hp-card.active .hp-watching {
    display: block;
    opacity: 1;
  }
  .hp-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .hp-action {
    height: 25px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(14,15,18,.32);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    opacity: .72;
    transition: opacity .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
  }
  .hp-action:hover {
    color: var(--text);
    border-color: rgba(122,162,255,.30);
    background: rgba(122,162,255,.10);
    opacity: 1;
  }
  .hp-card.active .hp-action {
    color: var(--text);
    border-color: rgba(122,162,255,.28);
    background: rgba(255,255,255,.055);
    opacity: 1;
  }
  .hp-card.active .hp-action:first-child {
    color: var(--text);
    border-color: rgba(122,162,255,.42);
    background: rgba(122,162,255,.14);
  }
  .hp-action.confirm {
    color: var(--warn);
    border-color: rgba(251,191,36,.48);
    background: rgba(251,191,36,.10);
  }
  .hp-diff-drawer {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    direction: rtl;
    background:
      linear-gradient(180deg, rgba(24,27,34,.98), rgba(12,14,18,.995)),
      var(--panel);
    box-shadow: -22px 0 60px rgba(0,0,0,.42);
    transform: translateX(104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s cubic-bezier(.2,.82,.2,1), opacity .18s ease, visibility .18s ease;
  }
  .hp-diff-drawer.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .hp-diff-drawer-head {
    flex: 0 0 auto;
    min-height: 84px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(38,42,51,.95);
    background: rgba(18,20,26,.88);
    backdrop-filter: blur(18px);
  }
  .hp-diff-drawer-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 900;
  }
  .hp-diff-close {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.045);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .hp-diff-close:hover {
    color: var(--text);
    border-color: rgba(122,162,255,.34);
    background: rgba(122,162,255,.10);
  }
  .hp-diff-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    direction: rtl;
    text-align: right;
    unicode-bidi: normal;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 18px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
    background: #0b0d11;
    box-shadow: none;
  }
  .hp-redline {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hp-redline-line {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.055);
    border-right: 3px solid transparent;
    border-radius: 8px;
    color: var(--text);
    background: rgba(255,255,255,.018);
  }
  .hp-redline-same {
    color: rgba(232,236,243,.78);
  }
  .hp-redline-add {
    border-right-color: var(--ok);
    background: rgba(74,222,128,.12);
    background: color-mix(in srgb, var(--ok) 14%, transparent);
  }
  .hp-redline-del {
    border-right-color: var(--err);
    background: rgba(248,113,113,.12);
    background: color-mix(in srgb, var(--err) 14%, transparent);
    color: rgba(232,236,243,.72);
  }
  .hp-redline-mark {
    direction: ltr;
    text-align: center;
    font-weight: 900;
    color: var(--muted);
    line-height: inherit;
  }
  .hp-redline-add .hp-redline-mark { color: var(--ok); }
  .hp-redline-del .hp-redline-mark { color: var(--err); }
  .hp-redline-text {
    min-width: 0;
  }
  .hp-redline-del .hp-redline-text {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(248,113,113,.86);
  }
  .hp-redline-message {
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    text-align: center;
  }
  .hp-empty-card,
  .hp-loading-card {
    min-height: 142px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background:
      linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
      rgba(14,15,18,.28);
    box-shadow: 0 14px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
    color: var(--muted);
    line-height: 1.6;
  }
