.hd-narrow { max-width: 760px; }
.hd-alert { display: block; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.hd-alert--error { background: #fff1f1; border: 1px solid #f2b8b8; color: #8a1010; }
.hd-filter { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.hd-filter a, .hd-filter a:link, .hd-filter a:visited { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #cfcfcf; background: #fff; color: #1c1c1c; font-size: 14px; font-weight: 600; text-decoration: none; }
.hd-filter a.is-active { background: #1c1c1c; border-color: #1c1c1c; color: #fff; }
.hd-list { display: flex; flex-direction: column; gap: 12px; }
.hd-row, .hd-row:link, .hd-row:visited { display: block; min-width: 0; background: #fff; border: 1px solid #e4e4e4; border-radius: 14px; padding: 14px 16px; color: #1c1c1c; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hd-row:hover { border-color: #c8102e; }
.hd-row.is-unread { border-color: #c8102e; }
.hd-row.is-unread .hd-row__subject { font-weight: 800; }
.hd-row.is-waiting { background: #fffaf0; border-color: #f3dd9b; }
.hd-row__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #777; }
.hd-row__no { font-weight: 700; color: #1c1c1c; }
.hd-row__subject { margin: 4px 0 8px; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.hd-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: #666; }
.hd-row__meta .ah-badge { padding: 3px 10px; font-size: 12px; }
.hd-new { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #c8102e; color: #fff; font-size: 12px; font-weight: 700; }
.hd-head { margin-bottom: 16px; }
.hd-head__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hd-title { font-style: normal !important; text-transform: none; letter-spacing: 0; font-size: 22px; line-height: 1.25; margin: 8px 0 12px; overflow-wrap: anywhere; }
.hd-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.hd-meta div { min-width: 0; }
.hd-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.hd-meta dd { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.hd-meta a { color: #c8102e; text-decoration: underline; }
.hd-thread { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.hd-msg { max-width: 88%; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid #e4e4e4; background: #fff; }
.hd-msg--me { align-self: flex-end; background: #fff4f5; border-color: #f0b3ba; }
.hd-msg--team { align-self: flex-start; }
.hd-msg__who { font-size: 12.5px; color: #777; margin-bottom: 6px; font-weight: 600; }
.hd-msg__body { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.hd-msg__body a { color: #c8102e; text-decoration: underline; }
.hd-msg__body a.hd-prod { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 12px 6px 6px; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; color: #1c1c1c; text-decoration: none; font-weight: 600; }
.hd-prod img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fafafa; }
.hd-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hd-atts a { display: block; width: 96px; font-size: 11.5px; color: #555; text-decoration: none; overflow: hidden; }
.hd-atts img { width: 96px; height: 96px; object-fit: cover; border: 1px solid #e4e4e4; border-radius: 10px; display: block; }
.hd-atts span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.hd-form { margin-bottom: 16px; }
.hd-textarea { min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.hd-file { display: block; width: 100%; font-size: 14px; }
.hd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hd-orders { max-height: 240px; overflow-y: auto; border: 1px solid #cfcfcf; border-radius: 12px; background: #fff; margin-top: 8px; -webkit-overflow-scrolling: touch; }
.hd-order { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; font-size: 14px; line-height: 1.4; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.hd-order:last-child { border-bottom: 0; }
.hd-order[hidden] { display: none; }
.hd-order input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #c8102e; }
.hd-order span { min-width: 0; overflow-wrap: anywhere; }
.hd-order:hover { background: #fafafa; }
.hd-rate .acc-btn { margin-top: 12px; }
.hd-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 12px; }
.hd-stars input { position: absolute; opacity: 0; pointer-events: none; }
.hd-stars label { font-size: 36px; line-height: 1; color: #cfcfcf; cursor: pointer; padding: 0 3px; margin: 0; text-transform: none; }
.hd-stars input:checked ~ label, .hd-stars label:hover, .hd-stars label:hover ~ label { color: #f0a000; }
.hd-stars input:focus-visible + label { outline: 2px solid #c8102e; border-radius: 6px; }
.hd-archived p { margin: 0 0 12px; }
@media (max-width: 480px) {
    .hd-msg { max-width: 96%; }
    .hd-actions { grid-template-columns: 1fr; }
    .hd-actions .acc-btn--ghost { order: 2; }
    .hd-title { font-size: 19px; }
}
.hd-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
.hd-toggle[hidden], #hdOrderField[hidden], #hdOrderBox[hidden] { display: none; }
.hd-toggle input { flex: none; width: 22px; height: 22px; accent-color: #c8102e; margin: 0; }
.hd-back, .hd-back:link, .hd-back:visited { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; margin: 6px 0 4px; border-radius: 999px; background: #fde3e6; border: 1px solid #f6c3c9; color: #c8102e; font-size: 14px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.hd-back:hover, .hd-back:focus-visible { background: #f9cdd3; border-color: #c8102e; color: #a80d26; }
.hd-chip { gap: 8px; border-color: #c8102e; color: #c8102e !important; background: #fff4f5; }
.hd-chip:hover { background: #fde3e6; }
.hd-chip__icon { flex: none; }
.hd-newtag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #c8102e; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; line-height: 1; animation: hdPulse 1.8s ease-in-out infinite; }
@keyframes hdPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.45); } 50% { box-shadow: 0 0 0 6px rgba(200,16,46,0); } }
@media (prefers-reduced-motion: reduce) { .hd-newtag { animation: none; } }
.hd-contact-lead { font-style: normal !important; text-transform: none; letter-spacing: 0; font-size: 22px; line-height: 1.3; color: #c8102e; margin: 0 0 12px; }
.hd-contact-hint { margin: 0 0 16px; color: #555; font-size: 14.5px; }
.hd-contact-form { max-width: 640px; }
.hd-support-notice { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #f0b3ba; border-radius: 14px; background: #fff4f5; }
.hd-support-notice strong { display: block; font-size: 16px; margin-bottom: 4px; }
.hd-support-notice p { margin: 0 0 12px; color: #555; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 480px) { .hd-contact-form .acc-row { grid-template-columns: 1fr; gap: 0; } }
.page-sidebar .page-sidebar-list { margin: 0; }
.page__content .hd-contact-form { max-width: 640px; }
.hd-pagehead { padding: 18px 0 0; }
.hd-pagehead .breadcrumbs { margin: 0 0 6px; font-size: 14px; color: #666; }
.hd-pagehead .breadcrumbs a, .hd-pagehead .breadcrumbs a:link, .hd-pagehead .breadcrumbs a:visited { color: #666; text-decoration: none; }
.hd-pagehead .breadcrumbs a:hover { color: #c8102e; text-decoration: underline; }
.hd-pagehead .page-title { margin: 0; font-size: 30px; line-height: 1.2; text-transform: none; letter-spacing: 0; }
@media (max-width: 749px) { .hd-pagehead .page-title { font-size: 24px; } }
.ah-quick .ah-chipbtn { gap: 8px; }
.ah-quick .ah-chipbtn .hd-chip__icon { flex: none; }
