/* The Wire — page styles (vendorless surface; Home DNA). */

.uc-wire-column {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.uc-wire-intro {
  /* Match feed cards: no extra hover lift fighting the stack. */
  flex-shrink: 0;
}

.uc-wire-intro-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.uc-wire-brand-copy {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--uc-primary-ink);
}

/* Channel dock — always-on rail (the Wire's product identity) */
.uc-wire-category-bar {
  margin: 0;
  padding: 0;
}

.uc-wire-channel-dock {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.uc-wire-channel-dock__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uc-text-muted, rgba(0, 0, 0, 0.55));
}

.uc-wire-channel-dock__scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.45rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.uc-wire-cat-btn {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--uc-border-strong);
  border-radius: 999px;
  background: var(--uc-surface);
  color: var(--uc-border-strong);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--uc-border-strong);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.uc-wire-cat-btn:hover {
  background: var(--uc-danger-surface);
  transform: translateY(-1px);
}

.uc-wire-cat-btn.is-active {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
  box-shadow: 3px 3px 0 var(--uc-border-strong);
}

.uc-wire-cat-btn.is-active:hover {
  background: var(--uc-primary);
}

/* Updates channel chip always reads as the gold lane */
.uc-wire-cat-btn.is-updates {
  border-color: var(--uc-border-strong);
}

.uc-wire-cat-btn.is-updates.is-active {
  background: var(--uc-gold);
  color: var(--uc-text-on-gold, #111);
}

.uc-wire-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Kill stacked hover transforms that cause card flicker. */
#page-wire .uc-wire-card.main-card,
#page-wire .uc-wire-card.uc-card-trippy,
#page-wire .uc-wire-intro.main-card,
#page-wire .uc-wire-intro.uc-card-trippy {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
  transform: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

@media (hover: hover) and (pointer: fine) {
  #page-wire .uc-wire-card.main-card:hover,
  #page-wire .uc-wire-card.uc-card-trippy:hover,
  #page-wire .uc-wire-intro.main-card:hover,
  #page-wire .uc-wire-intro.uc-card-trippy:hover {
    transform: none;
    box-shadow: 4px 5px 0 var(--uc-shadow-ink-strong), 0 0 0 1px rgba(255, 223, 0, 0.34);
  }
}

.uc-wire-card {
  overflow: hidden;
  cursor: pointer;
  will-change: auto;
  position: relative;
}

/* ── On-site post shells (not social story frames) ── */
.uc-wire-shell {
  display: flex;
  flex-direction: column;
}

.uc-wire-shell__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--uc-primary);
  z-index: 1;
  pointer-events: none;
}

.uc-wire-shell--update .uc-wire-shell__accent {
  background: var(--uc-gold);
}

.uc-wire-shell--breaking .uc-wire-shell__accent {
  background: var(--uc-primary);
  width: 5px;
}

.uc-wire-shell--quote .uc-wire-shell__accent {
  background: var(--uc-gold);
}

.uc-wire-shell__head {
  padding: 1.15rem 1.2rem 1.1rem 1.35rem;
  border-bottom: 2px solid var(--uc-border-strong);
  background:
    linear-gradient(165deg, rgba(178, 34, 34, 0.94) 0%, rgba(90, 8, 8, 0.98) 55%, #0d0d0d 100%);
  color: var(--uc-text-on-primary, #fff);
}

.uc-wire-shell__head--update {
  background:
    linear-gradient(155deg, #161616 0%, #0a0a0a 55%, #1a1400 100%);
  border-bottom: 3px solid var(--uc-gold);
}

.uc-wire-shell__head--breaking {
  background: var(--uc-surface);
  color: var(--uc-border-strong);
  border-bottom: 3px solid var(--uc-primary);
}

.uc-wire-shell__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.65rem;
}

.uc-wire-channel-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--uc-gold);
  color: var(--uc-text-on-gold, #111);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 100%;
}

.uc-wire-channel-chip--updates {
  background: var(--uc-gold);
  color: var(--uc-text-on-gold);
  box-shadow: 0 0 0 1px var(--uc-shadow-ink-soft);
}

.uc-wire-type-chip {
  display: inline-flex;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uc-wire-shell__head--breaking .uc-wire-type-chip {
  background: var(--uc-primary);
  border-color: var(--uc-primary);
  color: var(--uc-text-on-primary, #fff);
}

.uc-wire-when {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
}

.uc-wire-shell__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uc-gold);
}

.uc-wire-shell__rule {
  margin-top: 0.85rem;
  width: 5.5rem;
  height: 5px;
  background: var(--uc-gold);
  transform: skewX(-18deg);
}

.uc-wire-shell__rule--gold {
  width: 4.25rem;
  background: var(--uc-gold);
}

.uc-wire-card-header {
  padding: 1.1rem 1.2rem 1.15rem;
  border-bottom: 2px solid var(--uc-border-strong);
  background: var(--uc-primary-darker);
  color: var(--uc-text-on-primary);
}

.uc-wire-card.is-breaking,
.uc-wire-shell--breaking {
  border: 3px solid var(--uc-primary);
  box-shadow: 4px 5px 0 var(--uc-primary);
}

.uc-wire-card.is-breaking .uc-wire-card-header {
  background: var(--uc-surface);
  color: var(--uc-border-strong);
  border-bottom: 3px solid var(--uc-primary);
}

.uc-wire-card.is-quote,
.uc-wire-shell--quote {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
}

.uc-wire-headline {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.uc-wire-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--uc-gold);
  color: var(--uc-text-on-gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uc-wire-badge.is-breaking {
  background: var(--uc-primary);
  color: var(--uc-text-on-primary);
}

.uc-wire-card-header--dark {
  background: var(--uc-chrome);
}

.uc-wire-headline.is-alert {
  color: var(--uc-primary);
}

.uc-wire-teaser {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  opacity: 0.92;
  text-transform: none;
  letter-spacing: 0;
}

.uc-wire-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--uc-chrome);
  overflow: hidden;
}

.uc-wire-hero--placeholder {
  aspect-ratio: 21 / 9;
  min-height: 7.5rem;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(178, 34, 34, 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(250, 204, 21, 0.18), transparent 50%),
    linear-gradient(145deg, #1a0505 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-wire-hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}

.uc-wire-hero-placeholder__mark {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--uc-gold);
}

.uc-wire-hero-placeholder__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.uc-wire-story {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.uc-wire-story p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--uc-border-strong);
}

.uc-wire-empty-inline {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uc-text-muted, #6b7280);
}

.uc-wire-empty-card__body {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.uc-wire-empty-card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.uc-wire-empty-card__copy {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--uc-text-secondary, #4b5563);
}

.uc-wire-poll-unlock {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--uc-text-muted, #9ca3af);
}

.uc-wire-poll-unlock__ok {
  color: #16a34a;
}

.uc-wire-hero img,
.uc-wire-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uc-wire-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--uc-text-on-primary);
}

.uc-wire-hero-tag {
  flex: 0 0 auto;
  max-width: 38%;
  padding: 0.35rem 0.45rem;
  background: var(--uc-gold);
  color: var(--uc-text-on-gold);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.uc-wire-hero-copy {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.uc-wire-body {
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--uc-surface);
  color: var(--uc-border-strong);
}

.uc-wire-poll {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px dashed var(--uc-gray-300);
  border-radius: 10px;
  background: var(--uc-surface-raised);
  text-align: center;
}

.uc-wire-poll h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 900;
}

.uc-wire-poll-q {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--uc-text-secondary);
}

.uc-wire-poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 22rem;
  margin: 0 auto;
}

.uc-wire-poll-option,
.uc-wire-poll-result {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--uc-border-strong);
  background: var(--uc-surface);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.uc-wire-poll-option:hover {
  background: var(--uc-warning-surface);
}

.uc-wire-poll-result {
  cursor: default;
}

.uc-wire-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--wire-poll-pct, 0%);
  background: var(--uc-surface-sunken);
  transition: width 0.45s ease;
}

.uc-wire-poll-bar.is-max {
  background: var(--uc-gold);
}

.uc-wire-poll-result-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.uc-wire-captcha {
  margin: 0 auto 0.85rem;
  max-width: 22rem;
  padding: 0.7rem;
  border: 2px solid var(--uc-border-strong);
  border-radius: 8px;
  background: var(--uc-surface);
  box-shadow: 2px 2px 0 var(--uc-border-strong);
  text-align: left;
}

.uc-wire-captcha-label {
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uc-primary);
}

.uc-wire-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.uc-wire-captcha-img {
  width: 160px;
  height: 60px;
  border: 2px solid var(--uc-border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--uc-surface-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.uc-wire-captcha-img svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uc-wire-comments {
  padding-top: 1rem;
  border-top: 2px solid var(--uc-border-strong);
}

.uc-wire-comments h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uc-wire-compose {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0.85rem;
  box-sizing: border-box;
}

#page-wire .uc-wire-compose .uc-surface-input,
#page-wire .uc-wire-reply-box .uc-surface-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none;
}

#page-wire .uc-wire-compose .uc-surface-btn,
#page-wire .uc-wire-reply-box .uc-surface-btn {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 4.75rem;
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 1rem;
}

.uc-wire-comments-scroll {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.55rem;
  border: 2px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface-soft);
}

.uc-wire-comment {
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--uc-border);
  border-radius: 8px;
  background: var(--uc-surface);
}

.uc-wire-comment:last-child {
  margin-bottom: 0;
}

.uc-wire-comment.is-reply {
  margin-left: 1.35rem;
  background: var(--uc-surface-raised);
}

.uc-wire-comment-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.uc-wire-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--uc-border-strong);
  background: var(--uc-surface-muted);
  flex-shrink: 0;
}

.uc-wire-comment-avatar.is-profile-link,
.uc-wire-comment-author-name.is-profile-link {
  cursor: pointer;
}

.uc-wire-comment-author-name {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}

.uc-wire-comment-author-name.is-profile-link:hover {
  text-decoration: underline;
}

.uc-wire-comment-meta {
  min-width: 0;
}

.uc-wire-comment-author {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 800;
}

.uc-wire-comment-hood {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uc-primary);
}

.uc-wire-comment-time {
  font-size: 0.7rem;
  color: var(--uc-text-muted);
}

.uc-wire-comment-text {
  margin: 0;
  padding-left: 2.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--uc-text);
}

.uc-wire-reply-btn {
  margin: 0.35rem 0 0 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--uc-primary);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.uc-wire-reply-btn:hover {
  text-decoration: underline;
}

.uc-wire-reply-box {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  width: calc(100% - 2.25rem);
  margin: 0.45rem 0 0.35rem 2.25rem;
  box-sizing: border-box;
}

.uc-wire-reply-box.is-open {
  display: flex;
}

.uc-wire-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--uc-border-strong);
  background: var(--uc-surface-muted);
}

.uc-wire-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1rem 0.15rem;
  background: var(--uc-surface-soft);
  border-top: 1px solid var(--uc-border);
}

.uc-wire-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--uc-surface-muted);
  border: 1px solid var(--uc-border);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.uc-wire-reaction-chip:hover,
.uc-wire-reaction-chip.is-active {
  background: #fee2e2;
  border-color: var(--uc-danger-border);
}

.uc-wire-reaction-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--uc-text-muted);
}

.uc-wire-actions {
  display: flex;
  gap: 0.25rem;
}

.uc-wire-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.45rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--uc-text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.uc-wire-action:hover {
  border-color: var(--uc-border-strong);
  background: var(--uc-surface);
}

.uc-wire-action.is-liked {
  color: var(--uc-primary);
}

.uc-wire-place {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uc-text-muted);
  text-align: right;
}

.uc-wire-quote-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 1.25rem 2rem 1.35rem;
  text-align: center;
}

.uc-wire-quote-block .uc-wire-shell__meta {
  align-self: stretch;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
}

.uc-wire-quote-block .uc-wire-badge {
  align-self: flex-start;
  margin-bottom: 0.85rem;
}

.uc-wire-quote-text {
  margin: 0 0 1rem;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.15;
}

.uc-wire-quote-author {
  font-weight: 800;
  color: var(--uc-gold);
}

.uc-wire-quote-role {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uc-primary-ink);
}

.uc-wire-timeline {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.uc-wire-timeline li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.uc-wire-timeline time {
  font-weight: 900;
  color: var(--uc-primary);
}

.uc-wire-features {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.uc-wire-features li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.1rem;
  border: 2px solid var(--uc-border-strong);
  border-radius: 10px;
  background: var(--uc-surface-raised, #fff);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 2px 2px 0 var(--uc-border-strong);
}

.uc-wire-features li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--uc-gold);
  transform: translateY(-50%) skewX(-12deg);
}

.uc-wire-shell--update .uc-wire-features li {
  border-left: 4px solid var(--uc-gold);
}

.uc-wire-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--uc-text-muted);
}

/* Overlay drawer */
.uc-wire-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.uc-wire-overlay.is-visible {
  display: flex;
}

.uc-wire-overlay-backdrop {
  position: absolute;
  inset: 0;
}

.uc-wire-overlay-sheet {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  max-height: 92vh;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--uc-surface);
  border: 2px solid var(--uc-border-strong);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 0 var(--uc-shadow-ink-strong);
  overflow: hidden;
}

.uc-wire-overlay.is-visible .uc-wire-overlay-sheet {
  transform: translateY(0);
}

.uc-wire-overlay-chrome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 56px 8px;
  background: var(--uc-chrome);
  flex-shrink: 0;
}

.uc-wire-overlay-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: var(--uc-gray-400);
}

.uc-wire-overlay-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--uc-border-strong);
  border-radius: 10px;
  background: var(--uc-gold);
  color: var(--uc-text-on-gold);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--uc-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uc-wire-overlay-close:hover,
.uc-wire-overlay-close:focus-visible {
  background: var(--uc-surface);
  outline: none;
}

.uc-wire-overlay-inner {
  overflow-y: auto;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.uc-wire-overlay-inner .uc-wire-card {
  border: none;
  box-shadow: none;
  border-radius: 0;
  cursor: default;
  content-visibility: visible;
}

.uc-wire-overlay-inner .uc-wire-card:hover {
  transform: none;
  box-shadow: none;
}

body.uc-wire-overlay-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .uc-wire .container,
  .uc-wire.container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .uc-wire-column {
    gap: 1rem;
  }

  .uc-wire-comment.is-reply {
    margin-left: 0.85rem;
  }
}

@media (min-width: 640px) {
  .uc-wire-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .uc-wire-overlay-sheet {
    max-height: 90vh;
    border-radius: 14px;
    border-bottom: 2px solid var(--uc-border-strong);
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-wire .uc-wire-card.main-card,
  #page-wire .uc-wire-card.uc-card-trippy,
  #page-wire .uc-wire-intro.main-card,
  #page-wire .uc-wire-intro.uc-card-trippy,
  .uc-wire-cat-btn,
  .uc-wire-action,
  .uc-wire-overlay-sheet,
  .uc-wire-poll-bar,
  .uc-wire-share-overlay,
  .uc-wire-reaction-chip {
    transition: none;
  }
}

/* Porch-parity share sheet */
.uc-wire-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 12070;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  background: var(--uc-surface-raised);
}

.uc-wire-share-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

body.uc-wire-share-open {
  overflow: hidden;
}

.uc-wire-share-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--uc-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.uc-wire-share-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 2px solid var(--uc-border-strong);
  background: var(--uc-dna-header-red, var(--uc-primary));
  box-shadow: inset 0 -2px 0 var(--uc-gold);
  flex: 0 0 auto;
}

.uc-wire-share-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--uc-text-on-primary);
}

.uc-wire-share-close {
  border: 2px solid color-mix(in srgb, var(--uc-gold) 55%, transparent);
  background: color-mix(in srgb, var(--uc-chrome, #0a0909) 40%, transparent);
  color: var(--uc-text-on-primary, #fff);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 900;
}

.uc-wire-share-body {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--uc-surface-sunken, var(--uc-surface-raised));
  flex: 1 1 auto;
  overflow: auto;
  align-content: start;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--uc-text);
}

.uc-wire-share-preview {
  padding: 14px;
  border: 2px solid var(--uc-dna-border-strong, var(--uc-border-strong));
  border-radius: 10px;
  background: var(--uc-surface-raised, var(--uc-surface));
  box-shadow: var(--uc-dna-shadow-soft, 3px 3px 0 var(--uc-shadow-ink-soft));
}

.uc-wire-share-preview-author {
  font-size: 13px;
  font-weight: 900;
  color: var(--uc-primary-ink);
}

.uc-wire-share-preview-place {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uc-text-muted);
}

.uc-wire-share-preview p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--uc-text-secondary);
  font-weight: 600;
}

.uc-wire-share-preview-media {
  display: block;
  width: 100%;
  margin-top: 12px;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--uc-border);
  background: var(--uc-chrome);
}

.uc-wire-share-status {
  margin: 0;
  padding: 10px 16px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--uc-text-secondary);
  flex: 0 0 auto;
}

.uc-wire-share-grid {
  display: grid;
  gap: 10px;
}

.uc-wire-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--uc-border-strong);
  background: var(--uc-surface-raised, var(--uc-surface));
  color: var(--uc-text);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--uc-dna-shadow-soft, 2px 2px 0 var(--uc-shadow-ink-soft));
}

.uc-wire-share-btn:hover:not(:disabled) {
  background: var(--uc-danger-surface, var(--uc-surface-input));
  border-color: color-mix(in srgb, var(--uc-gold) 40%, var(--uc-border-strong));
}

.uc-wire-share-btn:disabled,
.uc-wire-share-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}
