/* MyHashtag.io premium responsive foundation */
:root {
  --mh-bg: #203246;
  --mh-bg-deep: #162535;
  --mh-panel: rgba(48, 70, 91, 0.84);
  --mh-panel-strong: rgba(54, 80, 104, 0.94);
  --mh-line: rgba(255, 255, 255, 0.11);
  --mh-line-strong: rgba(255, 255, 255, 0.18);
  --mh-text: #edf6ff;
  --mh-muted: #abc2d8;
  --mh-blue: #4a90e2;
  --mh-yellow: #ffd400;
  --mh-green: #3fd288;
  --mh-danger: #ff6262;
  --mh-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  --mh-radius: 14px;
}

/* 2026-05-16 minute polish: product pages must not inherit fixed global footers. */
.mh-product-shell :is(.mh-source-card, .mh-topic-card, .mh-activity-card) footer {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
  transform: none !important;
  z-index: auto !important;
  box-shadow: none !important;
}

.mh-product-shell :is(.mh-source-card, .mh-topic-card) {
  align-content: start;
}

.mh-product-shell :is(.mh-source-card, .mh-topic-card) footer a,
.mh-product-shell .mh-activity-card footer a {
  min-width: 0 !important;
  overflow: hidden !important;
}

.mh-product-shell .mh-activity-card p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.mh-activity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 7px;
}

.mh-activity-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #ffd43b;
  color: #132033;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mh-activity-badges span:nth-child(2) {
  background: #11d7ff;
  color: #062334;
}

.mh-product-empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  align-content: center;
}

.mh-product-empty-state p {
  max-width: 560px;
}

.mh-product-shell .mh-product-command h2 {
  overflow: visible !important;
  text-wrap: balance;
}

.mh-product-shell .mh-product-command p {
  max-width: 760px;
}

@media (max-width: 760px) {
  .mh-product-shell .mh-site-header {
    gap: 8px !important;
  }

  .mh-product-shell .mh-site-context {
    gap: 8px !important;
    padding-block: 8px !important;
  }

  .mh-product-shell .mh-site-context h1 {
    font-size: 17px !important;
    line-height: 1.05 !important;
  }

  .mh-product-shell .mh-site-context p {
    font-size: 11.5px !important;
    line-height: 1.18 !important;
  }

  .mh-product-shell .mh-site-intel {
    display: grid !important;
    gap: 8px !important;
  }

  .mh-product-shell .mh-site-signals,
  .mh-product-shell .mh-site-shortcuts,
  .mh-product-shell .mh-site-category-rail {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 5px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .mh-product-shell .mh-site-signals > *,
  .mh-product-shell .mh-site-shortcuts > *,
  .mh-product-shell .mh-site-category-rail > * {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }

  .mh-product-shell .mh-site-signal {
    width: 134px !important;
    min-width: 134px !important;
    padding: 8px !important;
  }

  .mh-product-shell .mh-site-shortcuts a,
  .mh-product-shell .mh-site-category-rail a {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    min-height: 34px !important;
    padding-inline: 11px !important;
  }

  .mh-product-shell .mh-site-shortcuts a span,
  .mh-product-shell .mh-site-category-rail a span {
    max-width: none !important;
    font-size: 11px !important;
  }

  .mh-product-shell .mh-product-command h2 {
    font-size: 23px;
    line-height: 1.08;
  }

  .mh-product-shell .mh-product-command p {
    font-size: 13px;
  }

  .mh-product-shell .mh-activity-card p,
  .mh-product-shell .mh-activity-card footer a {
    white-space: normal !important;
  }
}

/* 2026-05-16 product expansion pages: Explore Hub, Sources, Topics, Activity, Collections. */
.mh-product-shell {
  --mh-product-bg: #183047;
  --mh-product-panel: #203a52;
  --mh-product-panel-2: #172c42;
  --mh-product-line: rgba(174, 214, 242, .18);
  --mh-product-ink: #f7fbff;
  --mh-product-muted: #b9cad9;
  --mh-solid-cyan: #11d7ff;
  --mh-solid-yellow: #ffd43b;
  --mh-solid-pink: #ff4fa3;
  --mh-solid-green: #28df7a;
  --mh-solid-violet: #9a7cff;
  --mh-solid-blue: #4aa3ff;
  color: var(--mh-product-ink);
  max-width: min(1500px, calc(100vw - 24px));
}

.mh-product-shell * {
  box-sizing: border-box;
}

.mh-product-command,
.mh-product-panel,
.mh-product-card,
.mh-source-card,
.mh-topic-card,
.mh-activity-card {
  background: var(--mh-product-panel);
  border: 1px solid var(--mh-product-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.mh-product-command {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  align-items: center;
  margin: 16px 0;
  padding: 16px;
}

.mh-product-command-copy {
  min-width: 0;
}

.mh-product-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #11d7ff;
  color: #062334;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mh-product-command h2 {
  margin: 10px 0 6px;
  color: var(--mh-product-ink);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

.mh-product-command p,
.mh-product-card p,
.mh-source-card p,
.mh-topic-card p,
.mh-product-panel p {
  margin: 0;
  color: var(--mh-product-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mh-product-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 6px;
  border-radius: 8px;
  background: #13283d;
  border: 1px solid rgba(17, 215, 255, .24);
}

.mh-product-search i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #11d7ff;
  color: #062334;
}

.mh-product-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mh-product-ink);
  font-size: 14px;
}

.mh-product-search input::placeholder {
  color: rgba(226, 239, 248, .62);
}

.mh-product-search button,
.mh-product-action-row a,
.mh-product-card b,
.mh-source-card footer a,
.mh-topic-card footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 0;
  background: #ffd43b;
  color: #132033;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.mh-product-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mh-product-action-row a:nth-child(2),
.mh-source-card footer a:nth-child(2),
.mh-topic-card footer a:nth-child(2) {
  background: #11d7ff;
  color: #062334;
}

.mh-product-action-row a:nth-child(3),
.mh-source-card footer a:nth-child(3),
.mh-topic-card footer a:nth-child(3) {
  background: #28df7a;
  color: #052618;
}

.mh-product-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.mh-product-metrics a,
.mh-product-mini-metrics span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #172c42;
  border: 1px solid var(--mh-product-line);
  color: var(--mh-product-ink);
  text-decoration: none;
}

.mh-product-metrics i {
  color: var(--mh-solid-cyan);
  font-size: 16px;
}

.mh-product-metrics strong,
.mh-product-mini-metrics b {
  color: var(--mh-product-ink);
  font-size: 20px;
  line-height: 1;
}

.mh-product-metrics span,
.mh-product-mini-metrics small {
  color: var(--mh-product-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.mh-product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mh-product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  color: var(--mh-product-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.mh-product-card:hover,
.mh-source-card:hover,
.mh-topic-card:hover,
.mh-activity-card:hover,
.mh-product-list a:hover,
.mh-product-chip-cloud a:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 215, 255, .42);
}

.mh-product-card h3,
.mh-source-card h3,
.mh-topic-card h3 {
  margin: 0;
  color: var(--mh-product-ink);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
}

.mh-product-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--mh-solid-cyan);
  color: #062334;
  box-shadow: 0 8px 18px rgba(17, 215, 255, .2);
}

.tone-yellow .mh-product-icon { background: var(--mh-solid-yellow); color: #2b2100; }
.tone-pink .mh-product-icon { background: var(--mh-solid-pink); color: #fff; }
.tone-green .mh-product-icon { background: var(--mh-solid-green); color: #052618; }
.tone-violet .mh-product-icon { background: var(--mh-solid-violet); color: #fff; }
.tone-blue .mh-product-icon { background: var(--mh-solid-blue); color: #fff; }

.mh-product-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.mh-product-panel {
  min-width: 0;
  padding: 14px;
}

.mh-product-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mh-product-panel > header span {
  color: var(--mh-product-ink);
  font-size: 16px;
  font-weight: 900;
}

.mh-product-panel > header a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #11d7ff;
  color: #062334;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.mh-product-list {
  display: grid;
  gap: 8px;
}

.mh-product-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--mh-product-panel-2);
  border: 1px solid var(--mh-product-line);
  color: var(--mh-product-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.mh-product-list a span,
.mh-product-list a strong,
.mh-product-list a small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-product-list a strong {
  color: var(--mh-product-ink);
  font-size: 13px;
}

.mh-product-list a small {
  margin-top: 3px;
  color: var(--mh-product-muted);
  font-size: 11px;
}

.mh-product-list a b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #ffd43b;
  color: #132033;
  font-size: 11px;
}

.mh-product-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mh-product-chip-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #172c42;
  border: 1px solid var(--mh-product-line);
  color: var(--mh-product-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.mh-product-chip-cloud span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.mh-product-chip-cloud b {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: #ff4fa3;
  color: #fff;
  font-size: 10px;
}

.mh-source-grid,
.mh-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mh-source-card,
.mh-topic-card {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease;
}

.mh-source-card header,
.mh-topic-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.mh-source-card header span,
.mh-topic-card header span {
  display: block;
  color: var(--mh-product-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mh-source-card h3,
.mh-topic-card h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-source-avatar,
.mh-activity-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #13283d;
  border: 1px solid rgba(17, 215, 255, .28);
  color: #11d7ff;
  overflow: hidden;
  text-decoration: none;
}

.mh-source-avatar img,
.mh-activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-product-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.mh-product-mini-metrics span {
  padding: 7px;
  box-shadow: none;
}

.mh-product-mini-metrics b {
  font-size: 14px;
}

.mh-product-mini-metrics small {
  font-size: 9px;
}

.mh-source-card footer,
.mh-topic-card footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mh-source-card footer a,
.mh-topic-card footer a {
  min-width: 0;
  padding-inline: 6px;
}

.mh-activity-feed {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.mh-activity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  transition: transform .18s ease, border-color .18s ease;
}

.mh-activity-card > div {
  min-width: 0;
}

.mh-activity-thumb {
  width: 72px;
  height: 72px;
}

.mh-activity-thumb.is-empty {
  background: #13283d;
}

.mh-activity-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.mh-activity-card header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mh-product-ink);
  font-size: 13px;
  font-weight: 900;
}

.mh-activity-card header small {
  flex: 0 0 auto;
  color: var(--mh-product-muted);
  font-size: 11px;
  font-weight: 800;
}

.mh-activity-card p {
  margin: 0;
  color: var(--mh-product-ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mh-activity-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  min-width: 0;
  overflow: hidden;
}

.mh-activity-card footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 160px;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #13283d;
  border: 1px solid var(--mh-product-line);
  color: var(--mh-product-ink);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-product-focus-panel {
  margin-bottom: 16px;
}

@media (max-width: 1180px) {
  .mh-product-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mh-product-card-grid,
  .mh-source-grid,
  .mh-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mh-product-shell {
    max-width: min(100vw - 12px, 100%);
  }

  .mh-product-command,
  .mh-product-grid-two {
    grid-template-columns: 1fr;
  }

  .mh-product-command {
    padding: 12px;
    gap: 12px;
  }

  .mh-product-search {
    grid-template-columns: 32px minmax(0, 1fr) 38px;
  }

  .mh-product-search button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    color: transparent;
    font-size: 0;
    position: relative;
  }

  .mh-product-search button::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #132033;
    font-size: 13px;
  }

  .mh-product-metrics,
  .mh-product-card-grid,
  .mh-source-grid,
  .mh-topic-grid {
    grid-template-columns: 1fr;
  }

  .mh-product-mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-activity-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 9px;
  }

  .mh-activity-thumb {
    width: 56px;
    height: 56px;
  }

  .mh-activity-card footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-source-card footer,
  .mh-topic-card footer {
    grid-template-columns: 1fr;
  }

  .mh-product-list a {
    grid-template-columns: 1fr;
  }
}

[hidden] {
  display: none !important;
}

/* Cohesion pass: keep the unified navigation thin and aligned with the original feed style. */
.mh-site-header {
  margin: 10px auto 14px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(38, 57, 76, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.mh-site-header-inner {
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(45, 66, 87, .96);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.mh-site-brand {
  min-width: 154px;
  gap: 8px;
}

.mh-site-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1f4f72;
}

.mh-site-brand strong {
  font-size: 15px;
  line-height: 1.05;
}

.mh-site-brand small {
  font-size: 9px;
  color: #b7e8ff;
}

.mh-site-search {
  height: 38px;
  border-radius: 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  background: rgba(17, 31, 45, .9);
}

.mh-site-search input {
  font-size: 14px;
  font-weight: 650;
}

.mh-site-search button {
  background: #f0b82f;
  color: #102033;
  font-size: 12px;
  min-width: 72px;
  padding: 0 12px;
}

.mh-site-actions,
.mh-site-page-actions {
  gap: 5px;
}

.mh-site-actions a,
.mh-site-page-actions a,
.mh-site-page-actions button {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .045);
}

.mh-site-actions a.active,
.mh-site-actions a:hover,
.mh-site-page-actions a:hover,
.mh-site-page-actions button:hover {
  background: rgba(64, 196, 255, .14);
  border-color: rgba(64, 196, 255, .55);
}

.mh-site-actions .create {
  background: rgba(255, 193, 7, .14);
  border-color: rgba(255, 193, 7, .34);
  color: #ffe5a0;
}

.mh-site-context {
  align-items: center;
  gap: 12px;
  padding: 8px 10px 6px;
}

.mh-site-kicker {
  display: inline-flex;
  margin: 0 0 2px;
  color: #8bd8ff;
  font-size: 9px;
  letter-spacing: .04em;
}

.mh-site-context h1 {
  font-size: 17px;
  line-height: 1.12;
  margin: 0;
}

.mh-site-context p {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #c7d8e8;
}

.mh-site-category-rail {
  gap: 6px;
  padding: 0 10px 9px;
}

.mh-site-category-rail a {
  min-height: 30px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .04);
}

.mh-site-category-rail a.active {
  background: rgba(64, 196, 255, .15);
  border-color: rgba(64, 196, 255, .55);
}

/* Cohesion pass: reduce the heavy result-card overrides and keep the original card personality. */
.result {
  border-color: rgba(255, 255, 255, .065) !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #33475b 0%, #2f4254 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
  outline: 0;
}

.result:hover {
  border-color: rgba(64, 196, 255, .24) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}

.result::before {
  display: none !important;
}

.card-header {
  padding: 5px 8px 4px;
  margin-bottom: 4px !important;
  border-bottom: 0;
  background: transparent;
}

.card-header .author-block {
  gap: 9px;
}

.card-header .media-box {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.card-header .author-avatar-link {
  width: 34px !important;
  height: 34px !important;
}

.card-header .author-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 2px solid #000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25) !important;
}

.card-header .author-name {
  color: #e7edf4;
  font-size: 14px;
  font-weight: 800;
  max-width: 200px;
}

.result h2 {
  color: #f2f6fb;
  font-size: 16px;
  line-height: 1.25;
}

.result p {
  color: #cfd9e5;
}

.channel-row {
  margin: 6px 10px;
  padding: 5px 7px;
  border-radius: 8px;
  box-shadow: none;
}

.tag-chip .tag-search-link {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.tag-chip .follow-icon,
.like-btn,
.dislike-btn,
.save-btn,
.share-icon-button,
.card-tools .share-inline,
.mh-open-comments {
  box-shadow: none;
}

.like-dislike-container {
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, .045);
}

.media-title-overlay {
  display: none !important;
}

.feed-infinite-sentinel {
  width: min(1500px, calc(100vw - 16px));
  height: 1px;
  margin: 0 auto;
}

.loading-indicator {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 18px auto 26px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px !important;
  background: rgba(17, 31, 45, .84) !important;
  color: #dceeff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
  gap: 9px !important;
  z-index: 1 !important;
}

.loading-indicator span {
  font-size: 12px;
  font-weight: 850;
}

.loading-spinner {
  width: 18px !important;
  height: 18px !important;
  border-width: 2px !important;
  border-color: rgba(255, 255, 255, .18) !important;
  border-top-color: #f0b82f !important;
}

@media (max-width: 1100px) {
  .mh-site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mh-site-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .mh-site-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .mh-site-header {
    border-radius: 13px;
    margin-top: 8px;
  }

  .mh-site-header-inner {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .mh-site-brand {
    min-width: 0;
  }

  .mh-site-search {
    order: 0;
    height: 38px;
    grid-template-columns: 34px minmax(0, 1fr) 42px;
  }

  .mh-site-search button {
    display: block !important;
    min-width: 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    text-align: center !important;
  }

  .mh-site-search button::after {
    content: "Go";
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mh-site-actions {
    justify-content: flex-start;
    gap: 5px;
  }

  .mh-site-actions a {
    min-width: 36px;
    min-height: 34px;
    padding: 0 8px;
  }

  .mh-site-context {
    padding: 8px;
  }

  .mh-site-context h1 {
    font-size: 16px;
  }

  .mh-site-context p {
    font-size: 11.5px;
  }

  .mh-site-category-rail {
    padding: 0 8px 8px;
  }

  .mh-site-category-rail a {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .tag-chip .tag-search-link {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 13.5px;
    font-weight: 850;
  }
}

/* Feed readability and infinite-scroll polish. */
#feeds {
  row-gap: 20px;
}

.result {
  overflow: hidden !important;
  animation: mh-card-enter .24s ease both;
  transform-origin: center top;
}

.result.mh-pending-layout {
  position: absolute !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

@keyframes mh-card-enter {
  from {
    opacity: .78;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result .media-box {
  margin: 0 6px 10px;
  border-radius: 12px;
  background: rgba(5, 13, 22, .22);
  overflow: hidden !important;
  contain: paint;
}

.result .feed-thumbnail,
.result .media-box > a > img,
.result .media-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.result > a > img.feed-thumbnail,
.result > img.feed-thumbnail {
  display: block;
  width: calc(100% - 12px) !important;
  max-width: calc(100% - 12px) !important;
  height: auto !important;
  margin: 0 6px 10px;
  border-radius: 12px;
  object-fit: cover;
}

.result h2 {
  margin: 8px 12px 5px;
  font-size: 17px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result p {
  margin: 4px 12px;
  font-size: 14.5px;
  line-height: 1.36;
  letter-spacing: 0;
}

.result > p:not(.favicon-and-site) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-row {
  margin-top: 9px;
}

.tag-chip {
  margin-top: 4px;
}

.card-tools,
.actions-row,
.like-dislike-container {
  border-color: rgba(255, 255, 255, .055) !important;
}

.loading-indicator {
  min-height: 38px;
  backdrop-filter: blur(8px);
}

.loading-indicator::after {
  content: "New results are being placed into the grid";
  color: #94aec8;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 640px) {
  #feeds {
    row-gap: 16px;
  }

  .result .media-box {
    margin: 0 6px 9px;
    border-radius: 11px;
  }

  .result h2 {
    margin: 8px 11px 5px;
    font-size: 16px;
    line-height: 1.25;
  }

  .result p {
    margin: 4px 11px;
    font-size: 14px;
    line-height: 1.35;
  }

  .loading-indicator::after {
    display: none;
  }
}

/* Mobile final override: keep the search submit compact and readable. */
@media (max-width: 640px) {
  .mh-site-search {
    grid-template-columns: 34px minmax(0, 1fr) 42px !important;
  }

  .mh-site-search button {
    display: block !important;
    min-width: 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    text-align: center !important;
  }

  .mh-site-search button::after {
    content: "Go";
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
  }
}

/* Mobile final override: keep the search submit compact and readable. */
@media (max-width: 640px) {
  .mh-site-search {
    grid-template-columns: 34px minmax(0, 1fr) 42px !important;
  }

  .mh-site-search button {
    display: block !important;
    min-width: 42px !important;
    padding: 0 !important;
    font-size: 0 !important;
    text-align: center !important;
  }

  .mh-site-search button::after {
    content: "Go";
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
  }
}

/* Compact information pass: keep page context without making the header feel like a separate app. */
.mh-site-context {
  padding: 6px 10px 4px;
}

.mh-site-context > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.mh-site-kicker {
  display: none;
}

.mh-site-context h1 {
  font-size: 15px;
  white-space: nowrap;
}

.mh-site-context p {
  max-width: none;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-site-page-actions a,
.mh-site-page-actions button {
  min-height: 30px;
  border-radius: 9px;
  font-size: 11.5px;
}

.mh-site-category-rail {
  padding-bottom: 7px;
}

.mh-site-category-rail a {
  min-height: 27px;
  border-radius: 9px;
  font-size: 11.5px;
}

@media (max-width: 640px) {
  .mh-site-context {
    padding: 6px 8px 3px;
  }

  .mh-site-context > div {
    display: block;
  }

  .mh-site-context h1 {
    font-size: 15px;
  }

  .mh-site-context p {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    white-space: normal;
  }

  .mh-site-page-actions {
    gap: 4px;
  }

  .mh-site-page-actions a,
  .mh-site-page-actions button {
    min-height: 29px;
    padding: 0 8px;
    font-size: 11px;
  }

  .mh-site-category-rail {
    padding-bottom: 7px;
  }

  .mh-site-category-rail a {
    min-height: 27px;
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(circle at 14% -6%, rgba(74, 144, 226, 0.22), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(255, 212, 0, 0.12), transparent 26%),
    linear-gradient(180deg, var(--mh-bg), var(--mh-bg-deep));
  color: var(--mh-text);
  min-height: 100vh;
}

a {
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.search-bar {
  width: min(1180px, calc(100vw - 24px));
  margin: 8px auto 22px;
  padding: 7px;
  border: 1px solid var(--mh-line);
  border-radius: 16px;
  background: rgba(18, 32, 46, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

#search-query {
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #102033;
}

.home-button,
.menu-button,
#search-button,
.button.pin {
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.home-button:hover,
.menu-button:hover,
#search-button:hover,
.button.pin:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

#side-menu {
  background: rgba(18, 32, 46, 0.96);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--mh-line);
}

#tags-container,
.tags-container {
  width: min(1120px, calc(100vw - 24px));
  margin-left: auto;
  margin-right: auto;
}

.tag-link,
.hashtag,
.tag-search-link {
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

#feeds {
  width: min(1500px, calc(100vw - 16px));
  margin-left: auto;
  margin-right: auto;
}

.link-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mh-radius);
  background: linear-gradient(180deg, rgba(55, 82, 107, 0.94), rgba(40, 61, 82, 0.94));
  box-shadow: var(--mh-shadow);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 194, 255, 0.28);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.32);
}

.link-card h2,
.link-card h3,
.link-card .title {
  color: var(--mh-text);
  letter-spacing: 0;
}

.card-tools,
.mh-panel,
.mh-card,
.auth-shell {
  border: 1px solid var(--mh-line);
}

.mh-page {
  width: min(1180px, calc(100vw - 28px));
}

.mh-header,
.mh-panel,
.mh-card,
.mh-stat,
.auth-shell {
  box-shadow: var(--mh-shadow);
}

.mh-card,
.mh-panel,
.mh-stat {
  background: linear-gradient(180deg, var(--mh-panel-strong), var(--mh-panel));
}

.mh-grid {
  align-items: stretch;
}

.mh-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 194, 255, 0.28);
}

.mh-avatar {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Result card polish: visual-only, preserves generated tag colors and card logic. */
.result {
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(52, 73, 94, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.result:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result::before {
  content: "";
  display: block;
  height: 3px;
  margin: -5px -5px 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16));
}

.card-header {
  padding: 7px 9px 8px;
  margin: 0 0 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0));
}

.card-header .author-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-header .media-box {
  position: static !important;
  z-index: auto !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  overflow: visible !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.card-header .media-title-overlay {
  display: none !important;
}

.card-header .author-avatar-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  overflow: visible !important;
  border-radius: 999px;
  text-decoration: none !important;
}

.card-header .author-avatar {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.52) !important;
  border-radius: 999px !important;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(11, 25, 39, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.card-header .author-name {
  color: #f3f8ff;
  max-width: 138px;
  letter-spacing: 0;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.result h2 {
  color: #f3f8ff;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.result p {
  color: #c9d7e5;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.result a,
.result a:hover,
.result a:focus,
.result a:visited {
  text-decoration: none !important;
}

.result h2,
.result h2:hover,
.result .author-name,
.result .source-name,
.result .favicon-and-site a,
.result .read-more-link {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.result img,
.result iframe,
.result .youtube-thumbnail,
.result .facebook-embed,
.result .tiktok-embed {
  border-radius: 10px;
}

.channel-row {
  margin: 8px 10px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--channel-accent, rgba(139, 194, 255, 0.55));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.source-search-link,
.author-search-link {
  text-decoration: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px 4px 3px 0;
}

.tag-chip .tag-search-link {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 13.5px;
  line-height: 1.12;
  font-weight: 900;
  text-decoration: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.tag-chip .follow-icon {
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
}

.like-dislike-container {
  margin: 10px -1px -1px;
  padding: 9px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.05));
}

.like-btn,
.dislike-btn,
.save-btn,
.share-icon-button,
.card-tools .share-inline,
.mh-open-comments {
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.like-btn:hover,
.dislike-btn:hover,
.save-btn:hover,
.share-icon-button:hover,
.card-tools .share-inline:hover,
.mh-open-comments:hover {
  transform: translateY(-1px);
}

#myBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.mh-share-open {
  overflow: hidden;
}

/* Share surface: full-page premium workspace, not a compact modal. */
#mh-share-overlay {
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 0%, rgba(74, 144, 226, 0.28), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255, 212, 0, 0.17), transparent 28%),
    radial-gradient(circle at 50% 105%, rgba(63, 210, 136, 0.14), transparent 32%),
    rgba(8, 15, 25, 0.94) !important;
  backdrop-filter: blur(22px);
}

#mh-share-overlay .mh-modal {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 14%, rgba(0, 178, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 0, 128, 0.13), transparent 30%),
    radial-gradient(circle at 44% 105%, rgba(255, 212, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(30, 48, 67, 0.96), rgba(14, 25, 39, 0.98)),
    var(--mh-bg-deep);
  box-shadow: none !important;
}

#mh-share-overlay .mh-head {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 74px;
  padding: 16px clamp(18px, 3vw, 42px);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 25, 39, 0.84);
  backdrop-filter: blur(18px);
}

#mh-share-overlay .mh-head::after {
  content: "";
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  right: clamp(18px, 3vw, 42px);
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #ffd400, #ff3fb4, #3fd288);
  opacity: 0.85;
}

#mh-share-overlay .mh-title {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 10px 34px rgba(74, 144, 226, 0.24);
}

#mh-share-overlay .mh-sub {
  max-width: 780px;
  color: #bcd1e7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mh-share-overlay .mh-close {
  width: 44px;
  height: 44px;
  position: static !important;
  flex: 0 0 44px;
  margin-left: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

#mh-share-overlay .mh-close:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 98, 98, 0.52);
  background: rgba(255, 98, 98, 0.16);
}

#mh-share-overlay .mh-body {
  width: min(1380px, calc(100vw - 28px));
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 34px) 0 44px;
  overflow: auto;
  display: grid;
  align-content: start;
  grid-auto-rows: auto;
  gap: 18px;
}

#mh-share-overlay .share-header,
#mh-share-overlay .share-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(35, 55, 76, 0.78);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26);
  overflow: visible;
}

#mh-share-overlay .share-header::before,
#mh-share-overlay .share-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #00d4ff, #3fd288, #ffd400, #ff3fb4);
  opacity: 0.84;
}

#mh-share-overlay .share-header {
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.1fr) minmax(210px, 0.55fr);
  gap: 18px;
  padding: 16px;
  align-items: stretch;
}

#mh-share-overlay .sp-preview {
  min-height: 230px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

#mh-share-overlay .sp-preview.is-fallback .sp-media img {
  display: none;
}

#mh-share-overlay .sp-preview.is-fallback .sp-media::before {
  content: "#";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #10243a 0%, #11607a 54%, #223650 100%);
}

#mh-share-overlay .sp-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 26%, transparent 70%, rgba(0, 212, 255, 0.11));
}

#mh-share-overlay .sp-overlay {
  padding: 18px;
}

#mh-share-overlay .sp-title {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.14;
}

#mh-share-overlay .sp-url {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

#mh-share-overlay .sp-info {
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(74, 144, 226, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

#mh-share-overlay .sp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

#mh-share-overlay .chip {
  min-height: 48px;
  justify-content: center;
  border-radius: 14px;
  font-size: 13px;
}

#mh-share-overlay .sp-stats .chip:nth-child(1) {
  border-color: rgba(63, 210, 136, 0.4);
  background: radial-gradient(circle at 12% 10%, rgba(63, 210, 136, 0.32), transparent 42%), linear-gradient(135deg, rgba(63, 210, 136, 0.18), rgba(255, 255, 255, 0.035));
}

#mh-share-overlay .sp-stats .chip:nth-child(2) {
  border-color: rgba(255, 98, 98, 0.38);
  background: radial-gradient(circle at 12% 10%, rgba(255, 98, 98, 0.3), transparent 42%), linear-gradient(135deg, rgba(255, 98, 98, 0.16), rgba(255, 255, 255, 0.035));
}

#mh-share-overlay .sp-stats .chip:nth-child(3) {
  border-color: rgba(139, 194, 255, 0.4);
  background: radial-gradient(circle at 12% 10%, rgba(74, 144, 226, 0.32), transparent 42%), linear-gradient(135deg, rgba(74, 144, 226, 0.18), rgba(255, 255, 255, 0.035));
}

#mh-share-overlay .sp-stats .chip:nth-child(4) {
  border-color: rgba(255, 212, 0, 0.42);
  background: radial-gradient(circle at 12% 10%, rgba(255, 212, 0, 0.32), transparent 42%), linear-gradient(135deg, rgba(255, 212, 0, 0.18), rgba(255, 255, 255, 0.035));
}

#mh-share-overlay .sp-controls,
#mh-share-overlay .sp-actions {
  align-content: start;
}

#mh-share-overlay .sp-actions .btn-ghost,
#mh-share-overlay .sp-controls .btn-ghost,
#mh-share-overlay .switch {
  min-height: 44px;
  border-radius: 14px;
}

#mh-share-overlay .sp-actions {
  display: grid;
  grid-auto-rows: min-content;
}

#mh-share-overlay .sp-actions .btn-ghost:first-child,
#mh-share-overlay #mh-share-copy-link {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.28), rgba(255, 255, 255, 0.05));
  border-color: rgba(139, 194, 255, 0.34);
}

#mh-share-overlay .sp-actions .btn-ghost,
#mh-share-overlay .sp-controls .btn-ghost,
#mh-share-overlay .copy-row .copy-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.18);
}

#mh-share-overlay #mh-share-copy-all {
  border-color: rgba(255, 212, 0, 0.42);
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.24), rgba(255, 255, 255, 0.04));
}

#mh-share-overlay #mh-share-shorten {
  border-color: rgba(63, 210, 136, 0.38);
  background: linear-gradient(135deg, rgba(63, 210, 136, 0.18), rgba(255, 255, 255, 0.04));
}

#mh-share-overlay #mh-share-open {
  border-color: rgba(0, 212, 255, 0.38);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.17), rgba(255, 255, 255, 0.04));
}

#mh-share-overlay .share-tabs {
  position: sticky;
  top: 74px;
  z-index: 4;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(14, 27, 42, 0.82);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

#mh-share-overlay .share-tabs .tab {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

#mh-share-overlay .share-tabs .tab.active {
  border-color: rgba(139, 194, 255, 0.36);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.28), rgba(255, 255, 255, 0.04));
}

#mh-share-overlay .share-tabs .tab:nth-child(1).active { border-color: rgba(0, 212, 255, 0.54); }
#mh-share-overlay .share-tabs .tab:nth-child(2).active { border-color: rgba(255, 212, 0, 0.54); }
#mh-share-overlay .share-tabs .tab:nth-child(3).active { border-color: rgba(255, 63, 180, 0.54); }
#mh-share-overlay .share-tabs .tab:nth-child(4).active { border-color: rgba(63, 210, 136, 0.54); }

#mh-share-overlay .share-panel {
  display: block !important;
  padding: 18px;
  scroll-margin-top: 142px;
}

#mh-share-overlay .share-panel[data-panel="quick"]::before {
  background: linear-gradient(90deg, #00d4ff, #4a90e2);
}

#mh-share-overlay .share-panel[data-panel="direct"]::before {
  background: linear-gradient(90deg, #ffd400, #ff8a00);
}

#mh-share-overlay .share-panel[data-panel="embed"]::before {
  background: linear-gradient(90deg, #ff3fb4, #845ef7);
}

#mh-share-overlay .share-panel[data-panel="qr"]::before {
  background: linear-gradient(90deg, #3fd288, #00d4ff);
}

#mh-share-overlay .share-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mh-share-overlay .share-section-title span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f9ff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
  line-height: 1.1;
}

#mh-share-overlay .share-section-title span::before {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #06111f;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#mh-share-overlay .share-panel[data-panel="quick"] .share-section-title span::before {
  content: "01";
  background: linear-gradient(135deg, #00d4ff, #8bc2ff);
}

#mh-share-overlay .share-panel[data-panel="direct"] .share-section-title span::before {
  content: "02";
  background: linear-gradient(135deg, #ffd400, #ff9f1c);
}

#mh-share-overlay .share-panel[data-panel="embed"] .share-section-title span::before {
  content: "03";
  background: linear-gradient(135deg, #ff3fb4, #b197fc);
}

#mh-share-overlay .share-panel[data-panel="qr"] .share-section-title span::before {
  content: "04";
  background: linear-gradient(135deg, #3fd288, #00d4ff);
}

#mh-share-overlay .share-section-title small {
  color: #a9bfd5;
  font-size: 12.5px;
  font-weight: 800;
  text-align: right;
}

#mh-share-overlay .share-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

#mh-share-overlay .share-item {
  position: relative;
  min-height: 78px;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}

#mh-share-overlay .share-item::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -30%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

#mh-share-overlay .share-item i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

#mh-share-overlay .share-item:nth-child(1) i { background: rgba(24, 119, 242, 0.26); color: #8bc2ff; }
#mh-share-overlay .share-item:nth-child(2) i { background: rgba(255, 255, 255, 0.15); color: #fff; }
#mh-share-overlay .share-item:nth-child(3) i { background: rgba(10, 102, 194, 0.26); color: #8bc2ff; }
#mh-share-overlay .share-item:nth-child(4) i { background: rgba(37, 211, 102, 0.24); color: #7cffb0; }
#mh-share-overlay .share-item:nth-child(5) i { background: rgba(42, 171, 238, 0.24); color: #83d9ff; }
#mh-share-overlay .share-item:nth-child(6) i { background: rgba(255, 69, 0, 0.24); color: #ff9a70; }
#mh-share-overlay .share-item:nth-child(7) i { background: rgba(230, 0, 35, 0.24); color: #ff8ca0; }
#mh-share-overlay .share-item:nth-child(8) i { background: rgba(255, 212, 0, 0.24); color: #ffe770; }
#mh-share-overlay .share-item:nth-child(9) i { background: rgba(139, 194, 255, 0.22); color: #b9d9ff; }
}

#mh-share-overlay .share-item:nth-child(1) { border-color: rgba(24, 119, 242, 0.44); }
#mh-share-overlay .share-item:nth-child(2) { border-color: rgba(255, 255, 255, 0.28); }
#mh-share-overlay .share-item:nth-child(3) { border-color: rgba(10, 102, 194, 0.44); }
#mh-share-overlay .share-item:nth-child(4) { border-color: rgba(37, 211, 102, 0.44); }
#mh-share-overlay .share-item:nth-child(5) { border-color: rgba(42, 171, 238, 0.44); }
#mh-share-overlay .share-item:nth-child(6) { border-color: rgba(255, 69, 0, 0.44); }
#mh-share-overlay .share-item:nth-child(7) { border-color: rgba(230, 0, 35, 0.44); }
#mh-share-overlay .share-item:nth-child(8) { border-color: rgba(255, 212, 0, 0.44); }
#mh-share-overlay .share-item:nth-child(9) { border-color: rgba(139, 194, 255, 0.44); }

#mh-share-overlay .copy-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

#mh-share-overlay .copy-row label {
  display: flex;
  align-items: center;
  min-width: 0 !important;
  color: #d9e8f8;
  font-weight: 900;
}

#mh-share-overlay .copy-row label::before {
  content: "";
  width: 7px;
  height: 24px;
  margin-right: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd400, #ff8a00);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.28);
}

#mh-share-overlay .copy-row input,
#mh-share-overlay .copy-row textarea,
#mh-share-overlay .code-box textarea {
  border-radius: 14px;
  background: rgba(8, 18, 31, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
}

#mh-share-overlay .copy-row .copy-btn,
#mh-share-overlay .btn-ghost {
  min-height: 40px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

#mh-share-overlay .copy-row .copy-btn:hover,
#mh-share-overlay .btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 194, 255, 0.34);
}

#mh-share-overlay .qr-wrap {
  justify-content: center;
}

#mh-share-overlay .qr-box {
  border: 8px solid rgba(63, 210, 136, 0.16);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 44px rgba(63, 210, 136, 0.18);
}

#mh-share-overlay .qr-tools .btn-ghost:first-child {
  border-color: rgba(63, 210, 136, 0.42);
  background: linear-gradient(135deg, rgba(63, 210, 136, 0.2), rgba(255, 255, 255, 0.04));
}

/* Solid-color share refinement: vibrant, flatter, cleaner premium surface. */
#mh-share-overlay {
  background: #07111d !important;
}

#mh-share-overlay .mh-modal {
  background: #0d1927 !important;
}

#mh-share-overlay .mh-head {
  background: #0b1724 !important;
}

#mh-share-overlay .mh-head::after {
  background: #2ec5ff !important;
}

#mh-share-overlay .share-header,
#mh-share-overlay .share-panel {
  background: #24384c !important;
}

#mh-share-overlay .share-header::before {
  background: #2ec5ff !important;
}

#mh-share-overlay .share-panel[data-panel="quick"]::before {
  background: #2ec5ff !important;
}

#mh-share-overlay .share-panel[data-panel="direct"]::before {
  background: #ffd447 !important;
}

#mh-share-overlay .share-panel[data-panel="embed"]::before {
  background: #ff4fae !important;
}

#mh-share-overlay .share-panel[data-panel="qr"]::before {
  background: #35d08a !important;
}

#mh-share-overlay .sp-info,
#mh-share-overlay .share-tabs {
  background: #1b2c3e !important;
}

#mh-share-overlay .sp-preview::after {
  background: none !important;
}

#mh-share-overlay .sp-stats .chip:nth-child(1) {
  background: #244f49 !important;
  border-color: #35d08a !important;
}

#mh-share-overlay .sp-stats .chip:nth-child(2) {
  background: #503646 !important;
  border-color: #ff6b7c !important;
}

#mh-share-overlay .sp-stats .chip:nth-child(3) {
  background: #244760 !important;
  border-color: #69b7ff !important;
}

#mh-share-overlay .sp-stats .chip:nth-child(4) {
  background: #514b25 !important;
  border-color: #ffd447 !important;
}

#mh-share-overlay .btn-ghost,
#mh-share-overlay .copy-row .copy-btn,
#mh-share-overlay .switch {
  background: #21374c !important;
}

#mh-share-overlay #mh-share-copy-all {
  background: #4f4622 !important;
  border-color: #ffd447 !important;
}

#mh-share-overlay #mh-share-copy-link {
  background: #23486a !important;
  border-color: #69b7ff !important;
}

#mh-share-overlay #mh-share-shorten {
  background: #214b45 !important;
  border-color: #35d08a !important;
}

#mh-share-overlay #mh-share-open {
  background: #1f4b5f !important;
  border-color: #2ec5ff !important;
}

#mh-share-overlay .share-tabs .tab.active {
  background: #23486a !important;
}

#mh-share-overlay .share-tabs .tab:nth-child(1).active {
  background: #1e5365 !important;
}

#mh-share-overlay .share-tabs .tab:nth-child(2).active {
  background: #504621 !important;
}

#mh-share-overlay .share-tabs .tab:nth-child(3).active {
  background: #4d2b4a !important;
}

#mh-share-overlay .share-tabs .tab:nth-child(4).active {
  background: #214b45 !important;
}

#mh-share-overlay .share-panel[data-panel="quick"] .share-section-title span::before {
  background: #2ec5ff !important;
}

#mh-share-overlay .share-panel[data-panel="direct"] .share-section-title span::before {
  background: #ffd447 !important;
}

#mh-share-overlay .share-panel[data-panel="embed"] .share-section-title span::before {
  background: #ff4fae !important;
}

#mh-share-overlay .share-panel[data-panel="qr"] .share-section-title span::before {
  background: #35d08a !important;
}

#mh-share-overlay .share-item {
  background: #263b50 !important;
}

#mh-share-overlay .share-item::before {
  inset: 0 auto 0 0;
  width: 6px;
  height: auto;
  border-radius: 16px 0 0 16px;
  background: #69b7ff !important;
}

#mh-share-overlay .share-item:nth-child(1)::before { background: #1877f2 !important; }
#mh-share-overlay .share-item:nth-child(2)::before { background: #ffffff !important; }
#mh-share-overlay .share-item:nth-child(3)::before { background: #0a66c2 !important; }
#mh-share-overlay .share-item:nth-child(4)::before { background: #25d366 !important; }
#mh-share-overlay .share-item:nth-child(5)::before { background: #2aabee !important; }
#mh-share-overlay .share-item:nth-child(6)::before { background: #ff4500 !important; }
#mh-share-overlay .share-item:nth-child(7)::before { background: #e60023 !important; }
#mh-share-overlay .share-item:nth-child(8)::before { background: #ffd447 !important; }
#mh-share-overlay .share-item:nth-child(9)::before { background: #69b7ff !important; }

#mh-share-overlay .copy-row label::before {
  background: #ffd447 !important;
}

#mh-share-overlay .copy-row input,
#mh-share-overlay .copy-row textarea,
#mh-share-overlay .code-box textarea {
  background: #081625 !important;
}

#mh-share-overlay .qr-tools .btn-ghost:first-child {
  background: #214b45 !important;
  border-color: #35d08a !important;
}

#mh-share-overlay .share-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -2px;
}

#mh-share-overlay .workflow-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 5px solid #2ec5ff;
  border-radius: 16px;
  padding: 13px 14px;
  background: #1b2c3e;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

#mh-share-overlay .workflow-card:nth-child(2) {
  border-left-color: #ffd447;
}

#mh-share-overlay .workflow-card:nth-child(3) {
  border-left-color: #ff4fae;
}

#mh-share-overlay .workflow-card:nth-child(4) {
  border-left-color: #35d08a;
}

#mh-share-overlay .workflow-card strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 5px;
}

#mh-share-overlay .workflow-card span {
  display: block;
  color: #bcd1e7;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 650;
}

#mh-share-overlay .section-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: #1b2c3e;
  color: #c7d9eb;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 750;
}

#mh-share-overlay .section-note i {
  color: #2ec5ff;
  margin-top: 2px;
}

#mh-share-overlay .share-panel[data-panel="direct"] .section-note i {
  color: #ffd447;
}

#mh-share-overlay .share-panel[data-panel="embed"] .section-note i {
  color: #ff4fae;
}

#mh-share-overlay .share-panel[data-panel="qr"] .section-note i {
  color: #35d08a;
}

#mh-share-overlay .btn-ghost.copied,
#mh-share-overlay .copy-btn.copied {
  background: #214b45 !important;
  border-color: #35d08a !important;
  color: #f3fff8 !important;
}

#mh-share-overlay .copy-row input:focus,
#mh-share-overlay .copy-row textarea:focus,
#mh-share-overlay .code-box textarea:focus {
  outline: none;
  border-color: #69b7ff !important;
  box-shadow: 0 0 0 3px rgba(105, 183, 255, .18);
}

@media (max-width: 1100px) {
  #mh-share-overlay .share-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tag-chip .tag-search-link {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 14.5px;
  }

  #mh-share-overlay .share-header {
    grid-template-columns: 1fr;
  }

  #mh-share-overlay .sp-preview {
    min-height: 250px;
  }

  #mh-share-overlay .sp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mh-share-overlay .sp-actions {
    grid-template-columns: 1fr 1fr;
  }

  #mh-share-overlay .sp-actions .btn-ghost:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .tag-chip .tag-search-link {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 15px;
  }

  #mh-share-overlay .mh-head {
    min-height: 68px;
    padding: 12px 14px;
    flex-direction: row !important;
    align-items: center !important;
  }

  #mh-share-overlay .mh-head > div:first-child {
    width: auto !important;
    min-width: 0;
    padding-right: 10px;
  }

  #mh-share-overlay .mh-close {
    position: static !important;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin-left: auto;
  }

  #mh-share-overlay .mh-body {
    width: calc(100vw - 14px);
    padding-bottom: 28px;
  }

  #mh-share-overlay .share-tabs {
    position: static;
    top: auto;
    min-height: 52px;
    align-items: center;
  }

  #mh-share-overlay .share-panel,
  #mh-share-overlay .share-header {
    border-radius: 16px;
    padding: 12px;
  }

  #mh-share-overlay .copy-row {
    grid-template-columns: 1fr;
  }

  #mh-share-overlay .copy-row .copy-btn {
    width: 100%;
  }

  #mh-share-overlay .share-workflow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #mh-share-overlay .workflow-card {
    padding: 11px 12px;
  }

  #mh-share-overlay .section-note {
    font-size: 12px;
  }
}

.auth-shell {
  position: relative;
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mh-blue), var(--mh-yellow), var(--mh-green));
}

@media (max-width: 900px) {
  .search-bar {
    width: calc(100vw - 16px);
    grid-template-columns: auto auto 1fr auto auto;
  }

  #feeds {
    width: calc(100vw - 10px);
  }

  .mh-page {
    width: calc(100vw - 20px);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .search-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 0 0 16px 16px;
    width: 100vw;
    margin-top: 0;
  }

  #search-query {
    min-width: 0;
    font-size: 16px;
  }

  .home-button,
  .menu-button,
  #search-button,
  .button.pin {
    min-width: 38px;
    min-height: 38px;
  }

  .mh-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mh-grid {
    grid-template-columns: 1fr !important;
  }

  .mh-stats {
    grid-template-columns: 1fr !important;
  }

  .mh-profile {
    align-items: center !important;
    flex-direction: column;
    text-align: center;
  }

  .mh-cover {
    height: 130px !important;
  }

  .auth-shell {
    width: calc(100vw - 22px);
    padding: 24px 18px;
    border-radius: 16px;
  }
}

@media (min-width: 1500px) {
  #feeds {
    width: min(1680px, calc(100vw - 40px));
  }
}

/* Unified MyHashtag header shared by pages with page-specific category rails. */
.mh-site-header {
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #101d2b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.mh-site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #142235;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mh-site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 190px;
}

.mh-site-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.mh-site-brand small {
  display: block;
  color: #9ee7ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mh-site-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #214b66;
  display: grid;
  place-items: center;
  color: #9ee7ff;
}

.mh-site-search {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: #081625;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.mh-site-search i {
  color: #69b7ff;
  text-align: center;
}

.mh-site-search input {
  height: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 750;
  outline: 0;
}

.mh-site-search button {
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: #256fa8;
  color: #fff;
  font-weight: 950;
  padding: 0 16px;
  cursor: pointer;
}

.mh-site-actions,
.mh-site-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mh-site-actions a,
.mh-site-page-actions a,
.mh-site-page-actions button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: #1b2c3e;
  color: #eaf4ff;
  border-radius: 14px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.mh-site-actions a.active,
.mh-site-actions a:hover,
.mh-site-page-actions a:hover,
.mh-site-page-actions button:hover {
  background: #214b66;
  border-color: #2ec5ff;
}

.mh-site-actions .create {
  background: #214b45;
  border-color: rgba(53, 208, 138, .45);
}

.mh-site-context {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.mh-site-kicker {
  display: block;
  color: #9ee7ff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.mh-site-context h1 {
  font-size: 24px;
  margin: 0 0 4px;
  color: #fff;
}

.mh-site-context p {
  margin: 0;
  color: #bcd1e7;
  font-weight: 750;
  max-width: 900px;
}

.mh-site-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
}

.mh-site-category-rail a {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: #1b2c3e;
  color: #dceeff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  font-weight: 900;
}

.mh-site-category-rail a.active {
  background: #214b66;
  border-color: #2ec5ff;
  color: #fff;
}

.mh-site-category-rail a:nth-child(2) i { color: #ffd447; }
.mh-site-category-rail a:nth-child(3) i { color: #ff4fae; }
.mh-site-category-rail a:nth-child(4) i { color: #35d08a; }

@media (max-width: 1100px) {
  .mh-site-header-inner {
    grid-template-columns: 1fr;
  }

  .mh-site-actions {
    justify-content: flex-start;
  }

  .mh-site-context {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .mh-site-header {
    border-radius: 18px;
  }

  .mh-site-header-inner,
  .mh-site-context {
    padding: 12px;
  }

  .mh-site-search {
    grid-template-columns: 38px minmax(0, 1fr) 46px;
  }

  .mh-site-search button {
    display: block;
    min-width: 46px;
    padding: 0;
    font-size: 0;
    text-align: center;
  }

  .mh-site-search button::after {
    content: "Go";
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mh-site-actions a span {
    display: none;
  }

  .mh-site-actions a {
    min-width: 42px;
    justify-content: center;
  }

  .mh-site-context h1 {
    font-size: 21px;
  }

  .mh-site-category-rail {
    padding: 0 12px 12px;
  }
}

/* Comments surface: full-page discussion workspace. */
body.mh-comments-open {
  overflow: hidden;
}

#mh-comments-overlay {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 14px;
  background: rgba(3, 10, 18, .82) !important;
}

#mh-comments-overlay .mh-modal {
  width: min(1380px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 28px) !important;
  min-height: min(860px, calc(100vh - 28px));
  border-radius: 22px !important;
  background: #101d2b !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#mh-comments-overlay .mh-head {
  min-height: 78px;
  background: #16283a !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}

#mh-comments-overlay .comments-portal-head {
  align-items: flex-start;
  padding: 18px 24px;
}

#mh-comments-overlay .portal-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#mh-comments-overlay .portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ee7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#mh-comments-overlay .portal-kicker i {
  color: #2ec5ff;
}

#mh-comments-overlay .mh-title {
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 21px;
  letter-spacing: 0;
}

#mh-comments-overlay .mh-sub {
  color: #bcd1e7;
  max-width: 920px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

#mh-comments-overlay .portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

#mh-comments-overlay .portal-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #1b2c3e;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #dceeff;
  font-size: 12px;
  font-weight: 850;
}

#mh-comments-overlay .portal-badges span:nth-child(1) i { color: #35d08a; }
#mh-comments-overlay .portal-badges span:nth-child(2) i { color: #ffd447; }
#mh-comments-overlay .portal-badges span:nth-child(3) i { color: #ff4fae; }

#mh-comments-overlay .portal-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#mh-comments-overlay .sort-control {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #9fb7ce;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#mh-comments-overlay #mh-cmt-sort {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: #0b1826;
  color: #eaf4ff;
  font-weight: 850;
  padding: 0 12px;
}

#mh-comments-overlay .mh-close {
  width: 42px;
  height: 42px;
  background: #1b2c3e !important;
  border-color: rgba(255, 255, 255, .14) !important;
}

#mh-comments-overlay .mh-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  grid-template-areas:
    "post composer"
    "stats composer"
    "workflow composer"
    "toolbar composer"
    "thread composer";
  gap: 0;
  height: 100%;
  background: #0d1724;
}

#mh-comments-overlay .post-header {
  grid-area: post;
  display: flex !important;
  background: #142235 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}

#mh-comments-overlay .post-header .ava {
  border-radius: 16px;
  border-color: rgba(46, 197, 255, .38);
}

#mh-comments-overlay .post-header .info .title {
  color: #fff;
  font-size: 17px;
}

#mh-comments-overlay .post-header .info .by strong {
  color: #2ec5ff;
}

#mh-comments-overlay .post-header::after {
  content: "Connected discovery card";
  margin-left: auto;
  align-self: flex-start;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #214b45;
  border: 1px solid rgba(53, 208, 138, .42);
  color: #c9ffe3;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

#mh-comments-overlay .stats-row {
  grid-area: stats;
  background: #101d2b !important;
  padding: 14px 18px;
}

#mh-comments-overlay .count-chip {
  background: #1b2c3e !important;
  border-color: rgba(255, 255, 255, .12) !important;
  color: #eaf4ff;
  box-shadow: none;
}

#mh-comments-overlay .count-chip:nth-child(1) i { color: #2ec5ff; }
#mh-comments-overlay .count-chip:nth-child(2) i { color: #ffd447; }
#mh-comments-overlay .count-chip:nth-child(3) i { color: #ff4fae; }
#mh-comments-overlay .count-chip:nth-child(4) i { color: #35d08a; }

#mh-comments-overlay .comments-workflow {
  grid-area: workflow;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  background: #0d1724;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#mh-comments-overlay .workflow-card {
  border: 1px solid rgba(255, 255, 255, .11);
  border-left: 5px solid #2ec5ff;
  border-radius: 16px;
  background: #1b2c3e;
  padding: 12px 13px;
}

#mh-comments-overlay .workflow-card:nth-child(2) { border-left-color: #ffd447; }
#mh-comments-overlay .workflow-card:nth-child(3) { border-left-color: #ff4fae; }
#mh-comments-overlay .workflow-card:nth-child(4) { border-left-color: #35d08a; }

#mh-comments-overlay .workflow-card strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 4px;
}

#mh-comments-overlay .workflow-card span {
  display: block;
  color: #bfd2e6;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

#mh-comments-overlay .comments-toolbar {
  grid-area: toolbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #101d2b;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#mh-comments-overlay .comments-search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: block;
}

#mh-comments-overlay .comments-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #69b7ff;
}

#mh-comments-overlay .comments-search input {
  width: 100%;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #081625;
  color: #f3f8ff;
  padding: 0 14px 0 42px;
  font-weight: 760;
}

#mh-comments-overlay .comments-search input:focus {
  outline: none;
  border-color: #69b7ff;
  box-shadow: 0 0 0 3px rgba(105, 183, 255, .16);
}

#mh-comments-overlay .comments-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#mh-comments-overlay .filter-btn {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: #1b2c3e;
  color: #d9e8f7;
  min-height: 38px;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 850;
}

#mh-comments-overlay .filter-btn.active,
#mh-comments-overlay .filter-btn:hover {
  background: #214b66;
  border-color: #2ec5ff;
  color: #fff;
}

#mh-comments-overlay .thread {
  grid-area: thread;
  min-height: 220px;
  overflow: auto;
  background: #0d1724;
}

#mh-comments-overlay .thread.is-filter-empty::after {
  content: "No comments match the current filter.";
  display: block;
  margin: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: #1b2c3e;
  color: #c7d9eb;
  font-weight: 800;
}

#mh-comments-overlay .comments-empty {
  margin: 22px;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #142235;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 26px;
}

#mh-comments-overlay .comments-empty .empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #214b66;
  color: #9ee7ff;
  font-size: 25px;
}

#mh-comments-overlay .comments-empty strong {
  color: #fff;
  font-size: 18px;
}

#mh-comments-overlay .comments-empty span {
  color: #bcd1e7;
  max-width: 520px;
  line-height: 1.45;
  font-weight: 700;
}

#mh-comments-overlay #mh-cmt-new {
  grid-area: composer;
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, .1);
  background: #142235 !important;
  padding: 18px;
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: 100%;
}

#mh-comments-overlay .composer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 13px;
  padding: 14px;
  border-radius: 16px;
  background: #1b2c3e;
  border: 1px solid rgba(255, 255, 255, .12);
}

#mh-comments-overlay .composer-heading strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}

#mh-comments-overlay .composer-heading span {
  display: block;
  color: #bdd0e4;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
}

#mh-comments-overlay .composer-heading .composer-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #214b45;
  border: 1px solid rgba(53, 208, 138, .4);
  color: #c9ffe3;
  font-size: 11px;
  font-weight: 950;
}

#mh-comments-overlay .composer-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

#mh-comments-overlay .composer-capabilities span {
  min-height: 34px;
  border-radius: 12px;
  background: #0d1724;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #dceeff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
}

#mh-comments-overlay .composer-capabilities span:nth-child(1) i { color: #2ec5ff; }
#mh-comments-overlay .composer-capabilities span:nth-child(2) i { color: #ffd447; }
#mh-comments-overlay .composer-capabilities span:nth-child(3) i { color: #ff4fae; }
#mh-comments-overlay .composer-capabilities span:nth-child(4) i { color: #35d08a; }

#mh-comments-overlay .composer-tools {
  align-items: flex-start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#mh-comments-overlay .composer-tools .tool,
#mh-comments-overlay #poll-add-opt.tool {
  background: #1b2c3e !important;
  border-color: rgba(255, 255, 255, .13) !important;
  width: auto !important;
  min-height: 42px;
  padding: 0 12px;
  gap: 8px;
  justify-content: flex-start;
  font-weight: 900;
}

#mh-comments-overlay .composer-tools .tool:hover,
#mh-comments-overlay #poll-add-opt.tool:hover {
  background: #214b66 !important;
}

#mh-comments-overlay .composer-tools .tool span {
  display: inline;
  color: #eaf4ff;
  font-size: 12.5px;
}

#mh-comments-overlay .composer-tools .chips {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

#mh-comments-overlay .composer-tools .chip {
  background: #1b2c3e !important;
  border-color: rgba(255, 255, 255, .13) !important;
  text-align: center;
  min-height: 34px;
  padding: 0 8px;
}

#mh-comments-overlay .composer-tools .chip:hover {
  background: #3c3446 !important;
  color: #ffd447 !important;
}

#mh-comments-overlay .reply-form textarea,
#mh-comments-overlay #mh-cmt-new textarea {
  min-height: 170px;
  background: #081625 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  font-size: 15px;
}

#mh-comments-overlay #mh-cmt-new textarea:focus,
#mh-comments-overlay .reply-form textarea:focus {
  border-color: #69b7ff !important;
  box-shadow: 0 0 0 3px rgba(105, 183, 255, .16) !important;
}

#mh-comments-overlay .composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

#mh-comments-overlay #mh-posting-as,
#mh-comments-overlay .comment-counter {
  color: #bdd0e4;
  font-size: 12.5px;
  font-weight: 750;
}

#mh-comments-overlay .send {
  background: #256fa8 !important;
  box-shadow: 0 12px 26px rgba(37, 111, 168, .28) !important;
  min-height: 42px;
  border-radius: 13px !important;
}

#mh-comments-overlay .send:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

#mh-comments-overlay .cmt {
  background: #101d2b;
  border-bottom-color: rgba(255, 255, 255, .07);
}

#mh-comments-overlay .cmt:hover {
  background: #142235 !important;
}

#mh-comments-overlay .cmt .ava {
  background: #214b66 !important;
}

#mh-comments-overlay .cmt .meta .who {
  color: #7bdcff !important;
}

#mh-comments-overlay .badge-author {
  background: #ffd447 !important;
  color: #111;
}

@media (max-width: 1180px) {
  #mh-comments-overlay .mh-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "post"
      "stats"
      "workflow"
      "toolbar"
      "thread"
      "composer";
  }

  #mh-comments-overlay #mh-cmt-new {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    min-height: auto;
    position: static;
  }

  #mh-comments-overlay .comments-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #mh-comments-overlay {
    padding: 0;
  }

#mh-comments-overlay .mh-modal {
  width: 100vw !important;
  max-height: 100vh !important;
    min-height: 100vh;
    border-radius: 0 !important;
  }

  #mh-comments-overlay .mh-head {
    min-height: 72px;
    padding: 12px 14px;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #mh-comments-overlay .mh-head > div:first-child {
    width: 100% !important;
    min-width: 0;
    padding-right: 0;
  }

  #mh-comments-overlay .mh-title {
    font-size: 17px;
  }

  #mh-comments-overlay .mh-sub {
    max-width: 100%;
  }

  #mh-comments-overlay .portal-head-actions {
    position: static !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: flex-end;
    justify-content: stretch;
  }

  #mh-comments-overlay .mh-head > div:last-child {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: grid !important;
  }

  #mh-comments-overlay .sort-control {
    flex: 1;
  }

  #mh-comments-overlay #mh-cmt-sort {
    width: 100%;
  }

  #mh-comments-overlay .mh-close {
    align-self: end;
  }

  #mh-comments-overlay .portal-badges {
    gap: 6px;
  }

  #mh-comments-overlay .portal-badges span {
    font-size: 11px;
    min-height: 28px;
    padding: 0 8px;
  }

  #mh-comments-overlay .post-header::after {
    display: none;
  }

  #mh-comments-overlay .post-header,
  #mh-comments-overlay .stats-row,
  #mh-comments-overlay .comments-toolbar,
  #mh-comments-overlay #mh-cmt-new {
    padding: 12px 14px;
  }

  #mh-comments-overlay .comments-workflow {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 8px;
  }

  #mh-comments-overlay .comments-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #mh-comments-overlay .comments-search {
    max-width: none;
  }

  #mh-comments-overlay .comments-filters {
    justify-content: flex-start;
  }

  #mh-comments-overlay .filter-btn {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  #mh-comments-overlay .count-chip {
    flex: 1 1 calc(50% - 8px);
  }

  #mh-comments-overlay .composer-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #mh-comments-overlay .composer-heading {
    flex-direction: column;
  }

  #mh-comments-overlay .composer-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mh-comments-overlay .composer-tools {
    grid-template-columns: 1fr 1fr;
  }

  #mh-comments-overlay .composer-tools .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #mh-comments-overlay .send {
    width: 100%;
  }
}

/* Final visual alignment: thin shared navigation and original-feeling result cards. */
.mh-site-header {
  margin: 10px auto 14px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(38, 57, 76, .94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.mh-site-header-inner {
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(45, 66, 87, .96);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.mh-site-brand {
  min-width: 154px;
  gap: 8px;
}

.mh-site-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1f4f72;
}

.mh-site-brand strong {
  font-size: 15px;
  line-height: 1.05;
}

.mh-site-brand small {
  font-size: 9px;
  color: #b7e8ff;
}

.mh-site-search {
  height: 38px;
  border-radius: 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  background: rgba(17, 31, 45, .9);
}

.mh-site-search input {
  font-size: 14px;
  font-weight: 650;
}

.mh-site-search button {
  background: #f0b82f;
  color: #102033;
  font-size: 12px;
  min-width: 72px;
  padding: 0 12px;
}

.mh-site-actions,
.mh-site-page-actions {
  gap: 5px;
}

.mh-site-actions a,
.mh-site-page-actions a,
.mh-site-page-actions button {
  min-height: 34px;
  border-radius: 10px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .045);
}

.mh-site-actions a.active,
.mh-site-actions a:hover,
.mh-site-page-actions a:hover,
.mh-site-page-actions button:hover {
  background: rgba(64, 196, 255, .14);
  border-color: rgba(64, 196, 255, .55);
}

.mh-site-actions .create {
  background: rgba(255, 193, 7, .14);
  border-color: rgba(255, 193, 7, .34);
  color: #ffe5a0;
}

.mh-site-context {
  align-items: center;
  gap: 12px;
  padding: 8px 10px 6px;
}

.mh-site-kicker {
  display: inline-flex;
  margin: 0 0 2px;
  color: #8bd8ff;
  font-size: 9px;
  letter-spacing: .04em;
}

.mh-site-context h1 {
  font-size: 17px;
  line-height: 1.12;
  margin: 0;
}

.mh-site-context p {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #c7d8e8;
}

.mh-site-category-rail {
  gap: 6px;
  padding: 0 10px 9px;
}

.mh-site-category-rail a {
  min-height: 30px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .04);
}

.mh-site-category-rail a.active {
  background: rgba(64, 196, 255, .15);
  border-color: rgba(64, 196, 255, .55);
}

.mh-site-intel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 7px;
}

.mh-site-signals,
.mh-site-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mh-site-signals {
  overflow-x: auto;
  scrollbar-width: none;
}

.mh-site-signals::-webkit-scrollbar {
  display: none;
}

.mh-site-signal,
.mh-site-shortcuts a {
  min-height: 27px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: #eaf4ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  white-space: nowrap;
  text-decoration: none;
}

.mh-site-signal i,
.mh-site-shortcuts i {
  color: #8bd8ff;
  font-size: 11px;
}

.mh-site-signal b,
.mh-site-shortcuts span {
  font-size: 11px;
  font-weight: 850;
}

.mh-site-signal small {
  color: #ffd56f;
  font-size: 10px;
  font-weight: 850;
}

.mh-site-shortcuts {
  flex: 0 0 auto;
}

.mh-site-shortcuts a:hover {
  border-color: rgba(255, 193, 7, .42);
  background: rgba(255, 193, 7, .10);
  color: #fff;
}

.result {
  border-color: rgba(255, 255, 255, .065) !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #33475b 0%, #2f4254 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
  outline: 0;
}

.result:hover {
  border-color: rgba(64, 196, 255, .24) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24) !important;
}

.result::before {
  display: none !important;
}

.card-header {
  padding: 5px 8px 4px;
  margin-bottom: 4px !important;
  border-bottom: 0;
  background: transparent;
}

.card-header .author-block {
  gap: 9px;
}

.card-header .media-box {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.card-header .author-avatar-link {
  width: 34px !important;
  height: 34px !important;
}

.card-header .author-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 2px solid #000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25) !important;
}

.card-header .author-name {
  color: #e7edf4;
  font-size: 14px;
  font-weight: 800;
  max-width: 200px;
}

.result h2 {
  color: #f2f6fb;
  font-size: 16px;
  line-height: 1.25;
}

.result p {
  color: #cfd9e5;
}

.channel-row {
  margin: 6px 10px;
  padding: 5px 7px;
  border-radius: 8px;
  box-shadow: none;
}

.tag-chip .tag-search-link {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.tag-chip .follow-icon,
.like-btn,
.dislike-btn,
.save-btn,
.share-icon-button,
.card-tools .share-inline,
.mh-open-comments {
  box-shadow: none;
}

.like-dislike-container {
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, .045);
}

.source-search-panel {
  width: min(1500px, calc(100vw - 22px));
  margin: 0 auto 14px;
  border: 1px solid rgba(10, 35, 66, .10);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(248, 252, 255, .96)),
    #fff;
  box-shadow: 0 16px 34px rgba(10, 35, 66, .10);
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(320px, .95fr);
  gap: 12px;
  align-items: stretch;
}

.source-search-main {
  min-width: 0;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(10, 35, 66, .08);
  padding: 14px 16px;
}

.source-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0b78ff;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.source-search-main h2 {
  margin: 10px 0 5px;
  color: #10233f;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.source-search-main p {
  margin: 0;
  color: #54627a;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 760px;
}

.source-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-stats span {
  min-width: 0;
  border-radius: 13px;
  border: 1px solid rgba(10, 35, 66, .08);
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset 3px 0 0 var(--source-accent, #0b78ff);
}

.source-stats span:nth-child(2) { --source-accent: #ff4b7d; }
.source-stats span:nth-child(3) { --source-accent: #00a96e; }
.source-stats span:nth-child(4) { --source-accent: #ff9f1c; }

.source-stats b {
  color: #10233f;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.source-stats small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.source-filter-rail {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 1px;
  scrollbar-width: none;
}

.source-filter-rail::-webkit-scrollbar {
  display: none;
}

.source-filter-rail a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid rgba(10, 35, 66, .10);
  color: #19324f;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(10, 35, 66, .07);
}

.source-filter-rail a.active {
  background: #10233f;
  color: #fff;
  border-color: #10233f;
}

.source-filter-rail a:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 120, 255, .35);
}

@media (max-width: 1100px) {
  .mh-site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mh-site-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .mh-site-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .mh-site-header {
    border-radius: 13px;
    margin-top: 8px;
  }

  .mh-site-header-inner {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .mh-site-brand {
    min-width: 0;
  }

  .mh-site-search {
    order: 0;
    height: 38px;
    grid-template-columns: 34px minmax(0, 1fr) 42px;
  }

  .mh-site-actions {
    justify-content: flex-start;
    gap: 5px;
  }

  .mh-site-actions a {
    min-width: 36px;
    min-height: 34px;
    padding: 0 8px;
  }

  .mh-site-context {
    padding: 8px;
  }

  .mh-site-context h1 {
    font-size: 16px;
  }

  .mh-site-context p {
    font-size: 11.5px;
  }

  .mh-site-category-rail {
    padding: 0 8px 8px;
  }

  .mh-site-intel {
    align-items: stretch;
    flex-direction: column;
    padding: 0 8px 7px;
  }

  .mh-site-shortcuts {
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .mh-site-shortcuts::-webkit-scrollbar {
    display: none;
  }

  .mh-site-signal,
  .mh-site-shortcuts a {
    min-height: 26px;
    padding: 0 7px;
  }

  .mh-site-signal b,
  .mh-site-shortcuts span {
    font-size: 10.5px;
  }

  .mh-site-signal small {
    font-size: 9.5px;
  }

  .mh-site-category-rail a {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .tag-chip .tag-search-link {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 13.5px;
    font-weight: 850;
  }

  .source-search-panel {
    width: min(1500px, calc(100vw - 16px));
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 14px;
    grid-template-columns: 1fr;
  }

  .source-search-main {
    padding: 12px;
  }

  .source-search-main h2 {
    font-size: 20px;
  }

  .source-search-main p {
    font-size: 12.5px;
  }

  .source-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-stats span {
    padding: 10px;
  }

  .source-filter-rail a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}

/* Source search compact command bar: keep it aligned with the unified dark header. */
.source-search-panel {
  width: min(1500px, calc(100vw - 22px));
  margin: -4px auto 10px;
  min-height: 0;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(38, 57, 76, .94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(260px, 1fr) minmax(320px, 1.15fr);
  gap: 8px;
  align-items: center;
}

.source-search-main {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-kicker {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgba(64, 196, 255, .15);
  border: 1px solid rgba(64, 196, 255, .45);
  color: #eaf4ff;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.source-kicker i {
  color: #8bd8ff;
}

.source-search-main h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-search-main p {
  display: none;
}

.source-stats {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.source-stats::-webkit-scrollbar {
  display: none;
}

.source-stats span {
  flex: 0 0 auto;
  min-height: 28px;
  min-width: 0;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.source-stats b {
  color: #fff;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.source-stats small {
  margin: 0;
  color: #ffd56f;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.source-filter-rail {
  grid-column: auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
}

.source-filter-rail::-webkit-scrollbar {
  display: none;
}

.source-filter-rail a {
  min-height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  color: #eaf4ff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.source-filter-rail a i {
  color: #8bd8ff;
  font-size: 10.5px;
}

.source-filter-rail a.active {
  background: rgba(64, 196, 255, .16);
  color: #fff;
  border-color: rgba(64, 196, 255, .55);
}

.source-filter-rail a:hover {
  transform: none;
  background: rgba(255, 255, 255, .075);
  border-color: rgba(139, 216, 255, .42);
}

@media (max-width: 980px) {
  .source-search-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .source-filter-rail {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .source-search-panel {
    width: min(1500px, calc(100vw - 22px));
    margin: -2px auto 8px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .source-search-main {
    gap: 6px;
  }

  .source-search-main h2 {
    font-size: 13px;
  }

  .source-kicker,
  .source-stats span,
  .source-filter-rail a {
    min-height: 26px;
  }

  .source-filter-rail a {
    padding: 0 8px;
    font-size: 10.5px;
  }
}

/* Search intelligence: compact result counts and query signals. */
.search-intelligence-panel {
  width: min(1500px, calc(100vw - 22px));
  margin: -4px auto 10px;
  min-height: 0;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(38, 57, 76, .94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(210px, .58fr) minmax(0, 1.42fr);
  gap: 8px;
  align-items: stretch;
}

.search-intel-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-content: center;
}

.search-intel-kicker {
  grid-row: 1 / 3;
  align-self: center;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 0 9px;
  background: rgba(255, 212, 0, .14);
  border: 1px solid rgba(255, 212, 0, .36);
  color: #ffe38a;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.search-intel-main h2 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-intel-main p {
  min-width: 0;
  margin: 2px 0 0;
  color: #bcd1e4;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-intel-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(74px, 1fr));
  gap: 6px;
}

.search-intel-stats :is(a, span) {
  --search-accent: #40c4ff;
  min-width: 0;
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 3px 0 var(--search-accent);
  padding: 7px 6px 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 5px;
  align-content: center;
  text-decoration: none;
  color: inherit;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.search-intel-stats :is(a, span):nth-child(2) { --search-accent: #ffd166; }
.search-intel-stats :is(a, span):nth-child(3) { --search-accent: #65d98f; }
.search-intel-stats :is(a, span):nth-child(4) { --search-accent: #ff6b8a; }
.search-intel-stats :is(a, span):nth-child(5) { --search-accent: #8bd8ff; }
.search-intel-stats :is(a, span):nth-child(6) { --search-accent: #b7e986; }
.search-intel-stats :is(a, span):nth-child(7) { --search-accent: #ff9f1c; }
.search-intel-stats :is(a, span):nth-child(8) { --search-accent: #4a90e2; }
.search-intel-stats :is(a, span):nth-child(9) { --search-accent: #f1f5f9; }

.search-intel-stats a:hover,
.search-intel-stats a:focus-visible {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(139, 216, 255, .42);
  transform: translateY(-1px);
  outline: none;
}

.search-intel-stats i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--search-accent);
  font-size: 12px;
}

.search-intel-stats b {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-intel-stats small {
  min-width: 0;
  color: #aecaeb;
  font-size: 9.8px;
  line-height: 1.1;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-intel-rail {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 0;
  scrollbar-width: none;
}

.search-intel-rail::-webkit-scrollbar {
  display: none;
}

.search-intel-chip {
  flex: 0 0 auto;
  max-width: 210px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: #eaf4ff;
  padding: 0 9px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-intel-chip i {
  flex: 0 0 auto;
  color: #8bd8ff;
  font-size: 10.5px;
}

.search-intel-chip b {
  flex: 0 0 auto;
  min-width: 18px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  padding: 0 5px;
  font-size: 10px;
  line-height: 1;
}

.search-intel-chip.active {
  background: rgba(255, 212, 0, .13);
  border-color: rgba(255, 212, 0, .38);
  color: #ffe8a3;
}

.search-intel-chip.tag {
  background: rgba(255, 107, 138, .10);
  border-color: rgba(255, 107, 138, .26);
}

.search-intel-chip.source {
  background: rgba(64, 196, 255, .10);
  border-color: rgba(64, 196, 255, .28);
}

.search-intel-chip.author {
  background: rgba(101, 217, 143, .10);
  border-color: rgba(101, 217, 143, .28);
}

.search-intel-chip:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(139, 216, 255, .42);
}

.search-intel-entity-grid {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.search-entity-card {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(11, 26, 40, .24);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-entity-card header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-entity-card header span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-entity-card header i {
  color: #40c4ff;
  font-size: 11px;
}

.search-entity-card header b {
  flex: 0 0 auto;
  min-width: 26px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(64, 196, 255, .28);
  background: rgba(64, 196, 255, .10);
  color: #dff5ff;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 950;
}

.search-entity-card p {
  margin: 0;
  color: #aecaeb;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 750;
}

.search-entity-list {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.search-entity-row {
  min-width: 0;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
  color: #eaf4ff;
  padding: 6px 7px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.search-entity-row:hover,
.search-entity-row:focus-visible {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(139, 216, 255, .42);
  outline: none;
  transform: translateY(-1px);
}

.search-entity-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-entity-row strong,
.search-entity-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-entity-row strong {
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.search-entity-row small {
  color: #9fb9d6;
  font-size: 9.5px;
  font-weight: 750;
}

.search-entity-row b {
  min-width: 25px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 950;
}

.search-entity-row.authors b,
.search-entity-row.members b {
  background: rgba(101, 217, 143, .13);
}

.search-entity-row.tags b {
  background: rgba(255, 107, 138, .14);
}

.search-entity-row.sources b {
  background: rgba(64, 196, 255, .13);
}

.search-entity-empty {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, .12);
  color: #9fb9d6;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .search-intelligence-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-intel-stats {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
  }

  .search-intel-entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .search-intelligence-panel {
    width: min(1500px, calc(100vw - 18px));
    margin: -2px auto 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .search-intel-main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 5px;
  }

  .search-intel-kicker {
    grid-row: auto;
    justify-content: flex-start;
    width: fit-content;
    min-height: 27px;
  }

  .search-intel-main h2 {
    font-size: 13.5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .search-intel-main p {
    white-space: normal;
  }

  .search-intel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .search-intel-stats :is(a, span) {
    min-height: 46px;
    padding-inline: 5px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-intel-chip {
    max-width: 180px;
    min-height: 27px;
    font-size: 10.5px;
  }

  .search-intel-entity-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .search-entity-card {
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .search-intel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-05-14 responsive hardening: shared header rails must never create page overflow. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.mh-site-header,
.mh-site-header *,
.mh-site-context,
.mh-site-signals,
.mh-site-shortcuts {
  box-sizing: border-box;
}

.mh-site-header {
  max-width: calc(100vw - 16px);
  overflow: hidden;
}

.mh-site-context {
  min-width: 0;
}

.mh-site-context > div,
.mh-site-signals,
.mh-site-shortcuts,
.mh-site-category-rail {
  min-width: 0;
  max-width: 100%;
}

.mh-site-signals,
.mh-site-shortcuts {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.mh-site-signal,
.mh-site-shortcuts a {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mh-site-context {
    align-items: stretch;
  }

  .mh-site-context > div {
    width: 100%;
    min-width: 0;
  }

  .mh-site-signals,
  .mh-site-shortcuts {
    width: 100%;
    padding-bottom: 2px;
  }
}

@media (max-width: 430px) {
  .mh-site-header {
    max-width: calc(100vw - 12px);
  }

  .mh-site-context {
    padding-left: 8px;
    padding-right: 8px;
  }

  .mh-site-signal,
  .mh-site-shortcuts a {
    min-height: 36px;
    padding-left: 9px;
    padding-right: 9px;
  }

  .mh-site-category-rail a {
    min-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 2026-05-15 share workspace interaction polish. Keep all complete sections visible,
   but make the navigation rail readable and click-targetable. */
#mh-share-overlay .share-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 40 !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  pointer-events: auto !important;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: rgba(16, 31, 49, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .18);
}

#mh-share-overlay .share-tabs .tab {
  position: relative !important;
  z-index: 41 !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 14px !important;
  pointer-events: auto !important;
}

#mh-share-overlay .share-panel {
  scroll-margin-top: 18px !important;
}

/* 2026-05-15 full improvement package: density, focus tools, card readability, mobile polish, share/comments refinement. */
.mh-density-toggle {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: #eaf4ff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 850;
  cursor: pointer;
}

.mh-density-toggle:hover,
.mh-density-toggle[aria-pressed="true"] {
  background: rgba(255, 193, 7, .14);
  border-color: rgba(255, 193, 7, .42);
  color: #fff4c5;
}

.mh-feed-tools {
  width: min(1500px, calc(100vw - 16px));
  margin: 10px auto 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(35, 54, 73, .82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.mh-feed-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mh-feed-tool-group::-webkit-scrollbar {
  display: none;
}

.mh-feed-tool-group button,
.mh-visual-status,
.mh-focus-count {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
  color: #eaf4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 850;
  white-space: nowrap;
}

.mh-feed-tool-group button {
  cursor: pointer;
}

.mh-feed-tool-group button.active,
.mh-feed-tool-group button:hover {
  background: rgba(64, 196, 255, .16);
  border-color: rgba(64, 196, 255, .55);
  color: #fff;
}

.mh-loaded-search {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(7, 18, 31, .64);
  color: #8bd8ff;
}

.mh-loaded-search input {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef7ff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.mh-loaded-search input::placeholder {
  color: rgba(220, 235, 250, .58);
}

.mh-visual-status {
  color: #a8ffd3;
  border-color: rgba(63, 210, 136, .34);
  background: rgba(63, 210, 136, .09);
}

.mh-visual-status.warn {
  color: #ffe9a7;
  border-color: rgba(255, 212, 0, .4);
  background: rgba(255, 212, 0, .10);
}

.mh-focus-count {
  color: #bfd4e8;
}

body.mh-feed-focus-active #feeds .result.mh-focus-dim {
  opacity: .34 !important;
  filter: saturate(.78);
}

body.mh-feed-focus-active #feeds .result.mh-focus-dim:hover {
  opacity: .88 !important;
  filter: none;
}

#feeds .result {
  min-height: 0;
}

#feeds .result .feed-title {
  color: #f5f9ff !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

#feeds .result .feed-description {
  color: #cedce9 !important;
  overflow-wrap: anywhere;
}

#feeds .result .card-meta-stack {
  isolation: isolate;
}

#feeds .result .channel-row,
#feeds .result .site-strip,
#feeds .result .feed-date {
  border: 1px solid rgba(255, 255, 255, .06);
}

#feeds .result .tags-row {
  align-items: stretch !important;
}

#feeds .result .tag-chip {
  min-width: 0;
}

#feeds .result .tag-chip .tag-search-link {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mh-density-compact #feeds .result .card-header {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

body.mh-density-compact #feeds .result .media-box {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

body.mh-density-compact #feeds .result .feed-title {
  margin-bottom: 3px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

body.mh-density-compact #feeds .result .feed-description {
  margin-bottom: 6px !important;
  font-size: 12.25px !important;
  line-height: 1.32 !important;
}

body.mh-density-compact #feeds .result .card-meta-stack {
  gap: 4px !important;
}

body.mh-density-compact #feeds .result .tag-chip .tag-search-link {
  min-height: 23px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  font-size: 10.75px !important;
}

body.mh-density-compact #feeds .result .actions-row,
body.mh-density-compact #feeds .result .card-tools {
  margin-top: 5px !important;
}

body.mh-density-comfortable #feeds .result .feed-title {
  line-height: 1.27 !important;
}

body.mh-density-comfortable #feeds .result .card-meta-stack {
  gap: 7px !important;
}

#mh-share-overlay .share-tabs {
  scroll-margin-top: 0;
}

#mh-share-overlay .share-tabs .tab.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .06), 0 10px 26px rgba(0, 0, 0, .22);
}

#mh-share-overlay .share-header,
#mh-share-overlay .share-workflow,
#mh-share-overlay .share-panel {
  max-width: 100%;
}

#mh-share-overlay .copy-row input,
#mh-share-overlay .copy-row textarea,
#mh-share-overlay #mh-embed-code {
  overflow-wrap: anywhere;
}

#mh-comments-overlay .comments-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(14px);
}

#mh-comments-overlay .comment-counter {
  justify-self: start;
}

#mh-comments-overlay .thread.is-filter-empty {
  min-height: 150px;
}

@media (max-width: 760px) {
  .mh-feed-tools {
    grid-template-columns: minmax(0, 1fr);
    width: min(1500px, calc(100vw - 20px));
    margin-top: 8px;
  }

  .mh-feed-tool-group {
    width: 100%;
  }

  .mh-feed-tool-group button {
    flex: 1 0 auto;
  }

  .mh-visual-status,
  .mh-focus-count {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .mh-site-header {
    width: min(100%, calc(100vw - 24px)) !important;
    margin-top: 8px !important;
  }

  .mh-site-header-inner {
    gap: 8px !important;
  }

  .mh-site-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .mh-site-brand strong {
    font-size: 24px !important;
  }

  .mh-site-brand small {
    font-size: 12px !important;
  }

  .mh-site-search {
    height: 54px !important;
    border-radius: 16px !important;
    grid-template-columns: 54px minmax(0, 1fr) 84px !important;
    overflow: hidden;
  }

  .mh-site-search input {
    font-size: 17px !important;
  }

  .mh-site-search button {
    width: 84px !important;
    min-width: 84px !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mh-site-search button::after {
    content: "Go" !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  .mh-site-page-actions,
  .mh-site-actions,
  .mh-site-category-rail {
    gap: 8px !important;
  }

  .mh-site-page-actions a,
  .mh-site-page-actions button,
  .mh-site-actions a,
  .mh-density-toggle {
    min-height: 42px !important;
    border-radius: 13px !important;
  }

  #tags-container,
  .tags-container {
    width: min(100%, calc(100vw - 24px)) !important;
  }

  #tags-container a,
  .tags-container a {
    min-height: 40px !important;
    padding: 6px 12px !important;
    border-radius: 9px !important;
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  #feeds {
    width: min(100%, calc(100vw - 10px)) !important;
  }

  #feeds .result .feed-title {
    font-size: 18px !important;
  }

  #feeds .result .feed-description {
    font-size: 15px !important;
  }

  #feeds .result .tag-chip .tag-search-link {
    font-size: 13px !important;
    min-height: 30px !important;
  }

  #mh-share-overlay .share-tabs {
    margin: 0 14px !important;
  }

  #mh-share-overlay .share-tabs .tab {
    min-width: 112px;
  }

  #mh-comments-overlay .comments-toolbar {
    position: static;
  }
}

/* Professional mobile density pass: keep every control, but let content appear sooner. */
@media (max-width: 640px) {
  .mh-site-header {
    margin-top: 6px !important;
  }

  .mh-site-header-inner {
    padding: 9px !important;
    gap: 7px !important;
  }

  .mh-site-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .mh-site-brand strong {
    font-size: 21px !important;
    line-height: 1.05 !important;
  }

  .mh-site-brand small {
    font-size: 10px !important;
  }

  .mh-site-search {
    height: 48px !important;
    grid-template-columns: 48px minmax(0, 1fr) 72px !important;
  }

  .mh-site-search input {
    font-size: 15px !important;
  }

  .mh-site-search button {
    width: 72px !important;
    min-width: 72px !important;
  }

  .mh-site-search button::after {
    font-size: 16px !important;
  }

  .mh-site-context {
    padding: 9px 10px 7px !important;
    gap: 8px !important;
  }

  .mh-site-context h1 {
    font-size: 18px !important;
  }

  .mh-site-context p {
    font-size: 12px !important;
    line-height: 1.28 !important;
  }

  .mh-site-page-actions,
  .mh-site-actions,
  .mh-site-category-rail {
    gap: 6px !important;
  }

  .mh-site-page-actions a,
  .mh-site-page-actions button,
  .mh-site-actions a,
  .mh-density-toggle {
    min-height: 36px !important;
    border-radius: 11px !important;
    padding-inline: 10px !important;
  }

  #tags-container,
  .tags-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: min(100%, calc(100vw - 24px)) !important;
    margin: 8px auto 6px !important;
    padding: 0 2px 4px !important;
    scrollbar-width: none;
  }

  #tags-container::-webkit-scrollbar,
  .tags-container::-webkit-scrollbar {
    display: none;
  }

  #tags-container a,
  .tags-container a {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 5px 11px !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  #tags-container #reload-tags {
    position: sticky;
    right: 0;
    min-width: 38px !important;
    justify-content: center;
    background: #f1f5f9 !important;
  }

  .mh-feed-tools {
    gap: 7px !important;
    padding: 7px !important;
  }

  .mh-feed-tool-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .mh-feed-tool-group::-webkit-scrollbar {
    display: none;
  }

  .mh-feed-tool-group button {
    min-height: 34px !important;
    flex: 0 0 auto !important;
  }

  .mh-loaded-search {
    min-height: 38px !important;
  }
}

.qr-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .24);
  border-radius: 14px;
  color: #b9cce0;
  background: rgba(255, 255, 255, .04);
  font-weight: 900;
}

/* 2026-05-15 UX polish: organized header, intelligence, filters, and video previews. */
.mh-site-header {
  background:
    linear-gradient(135deg, rgba(11, 31, 52, .97) 0%, rgba(31, 63, 84, .98) 48%, rgba(16, 80, 94, .94) 100%) !important;
  border-color: rgba(100, 220, 255, .20) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  overflow: hidden !important;
}

.mh-site-header-inner {
  grid-template-columns: minmax(142px, 170px) minmax(260px, 1fr) auto !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: rgba(4, 16, 30, .18);
}

.mh-site-search {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(96, 206, 255, .14) !important;
}

.mh-site-search button {
  min-width: 92px;
  background: linear-gradient(135deg, #ffd447, #ffb31f) !important;
  color: #07131f !important;
}

.mh-site-context {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 10px 12px 8px !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.mh-site-context h1 {
  font-size: 18px !important;
}

.mh-site-context p {
  max-width: 920px;
}

.mh-site-page-actions {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.mh-site-intel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding: 0 12px 9px !important;
}

.mh-site-signals {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  overflow: visible !important;
}

.mh-site-signal {
  min-width: 0 !important;
  min-height: 30px !important;
  border-color: rgba(128, 215, 255, .16) !important;
  background: rgba(255, 255, 255, .055) !important;
}

.mh-site-signal b,
.mh-site-signal small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-site-signal small {
  color: #ffd866 !important;
}

.mh-site-shortcuts,
.mh-site-category-rail,
.mh-site-actions {
  scrollbar-width: thin !important;
}

.mh-site-category-rail {
  flex-wrap: wrap !important;
  padding: 0 12px 10px !important;
}

.search-intelligence-panel {
  width: min(1500px, calc(100vw - 22px)) !important;
  margin: 10px auto 10px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  gap: 10px !important;
  background:
    linear-gradient(135deg, rgba(9, 29, 49, .97) 0%, rgba(31, 58, 82, .96) 52%, rgba(14, 75, 91, .94) 100%) !important;
  border-color: rgba(125, 224, 255, .18) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.search-intel-main {
  display: block !important;
  padding: 2px 2px 0;
}

.search-intel-kicker {
  width: fit-content;
  min-height: 30px !important;
  margin-bottom: 7px;
  background: rgba(255, 212, 0, .16) !important;
  color: #ffe38a !important;
}

.search-intel-main h2 {
  font-size: 20px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

.search-intel-main p {
  margin-top: 5px !important;
  white-space: normal !important;
  font-size: 12px !important;
  color: #c7ddf2 !important;
}

.search-intel-stats {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)) !important;
  gap: 8px !important;
}

.search-intel-stats :is(a, span) {
  min-height: 62px !important;
  border-radius: 12px !important;
  padding: 9px 9px 8px !important;
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

.search-intel-stats b {
  font-size: 16px !important;
}

.search-intel-stats small {
  font-size: 10.5px !important;
}

.search-intel-rail {
  grid-column: 1 / -1 !important;
  flex-wrap: wrap !important;
  align-content: flex-start !important;
  max-height: 88px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(2, 12, 24, .18);
  scrollbar-width: thin !important;
}

.search-intel-rail::-webkit-scrollbar {
  display: block !important;
  width: 8px;
}

.search-intel-rail::-webkit-scrollbar-thumb {
  background: rgba(139, 216, 255, .44);
  border-radius: 999px;
}

.search-intel-chip {
  max-width: min(260px, 100%) !important;
  min-height: 31px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .06) !important;
}

.search-intel-chip.tag { background: rgba(255, 75, 151, .13) !important; }
.search-intel-chip.source { background: rgba(55, 199, 255, .13) !important; }
.search-intel-chip.author { background: rgba(68, 220, 139, .13) !important; }

.search-intel-entity-grid {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 10px !important;
}

.search-entity-card {
  max-height: 238px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px !important;
  background: rgba(8, 22, 38, .34) !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

.search-entity-card header {
  flex: 0 0 auto;
}

.search-entity-card p {
  flex: 0 0 auto;
}

.search-entity-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.search-entity-list::-webkit-scrollbar {
  width: 8px;
}

.search-entity-list::-webkit-scrollbar-thumb {
  background: rgba(139, 216, 255, .38);
  border-radius: 999px;
}

.feed-filterbar {
  width: min(1500px, calc(100vw - 22px)) !important;
  margin: 10px auto 6px !important;
  padding: 8px !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 14px !important;
  background: rgba(8, 23, 38, .62) !important;
  border: 1px solid rgba(125, 224, 255, .16) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
  overflow-x: auto !important;
  scrollbar-width: thin !important;
}

.filter-tab {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  border-radius: 999px !important;
}

#tags-container,
.tags-container,
.mh-feed-tool-group,
.source-filter-rail {
  scrollbar-width: thin !important;
}

#tags-container::-webkit-scrollbar,
.tags-container::-webkit-scrollbar,
.mh-feed-tool-group::-webkit-scrollbar,
.source-filter-rail::-webkit-scrollbar {
  display: block !important;
  height: 8px;
}

#tags-container::-webkit-scrollbar-thumb,
.tags-container::-webkit-scrollbar-thumb,
.mh-feed-tool-group::-webkit-scrollbar-thumb,
.source-filter-rail::-webkit-scrollbar-thumb {
  background: rgba(139, 216, 255, .42);
  border-radius: 999px;
}

.source-filter-rail {
  justify-content: flex-start !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
}

.media-box .video-preview-card,
.media-box .video-fallback-card {
  width: 100%;
  min-height: 176px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(135deg, #111e31, #1f3f54);
  color: #fff;
  text-decoration: none !important;
}

.video-preview-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.video-preview-card::after,
.video-fallback-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.55));
  pointer-events: none;
}

.video-provider {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(5, 15, 26, .74);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.youtube-thumbnail .play-button {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff0033, #ff4b72);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .40);
  transition: transform .16s ease, box-shadow .16s ease;
}

.youtube-thumbnail:hover .play-button,
.youtube-thumbnail:focus-visible .play-button {
  transform: scale(1.06);
  box-shadow: 0 22px 42px rgba(0, 0, 0, .46);
}

.youtube-thumbnail.thumb-missing::before {
  content: "YouTube";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.74);
  font-size: 22px;
  font-weight: 950;
}

.video-embed-frame {
  width: 100%;
  min-height: 176px;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.video-fallback-card {
  gap: 8px;
  text-align: center;
  padding: 18px;
}

.video-fallback-card > * {
  position: relative;
  z-index: 2;
}

.video-fallback-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 0, 51, .20);
  color: #ff4b72;
  font-size: 24px;
}

.video-fallback-card strong {
  font-size: 15px;
  font-weight: 950;
}

.video-fallback-card span:last-child {
  max-width: 260px;
  color: #c9d8e7;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .mh-site-header-inner {
    grid-template-columns: 1fr !important;
  }

  .mh-site-context,
  .mh-site-intel {
    grid-template-columns: 1fr !important;
  }

  .mh-site-page-actions,
  .mh-site-shortcuts {
    justify-content: flex-start !important;
  }

  .mh-site-signals {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 4px;
  }

  .mh-site-signal {
    flex: 0 0 auto !important;
  }

  .search-intelligence-panel {
    grid-template-columns: 1fr !important;
  }

  .search-intel-entity-grid {
    display: flex !important;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .search-entity-card {
    flex: 0 0 min(330px, 86vw);
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .mh-site-header {
    width: min(100%, calc(100vw - 24px)) !important;
    margin-top: 12px !important;
  }

  .mh-site-context h1 {
    font-size: 19px !important;
  }

  .mh-site-signals {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .mh-site-signal {
    flex: initial !important;
    width: auto !important;
  }

  .mh-site-actions,
  .mh-site-category-rail,
  .mh-site-shortcuts {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .mh-site-actions a,
  .mh-site-category-rail a,
  .mh-site-shortcuts a {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .search-intelligence-panel {
    width: min(100%, calc(100vw - 22px)) !important;
    padding: 10px !important;
  }

  .search-intel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .search-intel-stats :is(a, span) {
    min-height: 58px !important;
  }

  .feed-filterbar {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: flex-start !important;
  }

  .feed-filterbar .filter-tab {
    flex: 1 1 calc(50% - 6px) !important;
    justify-content: center !important;
  }
}

/* 2026-05-15 premium result-card anatomy pass. Shared by home, search, profile,
   post detail related feeds, and any #feeds tab using displayFeedsToContainer(). */
#feeds .result {
  --mh-card-bg: #20364a;
  --mh-card-rail: #152739;
  --mh-card-ink: #f6fbff;
  --mh-card-muted: #b8c9d8;
  --mh-card-cyan: #12d7ff;
  --mh-card-lime: #20e46f;
  --mh-card-gold: #ffd400;
  --mh-card-rose: #ff3f7f;
  --mh-card-violet: #8d5cff;
  position: relative;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 22%),
    var(--mh-card-bg) !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

#feeds .result::before {
  height: 4px !important;
  opacity: 1 !important;
  background: var(--channel-accent, var(--mh-card-cyan)) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--channel-accent, #12d7ff) 62%, transparent) !important;
}

#feeds .result:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--channel-accent, #12d7ff) 44%, rgba(255,255,255,.22)) !important;
  box-shadow:
    0 22px 46px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 22px color-mix(in srgb, var(--channel-accent, #12d7ff) 24%, transparent) !important;
}

#feeds .result .card-header {
  min-height: 46px;
  padding: 8px 9px 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  background: linear-gradient(180deg, rgba(7,18,31,.42), rgba(7,18,31,.16)) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

#feeds .result .author-block {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 7px !important;
}

#feeds .result .author-avatar,
#feeds .result .author-avatar-fallback-mini {
  width: 31px !important;
  height: 31px !important;
  margin: 0 !important;
  border: 2px solid #07121f !important;
  box-shadow: 0 0 0 2px var(--channel-accent, var(--mh-card-cyan)), 0 8px 16px rgba(0,0,0,.28) !important;
}

#feeds .result .author-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mh-card-ink) !important;
  font-weight: 950 !important;
  font-size: 12.25px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

#feeds .result .author-follow-btn {
  width: 33px !important;
  min-width: 33px !important;
  height: 33px !important;
  min-height: 33px !important;
  padding: 0 !important;
  position: relative;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: var(--mh-card-gold) !important;
  color: #07121f !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.22), 0 0 0 2px rgba(255,212,0,.14) !important;
}

#feeds .result .author-follow-btn.following {
  background: var(--mh-card-lime) !important;
  color: #06160c !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.24), 0 0 0 2px rgba(32,228,111,.16) !important;
}

#feeds .result .author-follow-btn:hover,
#feeds .result .author-follow-btn:focus-visible {
  filter: none !important;
  transform: translateY(-1px) scale(1.04) !important;
}

#feeds .result .author-follow-btn .follow-spark {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1px solid currentColor;
  opacity: .24;
  pointer-events: none;
}

#feeds .result .author-follow-btn i {
  font-size: 13px !important;
  line-height: 1 !important;
}

#feeds .result .author-follow-btn .label {
  display: none !important;
}

#feeds .result .media-box {
  margin: 8px 8px 9px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #0d1b2b !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.22) !important;
}

#feeds .result .feed-title {
  margin: 0 10px 5px !important;
  color: var(--mh-card-ink) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.24 !important;
}

#feeds .result .feed-title-link:hover .feed-title {
  color: #ffffff !important;
  text-shadow: 0 0 16px color-mix(in srgb, var(--channel-accent, #12d7ff) 30%, transparent);
}

#feeds .result .feed-description {
  margin: 0 10px 8px !important;
  color: var(--mh-card-muted) !important;
  font-size: 12.25px !important;
  line-height: 1.38 !important;
}

#feeds .result .card-meta-stack {
  margin: 0 8px !important;
  gap: 6px !important;
}

#feeds .result .channel-row,
#feeds .result .site-strip,
#feeds .result .feed-date {
  min-height: 34px;
  border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  background: var(--mh-card-rail) !important;
}

#feeds .result .channel-row {
  padding: 5px 6px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center !important;
  gap: 6px !important;
}

#feeds .result .channel-left {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 24px 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px !important;
  color: var(--mh-card-ink) !important;
}

#feeds .result .channel-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--channel-accent, var(--mh-card-cyan));
  color: #07121f;
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}

#feeds .result .channel-mark i {
  font-size: 11px;
}

#feeds .result .source-favicon,
#feeds .result .site-strip .source-favicon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.92) !important;
  object-fit: cover !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) !important;
}

#feeds .result .source-name,
#feeds .result .site-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

#feeds .result .follow-icon {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: #31495d !important;
  color: #d9e8f5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#feeds .result .follow-icon:hover,
#feeds .result .follow-icon:focus-visible {
  background: var(--mh-card-gold) !important;
  color: #07121f !important;
  transform: translateY(-1px) !important;
}

#feeds .result .follow-icon.following {
  background: var(--mh-card-lime) !important;
  color: #06160c !important;
}

#feeds .result .tags-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)) !important;
  gap: 5px !important;
}

#feeds .result .tag-chip {
  grid-template-columns: minmax(0, 1fr) 27px !important;
  gap: 4px !important;
}

#feeds .result .tag-chip .tag-search-link {
  min-height: 25px !important;
  padding: 4px 7px !important;
  border: 1px solid rgba(0,0,0,.34) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 5px 10px rgba(0,0,0,.14) !important;
}

#feeds .result .tag-chip .follow-icon {
  width: 27px !important;
  min-width: 27px !important;
  height: 27px !important;
  min-height: 27px !important;
}

#feeds .result .site-strip {
  padding: 6px 7px !important;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 7px !important;
  border-left: 3px solid var(--channel-accent, var(--mh-card-cyan)) !important;
}

#feeds .result .site-search-mini {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #dcefff !important;
  text-decoration: none !important;
}

#feeds .result .site-search-mini:hover,
#feeds .result .site-search-mini:focus-visible {
  background: var(--channel-accent, var(--mh-card-cyan));
  color: #07121f !important;
  transform: translateY(-1px);
}

#feeds .result .feed-date {
  padding: 6px 8px !important;
  color: #a9bdcd !important;
}

#feeds .result .actions-row {
  margin: 8px 8px 0 !important;
  padding: 6px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: #132539 !important;
}

#feeds .result .actions-left,
#feeds .result .actions-right {
  gap: 5px !important;
}

#feeds .result .action-btn {
  min-height: 32px !important;
  padding: 6px 7px !important;
  border-radius: 10px !important;
  color: #e9f5ff !important;
  background: rgba(255,255,255,.055) !important;
}

#feeds .result .action-btn i {
  font-size: 14px !important;
}

#feeds .result .like-btn i { color: var(--mh-card-lime) !important; }
#feeds .result .dislike-btn i { color: var(--mh-card-rose) !important; }
#feeds .result .copy-embed-btn i { color: var(--mh-card-cyan) !important; }
#feeds .result .save-btn i { color: var(--mh-card-gold) !important; }

#feeds .result .like-btn:hover,
#feeds .result .like-btn.liked {
  background: rgba(32,228,111,.18) !important;
}

#feeds .result .dislike-btn:hover,
#feeds .result .dislike-btn.disliked {
  background: rgba(255,63,127,.18) !important;
}

#feeds .result .copy-embed-btn:hover {
  background: rgba(18,215,255,.16) !important;
}

#feeds .result .save-btn:hover,
#feeds .result .save-btn.saved {
  background: rgba(255,212,0,.18) !important;
}

#feeds .result .action-btn .label {
  display: none !important;
}

#feeds .result .action-btn .count,
#feeds .result .card-tools .count {
  min-width: 1.15em;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

#feeds .result .card-tools {
  margin: 7px 8px 10px !important;
  padding: 6px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: #102235 !important;
}

#feeds .result .card-tools button {
  min-height: 33px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  color: #f3f9ff !important;
  background: rgba(255,255,255,.055) !important;
  font-size: 11.25px !important;
  font-weight: 900 !important;
}

#feeds .result .mh-open-comments:hover {
  background: rgba(141,92,255,.18) !important;
}

#feeds .result .mh-open-comments i {
  color: var(--mh-card-violet) !important;
}

#feeds .result .share-inline:hover {
  background: rgba(18,215,255,.16) !important;
}

#feeds .result .share-inline i {
  color: var(--mh-card-cyan) !important;
}

@media (max-width: 720px) {
  #feeds .result .channel-left {
    grid-template-columns: 24px 18px minmax(0, 1fr);
  }

  #feeds .result .source-favicon,
  #feeds .result .site-strip .source-favicon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
  }

  #feeds .result .card-tools button span:not(.count) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #feeds .result,
  #feeds .result *,
  #feeds .result::before {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   MyHashtag system-wide premium polish - 20260515-system-polish-1
   Shared visual pass for routes, panels, rails, auth, legacy profiles, and Add Pin.
   ========================================================= */

:root {
  --mh-system-bg: #203448;
  --mh-system-panel: #2d4358;
  --mh-system-panel-2: #24394d;
  --mh-system-panel-3: #182b3d;
  --mh-system-line: rgba(255,255,255,.13);
  --mh-system-line-strong: rgba(139,216,255,.34);
  --mh-system-text: #f2f8ff;
  --mh-system-muted: #b7cee5;
  --mh-system-cyan: #12d7ff;
  --mh-system-gold: #ffd400;
  --mh-system-lime: #22df73;
  --mh-system-rose: #ff4d82;
  --mh-system-violet: #8d5cff;
  --mh-system-orange: #ff8a34;
  --mh-system-radius: 14px;
  --mh-system-shadow: 0 18px 44px rgba(0,0,0,.24);
}

body {
  background: var(--mh-system-bg) !important;
  color: var(--mh-system-text) !important;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  letter-spacing: 0 !important;
}

img,
video,
iframe {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mh-system-gold) !important;
  outline-offset: 2px !important;
}

.mh-site-header,
.profile-panel,
.profile-section,
.side-card,
.members-command,
.members-lens,
.members-stat,
.member-card,
.section,
.hero-main,
.source-box,
.composer,
.auth-shell,
.pin-panel,
.profile-header,
.stat-card,
.recent-activity,
.user-card,
.profile-tabs,
.author-header,
.search-under,
.search-intelligence-panel,
.search-entity-card {
  border-color: var(--mh-system-line) !important;
  box-shadow: var(--mh-system-shadow) !important;
}

.mh-site-header {
  overflow: hidden !important;
  background: #263d52 !important;
  border-radius: 15px !important;
}

.mh-site-header-inner {
  background: #2f4a62 !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.mh-site-logo,
.brand span {
  background: var(--mh-system-cyan) !important;
  color: #081a28 !important;
}

.mh-site-brand strong,
.mh-site-context h1,
.members-section-head h2,
.profile-section-head h2,
.side-title h2,
.section h2,
.pin-panel h2,
.profile-username,
.author-meta .name {
  color: #fff !important;
  font-weight: 950 !important;
}

.mh-site-brand small,
.mh-site-context p,
.mh-site-signal small,
.mh-site-shortcuts a,
.members-section-head p,
.profile-section-head p,
.pin-panel p,
.profile-handle,
.profile-bio,
.profile-meta-item,
.author-meta .sub {
  color: var(--mh-system-muted) !important;
}

.mh-site-search,
.members-search,
.search-under,
.pin-form textarea,
.field input {
  border: 1px solid rgba(255,255,255,.14) !important;
  background: #14273a !important;
  color: #fff !important;
}

.mh-site-search input,
.members-search input,
.search-under input,
.pin-form textarea,
.field input {
  color: #fff !important;
}

.mh-site-search input::placeholder,
.members-search input::placeholder,
.search-under input::placeholder,
.pin-form textarea::placeholder {
  color: #9db8d1 !important;
}

.mh-site-search button,
.members-search button,
.pin-submit,
.auth-shell .btn {
  background: var(--mh-system-gold) !important;
  color: #0b1c2b !important;
  border: 0 !important;
  font-weight: 950 !important;
}

.mh-site-actions a,
.mh-site-page-actions a,
.mh-site-page-actions button,
.mh-site-category-rail a,
.mh-site-shortcuts a,
.members-quick a,
.profile-action,
.member-action,
.btn,
.mini-chip,
.tag,
.profile-chip,
.search-intel-chip {
  border-color: rgba(255,255,255,.13) !important;
  background: #1c3144 !important;
  color: #f4f9ff !important;
  border-radius: 10px !important;
}

.mh-site-actions a.active,
.mh-site-actions a:hover,
.mh-site-page-actions a:hover,
.mh-site-page-actions button:hover,
.mh-site-category-rail a.active,
.mh-site-category-rail a:hover,
.members-quick a.active,
.members-lens.active,
.profile-action.primary,
.member-action.primary,
.btn.primary,
.search-intel-chip.active {
  border-color: rgba(18,215,255,.56) !important;
  background: #0fbfe4 !important;
  color: #071a29 !important;
}

.mh-site-actions .create,
.mh-site-page-actions a[href*="aaa1"],
.mh-site-category-rail a[href*="aaa1"] {
  background: var(--mh-system-gold) !important;
  color: #0b1c2b !important;
  border-color: rgba(255,212,0,.72) !important;
}

.mh-site-intel,
.search-intelligence-panel,
.members-intel,
.profile-stats {
  background: #21374b !important;
  border: 1px solid var(--mh-system-line) !important;
  border-radius: 14px !important;
}

.mh-site-intel {
  padding: 8px 10px 10px !important;
}

.mh-site-signals,
.mh-site-shortcuts,
.mh-site-category-rail,
.search-intel-rail,
.feed-filterbar,
.source-focus-bar,
.search-entity-list,
.members-quick {
  display: flex !important;
  gap: 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100% !important;
}

.search-intel-rail,
.feed-filterbar,
.source-focus-bar {
  flex-wrap: nowrap !important;
  padding-bottom: 7px !important;
}

.mh-site-signals::-webkit-scrollbar,
.mh-site-shortcuts::-webkit-scrollbar,
.mh-site-category-rail::-webkit-scrollbar,
.search-intel-rail::-webkit-scrollbar,
.feed-filterbar::-webkit-scrollbar,
.source-focus-bar::-webkit-scrollbar,
.search-entity-list::-webkit-scrollbar,
.members-quick::-webkit-scrollbar {
  height: 7px;
}

.mh-site-signals::-webkit-scrollbar-thumb,
.mh-site-shortcuts::-webkit-scrollbar-thumb,
.mh-site-category-rail::-webkit-scrollbar-thumb,
.search-intel-rail::-webkit-scrollbar-thumb,
.feed-filterbar::-webkit-scrollbar-thumb,
.source-focus-bar::-webkit-scrollbar-thumb,
.search-entity-list::-webkit-scrollbar-thumb,
.members-quick::-webkit-scrollbar-thumb {
  background: rgba(139,216,255,.36);
  border-radius: 999px;
}

.mh-site-signal,
.search-intel-stats > a,
.search-intel-stat,
.members-stat,
.profile-stat,
.metric,
.stat-item,
.stat-card,
.score-card {
  background: #192f42 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 13px !important;
}

.mh-site-signal:nth-child(5n+1),
.search-intel-stats > a:nth-child(5n+1),
.search-intel-stat:nth-child(5n+1),
.members-stat:nth-child(5n+1),
.profile-stat:nth-child(5n+1),
.stat-item:nth-child(5n+1) {
  box-shadow: inset 4px 0 0 var(--mh-system-cyan) !important;
}

.mh-site-signal:nth-child(5n+2),
.search-intel-stats > a:nth-child(5n+2),
.search-intel-stat:nth-child(5n+2),
.members-stat:nth-child(5n+2),
.profile-stat:nth-child(5n+2),
.stat-item:nth-child(5n+2) {
  box-shadow: inset 4px 0 0 var(--mh-system-gold) !important;
}

.mh-site-signal:nth-child(5n+3),
.search-intel-stats > a:nth-child(5n+3),
.search-intel-stat:nth-child(5n+3),
.members-stat:nth-child(5n+3),
.profile-stat:nth-child(5n+3),
.stat-item:nth-child(5n+3) {
  box-shadow: inset 4px 0 0 var(--mh-system-lime) !important;
}

.mh-site-signal:nth-child(5n+4),
.search-intel-stats > a:nth-child(5n+4),
.search-intel-stat:nth-child(5n+4),
.members-stat:nth-child(5n+4),
.profile-stat:nth-child(5n+4),
.stat-item:nth-child(5n+4) {
  box-shadow: inset 4px 0 0 var(--mh-system-rose) !important;
}

.mh-site-signal:nth-child(5n+5),
.search-intel-stats > a:nth-child(5n+5),
.search-intel-stat:nth-child(5n+5),
.members-stat:nth-child(5n+5),
.profile-stat:nth-child(5n+5),
.stat-item:nth-child(5n+5) {
  box-shadow: inset 4px 0 0 var(--mh-system-violet) !important;
}

.search-intelligence-panel {
  margin: 12px 0 14px !important;
  padding: 13px !important;
  background: #263d52 !important;
}

.search-intel-main {
  display: grid !important;
  gap: 8px !important;
}

.search-intel-kicker {
  color: var(--mh-system-cyan) !important;
  font-weight: 950 !important;
}

.search-intel-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(118px,1fr)) !important;
  gap: 8px !important;
}

.search-intel-stats > a,
.search-intel-stat {
  min-height: 70px !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 6px !important;
  color: #fff !important;
  text-decoration: none !important;
}

.search-intel-stats > a i {
  grid-row: span 2 !important;
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(18,215,255,.16) !important;
  color: var(--mh-system-cyan) !important;
}

.search-intel-stats > a:hover {
  border-color: rgba(18,215,255,.54) !important;
  transform: translateY(-1px) !important;
}

.search-intel-stat strong,
.search-intel-stats > a b,
.members-stat strong,
.profile-stat strong,
.stat-number,
.stat-card-value {
  color: #fff !important;
  font-weight: 950 !important;
}

.search-intel-stat span,
.search-intel-stats > a small,
.profile-stat span,
.stat-label {
  color: var(--mh-system-muted) !important;
  font-weight: 850 !important;
}

.search-intel-chip,
.feed-filterbar a,
.feed-filterbar button,
.source-focus-bar a,
.source-focus-bar button {
  flex: 0 0 auto !important;
  min-height: 31px !important;
  white-space: nowrap !important;
}

.search-intel-entity-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.search-entity-card {
  min-width: 0 !important;
  background: #1c3144 !important;
  border-radius: 14px !important;
  padding: 12px !important;
}

.search-entity-list a,
.search-entity-list button,
.search-entity-empty {
  flex: 0 0 auto !important;
  max-width: 100% !important;
}

.members-lenses,
.members-intel,
.profile-stats,
.briefing,
.metrics,
.source-score,
.feed-stats-grid {
  gap: 10px !important;
}

.members-lens,
.member-card,
.profile-panel,
.hero-main,
.post-page .section,
.source-box,
.composer,
.pin-panel {
  background: #2a4055 !important;
  border-radius: 15px !important;
}

.member-card,
.profile-panel,
.post-page .section,
.hero-main {
  overflow: hidden !important;
}

.member-card:hover,
.source-row:hover,
.profile-action:hover,
.member-action:hover,
.pin-submit:hover,
.author-header:hover,
.user-card:hover {
  transform: translateY(-1px) !important;
}

.member-cover,
.profile-cover,
.media {
  background: #15283a !important;
}

.member-avatar,
.member-initial,
.profile-avatar,
.profile-avatar-fallback,
.author-ava,
.user-card-avatar,
.profile-container .profile-avatar {
  border-color: rgba(18,215,255,.54) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.24) !important;
}

.member-recent,
.member-stat,
.source-row,
.detail-list div,
.package-row,
.comment,
.activity-item {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.10) !important;
}

.source-row,
.tag-cloud a,
.tags .tag {
  color: #f4f9ff !important;
  text-decoration: none !important;
}

.tag-cloud a,
.tags .tag,
.profile-chip,
.mini-chip {
  background: #0fbfe4 !important;
  color: #071a29 !important;
  border-color: rgba(18,215,255,.55) !important;
  font-weight: 950 !important;
}

.tag-cloud a:nth-child(4n+2),
.tags .tag:nth-child(4n+2),
.profile-chip.gold {
  background: var(--mh-system-gold) !important;
  color: #0b1c2b !important;
}

.tag-cloud a:nth-child(4n+3),
.tags .tag:nth-child(4n+3) {
  background: var(--mh-system-lime) !important;
  color: #05180c !important;
}

.tag-cloud a:nth-child(4n+4),
.tags .tag:nth-child(4n+4) {
  background: var(--mh-system-rose) !important;
  color: #fff !important;
}

.post-page .content,
.post-page .section,
.profile-section,
.member-body {
  min-width: 0 !important;
}

.comment-body,
.profile-title,
.member-title,
.activity-content,
.source-row span,
.package-row,
.detail-list b {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.composer textarea {
  background: #102235 !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #fff !important;
}

.auth-shell {
  background: #263d52 !important;
  border-radius: 18px !important;
}

.notice.ok {
  border-color: rgba(34,223,115,.34) !important;
  background: rgba(34,223,115,.15) !important;
}

.notice.err {
  border-color: rgba(255,77,130,.36) !important;
  background: rgba(255,77,130,.15) !important;
}

.author-header,
.search-under {
  background: #263d52 !important;
  border-radius: 15px !important;
}

.author-header {
  width: min(1180px, calc(100vw - 22px)) !important;
  padding: 12px !important;
}

.author-ava {
  border-radius: 16px !important;
}

.follow-pill,
.follow-btn {
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 13px !important;
  background: var(--mh-system-gold) !important;
  color: #081a28 !important;
  border: 0 !important;
  font-size: 0 !important;
}

.follow-pill i,
.follow-btn i {
  font-size: 15px !important;
}

.follow-pill span,
.follow-btn .follow-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.follow-pill.following,
.follow-btn.following {
  background: var(--mh-system-lime) !important;
  color: #06180c !important;
}

.profile-container {
  width: min(1180px, calc(100vw - 22px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 22px 0 58px !important;
}

.profile-header,
.profile-tabs,
.stat-card,
.recent-activity,
.user-card {
  background: #2a4055 !important;
  color: var(--mh-system-text) !important;
  border-radius: 15px !important;
}

.profile-tabs {
  display: flex !important;
  gap: 7px !important;
  padding: 7px !important;
  overflow-x: auto !important;
}

.tab-btn {
  flex: 0 0 auto !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  color: var(--mh-system-muted) !important;
  font-weight: 900 !important;
}

.tab-btn.active {
  background: var(--mh-system-cyan) !important;
  color: #071a29 !important;
}

.user-feeds {
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr)) !important;
}

.loading-placeholder {
  border: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(90deg,#192f42 25%,#263f55 50%,#192f42 75%) !important;
}

.empty-state,
.members-empty,
.feed-loading-inline,
.loading-indicator {
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #192f42 !important;
  color: var(--mh-system-muted) !important;
  border-radius: 14px !important;
}

.pin-workspace a,
.auth-shell a {
  color: #8bd8ff !important;
}

@media (max-width: 1100px) {
  .mh-site-header-inner {
    grid-template-columns: 1fr !important;
  }

  .mh-site-search {
    order: 0 !important;
  }

  .mh-site-actions,
  .mh-site-page-actions {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .profile-shell,
  .layout,
  .pin-shell {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body {
    min-width: 0 !important;
  }

  .mh-page,
  .shell,
  .pin-workspace,
  .profile-container,
  .post-page,
  .author-header,
  .search-under {
    width: min(100%, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mh-site-header {
    border-radius: 13px !important;
  }

  .mh-site-context,
  .mh-site-header-inner,
  .mh-site-intel,
  .mh-site-category-rail {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .mh-site-actions a span,
  .mh-site-page-actions a span,
  .mh-site-page-actions button span {
    display: none !important;
  }

  .mh-site-actions a,
  .mh-site-page-actions a,
  .mh-site-page-actions button {
    min-width: 36px !important;
    justify-content: center !important;
  }

  .search-intel-stats,
  .members-intel,
  .profile-stats,
  .metrics,
  .briefing,
  .source-score,
  .feed-stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .search-intel-entity-grid,
  .members-lenses,
  .members-grid,
  .member-stats,
  .action-grid,
  .tool-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-info,
  .profile-identity,
  .author-header {
    align-items: flex-start !important;
  }

  .profile-actions,
  .member-actions,
  .composer-footer {
    width: 100% !important;
  }

  .content,
  .profile-panel,
  .post-page .section,
  .pin-panel,
  .auth-shell {
    padding: 14px !important;
  }
}

@media (max-width: 440px) {
  .search-intel-stats,
  .members-intel,
  .profile-stats,
  .metrics,
  .briefing,
  .source-score,
  .feed-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .mh-site-brand strong,
  .profile-section-head h2,
  .members-section-head h2,
  .pin-panel h2 {
    font-size: 18px !important;
  }

  .profile-username {
    font-size: 26px !important;
  }
}

/* =========================================================
   2026-05-15 header collapse + card spacing excellence pass
   Fixed compact navigation, scroll progress, and tighter card anatomy.
   ========================================================= */

.mh-header-spacer {
  height: 0;
  transition: height .24s ease;
}

.mh-site-header,
.header-content {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border: 1px solid rgba(139,216,255,.18) !important;
  transition:
    transform .24s ease,
    width .24s ease,
    max-width .24s ease,
    border-radius .24s ease,
    box-shadow .24s ease,
    background-color .24s ease,
    opacity .2s ease !important;
}

.mh-site-header::after,
.header-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 6;
  width: var(--mh-scroll-progress, 0%);
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #12d7ff 0%, #ffd400 36%, #22df73 68%, #ff4d82 100%);
  box-shadow: 0 0 18px rgba(18,215,255,.38);
  pointer-events: none;
}

body.mh-header-scrolled .mh-site-header,
body.mh-header-scrolled .header-content {
  position: fixed !important;
  top: 8px !important;
  left: 50% !important;
  z-index: 9000 !important;
  width: min(1500px, calc(100vw - 22px)) !important;
  max-width: calc(100vw - 22px) !important;
  margin: 0 !important;
  border-radius: 14px !important;
  transform: translateX(-50%) !important;
  background: #20384d !important;
  border-color: rgba(18,215,255,.46) !important;
  box-shadow:
    0 20px 46px rgba(0,0,0,.40),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 28px rgba(18,215,255,.18) !important;
}

body.mh-header-scrolled .mh-site-header-inner {
  min-height: 50px !important;
  grid-template-columns: auto minmax(220px, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  background: #233f56 !important;
  border-bottom: 0 !important;
}

body.mh-header-scrolled .mh-site-brand,
body.mh-header-scrolled .mh-site-search,
body.mh-header-scrolled .mh-site-actions {
  grid-column: auto !important;
  order: 0 !important;
  align-self: center !important;
}

body.mh-header-scrolled .mh-site-brand {
  min-width: 136px !important;
}

body.mh-header-scrolled .mh-site-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: #12d7ff !important;
}

body.mh-header-scrolled .mh-site-brand strong {
  font-size: 14px !important;
}

body.mh-header-scrolled .mh-site-brand small {
  display: none !important;
}

body.mh-header-scrolled .mh-site-search {
  height: 36px !important;
  min-width: 0 !important;
  grid-template-columns: 34px minmax(0, 1fr) 40px !important;
  border-radius: 11px !important;
  background: #102438 !important;
}

body.mh-header-scrolled .mh-site-search input {
  min-width: 0 !important;
  font-size: 13px !important;
}

body.mh-header-scrolled .mh-site-search button {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  font-size: 0 !important;
  border-radius: 9px !important;
}

body.mh-header-scrolled .mh-site-search button::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-size: 13px;
  font-weight: 900;
}

body.mh-header-scrolled .mh-site-actions {
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  max-width: min(440px, 38vw) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  scrollbar-width: thin !important;
}

body.mh-header-scrolled .mh-site-actions a {
  min-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 11px !important;
}

body.mh-header-scrolled .mh-site-actions a span,
body.mh-header-scrolled .mh-site-context,
body.mh-header-scrolled .mh-site-intel,
body.mh-header-scrolled .mh-site-category-rail {
  display: none !important;
}

body.mh-header-scrolled .header-content {
  width: min(1180px, calc(100vw - 22px)) !important;
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
}

body.mh-header-scrolled .header-content .container,
body.mh-header-scrolled .header-content .overlay,
body.mh-header-scrolled .header-content #side-menu {
  display: none !important;
}

body.mh-header-scrolled .header-content .search-bar {
  width: 100% !important;
  max-width: none !important;
  min-height: 40px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 38px 38px minmax(0, 1fr) 38px 38px !important;
  gap: 6px !important;
  align-items: center !important;
}

body.mh-header-scrolled .header-content .search-bar input[type="text"] {
  min-width: 0 !important;
  height: 38px !important;
}

body.mh-header-scrolled .header-content .login-register-section {
  max-width: 220px !important;
  margin: 0 !important;
  padding: 4px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  background: #14283b !important;
}

.mh-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9050;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: #ffd400;
  color: #081a28;
  box-shadow: 0 14px 32px rgba(0,0,0,.32), 0 0 0 3px rgba(255,212,0,.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}

.mh-scroll-top:hover,
.mh-scroll-top:focus-visible {
  background: #12d7ff;
  transform: translateY(6px) scale(1.02);
}

body.mh-scroll-top-ready .mh-scroll-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#feeds.result-list {
  width: min(1500px, calc(100vw - 22px)) !important;
  max-width: calc(100vw - 22px) !important;
}

#feeds .result {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border-radius: 13px !important;
}

#feeds .result .card-header {
  min-height: 44px !important;
  padding: 7px 8px 6px !important;
  margin: 0 !important;
  gap: 7px !important;
}

#feeds .result .author-block {
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 7px !important;
}

#feeds .result .author-avatar,
#feeds .result .author-avatar-fallback-mini {
  width: 30px !important;
  height: 30px !important;
}

#feeds .result .author-follow-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
}

#feeds .result .media-box {
  margin: 7px 8px 8px !important;
  border-radius: 12px !important;
}

#feeds .result .feed-title,
#feeds .result > h2 {
  margin: 0 10px 5px !important;
  color: #f8fbff !important;
  font-size: 14.25px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#feeds .result .feed-description,
#feeds .result > p:not(.favicon-and-site) {
  margin: 0 10px 7px !important;
  color: #bfd1df !important;
  font-size: 12.25px !important;
  line-height: 1.36 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#feeds .result .card-meta-stack {
  margin: 0 8px !important;
  gap: 5px !important;
}

#feeds .result .channel-row,
#feeds .result .site-strip,
#feeds .result .feed-date,
#feeds .result .favicon-and-site {
  min-height: 32px !important;
  border-radius: 10px !important;
}

#feeds .result .channel-row {
  padding: 5px 6px !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
}

#feeds .result .channel-left {
  grid-template-columns: 23px 20px minmax(0, 1fr) !important;
  gap: 6px !important;
}

#feeds .result .channel-mark {
  width: 23px !important;
  height: 23px !important;
  border-radius: 8px !important;
}

#feeds .result .tags-row {
  gap: 5px !important;
  margin: 0 !important;
}

#feeds .result .tag-chip {
  min-width: 0 !important;
}

#feeds .result .tag-chip .tag-search-link {
  min-height: 24px !important;
  padding: 4px 7px !important;
  font-size: 10.75px !important;
  font-weight: 950 !important;
}

#feeds .result .tag-chip .follow-icon {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
}

#feeds .result .site-strip {
  padding: 5px 7px !important;
  margin-top: 1px !important;
}

#feeds .result .feed-date {
  padding: 5px 8px !important;
  font-size: 10.75px !important;
}

#feeds .result .favicon-and-site {
  margin: 0 8px 7px !important;
  padding: 5px 7px !important;
  display: block !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  background: #15283b !important;
  border-left: 3px solid var(--channel-accent, #12d7ff) !important;
}

#feeds .result .favicon-and-site a {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 23px 20px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px !important;
  color: #f2f8ff !important;
  text-decoration: none !important;
}

#feeds .result .actions-row {
  margin: 7px 8px 0 !important;
  padding: 5px !important;
  gap: 6px !important;
}

#feeds .result .actions-left,
#feeds .result .actions-right {
  gap: 4px !important;
}

#feeds .result .action-btn {
  min-height: 31px !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
}

#feeds .result .card-tools {
  margin: 6px 8px 8px !important;
  padding: 5px !important;
}

#feeds .result .card-tools button {
  min-height: 31px !important;
}

.members-grid {
  align-items: stretch !important;
}

.member-card {
  height: 100% !important;
  min-height: 398px !important;
  display: flex !important;
  flex-direction: column !important;
}

.member-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 0 13px 13px !important;
}

.member-bio {
  min-height: 42px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-stats {
  gap: 6px !important;
}

.member-stat {
  min-height: 54px !important;
  display: grid !important;
  align-content: center !important;
}

.member-recent {
  min-height: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.member-actions {
  margin-top: auto !important;
}

.member-action {
  min-height: 35px !important;
  border-radius: 10px !important;
}

.profile-section,
.post-page .section,
.pin-panel,
.auth-shell,
.user-feed-item {
  border-radius: 14px !important;
}

.source-row,
.package-row,
.comment,
.activity-item {
  border-radius: 11px !important;
}

.user-feeds {
  gap: 14px !important;
}

.user-feed-item {
  background: #2a4055 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  overflow: hidden !important;
}

.user-feed-item img {
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  body.mh-header-scrolled .mh-site-header-inner {
    grid-template-columns: 40px minmax(0, 1fr) minmax(84px, auto) !important;
  }

  body.mh-header-scrolled .mh-site-brand {
    min-width: 40px !important;
  }

  body.mh-header-scrolled .mh-site-brand > span:not(.mh-site-logo) {
    display: none !important;
  }

  body.mh-header-scrolled .mh-site-actions {
    max-width: 120px !important;
  }
}

@media (max-width: 720px) {
  body.mh-header-scrolled .mh-site-header,
  body.mh-header-scrolled .header-content {
    top: 6px !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    border-radius: 12px !important;
  }

  body.mh-header-scrolled .mh-site-header-inner {
    min-height: 48px !important;
    grid-template-columns: 38px minmax(0, 1fr) 88px !important;
    gap: 6px !important;
    padding: 5px 6px !important;
  }

  body.mh-header-scrolled .mh-site-search {
    height: 35px !important;
    grid-template-columns: 30px minmax(0, 1fr) 36px !important;
  }

  body.mh-header-scrolled .mh-site-search button {
    width: 34px !important;
    min-width: 34px !important;
  }

  body.mh-header-scrolled .mh-site-actions {
    max-width: 88px !important;
    gap: 5px !important;
  }

  body.mh-header-scrolled .mh-site-actions a {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  body.mh-header-scrolled .header-content {
    grid-template-columns: 1fr !important;
  }

  body.mh-header-scrolled .header-content .login-register-section {
    display: none !important;
  }

  body.mh-header-scrolled .header-content .search-bar {
    grid-template-columns: 36px 36px minmax(0, 1fr) 36px 36px !important;
  }

  .mh-scroll-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  #feeds .result .feed-title,
  #feeds .result > h2 {
    font-size: 13.75px !important;
  }

  #feeds .result .feed-description,
  #feeds .result > p:not(.favicon-and-site) {
    -webkit-line-clamp: 2;
  }

  .member-card {
    min-height: 372px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-site-header,
  .header-content,
  .mh-header-spacer,
  .mh-scroll-top {
    transition: none !important;
  }
}

/* =========================================================
   2026-05-15 professional header dock redesign
   Cleaner fixed bar, click-to-expand detail panel, and one back-to-top control.
   ========================================================= */

#myBtn,
#backToTopBtn,
.back-to-top-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mh-header-expand-toggle {
  display: none;
  min-width: 44px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffd400;
  color: #071a29;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mh-header-expand-toggle:hover,
.mh-header-expand-toggle:focus-visible {
  background: #12d7ff;
  color: #061829;
  transform: translateY(-1px);
}

.mh-header-expand-toggle i {
  font-size: 14px;
}

.mh-header-expand-toggle span {
  line-height: 1;
}

body.mh-header-scrolled .mh-site-header,
body.mh-header-scrolled .header-content {
  top: 10px !important;
  width: min(1240px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  border-radius: 18px !important;
  background: #18344a !important;
  border-color: rgba(18,215,255,.34) !important;
  overflow: hidden !important;
  max-height: 70px;
  box-shadow:
    0 22px 54px rgba(0,0,0,.44),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 30px rgba(18,215,255,.15) !important;
  transition:
    max-height .32s cubic-bezier(.2,.8,.2,1),
    border-radius .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    transform .22s ease !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-header,
body.mh-header-scrolled.mh-header-expanded .header-content {
  max-height: min(76vh, 560px);
  overflow-y: auto !important;
}

body.mh-header-scrolled .mh-site-header-inner {
  min-height: 64px !important;
  grid-template-columns: minmax(164px, 190px) minmax(340px, 1fr) auto 88px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  background: #203c53 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

body.mh-header-scrolled .mh-site-brand,
body.mh-header-scrolled .mh-site-search,
body.mh-header-scrolled .mh-site-actions,
body.mh-header-scrolled .mh-header-expand-toggle {
  grid-column: auto !important;
  order: 0 !important;
  align-self: center !important;
}

body.mh-header-scrolled .mh-site-brand {
  min-width: 0 !important;
  width: auto !important;
  gap: 9px !important;
}

body.mh-header-scrolled .mh-site-logo {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 13px !important;
  background: #12d7ff !important;
  color: #061829 !important;
}

body.mh-header-scrolled .mh-site-brand strong {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
}

body.mh-header-scrolled .mh-site-brand small {
  display: block !important;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px !important;
}

body.mh-header-scrolled .mh-site-search {
  height: 42px !important;
  min-width: 0 !important;
  grid-template-columns: 40px minmax(0, 1fr) 44px !important;
  border-radius: 14px !important;
  background: #0e2437 !important;
  border-color: rgba(139,216,255,.18) !important;
}

body.mh-header-scrolled .mh-site-search input {
  min-width: 0 !important;
  font-size: 14px !important;
}

body.mh-header-scrolled .mh-site-search button {
  width: 42px !important;
  min-width: 42px !important;
  height: 34px !important;
  margin-right: 4px;
  padding: 0 !important;
  border-radius: 11px !important;
  font-size: 0 !important;
}

body.mh-header-scrolled .mh-site-search button::before {
  content: "\f002" !important;
  font-family: "Font Awesome 5 Free";
  font-size: 14px;
  font-weight: 900;
}

body.mh-header-scrolled .mh-site-search button::after {
  content: none !important;
}

body.mh-header-scrolled .mh-site-actions {
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.mh-header-scrolled .mh-site-actions a {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 11px !important;
  border-radius: 13px !important;
  white-space: nowrap !important;
}

body.mh-header-scrolled .mh-site-actions a:nth-child(n+5) {
  display: none !important;
}

body.mh-header-scrolled .mh-site-actions a span {
  display: inline !important;
  font-size: 11.5px !important;
}

body.mh-header-scrolled .mh-header-expand-toggle {
  display: inline-flex !important;
}

body.mh-header-scrolled .mh-site-context,
body.mh-header-scrolled .mh-site-intel,
body.mh-header-scrolled .mh-site-category-rail {
  display: grid !important;
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden !important;
  pointer-events: none;
  transform: translateY(-8px);
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  transition:
    max-height .30s cubic-bezier(.2,.8,.2,1),
    opacity .20s ease,
    transform .24s ease,
    padding .24s ease !important;
}

body.mh-header-scrolled .mh-site-category-rail {
  display: flex !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-context,
body.mh-header-scrolled.mh-header-expanded .mh-site-intel,
body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-width: 1px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-context {
  max-height: 132px !important;
  padding: 10px 12px 8px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-intel {
  max-height: 156px !important;
  padding: 0 12px 10px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
  max-height: 110px !important;
  padding: 0 12px 12px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-actions a {
  display: inline-flex !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-header-expand-toggle {
  background: #12d7ff;
}

body.mh-header-scrolled .header-content {
  min-height: 64px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 8px 10px !important;
}

body.mh-header-scrolled .header-content .search-bar {
  min-height: 46px !important;
  display: grid !important;
  grid-template-columns: 42px 42px minmax(280px, 1fr) 42px 42px 86px !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
}

body.mh-header-scrolled .header-content .search-bar input[type="text"] {
  height: 42px !important;
  border-radius: 14px !important;
}

body.mh-header-scrolled .header-content .login-register-section {
  display: none !important;
}

body.mh-header-scrolled.mh-header-expanded .header-content {
  max-height: 170px !important;
}

body.mh-header-scrolled.mh-header-expanded .header-content .login-register-section {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin: 4px 0 0 !important;
  padding: 8px !important;
  border-radius: 13px !important;
  overflow-x: auto !important;
}

body.mh-header-scrolled .header-content .mh-header-expand-toggle {
  display: inline-flex !important;
}

.mh-scroll-top {
  right: 18px !important;
  bottom: 18px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  background: #ffd400 !important;
  color: #071a29 !important;
  z-index: 9050 !important;
}

@media (max-width: 1050px) {
  body.mh-header-scrolled .mh-site-header-inner {
    grid-template-columns: 42px minmax(260px, 1fr) auto 44px !important;
  }

  body.mh-header-scrolled .mh-site-brand {
    width: 42px !important;
    min-width: 42px !important;
  }

  body.mh-header-scrolled .mh-site-brand > span:not(.mh-site-logo) {
    display: none !important;
  }

  body.mh-header-scrolled .mh-site-actions {
    max-width: 188px !important;
    overflow: visible !important;
  }

  body.mh-header-scrolled .mh-site-actions a {
    display: none !important;
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled .mh-site-actions a.active,
  body.mh-header-scrolled .mh-site-actions a.create {
    display: inline-flex !important;
  }

  body.mh-header-scrolled .mh-site-actions a span {
    display: none !important;
  }

  body.mh-header-scrolled .mh-header-expand-toggle {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled .mh-header-expand-toggle span {
    display: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions {
    grid-column: 1 / -1 !important;
    order: 4 !important;
    max-width: none !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    padding: 0 12px 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions a {
    display: inline-flex !important;
    width: auto !important;
    min-width: 44px !important;
    padding: 0 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions a span {
    display: inline !important;
  }
}

@media (max-width: 720px) {
  body.mh-header-scrolled .mh-site-header,
  body.mh-header-scrolled .header-content {
    top: 6px !important;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    border-radius: 15px !important;
    max-height: 62px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-header,
  body.mh-header-scrolled.mh-header-expanded .header-content {
    max-height: min(82vh, 620px) !important;
  }

  body.mh-header-scrolled .mh-site-header-inner {
    min-height: 60px !important;
    grid-template-columns: 42px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.mh-header-scrolled .mh-site-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  body.mh-header-scrolled .mh-site-search {
    height: 42px !important;
    grid-template-columns: 34px minmax(0, 1fr) 38px !important;
    border-radius: 14px !important;
  }

  body.mh-header-scrolled .mh-site-search input {
    font-size: 13px !important;
  }

  body.mh-header-scrolled .mh-site-search button {
    width: 36px !important;
    min-width: 36px !important;
  }

  body.mh-header-scrolled .mh-site-actions {
    display: none !important;
  }

  body.mh-header-scrolled .mh-header-expand-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 42px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled .mh-header-expand-toggle span {
    display: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-header-expand-toggle span {
    display: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions {
    display: flex !important;
    grid-column: 1 / -1 !important;
    order: 4 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    max-width: none !important;
    padding: 0 10px 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions a {
    display: inline-flex !important;
    width: auto !important;
    min-width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions a span {
    display: inline !important;
    font-size: 11px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-context {
    max-height: 168px !important;
    padding: 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-intel {
    max-height: 220px !important;
    padding: 0 10px 10px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
    max-height: 132px !important;
    padding: 0 10px 12px !important;
  }

  body.mh-header-scrolled .header-content .search-bar {
    min-height: 46px !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px 44px !important;
    gap: 6px !important;
  }

  body.mh-header-scrolled .header-content .menu-button {
    display: none !important;
  }

  body.mh-header-scrolled .header-content .search-bar #addPinButton {
    display: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .header-content .search-bar {
    grid-template-columns: 38px minmax(0, 1fr) 38px 44px !important;
    align-content: start !important;
  }

  body.mh-header-scrolled.mh-header-expanded .header-content .search-bar #addPinButton {
    grid-column: 1 / -1 !important;
    display: inline-flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 38px !important;
    min-height: 38px !important;
    justify-content: center !important;
  }

  body.mh-header-scrolled .header-content .search-bar input[type="text"] {
    height: 40px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    padding: 0 10px !important;
  }

  .mh-scroll-top {
    right: 12px !important;
    bottom: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 420px) {
  body.mh-header-scrolled .mh-site-header-inner {
    grid-template-columns: 40px minmax(0, 1fr) 42px !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  body.mh-header-scrolled .mh-site-search {
    grid-template-columns: 30px minmax(0, 1fr) 34px !important;
  }

  body.mh-header-scrolled .mh-site-search i {
    font-size: 12px !important;
  }

  body.mh-header-scrolled .mh-site-search button {
    width: 32px !important;
    min-width: 32px !important;
  }
}

body .header-content.mh-legacy-home-header,
body.mh-header-scrolled .header-content.mh-legacy-home-header,
body.mh-header-scrolled.mh-header-expanded .header-content.mh-legacy-home-header {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
   2026-05-16 premium polish pass
   Mobile intelligence, scroll rails, card anatomy, and resilient media.
   ========================================================= */

:root {
  --mh-polish-ink: #0d2132;
  --mh-polish-panel: #1b3347;
  --mh-polish-panel-2: #203c53;
  --mh-polish-cyan: #12d7ff;
  --mh-polish-gold: #ffd400;
  --mh-polish-lime: #35d08a;
  --mh-polish-rose: #ff4fae;
  --mh-polish-blue: #4a90e2;
}

.mh-site-category-rail,
.mh-site-signals,
.mh-site-shortcuts,
.search-intel-rail,
.search-intel-stats,
.search-entity-list,
.feed-filterbar,
.source-focus-bar,
.members-quick {
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
}

.mh-site-category-rail > *,
.mh-site-signals > *,
.mh-site-shortcuts > *,
.search-intel-rail > *,
.search-intel-stats > *,
.search-entity-list > *,
.feed-filterbar > *,
.source-focus-bar > *,
.members-quick > * {
  scroll-snap-align: start;
}

.search-intelligence-panel {
  box-shadow: 0 18px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.search-intel-main h2,
.source-search-main h2 {
  color: #fff !important;
  letter-spacing: 0 !important;
}

.search-intel-main p,
.search-entity-card p,
.source-search-main p {
  max-width: 920px;
}

.search-intel-stats > a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.search-intel-stats > a::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: .18;
}

.search-entity-card {
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 26px rgba(0,0,0,.18);
}

.search-entity-card header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.search-entity-card header b {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #214b66;
  color: #9ee7ff;
  font-weight: 950;
}

.search-entity-list {
  align-items: stretch !important;
}

.search-entity-list a,
.search-entity-list button,
.search-entity-empty {
  border-radius: 12px !important;
}

#feeds .result,
.member-card {
  outline: 1px solid rgba(255,255,255,.035);
}

#feeds .result .card-header,
.result .card-header {
  border-bottom: 1px solid rgba(255,255,255,.055);
}

#feeds .result .feed-title,
#feeds .result > h2,
.result .feed-title,
.result > h2 {
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
}

#feeds .result .favicon-and-site,
.result .favicon-and-site {
  min-height: 40px !important;
  align-items: center !important;
}

#feeds .result .source-name,
.result .source-name {
  min-width: 0 !important;
}

#feeds .result .tag-chip,
.result .tag-chip {
  min-width: 0 !important;
}

#feeds .result .tag-chip .tag-search-link,
#feeds .result .tag-search-link,
.result .tag-chip .tag-search-link,
.result .tag-search-link {
  max-width: 138px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#feeds .result .actions-row,
.result .actions-row {
  gap: 8px !important;
}

#feeds .result .card-tools,
.result .card-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
}

#feeds .result .card-tools .left,
#feeds .result .card-tools .right,
.result .card-tools .left,
.result .card-tools .right {
  min-width: 0 !important;
}

#feeds .result .card-tools button,
.result .card-tools button {
  width: 100% !important;
  justify-content: center !important;
}

.author-avatar-fallback-mini {
  display: inline-grid !important;
  place-items: center !important;
  background: #12d7ff !important;
  color: #071a29 !important;
  font-weight: 950 !important;
  text-transform: uppercase;
}

.media-box.media-missing {
  min-height: 132px !important;
  display: grid !important;
  place-items: center !important;
  background: #10283a !important;
}

.media-box.media-missing::after {
  content: "Media preview unavailable";
  color: #9ee7ff;
  font-weight: 900;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .search-intel-stats {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  }

  #feeds .result .tag-chip .tag-search-link,
  #feeds .result .tag-search-link,
  .result .tag-chip .tag-search-link,
  .result .tag-search-link {
    max-width: 156px !important;
  }
}

@media (max-width: 720px) {
  body:not(.mh-header-scrolled) .mh-site-header {
    width: calc(100vw - 24px) !important;
    margin: 40px auto 16px !important;
    border-radius: 18px !important;
  }

  body:not(.mh-header-scrolled) .mh-site-intel,
  body.mh-header-scrolled.mh-header-expanded .mh-site-intel {
    padding: 10px !important;
  }

  body:not(.mh-header-scrolled) .mh-site-signals,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signals {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body:not(.mh-header-scrolled) .mh-site-signal,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signal {
    min-width: 0 !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 2px 7px !important;
    padding: 8px 9px !important;
  }

  body:not(.mh-header-scrolled) .mh-site-signal i,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signal i {
    grid-row: 1 / 3;
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: rgba(18,215,255,.15);
  }

  body:not(.mh-header-scrolled) .mh-site-signal b,
  body:not(.mh-header-scrolled) .mh-site-signal small,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signal b,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signal small {
    width: auto !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:not(.mh-header-scrolled) .mh-site-shortcuts,
  body:not(.mh-header-scrolled) .mh-site-category-rail,
  body.mh-header-scrolled.mh-header-expanded .mh-site-shortcuts,
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body:not(.mh-header-scrolled) .mh-site-shortcuts a,
  body:not(.mh-header-scrolled) .mh-site-category-rail a,
  body.mh-header-scrolled.mh-header-expanded .mh-site-shortcuts a,
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail a {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    border-radius: 13px !important;
    padding-inline: 8px !important;
  }

  body:not(.mh-header-scrolled) .mh-site-category-rail a:last-child:nth-child(odd),
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .search-intelligence-panel {
    width: calc(100vw - 22px) !important;
    margin: 12px auto 14px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .search-intel-main {
    gap: 7px !important;
  }

  .search-intel-stats {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 2px 2px 9px !important;
  }

  .search-intel-stats > a {
    flex: 0 0 136px !important;
    min-height: 72px !important;
    padding: 9px !important;
  }

  .search-intel-stats > a small {
    white-space: normal !important;
    line-height: 1.05 !important;
  }

  .search-intel-rail {
    margin-inline: -2px !important;
    padding: 2px 2px 9px !important;
  }

  .search-intel-chip {
    max-width: min(76vw, 280px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .search-intel-entity-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding: 2px 2px 10px !important;
    scroll-snap-type: x mandatory;
  }

  .search-entity-card {
    flex: 0 0 min(312px, 82vw) !important;
    min-height: 230px !important;
    max-height: 292px !important;
    overflow: hidden !important;
    scroll-snap-align: start;
  }

  .search-entity-card p {
    min-height: 36px;
    margin-bottom: 8px !important;
  }

  .search-entity-list {
    max-height: 148px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    padding-right: 2px !important;
  }

  .search-entity-list a,
  .search-entity-list button,
  .search-entity-empty {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  .feed-filterbar,
  .source-focus-bar,
  .members-quick {
    padding-inline: 10px !important;
  }

  #feeds .result .tag-chip,
  .result .tag-chip {
    flex: 1 1 calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
  }

  #feeds .result .tag-chip .tag-search-link,
  #feeds .result .tag-search-link,
  .result .tag-chip .tag-search-link,
  .result .tag-search-link {
    max-width: none !important;
    width: 100% !important;
  }

  #feeds .result .card-tools,
  .result .card-tools {
    grid-template-columns: 1fr 1fr !important;
  }

  .mh-scroll-top {
    box-shadow: 0 12px 26px rgba(0,0,0,.34), 0 0 0 3px rgba(255,212,0,.16) !important;
  }
}

@media (max-width: 420px) {
  .search-intel-stats > a {
    flex-basis: 128px !important;
  }

  .search-entity-card {
    flex-basis: 318px !important;
  }

  body:not(.mh-header-scrolled) .mh-site-signals,
  body.mh-header-scrolled.mh-header-expanded .mh-site-signals {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Keep card tag chips readable after the mobile intelligence polish. */
#feeds .result .tags-row,
.result .tags-row {
  align-items: stretch !important;
}

#feeds .result .tag-chip,
.result .tag-chip {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  gap: 5px !important;
}

#feeds .result .tag-chip .tag-search-link,
.result .tag-chip .tag-search-link {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-inline: 8px !important;
}

@media (max-width: 720px) {
  #feeds .result .tags-row,
  .result .tags-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #feeds .result .tag-chip,
  .result .tag-chip {
    flex: initial !important;
    max-width: none !important;
  }
}

/* =========================================================
   2026-05-16 excellence pass
   Unified interactions, resilient cards, faster search feel.
   ========================================================= */

:root {
  --mh-fast-ease: cubic-bezier(.2, .8, .2, 1);
  --mh-focus-ring: #ffd400;
  --mh-focus-glow: rgba(18, 215, 255, .32);
  --mh-solid-cyan: #12d7ff;
  --mh-solid-gold: #ffd400;
  --mh-solid-lime: #35d08a;
  --mh-solid-rose: #ff4fae;
  --mh-solid-violet: #8d5cff;
}

body {
  accent-color: var(--mh-solid-cyan);
}

body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-context,
body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-intel,
body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-category-rail {
  visibility: hidden !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-context,
body.mh-header-scrolled.mh-header-expanded .mh-site-intel,
body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
  visibility: visible !important;
}

:is(a, button, input, textarea, select, [role="button"]) {
  transition:
    transform .14s var(--mh-fast-ease),
    border-color .14s var(--mh-fast-ease),
    background-color .14s var(--mh-fast-ease),
    color .14s var(--mh-fast-ease),
    box-shadow .14s var(--mh-fast-ease),
    opacity .14s var(--mh-fast-ease) !important;
}

:is(a, button, input, textarea, select, [role="button"]):focus-visible {
  outline: 2px solid var(--mh-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow:
    0 0 0 4px rgba(255, 212, 0, .16),
    0 0 0 7px var(--mh-focus-glow) !important;
}

:is(button, a, [role="button"]):active {
  transform: translateY(1px) scale(.99) !important;
}

:is(button, a)[disabled],
:is(button, a).is-disabled,
:is(button, a)[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: .58 !important;
  transform: none !important;
}

#feeds .result,
.result {
  isolation: isolate;
  border-color: rgba(255, 255, 255, .14) !important;
}

#feeds .result .card-header,
.result .card-header {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--channel-accent, #12d7ff) 22%, transparent), transparent 44%),
    #162c40 !important;
}

#feeds .result .author-follow-btn,
#feeds .result .follow-icon,
#feeds .result .card-tools button,
#feeds .result .action-btn,
.result .author-follow-btn,
.result .follow-icon,
.result .card-tools button,
.result .action-btn {
  will-change: transform;
}

#feeds .result .author-follow-btn:hover,
#feeds .result .follow-icon:hover,
#feeds .result .card-tools button:hover,
#feeds .result .action-btn:hover,
.result .author-follow-btn:hover,
.result .follow-icon:hover,
.result .card-tools button:hover,
.result .action-btn:hover {
  transform: translateY(-1px) !important;
}

#feeds .result .source-favicon,
#feeds .result .site-strip .source-favicon,
#feeds .result .favicon-and-site img,
.result .source-favicon,
.result .site-strip .source-favicon,
.result .favicon-and-site img {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 6px !important;
  background: #203c53 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 5px 12px rgba(0,0,0,.24) !important;
  object-fit: cover !important;
}

#feeds .result .tags-row,
.result .tags-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
}

#feeds .result .tag-chip,
.result .tag-chip {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  align-items: stretch !important;
  gap: 5px !important;
}

#feeds .result .tag-chip .tag-search-link,
.result .tag-chip .tag-search-link {
  min-height: 28px !important;
  max-width: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.05 !important;
  text-overflow: clip !important;
  border-radius: 9px !important;
}

#feeds .result .tag-chip .follow-icon,
.result .tag-chip .follow-icon {
  height: auto !important;
  min-height: 28px !important;
  border-radius: 9px !important;
}

#feeds .result .card-tools,
.result .card-tools {
  background: #10283b !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#feeds .result .card-tools button,
.result .card-tools button {
  min-width: 0 !important;
  overflow: hidden !important;
  background: #18344a !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

#feeds .result .card-tools button:hover,
.result .card-tools button:hover {
  background: #214763 !important;
  border-color: color-mix(in srgb, var(--channel-accent, #12d7ff) 45%, rgba(255,255,255,.24)) !important;
}

#feeds .result .share-inline,
.result .share-inline {
  color: #061829 !important;
  background: var(--mh-solid-cyan) !important;
  border-color: rgba(255,255,255,.18) !important;
}

#feeds .result .mh-open-comments,
.result .mh-open-comments {
  color: #081925 !important;
  background: var(--mh-solid-gold) !important;
  border-color: rgba(255,255,255,.18) !important;
}

.youtube-thumbnail.video-preview-card,
.result .youtube-thumbnail {
  min-height: 170px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: #101f31 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

.youtube-thumbnail.video-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55));
  pointer-events: none;
}

.video-embed-frame {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 170px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #101f31 !important;
}

#feeds .result .media-box,
.result .media-box {
  aspect-ratio: 16 / 9 !important;
  min-height: 0 !important;
}

#feeds .result .media-box > a,
.result .media-box > a,
#feeds .result .youtube-thumbnail,
.result .youtube-thumbnail,
#feeds .result .video-preview-card,
.result .video-preview-card {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#feeds .result .media-box img,
.result .media-box img,
#feeds .result .feed-thumbnail,
.result .feed-thumbnail,
#feeds .result .video-preview-thumb,
.result .video-preview-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#feeds .result .author-name,
.result .author-name {
  display: inline !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.18 !important;
}

.search-intel-stats > a,
.search-intel-chip,
.search-entity-row,
.search-entity-list a,
.search-entity-list button {
  cursor: pointer !important;
  text-decoration: none !important;
}

.search-intel-stats > a:hover,
.search-intel-chip:hover,
.search-entity-row:hover,
.search-entity-list a:hover,
.search-entity-list button:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(18,215,255,.42) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(18,215,255,.18) !important;
}

.mh-shared-modal-overlay.open {
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  background: rgba(4, 12, 21, .72) !important;
  backdrop-filter: blur(12px) saturate(1.16);
}

.mh-shared-modal {
  width: min(720px, calc(100vw - 24px)) !important;
  max-height: min(84vh, 680px) !important;
  overflow: auto !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(18,215,255,.12), transparent 34%),
    linear-gradient(315deg, rgba(255,212,0,.12), transparent 38%),
    #142a3d !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.50), 0 0 0 1px rgba(255,255,255,.06) !important;
}

.mh-shared-modal-head {
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.mh-share-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
  gap: 10px !important;
}

.mh-share-grid a,
.mh-share-grid button,
.mh-copy-share-link,
.mh-native-share-link {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 13px !important;
  color: #071a29 !important;
  background: var(--mh-solid-cyan) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  font-weight: 950 !important;
}

.mh-share-grid a:nth-child(2),
.mh-share-grid a:nth-child(3) {
  background: var(--mh-solid-gold) !important;
}

.mh-share-grid a:nth-child(4),
.mh-share-grid a:nth-child(5) {
  background: var(--mh-solid-lime) !important;
}

.mh-share-direct {
  min-width: 0 !important;
}

.mh-share-direct span {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#myBtn,
#backToTopBtn,
.back-to-top-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 721px) and (max-width: 1320px) {
  body.mh-header-scrolled .mh-site-header-inner {
    grid-template-columns: 44px minmax(320px, 1fr) minmax(164px, auto) 46px !important;
  }

  body.mh-header-scrolled .mh-site-brand {
    width: 44px !important;
    min-width: 44px !important;
  }

  body.mh-header-scrolled .mh-site-brand > span:not(.mh-site-logo) {
    display: none !important;
  }

  body.mh-header-scrolled .mh-site-actions a {
    width: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled .mh-site-actions a span {
    display: none !important;
  }

  #feeds .result .tags-row,
  .result .tags-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

#feeds .result .author-name,
.result .author-name {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.12 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-intel-stats > a small,
.search-entity-row small {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.1 !important;
}

.search-intel-chip {
  min-width: 0 !important;
}

.search-intel-chip b {
  flex: 0 0 auto !important;
}

.search-intel-chip:not(.active) {
  max-width: min(320px, 82vw) !important;
}

@media (min-width: 721px) and (max-width: 1100px) {
  #feeds .result .feed-title,
  #feeds .result > h2,
  .result .feed-title,
  .result > h2 {
    -webkit-line-clamp: 4 !important;
  }
}

@media (max-width: 720px) {
  body.mh-header-scrolled .mh-site-search {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08) !important;
  }

  body.mh-header-scrolled .mh-site-search button {
    overflow: hidden !important;
    white-space: nowrap !important;
    color: transparent !important;
  }

  body.mh-header-scrolled .mh-site-search button::before {
    color: #061829 !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-actions a {
    width: 100% !important;
    justify-content: center !important;
  }

  .mh-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  #feeds .result .tags-row,
  .result .tags-row {
    grid-template-columns: 1fr !important;
  }

  .mh-share-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   2026-05-16 profile feed containment pass
   Keeps profile cards inside the post panel and away from the sidebar.
   ========================================================= */

.profile-shell,
.profile-shell > *,
#profile-posts {
  min-width: 0 !important;
}

#profile-posts {
  overflow: hidden !important;
}

.profile-shell #feeds.result-list {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  overflow: visible !important;
}

.profile-shell #feeds.result-list .result {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.profile-shell #feeds.result-list .card-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.profile-shell #feeds.result-list .card-tools button {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding-inline: 8px !important;
}

.profile-shell #feeds.result-list .card-tools button span:not(.count) {
  max-width: 76px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.profile-shell #feeds.result-list .action-btn {
  min-width: 0 !important;
  justify-content: center !important;
}

.profile-shell #feeds.result-list .save-btn,
.profile-shell #feeds.result-list .copy-embed-btn {
  width: 100% !important;
}

.profile-shell #profile-posts #search-button[hidden],
.profile-shell #profile-posts [hidden][aria-hidden="true"] {
  display: none !important;
}

.profile-shell .feed-infinite-sentinel {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

@media (min-width: 1051px) {
  .profile-shell {
    grid-template-columns: minmax(0, 1fr) clamp(310px, 24vw, 360px) !important;
  }

  .profile-shell .side-stack {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 108px);
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
  }
}

@media (min-width: 721px) and (max-width: 1320px) {
  .profile-shell #feeds.result-list .card-tools button span:not(.count) {
    display: none !important;
  }

  .profile-shell #feeds.result-list .card-tools button {
    min-height: 34px !important;
  gap: 8px !important;
  }
}

@media (min-width: 721px) {
  .profile-shell #feeds.result-list .card-tools button span:not(.count) {
    display: none !important;
  }

  .profile-shell #feeds.result-list .card-tools button {
    min-height: 34px !important;
    gap: 8px !important;
  }
}

.profile-shell #feeds.result-list .feed-title,
.profile-shell #feeds.result-list .feed-description,
.profile-shell #feeds.result-list .feed-source,
.profile-shell #feeds.result-list .feed-author {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.profile-shell #feeds.result-list .feed-title {
  -webkit-line-clamp: 4 !important;
}

.profile-shell #feeds.result-list .feed-description {
  -webkit-line-clamp: 4 !important;
}

/* =========================================================
   2026-05-16 identity pages consolidation pass
   Unifies profile/member detail surfaces and removes hero/sidebar overlap.
   ========================================================= */

.profile-hero {
  overflow: hidden !important;
}

.profile-hero .profile-cover {
  height: clamp(230px, 25vw, 340px) !important;
}

.profile-hero .profile-identity {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  background:
    linear-gradient(90deg, rgba(20, 42, 61, .98), rgba(45, 68, 88, .94)),
    rgba(36, 54, 74, .96) !important;
  border-top: 1px solid rgba(139, 216, 255, .18) !important;
}

.profile-hero .profile-avatar-wrap,
.profile-hero .profile-avatar,
.profile-hero .profile-avatar-fallback {
  width: 96px !important;
  height: 96px !important;
  border-radius: 24px !important;
}

.profile-hero .profile-avatar-wrap {
  align-self: center !important;
}

.profile-hero .profile-title {
  min-width: 0 !important;
}

.profile-hero .profile-title h1 {
  font-size: clamp(27px, 3vw, 42px) !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere !important;
}

.profile-hero .profile-title p,
.profile-hero .profile-bio,
.profile-hero .profile-meta {
  overflow-wrap: anywhere !important;
}

.profile-hero .profile-badges {
  gap: 8px !important;
}

.profile-hero .profile-actions {
  align-self: center !important;
  min-width: 0 !important;
}

.profile-hero .profile-action {
  min-width: 0 !important;
  white-space: nowrap !important;
}

.profile-hero .profile-summary {
  position: relative !important;
  padding: 16px 20px 20px !important;
  background: rgba(26, 45, 64, .76) !important;
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
}

.profile-stat strong,
.members-stat strong {
  line-height: 1.22 !important;
  overflow: visible !important;
}

#feeds .result .follow-btn.author-follow-btn {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

#feeds .result .follow-btn.author-follow-btn span {
  display: none !important;
}

#feeds .result .follow-btn.author-follow-btn i {
  margin: 0 !important;
  font-size: 13px !important;
}

@media (min-width: 1051px) {
  .profile-shell .side-stack {
    position: sticky !important;
    top: 96px !important;
    align-self: start !important;
    max-height: calc(100dvh - 116px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    padding-right: 4px !important;
  }

  .profile-shell .side-stack::-webkit-scrollbar,
  .profile-shell #profile-sources .side-list::-webkit-scrollbar,
  .profile-shell .tag-cloud::-webkit-scrollbar {
    width: 8px;
  }

  .profile-shell .side-stack::-webkit-scrollbar-thumb,
  .profile-shell #profile-sources .side-list::-webkit-scrollbar-thumb,
  .profile-shell .tag-cloud::-webkit-scrollbar-thumb {
    background: rgba(139, 216, 255, .28);
    border-radius: 999px;
  }

  .profile-shell #profile-sources .side-list {
    max-height: min(360px, 42dvh) !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  .profile-shell .tag-cloud {
    max-height: min(280px, 34dvh) !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }
}

@media (max-width: 900px) {
  .profile-hero .profile-identity {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .profile-hero .profile-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .profile-hero .profile-actions .profile-action {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 620px) {
  .profile-hero .profile-cover {
    height: 210px !important;
  }

  .profile-hero .profile-identity {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    padding: 12px !important;
    gap: 11px !important;
  }

  .profile-hero .profile-avatar-wrap,
  .profile-hero .profile-avatar,
  .profile-hero .profile-avatar-fallback {
    width: 74px !important;
    height: 74px !important;
    border-radius: 18px !important;
  }

  .profile-hero .profile-title h1 {
    font-size: 24px !important;
  }

  .profile-hero .profile-badges {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .profile-hero .profile-chip {
    width: 100% !important;
    justify-content: center !important;
  }

  .profile-hero .profile-summary {
    padding: 13px 12px 15px !important;
  }

  .profile-stat strong,
  .members-stat strong {
    line-height: 1.25 !important;
  }
}

@media (max-width: 540px) {
  .members-quick {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .members-quick a {
    min-width: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .members-command .members-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .members-command .members-quick a:last-child:nth-child(odd),
  .members-quick a:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 720px) {
  #profile-posts {
    overflow: visible !important;
  }

  .profile-shell #feeds.result-list .card-tools button span:not(.count) {
    display: inline !important;
  }
}

/* =========================================================
   2026-05-16 sidebar/action density and Masonry support pass
   ========================================================= */

.profile-stats {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(86px, 1fr)) !important;
  gap: 8px !important;
  margin: 10px 0 14px !important;
}

.profile-stat {
  min-height: 58px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
}

.profile-stat strong {
  font-size: clamp(18px, 1.65vw, 25px) !important;
}

.profile-stat span {
  margin-top: 4px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

#feeds .result .actions-row,
.result .actions-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 7px 8px 0 !important;
  padding: 5px !important;
  border-radius: 12px !important;
}

#feeds .result .actions-left,
#feeds .result .actions-right,
.result .actions-left,
.result .actions-right {
  display: contents !important;
}

#feeds .result .action-btn,
.result .action-btn {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  min-height: 29px !important;
  height: 29px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  border-radius: 9px !important;
  overflow: hidden !important;
}

#feeds .result .action-btn .label,
.result .action-btn .label {
  display: none !important;
}

#feeds .result .action-btn i,
.result .action-btn i {
  flex: 0 0 auto !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

#feeds .result .action-btn .count,
.result .action-btn .count {
  flex: 0 0 auto !important;
  min-width: 1.1em !important;
  max-width: 3.5em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#feeds .result .card-tools,
.result .card-tools {
  margin-top: 6px !important;
  padding: 5px !important;
  gap: 6px !important;
}

#feeds .result .card-tools button,
.result .card-tools button {
  min-height: 30px !important;
  padding: 0 7px !important;
}

@media (min-width: 1051px) {
  .profile-shell .side-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .profile-shell .side-card .profile-section-head {
    flex: 0 0 auto !important;
  }

  .profile-shell #profile-sources .side-list,
  .profile-shell #profile-topics .tag-cloud,
  .profile-shell #profile-actions-panel .side-list {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
    scrollbar-gutter: stable !important;
    padding-right: 3px !important;
  }

  .profile-shell #profile-sources .side-list {
    max-height: min(300px, 36dvh) !important;
  }

  .profile-shell #profile-topics .tag-cloud {
    max-height: min(220px, 26dvh) !important;
  }

  .profile-shell #profile-actions-panel .side-list {
    max-height: min(210px, 24dvh) !important;
  }
}

@media (max-width: 1320px) {
  .profile-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .profile-stat {
    min-height: 54px !important;
    padding: 8px 9px !important;
  }
}

/* =========================================================
   2026-05-16 compact solid product system
   ========================================================= */

:root {
  --mh-bg: #192b3d;
  --mh-bg-deep: #101d2b;
  --mh-surface: #22384b;
  --mh-surface-2: #274156;
  --mh-surface-3: #2e4b61;
  --mh-panel: #22384b;
  --mh-panel-strong: #274156;
  --mh-line: rgba(222, 238, 255, .13);
  --mh-line-strong: rgba(222, 238, 255, .22);
  --mh-text: #f3f8ff;
  --mh-muted: #b9cadb;
  --mh-blue: #37c7ff;
  --mh-yellow: #ffd166;
  --mh-green: #35d08a;
  --mh-danger: #ff5f73;
  --mh-radius: 12px;
  --mh-radius-sm: 9px;
  --mh-control-h: 32px;
  --mh-gap: 10px;
  --mh-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

html {
  scrollbar-color: #3f627a #132233;
}

body {
  background: var(--mh-bg) !important;
  color: var(--mh-text) !important;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0 !important;
}

:focus-visible {
  outline: 2px solid #69d8ff !important;
  outline-offset: 2px !important;
}

.mh-site-header,
.result,
.profile-panel,
.side-card,
.section,
.hero-main,
.members-shell :is(.members-command, .members-panel, .member-card),
.source-search-panel,
.search-intelligence-panel,
.search-entity-card,
.mh-feed-tools,
.mh-insights-command,
.mh-insights-panel {
  background: var(--mh-surface) !important;
  border-color: var(--mh-line) !important;
  box-shadow: var(--mh-shadow) !important;
}

.result,
.profile-panel,
.search-intelligence-panel,
.source-search-panel,
.mh-insights-panel {
  background-image: none !important;
}

.mh-site-header {
  width: min(1500px, calc(100vw - 18px)) !important;
  border-radius: 13px !important;
}

.mh-site-header-inner {
  grid-template-columns: auto minmax(260px, 1fr) auto !important;
  gap: 8px !important;
  padding: 7px 8px !important;
  background: var(--mh-surface-2) !important;
}

.mh-site-logo {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  background: #155f7d !important;
}

.mh-site-brand {
  min-width: 150px !important;
}

.mh-site-brand strong {
  font-size: 14px !important;
}

.mh-site-brand small {
  font-size: 8.5px !important;
}

.mh-site-search {
  height: 34px !important;
  border-radius: 10px !important;
  background: #142536 !important;
  border: 1px solid rgba(222, 238, 255, .14) !important;
}

.mh-site-search input {
  font-size: 13px !important;
  min-width: 0 !important;
}

.mh-site-search button,
.mh-site-actions a,
.mh-site-page-actions a,
.mh-site-page-actions button,
.mh-site-shortcuts a,
.mh-site-category-rail a,
.mh-density-toggle,
.mh-header-expand-toggle,
.mh-feed-tools button,
.mh-insights-search button,
.mh-insights-panel header a,
.mh-recent-searches a,
.mh-recent-searches button {
  min-height: var(--mh-control-h) !important;
  border-radius: var(--mh-radius-sm) !important;
  padding: 0 9px !important;
  border: 1px solid rgba(222, 238, 255, .14) !important;
  background: #1d3346 !important;
  color: #eaf5ff !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
}

.mh-site-search button,
.mh-site-actions .create,
.mh-insights-search button {
  background: #ffd166 !important;
  border-color: #ffd166 !important;
  color: #142536 !important;
}

.mh-site-actions a.active,
.mh-site-actions a:hover,
.mh-site-page-actions a:hover,
.mh-site-page-actions button:hover,
.mh-site-shortcuts a:hover,
.mh-site-category-rail a:hover,
.mh-site-category-rail a.active,
.mh-feed-tools button.active,
.mh-feed-tools button:hover,
.mh-density-toggle:hover,
.mh-density-toggle[aria-pressed="true"],
.mh-insights-panel header a:hover,
.mh-recent-searches a:hover {
  background: #155f7d !important;
  border-color: #37c7ff !important;
  color: #f5fbff !important;
}

.mh-site-context {
  padding: 6px 9px 4px !important;
  gap: 8px !important;
}

.mh-site-context > div {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.mh-site-kicker {
  display: none !important;
}

.mh-site-context h1 {
  font-size: 15px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.mh-site-context p {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mh-site-intel {
  padding: 0 8px 7px !important;
  gap: 7px !important;
  background: var(--mh-surface) !important;
}

.mh-site-signals,
.mh-site-shortcuts,
.mh-site-category-rail {
  gap: 6px !important;
  scrollbar-width: thin !important;
}

.mh-site-signal {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
  background: #1a3043 !important;
  border: 1px solid rgba(222, 238, 255, .12) !important;
  box-shadow: none !important;
}

.mh-site-signal i {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  background: #155f7d !important;
}

.mh-site-signal b,
.mh-site-signal small {
  font-size: 10.5px !important;
}

.mh-site-category-rail {
  padding: 0 8px 8px !important;
  overflow-x: auto !important;
}

.mh-recent-searches {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0 0 1px;
}

.mh-recent-searches > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  color: #b9cadb;
  font-size: 11px;
  font-weight: 900;
}

.mh-recent-searches a,
.mh-recent-searches button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#feeds.result-list,
.result-list#feeds {
  gap: 12px !important;
}

#feeds .result,
.result {
  border-radius: 12px !important;
  background: var(--mh-surface-2) !important;
  overflow: hidden !important;
}

#feeds .result .card-header,
.result .card-header {
  min-height: 38px !important;
  padding: 5px 7px 3px !important;
}

#feeds .result .author-name,
.result .author-name {
  font-size: 12.5px !important;
  font-weight: 900 !important;
}

#feeds .result .follow-btn,
.result .follow-btn {
  min-width: 30px !important;
  height: 28px !important;
  border-radius: 9px !important;
  padding: 0 7px !important;
  background: #ffd166 !important;
  border-color: #ffd166 !important;
  color: #142536 !important;
}

#feeds .result .follow-btn .label,
.result .follow-btn .label {
  display: none !important;
}

#feeds .result .media-box,
.result .media-box {
  margin: 0 7px 7px !important;
  border-radius: 10px !important;
  background: #142536 !important;
}

#feeds .result .feed-title,
.result .feed-title {
  margin: 7px 8px 4px !important;
  font-size: 14.5px !important;
  line-height: 1.22 !important;
}

#feeds .result .feed-description,
.result .feed-description {
  margin: 0 8px 7px !important;
  font-size: 11.8px !important;
  line-height: 1.35 !important;
}

#feeds .result .card-meta-stack,
.result .card-meta-stack {
  gap: 6px !important;
}

#feeds .result .channel-row,
#feeds .result .site-strip,
.result .channel-row,
.result .site-strip {
  margin: 0 8px !important;
  min-height: 30px !important;
  border-radius: 9px !important;
  background: #1a3043 !important;
  border: 1px solid rgba(222, 238, 255, .11) !important;
}

#feeds .result .tags-row,
.result .tags-row {
  gap: 5px !important;
  margin: 0 8px !important;
}

#feeds .result .tag-chip,
.result .tag-chip {
  gap: 3px !important;
}

#feeds .result .tag-chip .tag-search-link,
.result .tag-chip .tag-search-link {
  min-height: 24px !important;
  border-radius: 7px !important;
  padding: 0 7px !important;
  font-size: 11.5px !important;
  border: 1px solid rgba(0, 0, 0, .28) !important;
}

#feeds .result .follow-icon,
.result .follow-icon {
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

#feeds .result .actions-row,
.result .actions-row {
  margin: 7px 8px 0 !important;
  padding: 4px !important;
  gap: 4px !important;
  background: #182c3e !important;
  border: 1px solid rgba(222, 238, 255, .10) !important;
}

#feeds .result .action-btn,
.result .action-btn {
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 8px !important;
  background: #223a4f !important;
}

#feeds .result .action-btn:hover,
.result .action-btn:hover,
#feeds .result .action-btn.liked,
.result .action-btn.liked,
#feeds .result .action-btn.saved,
.result .action-btn.saved {
  background: #155f7d !important;
  border-color: #37c7ff !important;
}

#feeds .result .card-tools,
.result .card-tools {
  margin: 6px 8px 8px !important;
  padding: 4px !important;
  gap: 4px !important;
  background: #182c3e !important;
  border: 1px solid rgba(222, 238, 255, .10) !important;
  border-radius: 10px !important;
}

#feeds .result .card-tools button,
.result .card-tools button {
  min-height: 28px !important;
  border-radius: 8px !important;
}

.profile-stat,
.members-stat,
.source-stats span,
.mh-insights-metrics a {
  background: #1a3043 !important;
  border: 1px solid rgba(222, 238, 255, .12) !important;
  box-shadow: none !important;
}

.profile-stat {
  border-left: 1px solid rgba(222, 238, 255, .12) !important;
}

.search-intelligence-panel,
.source-search-panel {
  width: min(1500px, calc(100vw - 18px)) !important;
  border-radius: 13px !important;
  padding: 12px !important;
}

.search-intel-stats {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
  gap: 7px !important;
}

.search-intel-stats > a,
.search-intel-stat {
  min-height: 58px !important;
  padding: 8px !important;
  background: #1a3043 !important;
  border-radius: 10px !important;
}

.search-intel-stats > a::after,
.search-intel-stat::after {
  display: none !important;
}

.search-intel-chip {
  min-height: 30px !important;
  border-radius: 9px !important;
  background: #1d3346 !important;
  border-color: rgba(222, 238, 255, .14) !important;
}

.search-intel-chip.tag,
.search-intel-chip.source,
.search-intel-chip.author,
.search-intel-chip.active {
  background: #155f7d !important;
  border-color: #37c7ff !important;
}

.search-entity-card {
  border-radius: 11px !important;
  background: #1a3043 !important;
}

.mh-feed-tools {
  width: min(1500px, calc(100vw - 18px)) !important;
  border-radius: 12px !important;
  padding: 7px !important;
  gap: 7px !important;
  background: var(--mh-surface) !important;
}

.mh-feed-tool-group {
  gap: 4px !important;
}

.mh-loaded-search {
  min-height: 32px !important;
  border-radius: 9px !important;
  background: #142536 !important;
}

.mh-visual-status,
.mh-focus-count {
  min-height: 30px !important;
  border-radius: 9px !important;
}

.insights-shell {
  width: min(1500px, calc(100vw - 18px));
  margin: 12px auto 56px;
}

.mh-insights-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--mh-line);
  border-radius: 13px;
}

.mh-insights-command h2,
.mh-insights-panel h2 {
  margin: 0;
  color: #f3f8ff;
  font-size: 18px;
  line-height: 1.15;
}

.mh-insights-command p {
  margin: 5px 0 0;
  color: var(--mh-muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 700;
}

.mh-insights-search {
  min-height: 38px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: #142536;
  border: 1px solid rgba(222, 238, 255, .13);
}

.mh-insights-search i {
  color: #8ddfff;
  text-align: center;
}

.mh-insights-search input {
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 800;
}

.mh-insights-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.mh-insights-metrics a {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.mh-insights-metrics i {
  color: #8ddfff;
}

.mh-insights-metrics strong {
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.mh-insights-metrics span {
  color: var(--mh-muted);
  font-size: 11px;
  font-weight: 900;
}

.mh-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mh-insights-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--mh-line);
  border-radius: 13px;
}

.mh-insights-wide {
  grid-column: 1 / -1;
}

.mh-insights-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mh-insights-panel header a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mh-insight-list {
  display: grid;
  gap: 7px;
}

.mh-insight-list a {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(222, 238, 255, .10);
  border-radius: 10px;
  background: #1a3043;
  color: inherit;
  text-decoration: none;
}

.mh-insight-list a:hover {
  border-color: #37c7ff;
  background: #1d3a50;
}

.mh-insight-list span {
  min-width: 0;
}

.mh-insight-list strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f8ff;
  font-size: 12.5px;
}

.mh-insight-list small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mh-muted);
  font-size: 11px;
  font-weight: 800;
}

.mh-insight-list b {
  color: #ffd166;
  font-size: 12px;
}

.mh-insights-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mh-insights-tags a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(55, 199, 255, .28);
  border-radius: 9px;
  background: #155f7d;
  color: #f5fbff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 900;
}

.mh-insights-tags b {
  color: #ffd166;
}

@media (max-width: 1180px) {
  .mh-site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .mh-site-search {
    grid-column: 1 / -1 !important;
    order: 3 !important;
  }

  .mh-site-actions {
    justify-content: flex-end !important;
  }

  .mh-insights-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mh-site-header,
  .mh-feed-tools,
  .search-intelligence-panel,
  .source-search-panel,
  .insights-shell {
    width: calc(100% - 12px) !important;
    max-width: 1500px !important;
  }

  .mh-site-header-inner {
    grid-template-columns: 1fr !important;
  }

  .mh-site-brand {
    min-width: 0 !important;
  }

  .mh-site-actions,
  .mh-site-page-actions,
  .mh-site-shortcuts,
  .mh-site-category-rail {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding-bottom: 2px !important;
  }

  .mh-site-actions a,
  .mh-site-page-actions a,
  .mh-site-page-actions button {
    flex: 0 0 auto !important;
  }

  .mh-site-context > div {
    display: block !important;
  }

  .mh-site-context h1,
  .mh-site-context p {
    white-space: normal !important;
  }

  .mh-site-context h1 {
    font-size: 15px !important;
  }

  .mh-site-context p {
    margin-top: 2px !important;
    font-size: 11px !important;
  }

  .mh-site-intel {
    display: grid !important;
  }

  .search-intel-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mh-feed-tools {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .mh-feed-tool-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .mh-insights-command,
  .mh-insights-grid {
    grid-template-columns: 1fr;
  }

  .mh-insights-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .mh-site-search {
    grid-template-columns: 32px minmax(0, 1fr) 38px !important;
  }

  .mh-site-search button {
    min-width: 38px !important;
    font-size: 0 !important;
  }

  .mh-site-search button::after {
    content: "Go";
    font-size: 11px;
    font-weight: 950;
  }

  .mh-site-actions a span {
    display: none !important;
  }

  .mh-site-actions a {
    min-width: 34px !important;
    justify-content: center !important;
  }

  .mh-insights-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .mh-insights-command,
  .mh-insights-panel {
    padding: 10px;
  }
}

/* =========================================================
   2026-05-16 total audit finishing pass
   Header transition parity, compact card controls, and mobile search fit.
   ========================================================= */

.mh-site-header,
.header-content {
  transform-origin: top center !important;
  will-change: transform, opacity, max-height;
}

.mh-site-header-inner,
.mh-site-search,
.mh-site-actions,
.mh-site-context,
.mh-site-intel,
.mh-site-category-rail {
  min-width: 0 !important;
}

.mh-site-search {
  max-width: 100% !important;
  overflow: hidden !important;
}

.mh-site-search input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.mh-site-search button {
  overflow: hidden !important;
  white-space: nowrap !important;
}

.mh-site-search button .mh-search-label {
  display: inline-block !important;
  min-width: 0 !important;
}

body.mh-header-scrolled .mh-site-header,
body.mh-header-scrolled .header-content {
  top: 8px !important;
  width: min(1500px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  max-height: 72px !important;
  border-radius: 16px !important;
  background: #18344a !important;
  border-color: rgba(55, 199, 255, .42) !important;
  overflow: hidden !important;
  animation: mhHeaderCompactIn .22s cubic-bezier(.2,.8,.2,1) both;
  box-shadow:
    0 18px 44px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.07),
    0 0 26px rgba(55,199,255,.16) !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-header,
body.mh-header-scrolled.mh-header-expanded .header-content {
  max-height: min(76vh, 580px) !important;
  overflow-y: auto !important;
}

@keyframes mhHeaderCompactIn {
  from {
    opacity: .96;
    transform: translateX(-50%) translateY(-7px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

body.mh-header-scrolled .mh-site-header-inner {
  min-height: 62px !important;
  grid-template-columns: minmax(160px, 200px) minmax(280px, 1fr) minmax(260px, auto) 48px !important;
  gap: 9px !important;
  padding: 9px !important;
  background: #203c53 !important;
}

body.mh-header-scrolled .mh-site-search {
  height: 42px !important;
  grid-template-columns: 38px minmax(0, 1fr) 42px !important;
}

body.mh-header-scrolled .mh-site-actions {
  max-width: none !important;
  overflow: hidden !important;
  mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}

body.mh-header-scrolled .mh-site-actions a {
  flex: 0 0 auto !important;
}

body.mh-header-scrolled .mh-header-expand-toggle {
  width: 44px !important;
  min-width: 44px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 13px !important;
}

body.mh-header-scrolled .mh-header-expand-toggle span {
  display: none !important;
}

body.mh-header-scrolled .mh-site-context,
body.mh-header-scrolled .mh-site-intel,
body.mh-header-scrolled .mh-site-category-rail {
  visibility: hidden;
  opacity: 0 !important;
  max-height: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px);
  transition:
    max-height .28s cubic-bezier(.2,.8,.2,1),
    opacity .18s ease,
    transform .22s ease,
    padding .22s ease !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-context,
body.mh-header-scrolled.mh-header-expanded .mh-site-intel,
body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
  visibility: visible;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

body.mh-header-scrolled.mh-header-expanded .mh-site-context {
  display: flex !important;
  max-height: 150px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-intel {
  display: grid !important;
  max-height: 180px !important;
}

body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
  display: flex !important;
  max-height: 112px !important;
}

#feeds .result .actions-row,
.result .actions-row,
#feeds .result .card-tools,
.result .card-tools {
  overflow: hidden !important;
}

#feeds .result .actions-row,
.result .actions-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: center !important;
}

#feeds .result .actions-left,
#feeds .result .actions-right,
.result .actions-left,
.result .actions-right {
  display: contents !important;
}

#feeds .result .action-btn,
.result .action-btn,
#feeds .result .card-tools button,
.result .card-tools button {
  min-width: 0 !important;
  width: 100% !important;
  display: inline-grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: max-content !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding-inline: 5px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

#feeds .result .action-btn .label,
.result .action-btn .label,
#feeds .result .card-tools button span:not(.count),
.result .card-tools button span:not(.count) {
  display: none !important;
}

#feeds .result .action-btn .count,
.result .action-btn .count,
#feeds .result .card-tools .count,
.result .card-tools .count {
  min-width: 10px !important;
  max-width: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

#feeds .result .mh-open-comments,
.result .mh-open-comments,
#feeds .result .share-inline,
.result .share-inline {
  color: #f3fbff !important;
}

@media (max-width: 1180px) {
  body.mh-header-scrolled .mh-site-header-inner {
    grid-template-columns: minmax(46px, auto) minmax(260px, 1fr) minmax(168px, auto) 44px !important;
  }

  body.mh-header-scrolled .mh-site-brand span:not(.mh-site-logo) {
    display: none !important;
  }

  body.mh-header-scrolled .mh-site-brand {
    min-width: 44px !important;
    width: 44px !important;
  }
}

@media (max-width: 760px) {
  body.mh-header-scrolled .mh-site-header,
  body.mh-header-scrolled .header-content {
    top: 6px !important;
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    max-height: 116px !important;
    border-radius: 14px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-header,
  body.mh-header-scrolled.mh-header-expanded .header-content {
    max-height: min(82vh, 620px) !important;
  }

  body.mh-header-scrolled .mh-site-header-inner {
    min-height: 102px !important;
    grid-template-columns: 38px minmax(0, 1fr) 40px !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  body.mh-header-scrolled .mh-site-brand {
    width: 38px !important;
    min-width: 38px !important;
  }

  body.mh-header-scrolled .mh-site-logo {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  body.mh-header-scrolled .mh-site-search {
    grid-column: 2 !important;
    order: 0 !important;
    height: 38px !important;
    grid-template-columns: 32px minmax(0, 1fr) 36px !important;
  }

  body.mh-header-scrolled .mh-site-search input {
    font-size: 12px !important;
  }

  body.mh-header-scrolled .mh-site-search button {
    width: 34px !important;
    min-width: 34px !important;
    height: 30px !important;
    margin-right: 3px !important;
  }

  body.mh-header-scrolled .mh-header-expand-toggle {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  body.mh-header-scrolled .mh-site-actions {
    grid-column: 1 / -1 !important;
    order: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 1px 2px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }

  body.mh-header-scrolled .mh-site-actions a {
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled .mh-site-actions a span {
    display: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-context {
    max-height: 190px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-intel {
    max-height: 260px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
    max-height: 230px !important;
  }
}

@media (max-width: 430px) {
  body.mh-header-scrolled .mh-site-search input::placeholder {
    color: transparent !important;
  }

  #feeds .result .actions-row,
  .result .actions-row {
    gap: 3px !important;
    padding: 3px !important;
  }

  #feeds .result .action-btn,
  .result .action-btn,
  #feeds .result .card-tools button,
  .result .card-tools button {
    min-height: 30px !important;
    padding-inline: 3px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mh-header-scrolled .mh-site-header,
  body.mh-header-scrolled .header-content {
    animation: none !important;
  }
}

/* 2026-05-16 audit cleanup: long bylines, domains, and expanded mobile rails. */
#feeds .result .author-name,
.result .author-name,
.card-header .author-name {
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.12 !important;
}

#feeds .result .site-name,
.result .site-name,
#feeds .result .source-name,
.result .source-name {
  min-width: 0 !important;
  max-width: 100% !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mh-site-shortcuts a,
.mh-site-category-rail a,
.mh-site-actions a {
  min-width: 0 !important;
}

.mh-site-shortcuts a span,
.mh-site-category-rail a span,
.mh-site-actions a span {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 760px) {
  body:not(.mh-header-scrolled) .mh-site-search button,
  body.mh-header-scrolled .mh-site-search button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
  }

  body:not(.mh-header-scrolled) .mh-site-search button .mh-search-label,
  body.mh-header-scrolled .mh-site-search button .mh-search-label {
    display: none !important;
  }

  body:not(.mh-header-scrolled) .mh-site-search button::before,
  body.mh-header-scrolled .mh-site-search button::before {
    content: "\f002" !important;
    font-family: "Font Awesome 5 Free";
    font-size: 12px !important;
    font-weight: 900;
  }

  body:not(.mh-header-scrolled) .mh-site-search button::after,
  body.mh-header-scrolled .mh-site-search button::after {
    content: none !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-shortcuts,
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-shortcuts a,
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-inline: 6px !important;
    gap: 5px !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body.mh-header-scrolled.mh-header-expanded .mh-site-shortcuts a span,
  body.mh-header-scrolled.mh-header-expanded .mh-site-category-rail a span {
    font-size: 10.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

/* Final product-page overrides must live after the shared header/footer rules. */
.mh-product-shell :is(.mh-source-card, .mh-topic-card, .mh-activity-card) footer {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
  transform: none !important;
  z-index: auto !important;
  box-shadow: none !important;
  background: transparent !important;
}

.mh-product-shell :is(.mh-source-card, .mh-topic-card) footer {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.mh-product-shell .mh-activity-card footer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.mh-product-shell :is(.mh-source-card, .mh-topic-card) footer a,
.mh-product-shell .mh-activity-card footer a {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mh-product-shell .mh-activity-card p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 760px) {
  .mh-product-shell .mh-site-header {
    gap: 8px !important;
  }

  .mh-product-shell .mh-site-context {
    gap: 8px !important;
    padding-block: 8px !important;
  }

  .mh-product-shell .mh-site-context h1 {
    font-size: 17px !important;
    line-height: 1.05 !important;
  }

  .mh-product-shell .mh-site-context p {
    font-size: 11.5px !important;
    line-height: 1.18 !important;
  }

  .mh-product-shell .mh-site-signals,
  .mh-product-shell .mh-site-shortcuts,
  .mh-product-shell .mh-site-category-rail,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-signals,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-shortcuts,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-category-rail,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-signals,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-shortcuts,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-category-rail {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 5px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .mh-product-shell .mh-site-signals > *,
  .mh-product-shell .mh-site-shortcuts > *,
  .mh-product-shell .mh-site-category-rail > *,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-signals > *,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-shortcuts > *,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-category-rail > * {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
  }

  .mh-product-shell .mh-site-signal {
    width: 134px !important;
    min-width: 134px !important;
    padding: 8px !important;
  }

  .mh-product-shell .mh-site-shortcuts a,
  .mh-product-shell .mh-site-category-rail a,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-shortcuts a,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-category-rail a,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-shortcuts a,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-category-rail a {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    min-height: 34px !important;
    padding-inline: 11px !important;
  }

  .mh-product-shell .mh-site-shortcuts a span,
  .mh-product-shell .mh-site-category-rail a span,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-shortcuts a span,
  body:not(.mh-header-scrolled) .mh-product-shell .mh-site-category-rail a span,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-shortcuts a span,
  body.mh-header-scrolled.mh-header-expanded .mh-product-shell .mh-site-category-rail a span {
    max-width: none !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .mh-product-shell .mh-product-command h2 {
    font-size: 23px;
    line-height: 1.08;
    overflow: visible !important;
    text-wrap: balance;
  }

  .mh-product-shell .mh-activity-card p,
  .mh-product-shell .mh-activity-card footer a {
    white-space: normal !important;
  }

  .mh-product-shell :is(.mh-source-card, .mh-topic-card) footer,
  .mh-product-shell .mh-activity-card footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-05-16 continuation polish 2: keep search intelligence counts readable on wide screens. */
.search-intel-stats {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;
}

.search-intel-stats > a,
.search-intel-stat {
  min-width: 0 !important;
}

.search-intel-stats > a small,
.search-intel-stat span,
.search-intel-stat small {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (max-width: 720px) {
  .search-intel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 2026-05-16 continuation polish 4: restore mobile card tags to compact content-sized chips. */
@media (max-width: 760px) {
  #feeds .result .tags-row,
  .result .tags-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 8px !important;
  }

  #feeds .result .tag-chip,
  .result .tag-chip {
    display: inline-grid !important;
    grid-template-columns: minmax(0, auto) 26px !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
  }

  #feeds .result .tag-chip .tag-search-link,
  #feeds .result .tag-search-link,
  .result .tag-chip .tag-search-link,
  .result .tag-search-link {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(238px, calc(100vw - 96px)) !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    text-overflow: ellipsis !important;
  }

  #feeds .result .tag-chip .follow-icon,
  .result .tag-chip .follow-icon {
    width: 26px !important;
    min-width: 26px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex: 0 0 26px !important;
    border-radius: 8px !important;
  }
}

/* 2026-05-16 continuation polish 6: mobile fixed header returns to a single useful row. */
@media (max-width: 760px) {
  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-header {
    top: 6px !important;
    max-height: 60px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-header::after {
    height: 2px !important;
    background: #12d7ff !important;
    opacity: .7 !important;
    box-shadow: none !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-header-inner {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    min-height: 54px !important;
    padding: 7px !important;
    gap: 7px !important;
    align-items: center !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-brand {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    overflow: hidden !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-brand > span:not(.mh-site-logo) {
    display: none !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-logo {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-search {
    height: 38px !important;
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: 32px minmax(0, 1fr) 38px !important;
    margin: 0 !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-search input {
    min-width: 0 !important;
    font-size: 12px !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-search button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-site-actions {
    display: none !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-header-expand-toggle {
    display: inline-flex !important;
    grid-column: 3 !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  body.mh-header-scrolled:not(.mh-header-expanded) .mh-header-expand-toggle span {
    display: none !important;
  }
}
