/* Route-scoped comments, social graph, contact privacy and permission-marketing UI. */
.hua-item-engagement { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; clear: both; margin-bottom: 12px; }
.hua-item-engagement form { margin: 0; }
.hua-item-save,.hua-item-report > summary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px; border: 1px solid var(--hua-border); border-radius: 9px; background: #fff; color: #4e5662; font-size: 12px; font-weight: 700; cursor: pointer; }
.hua-item-save.is-saved { border-color: #ffc7c9; background: var(--hua-red-soft); color: var(--hua-red); }
.hua-item-save .hua-icon,.hua-item-report summary .hua-icon { width: 16px; height: 16px; }
.hua-item-report { position: relative; }
.hua-item-report > summary { list-style: none; }
.hua-item-report > summary::-webkit-details-marker { display:none; }
.hua-item-report[open] > form { position: absolute; z-index: 12; top: 48px; right: 0; width: 290px; padding: 14px; border: 1px solid var(--hua-border); border-radius: 11px; background: #fff; box-shadow: var(--hua-shadow); }
.hua-item-report form label { display: block; margin-bottom: 10px; }
.hua-item-report form label span { display: block; margin-bottom: 4px; color: #58616e; font-size: 10px; font-weight: 700; }
.hua-item-report form select,.hua-item-report form textarea { width: 100%; margin: 0; border: 1px solid #dfe3e9; border-radius: 7px; }
.hua-item-report form textarea { padding: 8px; resize: vertical; }
.hua-item-report form .hua-button { width: 100%; }

/* HUA social comments: account identity, compact mobile composer and adaptive media. */
.hua-social-comments {
  margin: 34px 0 10px;
  padding: clamp(18px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(11, 43, 82, .07);
  color: #101828;
  line-height: 1.55;
}

.hua-social-comments-head,
.hua-social-comments-head > div,
.hua-social-comment-input-row,
.hua-social-comment-author,
.hua-social-comment-meta,
.hua-social-comment-tools,
.hua-social-comment-login,
.hua-social-comment-login > div {
  display: flex;
  align-items: center;
}

.hua-social-comments-head {
  position: static;
  z-index: auto;
  inset: auto;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hua-social-comments-head > div { gap: 12px; }
.hua-social-comments-head > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #e31e2f, #b40f21);
  border-radius: 14px;
}
.hua-social-comments-head .hua-icon { width: 21px; height: 21px; }
.hua-social-comments-head h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.2; }
.hua-social-comments-head small { display: block; margin-top: 3px; color: #7a8596; font-size: 13px; }

.hua-social-comments-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #7b8798;
  text-align: center;
  background: #f8fafc;
  border-radius: 18px;
}
.hua-social-comments-empty > span { color: #a9b4c2; }
.hua-social-comments-empty .hua-icon { width: 30px; height: 30px; }
.hua-social-comments-empty p { margin: 0; }

.hua-social-comment-list { display: grid; gap: 0; }
.hua-social-comment {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f4;
}
.hua-social-comment:last-child { border-bottom: 0; }
.hua-social-comment-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  color: #14365f;
  font-weight: 800;
  background: linear-gradient(145deg, #edf5ff, #dbe9fb);
  border: 1px solid #d7e3f2;
  border-radius: 50%;
}
.hua-social-comment-main { min-width: 0; }
.hua-social-comment-author { min-width: 0; gap: 7px; }
.hua-social-comment-author strong { overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hua-social-comment-author b { padding: 1px 6px; color: #d91f31; font-size: 10px; background: #fff0f1; border-radius: 999px; }
.hua-social-comment-body { margin-top: 6px; overflow-wrap: anywhere; color: #27364a; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.hua-social-comment-meta { gap: 14px; margin-top: 9px; color: #8a95a4; font-size: 12px; }
.hua-social-comment-meta button,
.hua-social-comment-meta a { padding: 0; color: #667286; font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; }
.hua-social-comment-meta button:hover { color: #d91f31; }
.hua-social-comment-delete { text-decoration: none; }

.hua-social-comment-like { padding-top: 2px; }
.hua-social-comment-like form { margin: 0; }
.hua-social-comment-like button,
.hua-social-comment-like > span {
  display: grid;
  min-width: 34px;
  justify-items: center;
  gap: 2px;
  padding: 3px;
  color: #8a95a4;
  font-size: 11px;
  background: none;
  border: 0;
}
.hua-social-comment-like button { cursor: pointer; }
.hua-social-comment-like .hua-icon { width: 18px; height: 18px; }
.hua-social-comment-like button.is-liked { color: #e31e2f; }
.hua-social-comment-like button.is-liked .hua-icon { fill: currentColor; }

.hua-social-comment-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 6px;
  max-width: 550px;
  margin-top: 11px;
}
.hua-social-comment-media.is-count-1 { grid-template-columns: minmax(0, 300px); }
.hua-social-comment-media.is-count-2 { grid-template-columns: repeat(2, minmax(0, 220px)); }
.hua-social-comment-media a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #eef2f7;
  border-radius: 11px;
}
.hua-social-comment-media.is-count-1 a { aspect-ratio: 4 / 3; }
.hua-social-comment-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hua-social-comment-replies {
  grid-column: 2 / -1;
  margin-top: 13px;
  padding: 2px 14px;
  background: #f7f9fc;
  border-left: 3px solid #dbe5f1;
  border-radius: 0 14px 14px 0;
}
.hua-social-comment.is-reply { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 13px 0; }
.hua-social-comment.is-reply .hua-social-comment-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 12px; }
.hua-social-comment.is-reply .hua-social-comment-body { font-size: 14px; }

.hua-social-comment-composer {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  margin-top: 22px;
  padding: 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid #dce3ed;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(11,43,82,.12);
  backdrop-filter: blur(14px);
}
.hua-social-comment-input-row { align-items: flex-start; gap: 10px; }
.hua-social-comment-input-shell { position: relative; min-width: 0; flex: 1; }
.hua-social-comment-input-shell textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  max-height: 180px;
  resize: vertical;
  padding: 13px 15px;
  color: #17263a;
  font: inherit;
  line-height: 1.5;
  background: #f5f7fa;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: none;
}
.hua-social-comment-input-shell textarea:focus { background: #fff; border-color: #a8bfdc; box-shadow: 0 0 0 3px rgba(28,90,157,.09); }
.hua-social-comment-tools { flex-wrap: wrap; gap: 6px 12px; padding: 8px 4px 0; }
.hua-social-comment-tools button,
.hua-social-comment-tools label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #667286;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
}
.hua-social-comment-tools button:hover,
.hua-social-comment-tools label:hover { color: #d91f31; }
.hua-social-comment-tools .hua-icon { width: 17px; height: 17px; }
.hua-social-comment-tools small { flex: 1 0 240px; color: #9aa3af; font-size: 11px; text-align: right; }
.hua-social-comment-submit {
  min-width: 72px;
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  font-weight: 800;
  background: #e31e2f;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(227,30,47,.2);
  cursor: pointer;
}
.hua-social-comment-submit:hover { background: #c81527; }
.hua-social-comment-submit:disabled,
.hua-social-comment-like button:disabled { opacity: .55; cursor: wait; }
.hua-social-comment-status { margin: 9px 54px 0; color: #b42332; font-size: 13px; font-weight: 700; }


.hua-public-social { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5eaf1; }
.hua-public-social-counts { display: flex; align-items: center; flex: 1; gap: 18px; min-width: 220px; }
.hua-public-social-counts > span { display: grid; gap: 1px; color: #6c7889; font-size: 12px; }
.hua-public-social-counts strong { color: #14243a; font-size: 18px; }
.hua-public-social-counts small { font: inherit; }
.hua-public-social-counts b { padding: 5px 9px; color: #0b669d; font-size: 11px; background: #edf7ff; border-radius: 999px; }
.hua-public-social form { margin: 0; }
.hua-public-social output { flex-basis: 100%; color: #b42332; font-size: 12px; }

.hua-social-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.hua-social-tabs a { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 14px; color: #56647a; text-decoration: none; background: #fff; border: 1px solid #dde5ef; border-radius: 14px; }
.hua-social-tabs a.is-active { color: #d51e31; border-color: #f0aab1; box-shadow: 0 7px 20px rgba(192,20,42,.08); }
.hua-social-tabs strong { color: #14243a; font-size: 20px; }
.hua-social-network-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); align-items: start; gap: 18px; }
.hua-social-people,.hua-social-privacy-card { padding: 18px; background: #fff; border: 1px solid #dde5ef; border-radius: 18px; }
.hua-social-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f6; }
.hua-social-person:last-child { border-bottom: 0; }
.hua-social-person-main { display: flex; align-items: center; flex: 1; min-width: 0; gap: 11px; color: inherit; text-decoration: none; }
.hua-social-person-main > span,.hua-social-privacy-card > span { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(145deg,#e31e2f,#174b87); border-radius: 50%; }
.hua-social-person-main div { display: grid; min-width: 0; gap: 3px; }
.hua-social-person-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hua-social-person-main small { color: #7a8798; }
.hua-social-person form { margin: 0; }
.hua-social-privacy-card > span { background: #174b87; }
.hua-social-privacy-card h2 { margin: 12px 0 5px; }
.hua-social-privacy-card p { color: #6c7889; line-height: 1.55; }
.hua-social-privacy-card form { display: grid; gap: 9px; margin-top: 15px; }
.hua-social-privacy-card label { display: flex; align-items: center; gap: 9px; padding: 10px; background: #f7f9fc; border-radius: 10px; cursor: pointer; }
.hua-social-privacy-card .hua-button { margin-top: 6px; }

@media (max-width: 760px) {
  .hua-social-network-grid { grid-template-columns: 1fr; }
  .hua-social-privacy-card { order: -1; }
  .hua-social-person { align-items: flex-start; }
  .hua-social-person .hua-button { min-height: 38px; padding: 8px 12px; }
}
.hua-social-emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  grid-template-columns: repeat(6, 36px);
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(10,35,70,.16);
}
.hua-social-emoji-panel:not([hidden]) { display: grid; }
.hua-social-emoji-panel button { width: 36px; height: 36px; padding: 0; font-size: 21px; background: #f7f9fb; border: 0; border-radius: 9px; cursor: pointer; }
.hua-social-comment-previews { display: flex; gap: 7px; padding-top: 8px; }
.hua-social-comment-previews figure { width: 72px; height: 72px; margin: 0; overflow: hidden; background: #edf1f6; border-radius: 10px; }
.hua-social-comment-previews img { width: 100%; height: 100%; object-fit: cover; }
.hua-social-comment-replying { align-items: center; justify-content: space-between; gap: 12px; margin: 0 52px 9px; padding: 7px 11px; color: #355274; font-size: 12px; background: #edf5ff; border-radius: 10px; }
.hua-social-comment-replying:not([hidden]) { display: flex; }
.hua-social-comment-replying button { padding: 0; color: #d91f31; font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; }
.hua-social-comment-login { gap: 13px; margin-top: 20px; padding: 18px; background: #f7f9fc; border-radius: 18px; }
.hua-social-comment-login > span { color: #234e7d; }
.hua-social-comment-login > div { min-width: 0; flex: 1; justify-content: space-between; gap: 18px; }
.hua-social-comment-login strong { color: #4b5b6e; font-size: 14px; font-weight: 600; }

/* Keep all approved scripts legible and prevent translated controls colliding. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body,
button,
input,
select,
textarea { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", "Noto Sans Cyrillic", Arial, sans-serif; }
.hua-header-inner > *,
.hua-header-actions,
.hua-category-nav,
.hua-category-menu,
.hua-category-menu summary,
.hua-card-body,
.hua-card-title { min-width: 0; }
.hua-header-brand-area,
.hua-header-actions { flex-shrink: 1; }
.hua-category-menu summary span,
.hua-header-actions > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hua-card-title,
.hua-card-title a { line-height: 1.4; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .hua-social-comments { margin: 22px -4px 0; padding: 16px 13px 18px; border-radius: 20px; }
  .hua-social-comment { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 16px 0; }
  .hua-social-comment-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 13px; }
  .hua-social-comment-body { font-size: 14px; }
  .hua-social-comment-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hua-social-comment-media.is-count-1 { grid-template-columns: minmax(0, 230px); }
  .hua-social-comment-media.is-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hua-social-comment-replies { margin-left: -45px; padding-left: 10px; }
  .hua-social-comment-composer { bottom: 72px; margin: 18px -5px -5px; padding: 10px; border-radius: 17px; }
  .hua-social-comment-input-row > .hua-social-comment-avatar { display: none; }
  .hua-social-comment-input-row { flex-wrap: wrap; }
  .hua-social-comment-input-shell { flex: 1 1 calc(100% - 82px); }
  .hua-social-comment-submit { align-self: flex-start; min-width: 66px; padding: 0 13px; }
  .hua-social-comment-tools small { display: none; }
  .hua-social-comment-replying { margin: 0 0 8px; }
  .hua-social-emoji-panel { left: 0; right: auto; grid-template-columns: repeat(6, 34px); max-width: calc(100vw - 50px); }
  .hua-social-comment-login > div { align-items: flex-start; flex-direction: column; }
}

/* Retire the legacy Osclass #comments float/form geometry for this component. */
.item #comments.hua-social-comments {
  clear: both;
  float: none;
  width: auto;
  margin: 34px 0 10px;
  padding: clamp(18px, 2.4vw, 30px);
  background: #fff;
}
.item #comments .hua-social-comments-head,
.item #comments .hua-social-comments-empty,
.item #comments .hua-social-comment-list,
.item #comments .hua-social-comment-login,
.item #comments .hua-social-comment-composer {
  clear: both;
  float: none;
  width: auto;
}
.item #comments .hua-social-comments-head { margin: 0 0 20px; padding: 0; background: transparent; }
.item #comments .hua-social-comments-head h2 { margin: 0; }
.item #comments .hua-social-comments-empty { min-height: 150px; height: auto; margin: 0 0 20px; }
.item #comments .hua-social-comment-input-shell textarea { width: 100%; min-height: 54px; height: auto; margin: 0; padding: 13px 15px; }

@media (max-width: 720px) {
  .item #comments.hua-social-comments { margin: 22px -4px 0; padding: 16px 13px 18px; }
  .hua-social-person .hua-button,
  .hua-private-message-start .hua-button,
  .hua-direct-contact summary,
  .hua-contact-secondary .hua-button,
  .hua-marketing-consent-form .hua-button { min-height: 48px; }
}

@media (max-width: 640px) {
  body.user-public-profile .user-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
  }
  body.user-public-profile .user-card > ul { width: auto; }
  body.user-public-profile .user-card > .hua-public-social {
    width: 100%;
    margin-top: 0;
    grid-column: 1 / -1;
  }
  body.user-public-profile .hua-public-social-counts { min-width: 0; }
  body.user-public-profile .hua-public-social .hua-button { min-height: 48px; }
}

/* Private messaging entry points and contact privacy. */
.hua-header-messages{position:relative;display:grid;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--hua-border);border-radius:12px;background:#fff;color:#3f4650;place-items:center}.hua-header-messages .hua-icon{width:19px;height:19px}.hua-header-messages>span{position:absolute;top:-5px;right:-5px;display:grid;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:var(--hua-red);color:#fff;font-size:8px;font-weight:850;place-items:center}.hua-header-messages>span[hidden]{display:none}
.hua-private-message-card{overflow:hidden;border:1px solid var(--hua-border);border-radius:18px;background:#fff;box-shadow:var(--hua-shadow-soft)}.hua-private-message-card>h2{margin:0 0 14px!important;font-size:21px!important}.hua-private-publisher{display:flex;align-items:center;gap:11px;margin-bottom:13px}.hua-private-publisher>span{display:grid;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:linear-gradient(145deg,var(--hua-blue),#6ba8ff);color:#fff;font-size:18px;font-weight:850;place-items:center}.hua-private-publisher>div{min-width:0}.hua-private-publisher strong,.hua-private-publisher small{display:block}.hua-private-publisher strong{overflow:hidden;color:var(--hua-text);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.hua-private-publisher small{margin-top:3px;color:var(--hua-muted);font-size:10px;line-height:1.45}.hua-private-message-start{margin:0 0 11px}.hua-private-message-start .hua-button{width:100%;min-height:46px}.hua-private-message-start .hua-icon{width:18px;height:18px}.hua-private-message-owner{display:grid;gap:10px;justify-items:start;padding:14px;border-radius:12px;background:var(--hua-blue-soft);color:var(--hua-blue-dark)}.hua-private-message-owner>.hua-icon{width:24px;height:24px}.hua-private-message-owner p{margin:0!important;font-size:11px;line-height:1.55}.hua-direct-contact{margin-top:8px;border-top:1px solid var(--hua-border)}.hua-direct-contact summary{display:flex;align-items:center;gap:8px;min-height:42px;color:#56606e;font-size:11px;font-weight:750;cursor:pointer;list-style:none}.hua-direct-contact summary::-webkit-details-marker{display:none}.hua-direct-contact summary span{flex:1}.hua-direct-contact summary .hua-icon{width:15px;height:15px}.hua-direct-contact[open] summary .hua-icon:last-child{transform:rotate(90deg)}.hua-direct-contact>div{padding:0 0 3px 23px}.hua-direct-contact p{margin:5px 0!important;font-size:11px!important;word-break:break-word}.hua-contact-secondary{margin-top:10px;padding:12px!important;border:1px solid var(--hua-border);border-radius:12px;background:#f8f9fb;box-shadow:none!important}.hua-contact-secondary .hua-button{min-height:36px}.hua-contact-privacy-gate{text-align:center}.hua-contact-privacy-gate>div{display:grid;width:48px;height:48px;margin:0 auto 10px;border-radius:16px;background:linear-gradient(145deg,var(--hua-red-soft),var(--hua-blue-soft));color:var(--hua-red);place-items:center}.hua-contact-privacy-gate>div .hua-icon{width:23px;height:23px}.hua-contact-privacy-gate strong{display:block;color:var(--hua-text);font-size:14px}.hua-contact-privacy-gate p{margin:7px 0 13px!important;color:var(--hua-muted);font-size:10px!important;line-height:1.55}.hua-contact-privacy-gate .hua-button{width:100%}
.hua-marketing-preferences{display:grid;gap:16px}.hua-marketing-card{display:grid;gap:20px;max-width:820px}.hua-marketing-state{display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid #e1e7ef;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f7faff 100%)}.hua-marketing-state>.hua-icon{width:28px;height:28px;color:#c91f2f;flex:0 0 auto}.hua-marketing-state small,.hua-marketing-state strong{display:block}.hua-marketing-state small{color:#667085;margin-bottom:3px}.hua-marketing-state strong{font-size:18px}.hua-marketing-state p{margin:6px 0 0;color:#667085}.hua-marketing-consent-form{display:grid;gap:14px}.hua-marketing-consent-form>label{display:flex;align-items:flex-start;gap:11px;padding:15px;border:1px solid #dfe5ed;border-radius:12px;background:#fff;cursor:pointer}.hua-marketing-consent-form input[type=checkbox]{width:20px;height:20px;margin-top:2px;accent-color:#c91f2f}.hua-marketing-consent-form label span,.hua-marketing-consent-form label strong,.hua-marketing-consent-form label small{display:block}.hua-marketing-consent-form label small{color:#667085;margin-top:4px;line-height:1.5}.hua-marketing-consent-form .hua-button{justify-self:start}.hua-marketing-token-card{max-width:620px}.hua-marketing-token-card>p{line-height:1.6;color:#586579}.hua-marketing-result{padding:14px;border-radius:10px;margin:15px 0}.hua-marketing-result.is-success{background:#ecf8f1;color:#146c3e}.hua-marketing-result.is-error{background:#fff0f0;color:#a92229}.hua-marketing-back{display:inline-block;margin-top:18px;color:#173c70;font-weight:700}@media(max-width:640px){.hua-marketing-card{padding:15px}.hua-marketing-consent-form .hua-button{width:100%}.hua-marketing-state{padding:13px}}
