/* ML Wire — feed social interno */

.xg-wire {
  --wire-cyan: #22d3ee;
  --wire-muted: #94a3b8;
  --wire-text: #e2e8f0;
  color: var(--wire-text);
  padding-bottom: 5.5rem;
  max-width: 100%;
}

.xg-wire__hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background:
    linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(8, 12, 24, 0.94) 48%, rgba(2, 6, 23, 0.98)),
    repeating-linear-gradient(-55deg, transparent, transparent 10px, rgba(125, 211, 252, 0.03) 10px, rgba(125, 211, 252, 0.03) 11px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.08);
  padding: 1rem 1.15rem 1.05rem;
  margin: 0 0 0.85rem;
}

.xg-wire__hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.xg-wire__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.xg-wire__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #042f2e;
  background: linear-gradient(160deg, #67e8f9, #22d3ee 40%, #0891b2);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
  flex: 0 0 auto;
}

.xg-wire__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--wire-cyan);
}

.xg-wire__title {
  margin: 0.1rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.1;
}

.xg-wire__lead {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--wire-muted);
  max-width: 36rem;
}

.xg-wire__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(6, 78, 59, 0.45);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.xg-wire__live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: xg-wire-live 1.6s ease-out infinite;
}

@keyframes xg-wire-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.xg-wire__flash {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.xg-wire__flash--ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #bbf7d0;
}

.xg-wire__flash--err {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.xg-wire__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.xg-wire__filter {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1 !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.xg-wire__filter:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: #f0f9ff !important;
}

.xg-wire__filter.is-on {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(14, 165, 233, 0.2);
  color: #e0f2fe !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.xg-wire__compose {
  scroll-margin-top: 0;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.xg-wire__compose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.xg-wire__label {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wire-cyan);
}

.xg-wire__ch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wire-muted);
}

.xg-wire__channel {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-weight: 750;
}

.xg-wire__input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 4.5rem;
}

.xg-wire__input:focus {
  outline: 0;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.xg-wire__emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0 0.55rem;
}

.xg-wire__emoji-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.2;
}

.xg-wire__emoji-btn:hover {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(14, 165, 233, 0.12);
}

.xg-wire__compose-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.xg-wire__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--wire-muted);
  font-weight: 650;
}

.xg-wire__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(45, 212, 191, 0.55);
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  color: #042f2e;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(13, 148, 136, 0.4);
}

.xg-wire__submit:hover {
  filter: brightness(1.05);
}

.xg-wire__guest {
  margin: 0;
  color: var(--wire-muted);
  font-size: 0.92rem;
}

.xg-wire__guest a {
  color: #7dd3fc;
  font-weight: 750;
}

.xg-wire__feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}

.xg-wire__feed-title {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wire-cyan);
}

.xg-wire__feed-count {
  font-size: 0.75rem;
  color: var(--wire-muted);
  font-weight: 650;
}

.xg-wire__empty {
  margin: 0;
  padding: 1.1rem;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.45);
  color: var(--wire-muted);
}

.xg-wire__card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  padding: 0.8rem 0.9rem 0.75rem;
  margin: 0 0 0.6rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-left: 3px solid #64748b;
}

.xg-wire__card--official { border-left-color: #22d3ee; }
.xg-wire__card--club { border-left-color: #a78bfa; }
.xg-wire__card--community { border-left-color: #64748b; }

.xg-wire__card.is-pinned {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.1), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.xg-wire__card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.45rem;
}

.xg-wire__who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.xg-wire__crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.5);
  flex: 0 0 auto;
}

.xg-wire__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #67e8f9;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  flex: 0 0 auto;
}

.xg-wire__who-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.xg-wire__name {
  font-size: 0.9rem;
  font-weight: 850;
  color: #f8fafc;
  line-height: 1.2;
}

.xg-wire__team {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wire-muted);
}

.xg-wire__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.xg-wire__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.xg-wire__badge--official {
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(34, 211, 238, 0.4);
}

.xg-wire__badge--club {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.4);
}

.xg-wire__badge--community {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.18);
  border-color: rgba(148, 163, 184, 0.3);
}

.xg-wire__badge--pin {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
}

.xg-wire__badge--agent {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.4);
}

.xg-wire__body {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Markdown tables inside wire body */
.xg-wire__table-wrap {
  overflow-x: auto;
  margin: 0.35rem 0 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.xg-wire__md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: nowrap;
}
.xg-wire__md-table th,
.xg-wire__md-table td {
  padding: 0.3rem 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}
.xg-wire__md-table th {
  background: rgba(30, 41, 59, 0.7);
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.xg-wire__md-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

.xg-wire__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.6rem;
  margin-top: 0.15rem;
}

.xg-wire__meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}

.xg-wire__when {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 650;
}

.xg-wire__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.55rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
  color: #94a3b8;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1;
  cursor: default;
}

button.xg-wire__chip {
  cursor: pointer;
}

button.xg-wire__chip:hover {
  border-color: rgba(125, 211, 252, 0.4);
  color: #e2e8f0;
}

.xg-wire__chip i {
  font-size: 0.72em;
  opacity: 0.9;
}

.xg-wire__chip--comments[aria-expanded="true"],
.xg-wire__chip--comments.has-comments {
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.16);
}

.xg-wire__chip--comments.has-comments i,
.xg-wire__chip--comments[aria-expanded="true"] i {
  color: #38bdf8;
  opacity: 1;
}

.xg-wire__card.is-thread-open .xg-wire__chip--comments {
  border-color: rgba(34, 211, 238, 0.55);
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.2);
}

.xg-wire__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.xg-wire__act-form {
  margin: 0;
  display: inline;
}

.xg-wire__act {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
}

.xg-wire__act:hover {
  border-color: rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
}

.xg-wire__act--danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.xg-wire__act--tiny {
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.65rem;
  border-radius: 7px;
  opacity: 0.85;
}

.xg-wire__ch-form {
  display: inline-flex;
  align-items: center;
}

.xg-wire__ch-admin-lbl {
  margin: 0;
  display: inline-flex;
}

.xg-wire__ch-admin {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 0.2rem 1.4rem 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  max-width: 6.5rem;
  cursor: pointer;
}

.xg-wire__edited {
  display: inline-block;
  margin: -0.35rem 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.xg-wire__feed-more,
.xg-wire__more-replies {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
}

.xg-wire__load-more,
.xg-wire__more-replies {
  appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.xg-wire__load-more:hover,
.xg-wire__more-replies:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.2);
}

.xg-wire__load-more[data-busy="1"],
.xg-wire__more-replies[data-busy="1"] {
  opacity: 0.7;
  cursor: wait;
}

.xg-wire__replies {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.xg-wire__attach-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.55rem 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--wire-muted);
}

.xg-wire__attach {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
}

.xg-wire__attach-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.1);
  text-decoration: none !important;
  color: inherit;
}

.xg-wire__attach-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(14, 165, 233, 0.16);
}

.xg-wire__attach-card__ico {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.45);
  color: #67e8f9;
  flex: 0 0 auto;
}

.xg-wire__attach-card__txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.xg-wire__attach-card__txt strong {
  font-size: 0.86rem;
  color: #f8fafc;
  line-height: 1.25;
}

.xg-wire__attach-card__txt span {
  font-size: 0.72rem;
  color: var(--wire-muted);
  font-weight: 650;
}

.xg-wire__attach-card__go {
  color: #7dd3fc;
  font-size: 0.78rem;
  flex: 0 0 auto;
}

.xg-wire__attach-card--trade {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.xg-wire__attach-card--player {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.xg-wire__photo-field {
  margin: 0.55rem 0 0.35rem;
}
.xg-wire__photo-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.xg-wire__photo-pick--cam {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #bbf7d0;
}
.xg-wire__photo-pick--cam:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(16, 185, 129, 0.2);
}

.xg-wire__photo-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(125, 211, 252, 0.4);
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.xg-wire__photo-pick input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.xg-wire__photo-pick:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(14, 165, 233, 0.14);
}

.xg-wire__photo-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--wire-muted);
  font-weight: 650;
}

.xg-wire__photo-preview {
  position: relative;
  margin-top: 0.55rem;
  width: min(100%, 16rem);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
}

.xg-wire__photo-preview[hidden] {
  display: none !important;
}

.xg-wire__photo-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: cover;
}

.xg-wire__photo-clear {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fecaca;
  cursor: pointer;
}

.xg-wire__photo {
  display: block;
  margin: 0.55rem 0 0.15rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #020617;
  max-width: min(100%, 28rem);
}

.xg-wire__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  background: #020617;
}

/* Card news stile Twitter / link preview */
.xg-wire__news-card {
  display: block;
  margin: 0.55rem 0 0.15rem;
  max-width: min(100%, 28rem);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.xg-wire__news-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.92);
}
.xg-wire__news-card__media {
  display: block;
  background: #020617;
  line-height: 0;
}
.xg-wire__news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
  object-position: center;
}
.xg-wire__news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem 0.8rem;
}
.xg-wire__news-card__domain {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: lowercase;
}
.xg-wire__news-card__title {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #f1f5f9;
}
.xg-wire__news-card__sub {
  font-size: .8rem;
  color: #94a3b8;
}
a.xg-wire-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.xg-wire__react-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.xg-wire__react-bar--reply {
  margin-top: 0.35rem;
}

.xg-wire__react-main {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.55rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  line-height: 1;
}

.xg-wire__react-main:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.45);
  color: #f8fafc;
}

.xg-wire__react-main.is-on {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(14, 165, 233, 0.16);
  color: #e0f2fe;
}

.xg-wire__react-main:disabled {
  opacity: 0.7;
  cursor: default;
}

.xg-wire__react-main-emoji {
  font-size: 0.9rem;
}

.xg-wire__react-main-n:empty {
  display: none;
}

.xg-wire__react-picker {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.xg-wire__react-picker[hidden] {
  display: none !important;
}

.xg-wire__react-bar--reply .xg-wire__react-picker {
  bottom: auto;
  top: calc(100% + 6px);
}

.xg-wire__react {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  min-height: 1.85rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  line-height: 1;
}

.xg-wire__react:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.14);
}

.xg-wire__react.is-on {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(34, 211, 238, 0.4);
}

.xg-wire__react:disabled {
  opacity: 0.72;
  cursor: default;
}

.xg-wire__react-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.xg-wire__react-n:empty {
  display: none;
}

.xg-wire__react-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.xg-wire__react-summary[hidden] {
  display: none !important;
}

.xg-wire__react-pill {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  padding: 0.12rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  font: inherit;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 750;
  cursor: pointer;
  line-height: 1.2;
}
.xg-wire__react-pill:hover,
.xg-wire__react-pill:focus-visible,
.xg-wire__react-pill.is-open {
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.14);
  outline: none;
}

.xg-wire__react-who {
  position: fixed;
  z-index: 100080;
  min-width: 160px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 22, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: auto;
}
.xg-wire__react-who[hidden] {
  display: none !important;
}
.xg-wire__react-who__title {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.xg-wire__react-who__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.xg-wire__react-who__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.xg-wire__react-who__list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xg-wire__react-who__more {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
}
.xg-wire__react-who__empty,
.xg-wire__react-who__loading {
  margin: 0;
  color: #94a3b8;
}

.xg-wire__thread {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.xg-wire__thread[hidden] {
  display: none !important;
}

.xg-wire__thread-guest {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.xg-wire__pcards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}
.xg-wire__pcard {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: linear-gradient(165deg, rgba(250, 204, 21, 0.1), rgba(15, 23, 42, 0.55));
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.xg-wire__pcard:hover {
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(165deg, rgba(250, 204, 21, 0.16), rgba(15, 23, 42, 0.7));
}
.xg-wire__pcard-ph {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.5);
  flex: 0 0 auto;
}
.xg-wire__pcard-txt {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
  padding-right: 0.15rem;
}
.xg-wire__pcard-name {
  font-size: 0.78rem;
  font-weight: 750;
  color: #fef9c3;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9.5rem;
}
.xg-wire__pcard-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 650;
}
.xg-wire__pcard-ovr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.22rem;
  border-radius: 5px;
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
  font-weight: 850;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.xg-wire__pcard-age {
  font-weight: 750;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.xg-wire__pcard-pos {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.xg-wire__reply {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.xg-wire__reply-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
}

.xg-wire__reply-who {
  font-size: 0.78rem;
  font-weight: 800;
  color: #e0f2fe;
}

.xg-wire__reply-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #cbd5e1;
  word-break: break-word;
}

.xg-wire__reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}

.xg-wire__reply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.xg-wire__reply-input {
  flex: 1 1 10rem;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.5);
  color: #f8fafc;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.4rem 0.55rem;
}

.xg-wire__reply-input:focus {
  outline: 0;
  border-color: rgba(34, 211, 238, 0.5);
}

.xg-wire__reply-emoji-toggle {
  appearance: none;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.xg-wire__reply-emoji-toggle:hover,
.xg-wire__reply-emoji-toggle[aria-expanded="true"] {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.14);
}

.xg-wire__reply-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.55);
}

.xg-wire__reply-emoji[hidden] {
  display: none !important;
}

.xg-wire__emoji-btn--reply {
  font-size: 0.95rem;
  padding: 0.15rem 0.28rem;
}

/* Su touch/mobile bastano le emoji della tastiera */
@media (max-width: 720px) {
  .xg-wire__reply-emoji-toggle,
  .xg-wire__reply-emoji {
    display: none !important;
  }
}

.xg-wire__reply-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.16);
  color: #e0f2fe;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.xg-wire__reply-btn:hover {
  background: rgba(14, 165, 233, 0.28);
}

/* Tag @ / # */
.xg-wire-tag {
  display: inline;
  font-weight: 750;
  text-decoration: none;
  border-radius: 4px;
  padding: 0 0.12em;
}
.xg-wire-tag:hover {
  text-decoration: underline;
}
.xg-wire-tag--user,
.xg-wire-tag--team {
  color: #38bdf8;
}
.xg-wire-tag--player {
  color: #facc15;
}
.xg-wire__hint-tags .xg-wire-tag {
  padding: 0;
  font-weight: 850;
  pointer-events: none;
  text-decoration: none;
}

/* Autocomplete dropdown */
.xg-wire__compose-field {
  position: relative;
  z-index: 5;
  overflow: visible;
}
.xg-wire-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  max-height: 14rem;
  overflow: auto;
  margin: 0;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.xg-wire-ac[hidden] {
  display: none !important;
}
.xg-wire-ac__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.xg-wire-ac__item:hover,
.xg-wire-ac__item.is-active {
  background: rgba(56, 189, 248, 0.14);
}
.xg-wire-ac__ico {
  width: 1.1rem;
  text-align: center;
  opacity: 0.95;
}
.xg-wire-ac__ico--user,
.xg-wire-ac__ico--team { color: #38bdf8; }
.xg-wire-ac__ico--player { color: #facc15; }
.xg-wire-ac__ico--all { color: #fb7185; }
.xg-wire-tag--all {
  color: #fda4af;
  font-weight: 800;
}
.xg-wire-ac__txt {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.xg-wire-ac__txt strong {
  font-size: 0.86rem;
  font-weight: 750;
}
.xg-wire-ac__txt small {
  font-size: 0.72rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xg-wire-ac__loading {
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Home: tag colorati (span) dentro la card-link */
.pub-home-tb__body .xg-wire-tag {
  font-weight: 750;
}

@media (prefers-reduced-motion: reduce) {
  .xg-wire__live-dot { animation: none; }
}

/* Home panel rebrand helpers */
.pub-home-module--wire .pub-home-tb__eyebrow,
.pub-home-module--tagboard .pub-home-tb__eyebrow {
  letter-spacing: 0.06em;
}

/* Barra fissa “Posta” + menu canale mobile */
.xg-wire__dock-ch {
  display: none;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 11.5rem;
}

.xg-wire__publish-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(2, 6, 23, 0.98));
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Su Wire il quick-nav mobile è spento: Posta resta a fondo schermo */
@media (max-width: 959.98px) {
  /* Header: ML Wire al posto di ML Manager */
  body.page-wire .site-header .brand-name {
    font-size: 0;
    letter-spacing: 0;
  }
  body.page-wire .site-header .brand-name::after {
    content: 'ML Wire';
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: #e8f4fc;
  }

  /* Niente hero / filtri top: si parte dal feed (con titolo Feed) */
  body.page-wire .xg-wire__hero,
  body.page-wire .xg-wire__filters--top {
    display: none !important;
  }

  body.page-wire .xg-wire {
    padding-top: 0.35rem;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.page-wire .xg-wire__publish-bar {
    bottom: 0;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  body.page-wire .xg-wire__dock-ch {
    display: block;
  }

  body.page-wire .xg-wire__publish-open {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
  }
}

@media (min-width: 960px) {
  body.page-wire .xg-wire__dock-ch {
    display: none !important;
  }
}

.xg-wire__dock-ch-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.xg-wire__dock-ch-btn:hover,
.xg-wire__dock-ch.is-open .xg-wire__dock-ch-btn {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.14);
}
.xg-wire__dock-ch-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xg-wire__dock-ch-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}
.xg-wire__dock-ch.is-open .xg-wire__dock-ch-caret {
  transform: rotate(180deg);
}
.xg-wire__dock-ch-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 22, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.xg-wire__dock-ch-menu[hidden] {
  display: none !important;
}
.xg-wire__dock-ch-menu-title {
  margin: 0 0 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.xg-wire__dock-ch-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.55rem;
  border-radius: 10px;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 700;
}
.xg-wire__dock-ch-item i:first-child {
  width: 1rem;
  text-align: center;
  color: #94a3b8;
}
.xg-wire__dock-ch-item:hover {
  background: rgba(14, 165, 233, 0.12);
}
.xg-wire__dock-ch-item.is-on {
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe !important;
}
.xg-wire__dock-ch-item.is-on i:first-child {
  color: #38bdf8;
}
.xg-wire__dock-ch-check {
  margin-left: auto;
  color: #4ade80;
  font-size: 0.75rem;
}

.xg-wire__publish-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: min(20rem, 92vw);
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.55);
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  color: #042f2e;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.28);
}

.xg-wire__publish-open:hover {
  filter: brightness(1.05);
  color: #042f2e !important;
}

.xg-wire__publish-open--guest {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.55));
  border-color: rgba(125, 211, 252, 0.45);
  color: #f0f9ff !important;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.2);
}

.xg-wire__dialog {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(36rem, calc(100vw - 1.25rem));
  max-height: min(92vh, 40rem);
  border-radius: 16px;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.xg-wire__dialog::backdrop {
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.xg-wire__dialog-panel {
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background:
    linear-gradient(160deg, rgba(14, 165, 233, 0.12), rgba(8, 12, 24, 0.98) 42%, rgba(2, 6, 23, 0.99));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  padding: 0.85rem 0.95rem 1rem;
  overflow: auto;
  max-height: min(92vh, 40rem);
}

.xg-wire__dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.xg-wire__dialog-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0f2fe;
}

.xg-wire__dialog-close {
  appearance: none;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  cursor: pointer;
}

.xg-wire__dialog-close:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
