/* ARworks egészségügyi portfólió — megosztott „működést mutató” komponensek (weboldal + prezentáció), világos téma:
   a hős (felszín ⇄ belső, dobogó szív, EKG, életjelek), a képernyőfelvétel-szerű lejátszó és az AI-betegirányító demó.
   Az alapállapot mindig a végleges, olvasható kép; a mozgást a demos.js (és az ábrák CSS-animációi) adják. */

/* ------------------------------------------------------------ hős: felszín ⇄ belső */
.hp .hp-cmp { position: relative; }
.hp .hp-cmp__frame { position: relative; aspect-ratio: 2 / 1; container-type: inline-size; }
.hp .hp-cmp__stage {
  position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--hp-line-2); box-shadow: 0 34px 70px -40px rgba(18, 24, 29, 0.5);
  background:
    radial-gradient(38% 78% at 50% 46%, rgba(19, 138, 138, 0.14), transparent 72%),
    linear-gradient(var(--hp-grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--hp-grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(#fbfcfd, #eaf1f6);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.hp .hp-cmp__layer, .hp .hv { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hp .hp-cmp__layer { pointer-events: none; }
.hp .hp-cmp__layer--sk { -webkit-clip-path: inset(0 calc(100% - var(--x, 46%)) 0 0); clip-path: inset(0 calc(100% - var(--x, 46%)) 0 0); }
.hp .hv--hot { pointer-events: none; }
.hp .hp-cmp__scan {
  position: absolute; top: 0; bottom: 0; left: var(--x, 46%); width: 16%; pointer-events: none;
  background: linear-gradient(90deg, rgba(19, 138, 138, 0.22), rgba(19, 138, 138, 0)), repeating-linear-gradient(0deg, rgba(19, 138, 138, 0.16) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.hp .hp-cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x, 46%); width: 2px; margin-left: -1px; background: var(--hp-teal); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 18px rgba(19, 138, 138, 0.75); pointer-events: none; }
.hp .hp-cmp__handle {
  position: absolute; top: 70%; left: var(--x, 46%); transform: translate(-50%, -50%); z-index: 5;
  width: 54px; height: 54px; padding: 0; border-radius: 50%; background: #fff; border: 2px solid var(--hp-orange); color: var(--hp-orange);
  display: grid; place-items: center; cursor: ew-resize; box-shadow: 0 8px 24px rgba(18, 24, 29, 0.28);
}
.hp .hp-cmp__pulse { position: absolute; top: 70%; left: var(--x, 46%); z-index: 4; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 1px solid rgba(239, 84, 34, 0.6); animation: hp-pulse-r 2.6s ease-out infinite; pointer-events: none; }
.hp .hp-cmp.is-used .hp-cmp__pulse { display: none; }
.hp .hp-cmp__tag {
  position: absolute; top: 16px; z-index: 4; padding: 7px 11px; pointer-events: none;
  font: 400 11px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-ink);
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--hp-line-2);
}
.hp .hp-cmp__tag--l { left: 16px; }
.hp .hp-cmp__tag--r { right: 16px; }
.hp .hp-cmp__hint { position: absolute; left: 50%; bottom: calc(15% + 12px); z-index: 4; transform: translateX(-50%); padding: 7px 12px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-ink); background: rgba(255, 255, 255, 0.94); border: 1px solid var(--hp-line-2); pointer-events: none; transition: opacity 0.4s; white-space: nowrap; }
.hp .hp-cmp.is-used .hp-cmp__hint { opacity: 0; }
.hp .hp-cmp__note { position: absolute; right: 16px; bottom: calc(15% + 12px); z-index: 4; padding: 5px 9px; font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hp-mute); background: rgba(255, 255, 255, 0.9); border: 1px solid var(--hp-line); pointer-events: none; }
.hp .hp-cmp .hp-brk { inset: 12px; opacity: 0.8; }
.hp .hp-cmp__bar { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.hp .hp-cmp__tgl { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; cursor: pointer; font: 500 12.5px/1 var(--font-body, sans-serif); color: var(--hp-ink); background: #fff; border: 1px solid var(--hp-line-2); border-radius: 2px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.hp .hp-cmp__tgl .hpi { width: 20px; height: 20px; }
.hp .hp-cmp__tgl:hover { border-color: var(--hp-ink); }
.hp .hp-cmp__tgl.is-on { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }

/* az ábra élő elemei: szívverés, légzés, véráramlás — a ritmus a --beat / --breath változóból jön (nyugalom / terhelés) */
.hp .hv-heart .hv-pulse { transform-box: fill-box; transform-origin: 50% 56%; animation: hv-beat var(--beat, 0.833s) ease-in-out infinite; }
.hp .hv-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hv-ring var(--beat, 0.833s) ease-out infinite; }
.hp .hv-lung { transform-box: fill-box; transform-origin: 50% 82%; animation: hv-breath var(--breath, 4.2s) ease-in-out infinite; }
.hp .hv-flow { stroke-dasharray: 2 16; animation: hv-flow calc(var(--beat, 0.833s) * 2) linear infinite; }
.hp .hv-flow--v { animation-direction: reverse; }
.hp .hv-brain { transform-box: fill-box; transform-origin: center; animation: hv-breath 6s ease-in-out infinite; }
@keyframes hv-beat { 0%, 24% { transform: scale(1); } 31% { transform: scale(1.13); } 40% { transform: scale(1); } 48% { transform: scale(1.06); } 58%, 100% { transform: scale(1); } }
@keyframes hv-ring { 0%, 29% { opacity: 0; transform: scale(0.7); } 31% { opacity: 0.6; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes hv-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes hv-flow { to { stroke-dashoffset: -36; } }
.hp .hv-mesh { animation: hv-mesh 6s ease-in-out infinite alternate; }
@keyframes hv-mesh { from { stroke-opacity: 0.1; } to { stroke-opacity: 0.2; } }

/* EKG-sáv: 6 szívverés a szélességen, a QRS-csúcs a jelölő (83%) vonalán halad át — ekkor dobban a szív és villan a pont */
.hp .hp-ecg { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; z-index: 3; pointer-events: none; border-top: 1px solid var(--hp-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.78)); }
.hp .hp-ecg svg { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); }
.hp .hp-ecg path { fill: none; stroke: var(--hp-teal); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hp .hp-ecg__run { animation: hp-ecg-run var(--cycle, 5s) linear infinite; }
@keyframes hp-ecg-run { to { transform: translateX(-1200px); } }
.hp .hp-ecg__mark { position: absolute; left: 83.333%; top: 0; bottom: 0; border-left: 1px dashed rgba(19, 138, 138, 0.5); }
.hp .hp-ecg__mark i { position: absolute; left: -6px; top: 58%; width: 11px; height: 11px; border-radius: 50%; background: var(--hp-orange); opacity: 0.35; animation: hp-mark var(--beat, 0.833s) ease-out infinite; }
@keyframes hp-mark { 0%, 26% { opacity: 0.35; transform: scale(1); } 31% { opacity: 1; transform: scale(2); } 60%, 100% { opacity: 0.35; transform: scale(1); } }
.hp .hp-ecg__lbl { position: absolute; left: 12px; top: 7px; padding: 3px 6px; background: rgba(255, 255, 255, 0.85); font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-teal-ink); }
.hp .hp-cmp.is-restart .hv-pulse, .hp .hp-cmp.is-restart .hv-ring, .hp .hp-cmp.is-restart .hv-lung, .hp .hp-cmp.is-restart .hp-ecg__run, .hp .hp-cmp.is-restart .hp-ecg__mark i, .hp .hp-cmp.is-restart .hv-flow { animation: none !important; }
.hp .hp-cmp.is-paused *, .hp .hp-cmp.is-paused *::before, .hp .hp-cmp.is-paused *::after { animation-play-state: paused !important; }

/* életjelek: a két oldalsó kártyasor */
.hp .hp-vit { position: absolute; top: 14%; z-index: 5; display: grid; gap: 12px; pointer-events: none; }
.hp .hp-vit--l { left: 3%; }
.hp .hp-vit--r { right: 3%; }
.hp .hp-vit__c { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; min-width: clamp(110px, 17cqw, 200px); padding: 11px 15px 12px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--hp-line-2); border-left: 3px solid var(--hp-teal); box-shadow: 0 18px 30px -24px rgba(18, 24, 29, 0.5); }
.hp .hp-vit__l { grid-column: 1 / -1; font: 400 10px/1.2 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-teal-ink); }
.hp .hp-vit__c b { font: 300 clamp(26px, 4.3cqw, 56px)/1 var(--font-display, 'Jost', sans-serif); letter-spacing: 0.03em; color: var(--hp-ink); font-variant-numeric: tabular-nums; font-weight: 300; white-space: nowrap; }
.hp .hp-vit__c i { font: 400 11px/1 var(--font-mono, monospace); letter-spacing: 0.08em; color: var(--hp-mute); font-style: normal; }
.hp .hp-vit__c[data-vit='hr'] { border-left-color: var(--hp-orange); }
.hp .hp-vit__c[data-vit='hr'] b { color: var(--hp-orange); }
.hp .hp-vit__c[data-vit='bp'] { border-left-color: var(--hp-blue-2); }

/* érzékeny pontok: az ábrán, kattintásra a hozzájuk tartozó referencia nyílik */
.hp .hp-hot { pointer-events: all; cursor: pointer; outline: none; transition: opacity 0.5s var(--hp-ease); }
.hp .hp-hot.is-off { opacity: 0; pointer-events: none; }
.hp .hp-hot.is-off + .hp-hot__r { opacity: 0; }
.hp .hp-hot__r { pointer-events: none; transition: opacity 0.5s var(--hp-ease); }
.hp .hp-hot__hit { fill: transparent; }
.hp .hp-hot__dot { fill: var(--hp-orange); stroke: #fff; stroke-width: 2.5; }
.hp .hp-hot__ring { fill: none; stroke: var(--hp-orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hp-hotring 2.6s ease-out infinite; animation-delay: calc(var(--i, 0) * 0.4s); }
@keyframes hp-hotring { 0% { transform: scale(0.45); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.hp .hp-hot__lbl rect { fill: #fff; stroke: rgba(18, 24, 29, 0.3); stroke-width: 1.2; transition: fill 0.2s, stroke 0.2s; }
.hp .hp-hot__lbl text { font: 500 15px 'Space Grotesk', sans-serif; fill: var(--hp-ink); transition: fill 0.2s; }
.hp .hp-hot:hover .hp-hot__lbl rect, .hp .hp-hot:focus-visible .hp-hot__lbl rect { fill: var(--hp-ink); stroke: var(--hp-ink); }
.hp .hp-hot:hover .hp-hot__lbl text, .hp .hp-hot:focus-visible .hp-hot__lbl text { fill: #fff; }
.hp .hp-hot:focus-visible .hp-hot__dot { stroke: var(--hp-ink); stroke-width: 3.5; }

@media (max-width: 760px) {
  .hp .hp-cmp__frame { aspect-ratio: auto; display: grid; gap: 10px; container-type: normal; }
  .hp .hp-cmp__stage { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .hp .hp-vit { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hp .hp-vit__c { min-width: 0; padding: 9px 12px 10px; }
  .hp .hp-vit__c b { font-size: 30px; }
  .hp .hp-cmp__hint, .hp .hp-cmp__note { display: none; }
  .hp .hp-cmp__handle { width: 46px; height: 46px; }
  .hp .hp-cmp__tag { top: 10px; padding: 6px 9px; font-size: 10px; }
  .hp .hp-cmp__tag--l { left: 10px; } .hp .hp-cmp__tag--r { right: 10px; }
  .hp .hp-cmp__bar { justify-content: center; margin-top: 10px; }
  .hp .hp-hot__lbl { display: none; }
  .hp .hp-ecg { height: 12%; }
}

/* ------------------------------------------------------------ „működés közben”: valódi képernyők, kurzorral és érintésekkel */
.hp .hp-capture { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 8px 0 80px; }
.hp .hp-cap { position: relative; padding-bottom: 34px; }
.hp .hp-cap__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 10px solid #1b1e21; outline: 1px solid var(--hp-line-2); box-shadow: 0 40px 70px -34px rgba(18, 24, 29, 0.55); }
.hp .hp-cap__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; max-width: none; }
.hp .hp-cap__frames img.is-on { opacity: 1; }
.hp .hp-cap__cursor { position: absolute; left: 50%; top: 62%; z-index: 6; width: 0; height: 0; opacity: 0; transition: opacity 0.4s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6)); }
.hp .hp-cap__cursor svg { position: absolute; left: -5px; top: -3px; }
.hp .hp-cap.is-live .hp-cap__cursor { opacity: 1; }
.hp .hp-cap__tap { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; }
.hp .hp-cap__tap i { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--hp-orange); background: rgba(239, 84, 34, 0.2); opacity: 0; transform: scale(0.2); }
.hp .hp-cap__tap.is-tap i { animation: hp-ripple 0.9s ease-out; }
.hp .hp-cap__tap.is-tap i:nth-child(2) { animation-delay: 0.14s; }
@keyframes hp-ripple { 0% { opacity: 0.95; transform: scale(0.2); } 70%, 100% { opacity: 0; transform: scale(2.1); } }
.hp .hp-cap__rec { position: absolute; left: 14px; top: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.12em; color: #fff; background: rgba(18, 24, 29, 0.72); border: 1px solid rgba(255, 255, 255, 0.26); }
.hp .hp-cap__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: hp-blink 1.2s ease-in-out infinite; }
.hp .hp-cap__rec b { font-weight: 400; min-width: 3.4ch; }
.hp .hp-cap__tag { position: absolute; right: 14px; top: 12px; z-index: 6; max-width: 70%; padding: 6px 10px; font: 400 10.5px/1.2 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--hp-orange); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.4s var(--hp-ease); }
.hp .hp-cap__tag.is-on { opacity: 1; transform: none; }
.hp .hp-cap .hp-brk { inset: 8px; }
.hp .hp-cap__stand { position: absolute; left: 50%; bottom: 0; width: 190px; height: 34px; transform: translateX(-50%); background: linear-gradient(180deg, #2a2f33, #1b1e21); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.hp .hp-capture__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp .hp-capture__lead { font-size: 15.5px; line-height: 1.55; color: var(--hp-mute); }
.hp .hp-cap__steps { width: 100%; margin-top: 6px; border-top: 1px solid var(--hp-line-2); }
.hp .hp-cap__step { border-bottom: 1px solid var(--hp-line); }
.hp .hp-cap__step button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; width: 100%; padding: 15px 0 15px 14px; text-align: left; cursor: pointer; background: none; border: 0; border-left: 2px solid transparent; color: var(--hp-mute); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.hp .hp-cap__step[data-still] button { cursor: default; }
.hp .hp-cap__step button:hover { color: var(--hp-ink); }
.hp .hp-cap__step.is-on button { color: var(--hp-ink); border-left-color: var(--hp-orange); background: linear-gradient(90deg, rgba(239, 84, 34, 0.1), transparent); }
.hp .hp-cap__n { font: 300 22px/1 var(--font-display, 'Jost', sans-serif); color: var(--hp-orange); }
.hp .hp-cap__step b { display: block; font: 400 17px/1.2 var(--font-display, 'Jost', sans-serif); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 400; }
.hp .hp-cap__step em { display: block; font-style: normal; font-size: 14px; line-height: 1.45; margin-top: 4px; color: var(--hp-dim); }
@media (max-width: 1000px) { .hp .hp-capture { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; } }

/* ------------------------------------------------------------ AI-betegirányító demó */
.hp .hp-ai { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line-2); box-shadow: 0 30px 60px -42px rgba(18, 24, 29, 0.4); }
.hp .hp-ai__stage { position: relative; }
.hp .hp-ai__top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--hp-line); background: var(--hp-paper); }
.hp .hp-ai__top b { font: 400 11px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-mute); font-weight: 400; }
.hp .hp-ai__dots { display: inline-flex; gap: 6px; }
.hp .hp-ai__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(18, 24, 29, 0.2); }
.hp .hp-ai__dots i:first-child { background: var(--hp-teal); }
.hp .hp-ai__scene {
  position: relative; aspect-ratio: 16 / 9.2; overflow: hidden;
  background:
    linear-gradient(var(--hp-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--hp-grid) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(70% 70% at 30% 100%, rgba(19, 138, 138, 0.1), transparent 70%), #f8f9fa;
}
.hp .hp-ai__plan { position: absolute; left: 2.5%; top: 50%; transform: translateY(-50%); width: 62%; height: auto; overflow: visible; }

/* az alaprajz: falak, szobák, útvonal, haladó pont */
.hp .hv-bld { fill: #fff; stroke: #1c3d63; stroke-width: 2.6; }
.hp .hv-corr { fill: #f1eee5; }
.hp .hv-room rect { fill: #fbfaf6; stroke: none; transition: fill 0.5s; }
.hp .hv-room text { font: 400 10.5px 'Space Mono', monospace; fill: #55616b; letter-spacing: 0.06em; text-transform: uppercase; }
.hp .hv-room.is-dest rect { fill: #ffe9de; }
.hp .hv-room.is-dest text { fill: var(--hp-orange-ink); font-weight: 700; }
.hp .hv-walls path { stroke: #1c3d63; stroke-width: 1.8; }
.hp .hv-route-bg { stroke: rgba(239, 84, 34, 0.18); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.hp .hv-route { stroke: var(--hp-orange); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.hp .hv-walker { offset-distance: 100%; offset-rotate: 0deg; }
.hp .hv-walker circle { fill: var(--hp-orange); }
.hp .hv-walker .hv-walker-ring { fill: rgba(239, 84, 34, 0.25); }
.hp .hv-pin circle { fill: var(--hp-ok); stroke: #fff; stroke-width: 2; }
.hp .hp-ai.is-run:not(.is-route) .hv-route, .hp .hp-ai.is-run:not(.is-route) .hv-route-bg, .hp .hp-ai.is-run:not(.is-route) .hv-walker, .hp .hp-ai.is-run:not(.is-route) .hv-pin { opacity: 0; }
.hp .hp-ai.is-run:not(.is-route) .hv-room.is-dest rect { fill: #fbfaf6; }
.hp .hp-ai.is-run:not(.is-route) .hv-room.is-dest text { fill: #55616b; font-weight: 400; }
.hp .hp-ai.is-walk .hv-route { animation: hp-route 2.4s ease-in-out both; }
.hp .hp-ai.is-walk .hv-walker { animation: hp-walk 2.4s ease-in-out both; }
.hp .hp-ai.is-walk .hv-pin { animation: hp-pin 0.5s 2.2s ease-out both; }
@keyframes hp-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hp-walk { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes hp-pin { from { opacity: 0; transform: translate(305px, 84px) scale(0.2); } to { opacity: 1; transform: translate(305px, 84px) scale(1); } }

/* felkészülés- és emlékeztető-kártya */
.hp .hp-ai__card { position: absolute; right: 3%; width: 31%; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; background: #fff; border: 1px solid var(--hp-teal); border-left-width: 3px; box-shadow: 0 18px 34px -18px rgba(18, 24, 29, 0.45); transition: opacity 0.5s var(--hp-ease), transform 0.7s var(--hp-ease); }
.hp .hp-ai__card--prep { top: 8%; }
.hp .hp-ai__card--remind { bottom: 12%; border-color: var(--hp-orange); }
.hp .hp-ai__card b { font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hp-teal-ink); font-weight: 400; margin-bottom: 3px; }
.hp .hp-ai__card--remind b { color: var(--hp-orange-ink); }
.hp .hp-ai__card span { font-size: 12.5px; line-height: 1.4; color: var(--hp-ink-2); }
.hp .hp-ai__card--prep span::before { content: '✓ '; color: var(--hp-ok); }
.hp .hp-ai__to { display: flex !important; align-items: center; gap: 8px; margin-top: 4px; color: var(--hp-orange); }
.hp .hp-ai__to svg { width: 26px; height: 26px; }
.hp .hp-ai__to em { font: 400 10px/1 var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--hp-mute); }
.hp .hp-ai.is-run .hp-ai__card { opacity: 0; transform: translateX(18px); pointer-events: none; }
.hp .hp-ai.is-run.is-prep .hp-ai__card--prep, .hp .hp-ai.is-run.is-remind .hp-ai__card--remind { opacity: 1; transform: none; }
.hp .hp-ai__chips { position: absolute; left: 14px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 3; }
.hp .hp-ai__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: 400 10.5px/1 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-ink); background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(31, 157, 99, 0.6); animation: hp-chip-in 0.5s var(--hp-ease) both; }
.hp .hp-ai__chips li i { color: var(--hp-ok); font-style: normal; }
.hp .hp-ai__chips li em { font-style: normal; color: var(--hp-ok); opacity: 0.9; }
@keyframes hp-chip-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.hp .hp-ai__tag { position: absolute; right: 14px; bottom: 10px; z-index: 4; max-width: 56%; padding: 5px 9px; text-align: right; font: 400 10px/1.25 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hp-mute); background: rgba(255, 255, 255, 0.92); border: 1px solid var(--hp-line); }
.hp .hp-ai__chat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-top: 1px solid var(--hp-line); background: var(--hp-paper); }
.hp .hp-ai__log { display: flex; flex-direction: column; gap: 8px; height: 168px; overflow: hidden; justify-content: flex-end; }
.hp .hp-msg { max-width: 82%; padding: 9px 13px; font-size: 14px; line-height: 1.4; animation: hp-msg 0.45s var(--hp-ease) both; }
.hp .hp-msg--u { align-self: flex-end; color: var(--hp-ink); background: #ffe7dc; border: 1px solid rgba(239, 84, 34, 0.5); }
.hp .hp-msg--a { align-self: flex-start; color: var(--hp-ink); background: #fff; border: 1px solid var(--hp-line-2); }
.hp .hp-msg--a.is-typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.hp .hp-msg--a.is-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--hp-dim); animation: hp-dot 1s ease-in-out infinite; }
.hp .hp-msg--a.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.hp .hp-msg--a.is-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hp-msg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hp-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.hp .hp-ai__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.hp .hp-ai__quick button { padding: 9px 12px; cursor: pointer; font: 500 12.5px/1 var(--font-body, sans-serif); color: var(--hp-ink); background: #fff; border: 1px solid var(--hp-line-2); border-radius: 2px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.hp .hp-ai__quick button:hover, .hp .hp-ai__quick button.is-on { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }
.hp .hp-ai__replay { display: inline-grid; place-items: center; width: 36px; padding: 0 !important; margin-left: auto; }
.hp .hp-ai__input { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--hp-line-2); font-size: 14px; color: var(--hp-dim); }
.hp .hp-ai__input.is-typing { color: var(--hp-ink); }
.hp .hp-ai__typed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .hp-ai__caret { width: 1.5px; height: 17px; background: var(--hp-orange); animation: hp-blink-c 1s steps(2) infinite; opacity: 0; }
.hp .hp-ai__input.is-typing .hp-ai__caret { opacity: 1; }
.hp .hp-ai__send { margin-left: auto; color: var(--hp-orange); display: inline-flex; }
@keyframes hp-blink-c { 50% { opacity: 0; } }
@media (max-width: 1100px) { .hp .hp-aigrid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .hp .hp-ai__log { height: 150px; } .hp .hp-msg { font-size: 13px; }
  .hp .hp-ai__scene { aspect-ratio: 4 / 6.8; }
  .hp .hp-ai__plan { left: 2%; top: 2%; transform: none; width: 96%; }
  .hp .hp-ai__card { left: 3%; right: 3%; width: auto; padding: 9px 12px; }
  .hp .hp-ai__card--prep { top: 50%; }
  .hp .hp-ai__card--remind { top: 75%; bottom: auto; }
  .hp .hp-ai__chips { display: none; }
  .hp .hp-ai__tag { display: none; }
}
