/* Help Desk product page (/hr-help-desk) — the mock-ups only; the layout is product.css. */
.hd-raise { width: 260px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .78rem; display: grid; gap: 10px; }
.hd-raise label { display: flex; flex-direction: column; gap: 4px; font-size: .66rem; font-weight: 600; color: #8a93a4; }
.hd-raise label span { font-size: .78rem; font-weight: 500; color: #1d2433; border: 1px solid #e3e7ee; border-radius: 7px; padding: 7px 9px; background: #fafbfd; }
.hd-suggest { font-size: .7rem; font-weight: 700; color: #5b5bd6; display: flex; gap: 6px; align-items: center; }
.hd-chips { display: flex; gap: 6px; }
.hd-chip { padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.hd-chip.cat { background: #eef0fd; color: #4f46e5; transition-delay: .7s; }
.hd-chip.pri { background: #fff1e6; color: #c2410c; transition-delay: 1s; }
.pp-card.in .hd-chip { opacity: 1; transform: none; }
.hd-send { justify-self: start; padding: 7px 14px; border-radius: 8px; background: #0c64ae; color: #fff; font-weight: 600; font-size: .74rem; }

.hd-queue { width: 280px; background: #fff; border-radius: 12px; padding: 6px 14px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); }
.hd-q { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f2f6; font-size: .76rem;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * .15s + .3s); }
.hd-q:last-child { border-bottom: 0; }
.hd-q small { display: block; color: #8a93a4; font-size: .66rem; }
.hd-q em { margin-left: auto; font-style: normal; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f1f3f7; color: #6b7487; white-space: nowrap; }
.hd-q em.late { background: #fde8e8; color: #b91c1c; animation: hdLate 1.4s ease-in-out infinite; }
.hd-q em.soon { background: #fff4e0; color: #b45309; }
@keyframes hdLate { 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); } }
.pp-card.in .hd-q { opacity: 1; transform: none; }

.hd-thread { width: 280px; display: grid; gap: 8px; font-size: .74rem; }
.hd-m { display: flex; gap: 8px; align-items: flex-end; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.hd-m p { margin: 0; padding: 9px 11px; border-radius: 12px; line-height: 1.45; box-shadow: 0 4px 12px rgba(16, 24, 40, .06); }
.hd-m.emp p { background: #fff; border-bottom-left-radius: 3px; }
.hd-m.hr { justify-content: flex-end; transition-delay: 1.1s; }
.hd-m.hr p { background: #0c64ae; color: #fff; border-bottom-right-radius: 3px; }
.hd-m.note { padding-left: 24px; align-items: center; transition-delay: .6s; }
.hd-m.note > i { color: #b45309; --fa-primary-color: #b45309; --fa-secondary-color: #f59e0b; }
.hd-m.note p { background: #fff8e1; border: 1px dashed #f2c46d; box-shadow: none; }
.hd-m.note small { display: block; margin-top: 3px; color: #b45309; font-size: .62rem; font-weight: 700; }
.hd-m .pp-av { width: 26px; height: 26px; font-size: .58rem; }
.pp-card.in .hd-m { opacity: 1; transform: none; }

.hd-canned { width: 260px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .76rem; }
.hd-canned-head { padding: 8px 10px; font-weight: 700; color: #1d2433; display: flex; gap: 7px; align-items: center; }
.hd-canned-head i { color: #f59e0b; --fa-primary-color: #f59e0b; --fa-secondary-color: #f59e0b; }
.hd-canned-row { padding: 9px 10px; border-radius: 8px; color: #4b5568; transition: background .3s, color .3s; }
.hd-canned-row.on { animation: hdPick 4s ease-in-out infinite; }
@keyframes hdPick { 0%, 20%, 100% { background: transparent; color: #4b5568; } 30%, 80% { background: #eef5fd; color: #0c64ae; font-weight: 600; } }

.hd-agents { width: 260px; display: grid; gap: 8px; }
.hd-agent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(16, 24, 40, .07); font-size: .78rem;
  opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * .18s + .3s); }
.hd-agent .pp-av { background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.hd-agent small { display: block; color: #8a93a4; font-size: .66rem; }
.hd-agent em { margin-left: auto; font-style: normal; min-width: 24px; height: 24px; border-radius: 999px; background: var(--c); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.pp-card.in .hd-agent { opacity: 1; transform: none; }

.hd-notify { position: relative; width: 260px; height: 200px; }
.hd-bell { position: absolute; right: 16px; top: 4px; width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .1); --fa-primary-color: #0c64ae; --fa-secondary-color: #0c64ae; color: #0c64ae; animation: hdRing 3s ease-in-out infinite; transform-origin: 50% 10%; }
.hd-bell span { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #dc2626; color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }
@keyframes hdRing { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(12deg); } 80% { transform: rotate(-10deg); } 85% { transform: rotate(6deg); } 90% { transform: rotate(-3deg); } }
.hd-toast { position: absolute; left: 0; top: 70px; width: 230px; padding: 11px 14px; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(16, 24, 40, .12); font-size: .76rem;
  border-left: 4px solid #0c64ae; opacity: 0; transform: translateY(10px); transition: opacity .45s .5s, transform .45s .5s; }
.hd-toast.t2 { top: 132px; left: 22px; border-left-color: #16a34a; transition-delay: 1.1s; }
.hd-toast small { display: block; color: #8a93a4; font-size: .66rem; margin-top: 2px; }
.pp-card.in .hd-toast { opacity: 1; transform: none; }

.hd-tbl td:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.hd-tbl td.late { color: #b91c1c; font-weight: 700; }
.hd-p { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hd-p.u { background: #fde8e8; color: #b91c1c; } .hd-p.h { background: #fff1e6; color: #c2410c; } .hd-p.n { background: #eef5fd; color: #0c64ae; } .hd-p.l { background: #f1f3f7; color: #6b7487; }
.hd-reply { border-radius: 12px; padding: 16px; background: linear-gradient(135deg, #eef5fd, #f3effd); line-height: 1.6; }
.hd-reply p { margin: 8px 0 0; color: #3c4557; }
.hd-reply-tag { font-size: .74rem; font-weight: 700; color: #5b5bd6; display: flex; gap: 6px; align-items: center; }
.pp-scene.on .hd-reply { animation: ppRow .5s .2s both; }
.hd-after { margin-top: 16px; }
.pp-scene.on .hd-after .pp-dl { animation: ppRow .45s both; } .pp-scene.on .hd-after .pp-dl:nth-child(2) { animation-delay: .3s; }

@media (max-width: 640px) {
  .hd-tbl td:first-child { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-chip, .hd-q, .hd-m, .hd-agent, .hd-toast { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hd-bell, .hd-q em.late, .hd-canned-row.on { animation: none; }
}
