/* Feed route stylesheet: shell, feed cards, icons, notifications, and loader only. */
:root {
  color-scheme: dark;
  --bg: #060b14;
  --panel: #111a28;
  --panel-2: #1d2330;
  --text: #f8fafc;
  --muted: #d8e1ef;
  --line: rgba(255,255,255,.14);
  --accent: #ffd166;
  --accent-2: #54d6b6;
  --danger: #ff5f6d;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #eef2f7;
  --text: #0f1728;
  --muted: #334155;
  --line: rgba(15,23,40,.16);
  --accent: #8a5b00;
  --accent-2: #087c68;
  --danger: #ca3345;
}
button,input,select,textarea{font:inherit}.feed-filter-button{cursor:pointer}.flash{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text)}.flash-close{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);cursor:pointer}.equipped-badges{display:inline-flex;align-items:center;gap:4px}.equipped-badge-icon{width:22px;height:22px;border-radius:999px;object-fit:cover}.user-level-pill{background:linear-gradient(135deg,#172554,#2563eb,#93c5fd);color:#eff6ff}.rank-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;font-size:.72rem;font-weight:900;white-space:nowrap}.rank-pill{line-height:1}.score-debug{margin-top:8px;color:rgba(248,250,252,.8);font-size:.78rem}.score-debug summary{cursor:pointer;font-weight:900}.feed-copy p{margin-top:0}.tags{margin-top:10px}.feed-card small{font-size:.66rem;font-weight:900;color:currentColor}.icon-action button{cursor:pointer}.icon-action.active,.icon-action.active .icon-action-button{color:var(--accent)!important}
.flash-wrap {
    position: fixed;
    top: 76px;
    left: 50%;
    z-index: 20;
    width: min(92vw, 620px);
    transform: translateX(-50%);
}


.flash {
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
}


.flash-success {
    border-color: rgba(84, 214, 182, 0.55);
}


.flash-warning {
    border-color: rgba(242, 193, 78, 0.65);
}


.flash-error {
    border-color: rgba(255, 95, 109, 0.65);
}

.byline,
.muted {
    color: var(--muted);
}


.meta-row,
.tags,
.article-actions,
.inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


.badge,
.tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.85rem;
}


.badge.danger {
    background: var(--danger);
    color: white;
}

.tags .tag {
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 800;
}


.tag-unverified {
    background: rgba(242, 193, 78, 0.18) !important;
    color: #ffe39d;
    border-color: rgba(242, 193, 78, 0.48) !important;
}


.tag-verified {
    background: rgba(84, 214, 182, 0.18) !important;
    color: #bffceb;
    border-color: rgba(84, 214, 182, 0.5) !important;
}


.tag-inaccurate {
    background: rgba(255, 95, 109, 0.2) !important;
    color: #ffc5cb;
    border-color: rgba(255, 95, 109, 0.5) !important;
}


.reshare-kicker {
    color: var(--accent);
    font-weight: 900;
}


.reshare-caption {
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    color: #fff6d8 !important;
}

.identity-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}


.identity-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}

.reshare-identity .identity-badges,
.reshare-kicker .identity-badges {
    gap: 0.24rem;
}


.reshare-preview-card .reshare-caption {
    border-left: 3px solid var(--accent);
    padding-left: 9px;
    color: var(--text) !important;
}

.line-clamp-2,
.compact-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-icon,
.icon-action-icon {
    --icon-size: 1.35rem;
    display: inline-grid !important;
    place-items: center;
    width: var(--icon-size);
    height: var(--icon-size);
    overflow: hidden;
    color: currentColor;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -999px;
}


.app-icon::before,
.icon-action-icon::before {
    content: "" !important;
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    background: currentColor;
    -webkit-mask: var(--svg-icon) center / contain no-repeat;
    mask: var(--svg-icon) center / contain no-repeat;
}


.icon-home { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 11.2 12 4l8 7.2V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1v-8.8Z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-local { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s7-6.4 7-12A7 7 0 1 0 5 9c0 5.6 7 12 7 12Z' fill='none' stroke='black' stroke-width='2.2'/%3E%3Ccircle cx='12' cy='9' r='2.6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }

.icon-create { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-studio { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 20 4.6-1 10-10a2.1 2.1 0 0 0-3-3l-10 10L4 20Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='m14 6 4 4' stroke='black' stroke-width='2.1'/%3E%3C/svg%3E"); }

.icon-profile { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-settings { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 8.4a3.6 3.6 0 1 0 0 7.2 3.6 3.6 0 0 0 0-7.2Z' fill='none' stroke='black' stroke-width='2.1'/%3E%3Cpath d='m19 12 .9-2-2-3.4-2.2.3a7 7 0 0 0-1.5-.9L13.2 4H10.8L9.9 6a7 7 0 0 0-1.5.9l-2.2-.3-2 3.4.9 2-.9 2 2 3.4 2.2-.3c.5.4 1 .7 1.5.9l.9 2h2.4l.9-2c.5-.2 1-.5 1.5-.9l2.2.3 2-3.4-.8-2Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-search { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.3'/%3E%3Cpath d='m16 16 5 5' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-notification { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 9a6 6 0 1 0-12 0c0 7-2.5 7-2.5 9h17S18 16 18 9Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M9.5 21a3 3 0 0 0 5 0' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-like,
[data-action-kind="article-like"] .icon-action-icon,
.icon-action[title="Like"] .icon-action-icon,
.icon-action[title="Article Like"] .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20.5S4 15.8 4 9.4A4.4 4.4 0 0 1 12 6.8a4.4 4.4 0 0 1 8 2.6c0 6.4-8 11.1-8 11.1Z' fill='none' stroke='black' stroke-width='2.15' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-dislike,
[data-action-kind="article-dislike"] .icon-action-icon,
[data-action-kind="reshare-dislike"] .icon-action-icon,
.icon-action[title*="Dislike"] .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4v14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='m6.5 12.5 5.5 5.5 5.5-5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-comment,
.icon-action[title="Comments"] .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-6l-5 4v-4H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-reshare,
[data-action-kind="reshare-like"] .icon-action-icon,
.icon-action[title="Reshare"] .icon-action-icon,
.icon-action[title="Reshare Like"] .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 3 21 7l-4 4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 11V9a2 2 0 0 1 2-2h16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='m7 21-4-4 4-4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 13v2a2 2 0 0 1-2 2H3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-share,
.share-button .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 12h8M13 7l5 5-5 5' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 5v14h8' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.icon-report,
.icon-action[title="Report"] .icon-action-icon { --svg-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3 22 20H2L12 3Z' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'/%3E%3Cpath d='M12 9v5M12 17.5h.01' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.icon-action,
.icon-action-button {
    color: rgba(255, 255, 255, 0.82);
}


.article-control-bar-clean .icon-action,
.article-control-bar-clean .icon-action-button,
.reshare-actions .icon-action,
.reshare-actions .icon-action-button {
    color: color-mix(in srgb, var(--text) 78%, transparent);
}


.icon-action.active,
.icon-action.active .icon-action-button,
.icon-action-button.active {
    color: var(--accent);
}

.user-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.equipped-badge-fallback {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Public rank system: only Member Rank and Journalist Rank. */
.rank-badge-member {
  background: linear-gradient(135deg, #334155, #64748b, #dbeafe) !important;
  color: #0f1728 !important;
  border: 1px solid rgba(100, 116, 139, 0.45) !important;
}


.rank-badge-journalist {
  background: linear-gradient(135deg, #5d3500, #facc15 45%, #fff3a3 62%, #b45309) !important;
  color: #1b1200 !important;
  border: 1px solid rgba(255, 238, 150, 0.72) !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.22) !important;
}

.user-level-pill,
[data-theme="light"] .user-level-pill,
[data-theme="dark"] .user-level-pill {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.feed {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  background: #07101b;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.feed-page,
.feed-card,
[data-theme="light"] .feed,
[data-theme="light"] .feed-page,
[data-theme="light"] .feed-card {
  background: #07101b !important;
  color: #f8fafc !important;
}

.feed-card {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #07101b;
  color: #f8fafc;
  cursor: pointer;
}

.feed-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #07101b;
}

.feed-media-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.04), rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    radial-gradient(circle at 22% 72%, rgba(242,179,20,0.16), transparent 28%),
    #07111d;
  background-size: 220% 100%, 100% 100%, 100% 100%;
  animation: feed-skeleton-pan 1.35s ease-in-out infinite;
}

@keyframes feed-skeleton-pan {
  from { background-position: 160% 0, center, center; }
  to { background-position: -60% 0, center, center; }
}

.feed-card[data-preload-state="ready"] .feed-media-skeleton,
.feed-card[data-preload-state="failed"] .feed-media-skeleton {
  display: none;
}

.feed-media-backdrop,
.feed-image,
.feed-video {
  position: absolute;
  z-index: 0;
  display: block;
  background: #07101b;
}

.feed-media-backdrop {
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  opacity: 0.46;
  filter: blur(24px) saturate(0.88) brightness(0.72);
  transform: scale(1.04);
}

.feed-image {
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: min(calc(100% - 24px), 1500px);
  max-height: calc(100% - 150px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.34);
  filter: none !important;
  opacity: 1 !important;
}

.feed-video {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: none;
}

.feed-card[data-preload-state="failed"] .feed-image,
.feed-card[data-preload-state="failed"] .feed-media-backdrop,
.feed-card[data-preload-state="failed"] .feed-video {
  display: none;
}

.feed-media::after {
  content: "Media unavailable";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 24% 30%, rgba(242,193,78,0.16), transparent 28%),
    linear-gradient(135deg, #142033, #07101b);
  color: rgba(248,250,252,0.72);
  font-size: 0.92rem;
  font-weight: 900;
}

.feed-card[data-preload-state="failed"] .feed-media::after {
  display: grid;
}

.feed-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 18% 28%, rgba(242,193,78,0.22), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(84,214,182,0.18), transparent 32%),
    linear-gradient(135deg, #27384f, #07101b 64%);
}

.feed-placeholder::before {
  content: none !important;
}

.feed-placeholder-mark {
  position: absolute;
  left: 7vw;
  bottom: 20vh;
  z-index: 0;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 950;
  color: rgba(248,250,252,0.72);
  line-height: 0.9;
  pointer-events: none;
}

.feed-placeholder-topic {
  position: absolute;
  left: 19vw;
  bottom: 13vh;
  z-index: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(242,193,78,0.14);
  border: 1px solid rgba(242,193,78,0.42);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  pointer-events: none;
}

.feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.34) 48%, rgba(0,0,0,0.58)),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.64));
}

.feed-watermark { display: none !important; }

.feed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: end;
  gap: 18px;
  padding: 132px 60px 108px 64px;
  background: transparent;
}

.feed-copy {
  width: min(820px, 100%);
  min-width: 0;
  padding: 16px 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5,10,18,0.82), rgba(5,10,18,0.56) 70%, rgba(5,10,18,0.18));
  backdrop-filter: blur(10px);
}

.feed-title {
  margin: 10px 0 10px;
  color: #f8fafc !important;
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: pretty;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  opacity: 1 !important;
  filter: none !important;
}

.feed-description {
  max-width: 680px;
  margin: 0 0 12px;
  color: rgba(248,250,252,0.92) !important;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.45;
  opacity: 1 !important;
}

.feed-author,
.feed-author a,
.feed-meta,
.feed-copy .byline {
  color: rgba(248,250,252,0.9) !important;
}

.feed-card .tag,
.feed-card .badge,
.feed-card .topic-pill,
.feed-card .location-pill {
  background: rgba(255,255,255,0.14) !important;
  color: #f8fafc !important;
  border-color: rgba(255,255,255,0.22) !important;
}

.feed-card .tag-verified {
  background: rgba(34,197,94,0.18) !important;
  border-color: rgba(134,239,172,0.48) !important;
  color: #dcfce7 !important;
}

.feed-card .tag-breaking {
  background: rgba(242,193,78,0.22) !important;
  border-color: rgba(242,193,78,0.62) !important;
  color: #fff7d6 !important;
}

.feed-card .tag-inaccurate {
  background: rgba(239,68,68,0.2) !important;
  border-color: rgba(252,165,165,0.55) !important;
  color: #fee2e2 !important;
}

.feed-card .tag-unverified-soft {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(248,250,252,0.68) !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
}

.action-rail,
.action-rail-clean {
  align-self: center;
  justify-self: end;
  width: 72px;
  display: grid;
  gap: 10px;
}

.action-rail form,
.action-rail-clean form {
  margin: 0;
}

.feed-card .icon-action,
.feed-card .icon-action-button,
.action-rail button,
.action-rail a {
  min-height: 42px;
  width: 100%;
  display: grid;
  place-items: center;
  background: transparent !important;
  color: #f8fafc !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  cursor: pointer;
}

.feed-card .icon-action-icon {
  font-size: 1.28rem;
  line-height: 1;
}

.feed-card .icon-action-count {
  margin-top: 2px;
  color: #f8fafc !important;
  font-size: 0.78rem;
  font-weight: 900;
}

.view-more-pill {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--accent) !important;
  color: #111827 !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  cursor: pointer;
}

.feed-more-menu {
  position: relative;
  width: 100%;
}

.feed-more-summary {
  cursor: pointer;
  list-style: none;
}

.feed-more-summary::-webkit-details-marker {
  display: none;
}

.feed-more-dots,
.feed-more-dots::before,
.feed-more-dots::after {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.feed-more-dots {
  position: relative;
}

.feed-more-dots::before,
.feed-more-dots::after {
  content: "";
  position: absolute;
  left: 0;
}

.feed-more-dots::before {
  top: -9px;
}

.feed-more-dots::after {
  top: 9px;
}

.feed-more-panel {
  position: absolute;
  right: 76px;
  bottom: 0;
  z-index: 5;
  width: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(5,10,18,0.94);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.feed-more-panel button {
  width: 100% !important;
  min-height: 42px !important;
  display: block !important;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  text-align: left !important;
}

.feed-more-panel button:hover,
.feed-more-panel button:focus-visible {
  background: rgba(255,255,255,0.1) !important;
}

.feed-card.is-hidden-by-feedback {
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.feed-tabs {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  gap: 4px;
  border-radius: 999px;
  padding: 6px;
  background: rgba(5,10,18,0.82) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(12px);
}

.feed-tabs a,
.feed-filter-button {
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(248,250,252,0.78) !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none;
  font-weight: 800;
}

.feed-tabs a.active {
  background: var(--accent) !important;
  color: #111827 !important;
}

[data-theme="light"] .feed-copy h1,
[data-theme="light"] .feed-title,
[data-theme="light"] .feed-copy p,
[data-theme="light"] .feed-description,
[data-theme="light"] .feed-author,
[data-theme="light"] .feed-meta,
[data-theme="light"] .feed-card .byline {
  color: #f8fafc !important;
}

@media (max-width: 900px) {
  .feed-overlay {
    grid-template-columns: minmax(0, 1fr) 68px;
    padding: 118px 16px 100px 18px;
  }

  .feed-title {
    font-size: clamp(1.7rem, 9vw, 3rem);
  }

  .action-rail,
  .action-rail-clean {
    width: 62px;
  }

  .feed-more-panel {
    right: 66px;
    width: min(216px, calc(100vw - 104px));
  }

  .feed-placeholder-mark {
    left: 7vw;
    bottom: 23vh;
    font-size: clamp(3.6rem, 18vw, 7rem);
  }

  .feed-placeholder-topic {
    left: 40vw;
    bottom: 15vh;
  }
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 96px;
  display: flex;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 520px) {
  .feed-overlay {
    grid-template-columns: minmax(0, 1fr) 56px;
    padding: 112px 10px 94px 14px;
  }

  .feed-title {
    font-size: clamp(1.45rem, 8.4vw, 2.45rem);
  }

  .feed-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .action-rail,
  .action-rail-clean {
    width: 52px;
    gap: 7px;
  }

  .feed-more-panel {
    right: 56px;
    width: min(208px, calc(100vw - 84px));
  }

  .view-more-pill {
    width: max-content;
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.74rem;
  }
}

.topbar {
  z-index: 1000 !important;
  height: 64px;
  min-height: 64px;
  background: rgba(7, 16, 27, 0.92) !important;
  backdrop-filter: blur(16px);
}

.top-icons {
  position: relative;
  z-index: 1001 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.top-icons a {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 50%;
  text-decoration: none;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="light"] .top-icons a {
  color: #0f1728 !important;
  background: rgba(15, 23, 40, 0.06) !important;
}

.feed-tabs {
  z-index: 900;
}

.location-feed-banner {
  position: fixed;
  top: 124px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 890;
  width: min(520px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(7, 16, 27, 0.88);
  border: 1px solid rgba(242, 193, 78, 0.32);
  color: rgba(248, 250, 252, 0.88);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.location-feed-banner p {
  margin: 0;
  flex: 1;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.88rem;
  line-height: 1.25;
}

.location-feed-banner a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.location-feed-banner.warning {
  border-color: rgba(255, 109, 109, 0.45);
}

.location-banner-close {
  background: transparent !important;
  border: 0;
  color: rgba(248, 250, 252, 0.72) !important;
  padding: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.location-feed-banner.is-hidden {
  display: none !important;
}

.bottom-nav {
  z-index: 1000 !important;
}

.top-action .app-icon,
.bottom-nav .app-icon,
.icon-action-icon {
  --icon-size: 1.18rem;
  position: relative !important;
  display: inline-grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  width: var(--icon-size) !important;
  height: var(--icon-size) !important;
  overflow: hidden !important;
  color: currentColor !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
}

.top-action .app-icon::before,
.bottom-nav .app-icon::before,
.icon-action-icon::before {
  content: "" !important;
  display: block !important;
  width: var(--icon-size) !important;
  height: var(--icon-size) !important;
  background: currentColor !important;
  -webkit-mask: var(--svg-icon) center / contain no-repeat !important;
  mask: var(--svg-icon) center / contain no-repeat !important;
}

.bottom-nav {
  left: 50% !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: min(520px, calc(100% - 22px)) !important;
  transform: translateX(-50%) !important;
}

.bottom-nav a,
.bottom-nav-item {
  display: grid !important;
  flex: 1 1 0 !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 6px 8px !important;
  text-align: center !important;
}

.bottom-nav a small,
.bottom-nav-item small {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.topbar {
  background: rgba(5, 12, 22, 0.96) !important;
}

.empty-state,
.empty-state h1,
.empty-state p {
  color: #f8fafc !important;
}

.bottom-nav a,
.bottom-nav-item {
  color: #e6edf8 !important;
}

.bottom-nav a small,
.bottom-nav-item small {
  color: currentColor !important;
}

.bottom-nav a.active,
.bottom-nav-item.active {
  background: #f2b51e !important;
  color: #111827 !important;
}

[data-theme="light"] .brand {
  color: #8a5b00 !important;
  text-shadow: none !important;
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.98) !important;
}

[data-theme="light"] .empty-state,
[data-theme="light"] .empty-state h1,
[data-theme="light"] .empty-state p {
  color: #0f1728 !important;
}

[data-theme="light"] .bottom-nav a,
[data-theme="light"] .bottom-nav-item {
  color: #334155 !important;
}

[data-theme="light"] .bottom-nav a.active,
[data-theme="light"] .bottom-nav-item.active {
  background: #d49610 !important;
  color: #111827 !important;
}

.page-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 38%, rgba(242, 181, 30, 0.18), transparent 30%),
    rgba(5, 12, 22, 0.94);
  color: #f8fafc;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

body.is-page-loading .page-loading-screen {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0s;
}

body.is-page-loading-pending .page-loading-screen {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease 150ms, visibility 0s linear 150ms;
}

.page-loader-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 8px;
  align-items: end;
  min-height: 48px;
}

.page-loader-mark span {
  display: block;
  width: 16px;
  min-height: 16px;
  border-radius: 999px;
  background: #ffd166;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.45);
  animation: page-loader-bounce 780ms ease-in-out infinite;
}

.page-loader-mark span:nth-child(2) {
  animation-delay: 120ms;
}

.page-loader-mark span:nth-child(3) {
  animation-delay: 240ms;
}

.page-loader-copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.page-loader-copy strong {
  color: #ffd166;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.page-loader-copy small {
  color: #f8fafc !important;
  font-size: 0.86rem;
  font-weight: 800;
}

[data-theme="light"] .page-loading-screen {
  background:
    radial-gradient(circle at 50% 38%, rgba(212, 150, 16, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.96);
  color: #0f1728;
}

[data-theme="light"] .page-loader-mark span {
  background: #d49610;
  box-shadow: 0 0 18px rgba(212, 150, 16, 0.35);
}

[data-theme="light"] .page-loader-copy strong {
  color: #8a5b00;
}

[data-theme="light"] .page-loader-copy small {
  color: #334155 !important;
}

@keyframes page-loader-bounce {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.72;
  }
  45% {
    transform: translateY(-14px) scaleY(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-mark span {
    animation: none;
  }
}

/* Final light-mode feed fix: keep empty feeds readable instead of inheriting the cinematic dark surface. */
[data-theme="light"] main:has(.feed),
[data-theme="light"] .feed,
[data-theme="light"] .feed-page {
  background: #f6f7fb !important;
  color: #0f1728 !important;
}

[data-theme="light"] .feed:not(:has(.feed-card)) {
  background: #f6f7fb !important;
}

[data-theme="light"] .feed .empty-state,
[data-theme="light"] .feed .empty-state h1,
[data-theme="light"] .feed .empty-state p {
  color: #0f1728 !important;
  opacity: 1 !important;
}

[data-theme="light"] .feed-tabs a:not(.active),
[data-theme="light"] .feed-filter-button {
  color: #334155 !important;
}

[data-theme="light"] .feed-tabs a.active {
  color: #111827 !important;
}

.notification-top-action {
  position: relative !important;
}

.notification-count {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 1.25rem !important;
  min-height: 1.25rem !important;
  padding: 0 0.34rem !important;
  border-radius: 999px !important;
  background: var(--danger, #ff5f7a) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Feed route loads a smaller CSS bundle, so it needs its own mobile overflow guard. */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  position: relative !important;
}

main,
.topbar,
.bottom-nav,
.feed,
.feed-page,
.feed-card,
.flash-wrap {
  max-width: 100% !important;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

@supports (overflow: clip) {
  html,
  body,
  main {
    overflow-x: clip !important;
  }
}

/* Lighthouse contrast pass: feed tabs sit over rich media, so keep labels fully legible. */
.feed-tabs a,
.feed-filter-button {
  color: #f8fafc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.68);
}

.feed-tabs a.active {
  background: #ffd166 !important;
  color: #111827 !important;
  text-shadow: none;
}

[data-theme="light"] .feed-tabs a:not(.active),
[data-theme="light"] .feed-filter-button {
  color: #0f1728 !important;
  text-shadow: none;
}

[data-theme="light"] .feed-tabs a.active {
  background: #d49610 !important;
  color: #111827 !important;
}

body {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

.policies-help {
  position: relative;
  flex: 0 0 auto;
}

.policies-help-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  width: min(430px, calc(100vw - 28px));
  max-height: min(76svh, 720px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 96%, black);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.policies-help-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.policies-help-heading h2,
.policies-help-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.policies-help-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.policies-help-list {
  display: grid;
  gap: 8px;
}

.policies-help-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.policies-help-item:hover,
.policies-help-item:focus-visible {
  border-color: var(--line);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.policies-help-item-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.policies-help-item strong,
.policies-help-item small {
  display: block;
  min-width: 0;
}

.policies-help-item small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.policies-help-support {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.policies-help-support a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .policies-help.is-open .policies-help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1240;
    display: block;
    background: rgba(0, 0, 0, 0.45);
  }

  .policies-help-panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(80svh, 720px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
  }

  body.policies-help-open {
    overflow: hidden !important;
  }
}

/* Feed header repair: the slim feed bundle must match the full app header. */
.topbar {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: auto !important;
  min-height: 58px !important;
  padding: 9px clamp(12px, 2vw, 20px) !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 58vw !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.brand::before {
  content: "" !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 1.18rem !important;
  height: 1.18rem !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4h10a3 3 0 0 1 3 3v12H8a3 3 0 0 1-3-3V5a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4h10a3 3 0 0 1 3 3v12H8a3 3 0 0 1-3-3V5a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.top-icons {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin-left: auto !important;
}

.top-icons a.top-action,
.top-action {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(230px, 42vw) !important;
  height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.top-action-label {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.notification-count {
  position: absolute !important;
  top: -6px !important;
  right: -4px !important;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 54px !important;
    padding: 8px 10px !important;
  }

  .brand {
    max-width: 54vw !important;
  }

  .top-action-label {
    display: none !important;
  }

  .top-icons a.top-action,
  .top-action {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
  }
}

/* Final feed navigation safety pass: text-only tabs and non-overlapping header actions. */
.feed-tabs {
  position: fixed !important;
  top: 82px !important;
  left: 50% !important;
  right: auto !important;
  z-index: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 3vw, 30px) !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.feed-tabs a,
.feed-filter-button,
.feed-tabs a.active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78) !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}

.feed-tabs a.active {
  color: #ffd166 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 8px !important;
}

[data-theme="light"] .feed-tabs a,
[data-theme="light"] .feed-filter-button,
[data-theme="light"] .feed-tabs a.active {
  color: #0f1728 !important;
  text-shadow: none !important;
}

[data-theme="light"] .feed-tabs a.active {
  color: #8a5b00 !important;
}

.top-icons {
  flex: 0 0 auto !important;
  max-width: 45vw !important;
  overflow: visible !important;
}

.top-icons a.top-action,
.top-action,
.top-icons a.notification-top-action {
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: visible !important;
}

.top-action-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.notification-count {
  top: -5px !important;
  right: -5px !important;
  z-index: 2 !important;
}

@media (max-width: 720px) {
  .feed-tabs {
    top: 70px !important;
    gap: 18px !important;
    max-width: calc(100% - 18px) !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    scrollbar-width: none !important;
  }

  .feed-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .feed-tabs a,
  .feed-filter-button,
  .feed-tabs a.active {
    font-size: 0.92rem !important;
  }

  .brand {
    max-width: calc(100vw - 116px) !important;
  }

  .top-icons {
    gap: 6px !important;
    max-width: 88px !important;
  }

  .top-icons a.top-action,
  .top-action,
  .top-icons a.notification-top-action {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}

/* UI cleanup bugfix pass: feed bundle policy/help and safe-area repairs. */
body {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 32px) !important;
}

.policies-help-svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.policies-help-panel {
  width: clamp(420px, 34vw, 460px) !important;
  max-width: calc(100vw - 24px) !important;
  overflow-x: hidden !important;
}

.policies-help-item {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: flex-start !important;
  min-height: 64px !important;
}

.policies-help-item-icon {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
}

.policies-help-item strong,
.policies-help-item small {
  overflow-wrap: anywhere;
  white-space: normal !important;
}

@media (max-width: 720px) {
  .policies-help-panel {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 80svh !important;
  }
}

/* Reliable Policies & Help menu for the feed bundle. */
.tds-help-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.top-action.tds-help-menu__trigger {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  cursor: pointer;
}

.tds-help-menu__svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tds-help-menu__panel[hidden],
.tds-help-menu__backdrop {
  display: none !important;
}

.tds-help-menu__panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 9999;
  display: grid;
  gap: 16px;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 96px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 96%, #050c16);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  writing-mode: horizontal-tb !important;
}

.tds-help-menu__panel *,
.tds-help-menu__panel *::before,
.tds-help-menu__panel *::after {
  box-sizing: border-box;
  writing-mode: horizontal-tb !important;
}

.tds-help-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tds-help-menu__header h2,
.tds-help-menu__section h3 {
  margin: 0;
  letter-spacing: 0;
}

.tds-help-menu__header h2 {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.tds-help-menu__close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.tds-help-menu__close:hover,
.tds-help-menu__close:focus-visible,
.tds-help-menu__item:hover,
.tds-help-menu__item:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 13%, rgba(255, 255, 255, 0.06));
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.tds-help-menu__section {
  display: grid;
  gap: 10px;
}

.tds-help-menu__section h3 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.tds-help-menu__list {
  display: grid;
  gap: 8px;
}

.tds-help-menu__item,
.tds-help-menu__item:visited {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.tds-help-menu__icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.tds-help-menu__text {
  display: block;
  min-width: 0;
}

.tds-help-menu__title,
.tds-help-menu__desc {
  display: block;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.tds-help-menu__title {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.2;
}

.tds-help-menu__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.tds-help-menu__footer {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

.tds-help-menu__footer strong {
  color: var(--text);
  line-height: 1.2;
}

.tds-help-menu__footer a,
.tds-help-menu__footer a:visited {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: none;
}

[data-theme="light"] .tds-help-menu__panel {
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 40, 0.2);
}

@media (max-width: 700px) {
  body.tds-help-menu-open .tds-help-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: block !important;
    background: rgba(0, 0, 0, 0.58);
  }

  .tds-help-menu__panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 82svh;
    padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  body.tds-help-menu-open {
    overflow: hidden !important;
  }

  .tds-help-menu__item {
    min-height: 72px;
  }
}

/* Controlled feed/article hero media layout. */
.feed-card {
  display: block !important;
  min-height: 100svh !important;
  height: 100svh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 72% 34%, rgba(242, 193, 78, 0.13), transparent 34%),
    linear-gradient(135deg, #07101b 0%, #0d1726 52%, #050a12 100%) !important;
}

.feed-card::before {
  z-index: 0 !important;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.08)) !important;
  pointer-events: none;
}

.feed-hero {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 540px) minmax(360px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 32px 116px 40px 48px;
}

.feed-hero__content,
.feed-copy {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 0;
  padding: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px !important;
  background: rgba(7, 12, 22, 0.82) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  color: #f8fafc !important;
}

.feed-hero__media {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-hero__media-frame,
.feed-media {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  width: min(100%, 860px) !important;
  height: min(68svh, 640px) !important;
  min-height: 320px;
  max-height: 68svh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.feed-media-backdrop,
.feed-hero__media-backdrop {
  position: absolute !important;
  inset: -18px !important;
  z-index: 0 !important;
  width: calc(100% + 36px) !important;
  height: calc(100% + 36px) !important;
  object-fit: cover !important;
  opacity: 0.28 !important;
  filter: blur(14px) saturate(1.05) brightness(0.72) !important;
  transform: scale(1.05) !important;
  pointer-events: none;
}

.feed-image,
.feed-video,
.feed-hero__media-image {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  z-index: 2 !important;
  display: block !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.feed-image:not(.feed-placeholder) {
  width: min(100%, var(--media-width, 100%)) !important;
  height: min(100%, var(--media-height, 100%)) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

img.feed-image:not(.feed-placeholder):not([src]),
img.feed-image:not(.feed-placeholder)[src=""],
img.feed-media-backdrop:not([src]),
img.feed-media-backdrop[src=""] {
  opacity: 0 !important;
  visibility: hidden;
}

.feed-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.feed-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center;
  background:
    radial-gradient(circle at 24% 24%, rgba(242, 193, 78, 0.26), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(84, 214, 182, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(39, 56, 79, 0.92), rgba(7, 16, 27, 0.98)) !important;
}

.feed-placeholder::after {
  content: "The Daily Scroll";
  color: rgba(248, 250, 252, 0.66);
  font-weight: 950;
  letter-spacing: 0;
}

.feed-overlay {
  position: static !important;
  inset: auto !important;
  display: contents !important;
  padding: 0 !important;
  background: transparent !important;
}

.feed-card > .feed-hero__actions,
.feed-card > .action-rail,
.feed-card > .action-rail-clean {
  position: absolute !important;
  top: 50%;
  right: 22px;
  z-index: 4;
  transform: translateY(-50%);
  align-self: auto !important;
  justify-self: auto !important;
  width: 72px;
}

@media (max-width: 899px) {
  .feed-card {
    height: auto !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .feed-hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 116px 16px 112px;
  }

  .feed-hero__content,
  .feed-copy {
    order: 2;
    max-width: 100% !important;
    padding: 18px 76px 20px 16px !important;
    border-radius: 20px !important;
    background: rgba(7, 12, 22, 0.82) !important;
  }

  .feed-hero__media {
    order: 1;
  }

  .feed-hero__media-frame,
  .feed-media {
    width: 100% !important;
    height: clamp(180px, 42svh, 360px) !important;
    min-height: 180px;
    max-height: 42svh;
    border-radius: 20px;
  }

  .feed-card > .feed-hero__actions,
  .feed-card > .action-rail,
  .feed-card > .action-rail-clean {
    top: calc(116px + clamp(180px, 42svh, 360px) + 18px);
    right: 12px;
    bottom: auto;
    width: 52px;
    transform: none;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .feed-hero {
    grid-template-columns: minmax(320px, 460px) minmax(360px, 1fr);
    padding-right: 104px;
    padding-left: 32px;
  }

  .feed-hero__content,
  .feed-copy {
    padding: 24px !important;
  }
}

/* Unified mobile-plus feed card layout. */
.feed-card {
  display: grid !important;
  place-items: center !important;
  padding: 124px 18px 104px !important;
}

.feed-item-shell {
  position: relative;
  z-index: 3;
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  display: block;
}

.feed-story-card.feed-hero,
.feed-hero.feed-story-card {
  width: 100% !important;
  max-width: 760px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px !important;
  background: rgba(7, 12, 22, 0.9) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feed-story-card.feed-hero:hover,
  .feed-hero.feed-story-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
  }
}

.feed-card__media.feed-hero__media,
.feed-hero__media.feed-card__media {
  order: 1;
  width: 100%;
  display: block;
}

.feed-card__content.feed-hero__content,
.feed-hero__content.feed-card__content,
.feed-story-card .feed-copy {
  order: 2;
  width: 100% !important;
  max-width: none !important;
  padding: 18px 22px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.feed-story-card .feed-hero__media-frame,
.feed-story-card .feed-media {
  width: 100% !important;
  height: clamp(190px, 26vw, 340px) !important;
  min-height: 190px !important;
  max-height: 34svh !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 !important;
  box-shadow: none !important;
}

.feed-story-card .feed-title {
  margin: 10px 0 10px;
  font-size: clamp(1.85rem, 2.6vw, 3rem);
  line-height: 1.02;
  -webkit-line-clamp: 3;
}

.feed-story-card .feed-description {
  max-width: 90%;
  margin-bottom: 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-story-card .feed-author {
  margin-bottom: 10px;
}

.feed-story-card .tags {
  margin-top: 10px;
}

.feed-story-card .view-more-pill {
  margin-top: 10px;
}

.feed-item__actions.feed-hero__actions,
.feed-item-shell > .action-rail,
.feed-item-shell > .action-rail-clean {
  position: absolute !important;
  top: calc(clamp(190px, 26vw, 340px) + 22px);
  right: 12px;
  bottom: auto;
  width: 52px;
  z-index: 5;
  transform: none;
}

@media (min-width: 768px) {
  .feed-card {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  .feed-item-shell {
    width: min(860px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: minmax(0, 760px) 64px;
    align-items: center;
    gap: 18px;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean {
    position: static !important;
    top: auto;
    right: auto;
    width: 64px;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .feed-card {
    padding: 124px 48px 104px !important;
  }

  .feed-item-shell {
    width: min(920px, calc(100vw - 96px));
  }
}

@media (max-width: 767px) {
  .feed-card {
    place-items: start center !important;
    padding: 104px 16px 104px !important;
  }

  .feed-item-shell {
    width: 100%;
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    max-width: 100% !important;
    border-radius: 20px !important;
  }

  .feed-story-card .feed-hero__media-frame,
  .feed-story-card .feed-media {
    height: clamp(170px, 36svh, 320px) !important;
    min-height: 170px !important;
    max-height: 36svh !important;
  }

  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy {
    padding: 16px 76px 18px 16px !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean {
    top: calc(clamp(170px, 36svh, 320px) + 18px);
    right: 12px;
  }

  .feed-story-card .feed-title {
    font-size: clamp(1.45rem, 7.6vw, 2.3rem);
  }

  .feed-story-card .feed-description {
    max-width: 100%;
  }
}

/* Premium public action icon system for the feed route. */
.tds-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.article-action .icon-action-icon::before,
.article-action .feed-more-dots,
.article-action .feed-more-dots::before,
.article-action .feed-more-dots::after,
.bottom-nav .app-icon::before {
  content: none !important;
  display: none !important;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-actions--rail {
  width: 68px;
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
}

.article-actions .article-action,
.article-actions .article-action__button {
  width: 58px !important;
  min-width: 58px !important;
  min-height: 66px !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248,250,252,0.9) !important;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  --action-accent: #f8fafc;
  --tds-icon-fill: 0;
}

.article-action__button {
  color: inherit !important;
}

.article-action__icon,
.article-actions .icon-action-icon {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22,31,46,0.9), rgba(8,13,22,0.84));
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  color: currentColor !important;
  overflow: visible;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.article-action__svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  color: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.28));
}

.article-action__count,
.article-actions .icon-action-count {
  min-height: 15px;
  margin: 0 !important;
  color: currentColor !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.article-action small {
  margin-top: -2px;
  color: rgba(248,250,252,0.72) !important;
  font-size: 0.64rem !important;
  font-weight: 900;
  line-height: 1;
}

.article-action--like.active,
.article-action--like.is-active {
  --action-accent: #ff4f86;
  --tds-icon-fill: 1;
  color: var(--action-accent) !important;
}

.article-action--dislike.active,
.article-action--dislike.is-active {
  --action-accent: #7db4ff;
  --tds-icon-fill: 1;
  color: var(--action-accent) !important;
}

.article-action--repost.active,
.article-action--repost.is-active {
  --action-accent: #54d6b6;
  --tds-icon-fill: 1;
  color: var(--action-accent) !important;
}

.article-action.active .article-action__icon,
.article-action.is-active .article-action__icon,
.article-action.active .icon-action-icon,
.article-action.is-active .icon-action-icon {
  border-color: color-mix(in srgb, var(--action-accent) 72%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--action-accent) 22%, rgba(15,23,42,0.92)), rgba(15,23,42,0.84));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--action-accent) 22%, rgba(0,0,0,0.32)), inset 0 1px 0 rgba(255,255,255,0.12);
}

.article-action.active .article-action__svg,
.article-action.is-active .article-action__svg {
  animation: article-action-pop 320ms cubic-bezier(.2, .9, .24, 1.25);
}

@keyframes article-action-pop {
  0% { transform: scale(0.82); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .article-action:hover .article-action__icon,
  .article-action:hover .icon-action-icon,
  .article-action__button:hover .article-action__icon,
  .article-action__button:hover .icon-action-icon {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 16px 34px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14);
  }

  .article-action[title],
  .article-action__button[title],
  .feed-more-summary[title] {
    position: relative;
  }

  .article-action[title]::after,
  .article-action__button[title]::after,
  .feed-more-summary[title]::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 12px;
    z-index: 20;
    width: max-content;
    max-width: 150px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    background: rgba(5,10,18,0.94);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 140ms ease 280ms, transform 140ms ease 280ms;
  }

  .article-action:hover::after,
  .article-action__button:hover::after,
  .feed-more-summary:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
}

.article-action:active .article-action__icon,
.article-action:active .icon-action-icon,
.article-action__button:active .article-action__icon,
.article-action__button:active .icon-action-icon {
  transform: scale(0.94);
}

.article-action:focus-visible,
.article-action__button:focus-visible,
.feed-more-summary:focus-visible {
  outline: 3px solid rgba(255,209,102,0.72);
  outline-offset: 4px;
}

.feed-item-shell > .article-actions--rail {
  right: clamp(12px, 2.8vw, 24px);
  width: 64px;
}

@media (min-width: 768px) {
  .feed-item-shell {
    grid-template-columns: minmax(0, 760px) 68px !important;
    gap: clamp(18px, 2.2vw, 28px) !important;
  }

  .feed-item-shell > .article-actions--rail {
    width: 68px;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .article-actions--rail {
    gap: 9px;
    width: 52px;
  }

  .article-actions .article-action,
  .article-actions .article-action__button {
    width: 50px !important;
    min-width: 50px !important;
    min-height: 58px !important;
  }

  .article-action__icon,
  .article-actions .icon-action-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }

  .article-action__svg {
    width: 23px;
    height: 23px;
  }

  .article-action__count,
  .article-actions .icon-action-count {
    font-size: 0.76rem !important;
  }
}

.feed-more-menu {
  position: relative;
  width: 58px;
}

.feed-more-menu[open] > .feed-more-summary .article-action__icon {
  border-color: rgba(255,209,102,0.58);
  background: rgba(255,209,102,0.16);
  color: #ffd166 !important;
}

.feed-more-panel {
  right: 74px !important;
  bottom: 0 !important;
  width: min(260px, calc(100vw - 104px)) !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 14px !important;
  background: rgba(7,12,21,0.96) !important;
  box-shadow: 0 20px 52px rgba(0,0,0,0.34) !important;
  backdrop-filter: blur(18px);
}

.feed-more-panel button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.feed-more-panel button:hover,
.feed-more-panel button:focus-visible {
  background: rgba(255,255,255,0.09) !important;
  outline: none;
}

.feed-menu-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.bottom-nav {
  gap: 7px !important;
  padding: 8px !important;
  border-radius: 24px !important;
  background: rgba(10,16,27,0.9) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav-item {
  min-height: 54px !important;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 18px !important;
  --tds-icon-fill: 0;
}

.bottom-nav .app-icon {
  width: 30px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center;
  overflow: visible;
  text-indent: 0 !important;
}

.bottom-nav-svg {
  width: 23px;
  height: 23px;
}

.bottom-nav a small,
.bottom-nav-item small {
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

.bottom-nav a.active,
.bottom-nav-item.active {
  --tds-icon-fill: 1;
  border-color: rgba(255,209,102,0.46);
  background: linear-gradient(180deg, #ffd166, #f2b51e) !important;
  color: #111827 !important;
  box-shadow: 0 10px 24px rgba(242,181,30,0.28);
}

[data-theme="light"] .article-action__icon,
[data-theme="light"] .article-actions .icon-action-icon {
  border-color: rgba(15,23,40,0.14);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(15,23,40,0.14), inset 0 1px 0 rgba(255,255,255,0.74);
}

[data-theme="light"] .article-actions .article-action,
[data-theme="light"] .article-actions .article-action__button {
  color: rgba(15,23,40,0.86) !important;
}

[data-theme="light"] .feed-more-panel {
  border-color: rgba(15,23,40,0.12) !important;
  background: rgba(255,255,255,0.96) !important;
}

[data-theme="light"] .feed-more-panel button {
  color: #0f1728 !important;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 18px 42px rgba(15,23,40,0.16);
}

@media (prefers-reduced-motion: reduce) {
  .article-action.active .article-action__svg,
  .article-action.is-active .article-action__svg {
    animation: none;
  }
}

/* Mobile feed bottom-nav clearance: keep article controls above the fixed nav. */
:root {
  --mobile-bottom-nav-height: 86px;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-bottom-nav-clearance: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px);
}

.has-bottom-nav {
  padding-bottom: var(--mobile-bottom-nav-clearance) !important;
}

.scroll-container-with-bottom-nav {
  padding-bottom: var(--mobile-bottom-nav-clearance) !important;
  scroll-padding-bottom: var(--mobile-bottom-nav-clearance) !important;
}

.score-debug {
  display: none !important;
}

@media (max-width: 768px) {
  html,
  body {
    min-height: 100svh;
  }

  main,
  .has-bottom-nav main {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 48px) !important;
  }

  .feed,
  .feed-page,
  .feed-stage,
  .feed-scroll {
    height: 100svh;
    padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 48px) !important;
    scroll-padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px) !important;
  }

  .feed-card,
  .feed-item-shell {
    scroll-padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px) !important;
  }

  .feed-card {
    min-height: 100svh !important;
    height: auto !important;
    overflow: visible !important;
    padding: 96px 14px calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 64px) !important;
  }

  .feed-item-shell {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 18px);
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    max-height: none !important;
  }

  .feed-story-card .feed-hero__media-frame,
  .feed-story-card .feed-media,
  .feed-card__media {
    height: clamp(150px, 32svh, 280px) !important;
    min-height: 150px !important;
    max-height: 36svh !important;
  }

  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy,
  .feed-card__body {
    padding: 14px 68px calc(24px + var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom)) 14px !important;
  }

  .feed-story-card .feed-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0;
    font-size: clamp(1.28rem, 6.4vw, 1.9rem);
    line-height: 1.08;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .feed-story-card .feed-description {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .feed-story-card .feed-author,
  .feed-story-card .tags {
    margin-bottom: 8px;
  }

  .feed-story-card .tags {
    margin-top: 8px;
  }

  .feed-story-card .view-more-pill {
    position: relative;
    z-index: 7;
    margin-top: 8px;
    margin-bottom: 0;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    top: calc(clamp(150px, 32svh, 280px) + 16px) !important;
    right: 10px !important;
    bottom: auto !important;
    max-height: calc(100svh - var(--mobile-bottom-nav-height) - var(--mobile-safe-bottom) - 132px);
    overflow: visible;
  }

  .article-actions--rail {
    gap: clamp(5px, 1svh, 8px);
  }

  .article-actions .article-action,
  .article-actions .article-action__button {
    min-height: 52px !important;
  }

  .article-action__icon,
  .article-actions .icon-action-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
  }

  .feed-more-panel {
    bottom: auto !important;
    top: 0 !important;
    max-height: calc(100svh - var(--mobile-bottom-nav-height) - var(--mobile-safe-bottom) - 48px);
    overflow-y: auto;
  }
}

@media (max-width: 768px) and (max-height: 720px) {
  .feed-card {
    padding-top: 86px !important;
  }

  .feed-story-card .feed-hero__media-frame,
  .feed-story-card .feed-media,
  .feed-card__media {
    height: clamp(132px, 28svh, 230px) !important;
    min-height: 132px !important;
    max-height: 32svh !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    top: calc(clamp(132px, 28svh, 230px) + 14px) !important;
  }
}

@media (max-width: 768px) {
  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    top: clamp(142px, 22svh, 206px) !important;
    right: 26px !important;
    width: 50px !important;
    transform: translateX(-34px) !important;
  }

  .article-actions--rail {
    gap: clamp(3px, 0.7svh, 6px) !important;
  }

  .article-actions .article-action,
  .article-actions .article-action__button,
  .feed-more-menu {
    width: 48px !important;
    min-width: 48px !important;
  }

  .article-actions .article-action,
  .article-actions .article-action__button {
    min-height: 48px !important;
  }

  .article-action__icon,
  .article-actions .icon-action-icon {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
  }

  .article-action__count,
  .article-actions .icon-action-count {
    max-width: 48px;
    overflow: hidden;
    font-size: 0.68rem !important;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 768px) and (max-height: 720px) {
  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    top: clamp(120px, 18svh, 158px) !important;
  }
}

/* Mobile feed card redesign: content-sized card with an overlaid action rail. */
.feed-author-avatar,
.feed-author-role {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--mobile-bottom-nav-clearance) !important;
  }

  main,
  .has-bottom-nav main {
    padding-bottom: 0 !important;
  }

  .feed-tabs {
    position: sticky !important;
    top: var(--site-header-height, 64px) !important;
    left: auto !important;
    z-index: 950 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(5, 12, 22, 0.96) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transform: none !important;
    backdrop-filter: blur(14px);
    overflow-x: auto;
    pointer-events: auto !important;
    scrollbar-width: none;
  }

  .feed-tabs::-webkit-scrollbar {
    display: none;
  }

  .feed-tabs a,
  .feed-filter-button,
  .feed-tabs a.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap;
  }

  .feed,
  .feed-page,
  .feed-stage,
  .feed-scroll {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 0 calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px) !important;
    scroll-padding-bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px) !important;
    scroll-snap-type: none !important;
    background: #07101b !important;
  }

  .feed-card {
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 12px 24px !important;
    padding: 0 !important;
    border-radius: 26px !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
    scroll-padding-bottom: 0 !important;
    background: transparent !important;
  }

  .feed-card::before {
    display: none !important;
  }

  .feed-item-shell {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    padding: 0 !important;
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 26px !important;
    background: rgba(7, 12, 22, 0.94) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32) !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
  }

  .feed-card__media.feed-hero__media,
  .feed-hero__media.feed-card__media {
    order: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  .feed-story-card .feed-hero__media-frame,
  .feed-story-card .feed-media,
  .feed-card__media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: #0b1422 !important;
  }

  .feed-card[data-media-shape="vertical"] .feed-hero__media-frame,
  .feed-card[data-media-shape="vertical"] .feed-media {
    aspect-ratio: 4 / 5 !important;
  }

  .feed-media-backdrop,
  .feed-hero__media-backdrop {
    display: none !important;
  }

  .feed-image,
  .feed-video,
  .feed-hero__media-image {
    position: absolute !important;
    inset: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .feed-card .feed-image:not(.feed-placeholder),
  .feed-card img.feed-image:not(.feed-placeholder),
  .feed-card .feed-video,
  .feed-card video.feed-video,
  .feed-story-card .feed-hero__media-image:not(.feed-placeholder) {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .feed-placeholder {
    position: absolute !important;
    inset: 0 !important;
  }

  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy,
  .feed-card__body {
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 18px 68px 24px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .reshare-feed-card .reshare-kicker {
    align-items: center;
    gap: 8px !important;
    margin: 0 0 6px !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
  }

  .reshare-feed-card .reshare-kicker .identity-badges {
    display: none !important;
  }

  .reshare-feed-card .reshare-caption {
    margin: 0 0 8px !important;
    padding-left: 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 1 !important;
  }

  .reshare-feed-card .feed-story-card .feed-description {
    -webkit-line-clamp: 2 !important;
  }

  .feed-meta,
  .feed-card .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    min-width: 0;
    margin: 0 0 8px;
  }

  .feed-card .tag,
  .feed-card .badge,
  .feed-card .topic-pill,
  .feed-card .location-pill {
    min-height: 25px;
    padding: 5px 9px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
  }

  .feed-story-card .feed-title,
  .feed-title {
    display: -webkit-box !important;
    width: 100%;
    min-width: 0;
    margin: 7px 0 8px !important;
    overflow: hidden !important;
    color: #f8fafc !important;
    font-size: clamp(30px, 8vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  .feed-story-card .feed-description,
  .feed-description {
    display: -webkit-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    overflow: hidden !important;
    color: rgba(248, 250, 252, 0.9) !important;
    font-size: clamp(18px, 4.8vw, 20px) !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
  }

  .feed-story-card .feed-author,
  .feed-author {
    display: flex !important;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 7px !important;
    color: rgba(248, 250, 252, 0.76) !important;
    font-size: 0.86rem !important;
    font-weight: 850 !important;
    line-height: 1.2;
  }

  .feed-author-avatar {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    text-decoration: none;
  }

  .feed-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .feed-author-avatar span {
    font-size: 0.72rem;
    font-weight: 950;
  }

  .feed-author-prefix,
  .feed-author-name {
    display: none !important;
  }

  .feed-author-handle {
    min-width: 0;
    overflow: hidden;
    color: rgba(248, 250, 252, 0.86) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
  }

  .feed-author-role {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: rgba(248, 250, 252, 0.58);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .feed-author-role::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 7px;
    border-radius: 999px;
    background: currentColor;
  }

  .feed-story-card .tags,
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 0 !important;
  }

  .feed-story-card .view-more-pill,
  .view-more-pill {
    min-height: 46px !important;
    width: max-content !important;
    max-width: 100%;
    margin: 14px 0 0 !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    position: absolute !important;
    top: auto !important;
    right: 12px !important;
    bottom: 88px !important;
    z-index: 8 !important;
    width: 48px !important;
    max-height: none !important;
    display: grid !important;
    gap: 12px !important;
    align-items: center !important;
    justify-items: center !important;
    overflow: visible !important;
    transform: none !important;
  }

  .article-actions .article-action,
  .article-actions .article-action__button,
  .feed-more-menu {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    position: relative !important;
    overflow: visible !important;
    color: rgba(248, 250, 252, 0.84) !important;
    text-shadow: none !important;
  }

  .article-action__icon,
  .article-actions .icon-action-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 36, 0.82) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
  }

  .article-action__svg {
    width: 23px !important;
    height: 23px !important;
    filter: none !important;
  }

  .article-action__count,
  .article-actions .icon-action-count {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 44px !important;
    min-height: 12px !important;
    overflow: hidden;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-action small,
  .article-action--share .article-action__count,
  .article-action--more .article-action__count {
    display: none !important;
  }

  .feed-more-panel {
    right: 54px !important;
    bottom: 0 !important;
    top: auto !important;
    width: min(218px, calc(100vw - 92px)) !important;
    max-height: min(70svh, 420px) !important;
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy,
  .feed-card__body {
    padding-right: 64px !important;
    padding-left: 16px !important;
  }

  .feed-story-card .feed-title,
  .feed-title {
    font-size: clamp(29px, 8vw, 38px) !important;
  }
}

/* Mobile stability pass: natural feed cards, consistent rail, reliable media. */
:root {
  --z-content: 1;
  --z-sticky: 100;
  --z-bottom-nav: 300;
  --z-header: 400;
  --z-dropdown: 600;
  --z-modal: 900;
  --z-toast: 1000;
  --mobile-bottom-nav-height: 92px;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-bottom-nav-clearance: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 32px);
}

.topbar {
  z-index: var(--z-header) !important;
}

.bottom-nav {
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  bottom: calc(12px + var(--mobile-safe-bottom)) !important;
  z-index: var(--z-bottom-nav) !important;
  width: auto !important;
  transform: none !important;
}

.tds-help-menu__panel {
  z-index: var(--z-dropdown) !important;
}

.tds-help-menu__list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.tds-help-menu__item {
  min-height: 44px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.feed-media[data-image-state="loading"] .feed-media-skeleton {
  opacity: 1;
}

.feed-media[data-image-state="loaded"] .feed-media-skeleton {
  opacity: 0;
  pointer-events: none;
}

.feed-media[data-image-state="error"]::after,
.feed-card[data-preload-state="failed"] .feed-media::after {
  content: "The Daily Scroll";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  color: #f8fafc;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
}

.article-actions--rail {
  width: 56px !important;
  gap: 12px !important;
}

.feed-card .article-action,
.feed-card .article-action__button,
.feed-card .icon-action,
.feed-card .icon-action-button {
  width: 56px !important;
  min-width: 56px !important;
  min-height: 58px !important;
  padding: 0 !important;
}

.feed-card .article-action__icon,
.feed-card .icon-action-icon {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px !important;
}

.feed-card .article-action__svg,
.feed-card .icon-action-svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 2;
}

.feed-card .article-action__count,
.feed-card .icon-action-count {
  width: 56px;
  max-width: 56px;
  text-align: center;
  font-size: 0.74rem !important;
  line-height: 1.05;
}

@media (max-width: 768px) {
  body.has-bottom-nav,
  .has-bottom-nav {
    padding-bottom: var(--mobile-bottom-nav-clearance) !important;
  }

  main,
  .has-bottom-nav main {
    padding-bottom: 0 !important;
  }

  .feed,
  .feed-page,
  .feed-stage,
  .feed-scroll {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: var(--mobile-bottom-nav-clearance) !important;
    scroll-padding-bottom: var(--mobile-bottom-nav-clearance) !important;
  }

  .feed-card {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 16px !important;
    padding: 88px 0 24px !important;
    overflow: visible !important;
  }

  .feed-card:not(:last-child) {
    margin-bottom: 16px;
  }

  .feed-item-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 56px !important;
    align-items: start !important;
    gap: 8px !important;
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100% !important;
  }

  .feed-story-card .feed-hero__media-frame,
  .feed-story-card .feed-media,
  .feed-card__media {
    height: clamp(160px, 34svh, 300px) !important;
    min-height: 160px !important;
    max-height: 34svh !important;
  }

  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy,
  .feed-card__body {
    padding: 14px 14px 20px !important;
  }

  .feed-title,
  .feed-story-card .feed-title {
    overflow-wrap: anywhere;
  }

  .feed-description,
  .feed-story-card .feed-description {
    max-width: 100% !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 56px !important;
    align-self: start !important;
    margin-top: 4px !important;
    transform: none !important;
  }

  .feed-more-panel {
    right: 58px !important;
    width: min(230px, calc(100vw - 104px)) !important;
  }
}

/* Required policy acceptance modal on authenticated feed pages. */
.legal-acceptance-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.legal-acceptance-modal {
  width: min(760px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.legal-acceptance-header,
.legal-acceptance-docs,
.legal-acceptance-doc {
  display: grid;
  gap: 12px;
}

.legal-acceptance-header {
  margin-bottom: 18px;
}

.legal-acceptance-header h2,
.legal-acceptance-header p,
.legal-acceptance-doc h3,
.legal-acceptance-doc p {
  margin: 0;
}

.legal-acceptance-doc {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.legal-acceptance-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.legal-acceptance-logout {
  margin-top: 10px;
}

.legal-acceptance-logout .button {
  width: 100%;
}

@media (max-width: 760px) {
  .legal-acceptance-overlay {
    align-items: stretch;
    padding: 0;
  }

  .legal-acceptance-modal {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
    padding: 18px 16px calc(var(--mobile-bottom-nav-height, 86px) + env(safe-area-inset-bottom) + 28px);
  }
}

/* Desktop bottom-nav compact restoration. */
@media (min-width: 769px) {
  .bottom-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;
    width: min(720px, calc(100vw - 48px)) !important;
    max-width: 720px !important;
    box-sizing: border-box !important;
    padding: 7px !important;
    border-radius: 22px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(110px, 1fr)) !important;
    gap: 6px !important;
    z-index: var(--z-bottom-nav, 300) !important;
  }

  .bottom-nav a,
  .bottom-nav-item {
    min-width: 0 !important;
    width: auto !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 6px 18px !important;
    border-radius: 16px !important;
    flex: 0 1 auto !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
  }

  .bottom-nav a.active,
  .bottom-nav a.is-active,
  .bottom-nav-item.active,
  .bottom-nav-item.is-active {
    width: auto !important;
    flex-grow: 0 !important;
    grid-column: auto !important;
  }
}

/* Small mobile feed polish: centered rail and transparent feed tabs. */
@media (max-width: 768px) {
  .feed-tabs,
  .feed-tabs-wrapper,
  .feed-filter-bar {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .feed-tabs {
    position: sticky !important;
    top: var(--site-header-height, 64px) !important;
    left: auto !important;
    right: auto !important;
    z-index: 950 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(24px, 8vw, 34px) !important;
    margin: 0 0 8px !important;
    padding: 18px 0 14px !important;
    border-radius: 0 !important;
    overflow: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    scrollbar-width: none;
  }

  .feed-tabs a,
  .feed-filter-button,
  .feed-tabs a.active {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 6px 0 9px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f5f7fb !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
  }

  .feed-tabs a.active,
  .feed-tab.is-active {
    color: #ffd15a !important;
  }

  .feed-tabs a.active::after,
  .feed-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: #ffd15a;
  }

  .feed-card {
    overflow: visible !important;
  }

  .feed-item-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 56px !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px 0 16px !important;
    box-sizing: border-box !important;
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    min-width: 0 !important;
  }

  .feed-card__content.feed-hero__content,
  .feed-hero__content.feed-card__content,
  .feed-story-card .feed-copy,
  .feed-card__body {
    padding: 18px 18px 24px !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    align-self: center !important;
    justify-self: center !important;
    width: 56px !important;
    max-height: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    overflow: visible !important;
    transform: none !important;
  }

  .feed-card .article-action,
  .feed-card .article-action__button,
  .feed-card .icon-action,
  .feed-card .icon-action-button,
  .feed-more-menu {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: none !important;
  }

  .feed-card .article-action__icon,
  .feed-card .icon-action-icon {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }

  .feed-card .article-action__count,
  .feed-card .icon-action-count {
    left: 50% !important;
    max-width: 50px !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
  }
}

/* Mobile Policies & Help drawer: backdrop dims page only. */
@media (max-width: 700px) {
  :root {
    --z-modal-backdrop: 800;
    --z-modal: 900;
    --z-toast: 1000;
  }

  body.tds-help-menu-open {
    overflow: hidden !important;
    filter: none !important;
    opacity: 1 !important;
  }

  body.tds-help-menu-open .bottom-nav {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.tds-help-menu-open .tds-help-menu__backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: var(--z-modal-backdrop, 800) !important;
    display: block !important;
    background: rgba(0, 0, 0, 0.58) !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }

  .tds-help-menu__panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: var(--z-modal, 900) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(82dvh, 760px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 18px 20px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 28px 28px 0 0 !important;
    background: #08111f !important;
    color: #f7f9fc !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45) !important;
  }

  .tds-help-menu__panel,
  .tds-help-menu__panel * {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
  }

  .tds-help-menu__header h2 {
    color: #fff !important;
  }

  .tds-help-menu__section h3 {
    color: #aab6c8 !important;
  }

  .tds-help-menu__title {
    color: #f8fafc !important;
  }

  .tds-help-menu__desc {
    color: #aeb8c8 !important;
  }

  .tds-help-menu__icon {
    color: #f6c64f !important;
    background: rgba(246, 198, 79, 0.12) !important;
  }

  .tds-help-menu__close {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    opacity: 1 !important;
    z-index: 2 !important;
  }
}

/* Desktop/tablet feed centering: card + rail share one centered stage. */
:root {
  --feed-stage-width: 780px;
  --feed-card-column-width: 660px;
  --feed-rail-width: 64px;
  --feed-stage-gap: 20px;
}

@media (min-width: 700px) and (max-width: 899px) {
  :root {
    --feed-stage-width: 700px;
    --feed-card-column-width: 620px;
    --feed-rail-width: 56px;
    --feed-stage-gap: 12px;
  }
}

@media (min-width: 700px) {
  .feed-tabs {
    position: sticky !important;
    top: var(--site-header-height, 64px) !important;
    left: auto !important;
    right: auto !important;
    z-index: 950 !important;
    width: min(100%, var(--feed-stage-width)) !important;
    max-width: var(--feed-stage-width) !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
    margin: 0 auto 12px !important;
    padding: 18px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
  }

  .feed-tabs a,
  .feed-filter-button,
  .feed-tabs a.active {
    position: relative !important;
    padding: 6px 0 9px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f5f7fb !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
  }

  .feed-tabs a.active {
    color: #ffd15a !important;
  }

  .feed-tabs a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: #ffd15a;
  }

  .feed-page,
  .feed-scroll,
  .feed-stage {
    overflow-x: hidden !important;
  }

  .feed-card {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: 112px 16px 104px !important;
    overflow: visible !important;
  }

  .feed-item-shell {
    position: relative !important;
    width: min(100%, var(--feed-stage-width)) !important;
    max-width: var(--feed-stage-width) !important;
    display: grid !important;
    grid-template-columns: minmax(0, var(--feed-card-column-width)) var(--feed-rail-width) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--feed-stage-gap) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .feed-story-card.feed-hero,
  .feed-hero.feed-story-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .feed-item__actions.feed-hero__actions,
  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    align-self: center !important;
    justify-self: center !important;
    width: var(--feed-rail-width) !important;
    max-height: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    overflow: visible !important;
    transform: none !important;
  }

  .empty-state {
    width: min(100%, var(--feed-stage-width)) !important;
    margin-inline: auto !important;
  }
}

/* Policy acceptance modal action hierarchy. */
.legal-acceptance-modal__footer,
.legal-accept-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px -22px -22px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #101a2a;
}

.legal-acceptance-helper {
  margin: 0;
  color: #aeb8c8;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.legal-acceptance-helper[hidden] {
  display: none !important;
}

.legal-accept-primary {
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 14px;
  background: #ffd15a !important;
  color: #111827 !important;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 209, 90, 0.18);
}

.legal-accept-primary:hover:not(:disabled) {
  filter: brightness(1.03);
}

.legal-accept-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.legal-accept-primary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.legal-acceptance-logout-form {
  display: flex;
  justify-content: center;
  margin: 0;
}

.legal-accept-logout {
  align-self: center;
  width: auto !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #aeb8c8 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-accept-logout:hover,
.legal-accept-logout:focus-visible {
  color: #fff !important;
}

@media (max-width: 760px) {
  .legal-acceptance-modal {
    padding-bottom: 0 !important;
  }

  .legal-acceptance-modal__footer,
  .legal-accept-actions {
    margin: 18px -16px 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .legal-accept-primary {
    min-height: 56px !important;
  }
}

/* Mobile legal acceptance remains a modal instead of a full-page takeover. */
body.legal-accept-open {
  overflow: hidden !important;
  touch-action: none;
}

.legal-acceptance-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2600 !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.legal-accept-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.66);
  pointer-events: auto;
}

.legal-accept-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  pointer-events: none;
}

.legal-acceptance-modal,
.legal-accept-modal {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 760px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(88vh, 780px) !important;
  max-height: min(88dvh, 780px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  background: #111c2c !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5) !important;
  pointer-events: auto;
}

.legal-acceptance-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}

.legal-accept-modal__header,
.legal-acceptance-header {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  margin: 0 !important;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-accept-modal__header h2 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.legal-accept-modal__body,
.legal-acceptance-docs {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.legal-doc-card,
.legal-acceptance-doc {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
}

.legal-doc-card + .legal-doc-card {
  margin-top: 12px;
}

.legal-doc-card h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
  line-height: 1.18;
}

.legal-doc-card p {
  font-size: 0.9rem;
  line-height: 1.35;
}

.legal-doc-read {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px !important;
  margin-top: 2px;
  border-radius: 12px;
}

.legal-doc-agree-row,
.legal-acceptance-check {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 2px;
}

.legal-acceptance-modal__footer,
.legal-accept-actions {
  position: static !important;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0 !important;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111c2c !important;
}

.legal-accept-primary {
  width: 100% !important;
  min-height: 54px !important;
}

.legal-acceptance-logout-form {
  display: block;
  margin: 0;
}

.legal-accept-logout {
  display: block !important;
  width: auto !important;
  min-height: 34px !important;
  margin: 8px auto 0 !important;
  padding: 4px 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #aeb8c8 !important;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .legal-accept-modal-shell {
    padding: 12px !important;
  }

  .legal-acceptance-modal,
  .legal-accept-modal {
    width: 100% !important;
    max-height: 86vh !important;
    max-height: 86dvh !important;
    border-radius: 18px !important;
  }

  .legal-accept-modal__header,
  .legal-acceptance-header {
    padding: 16px 16px 10px;
  }

  .legal-accept-modal__header h2 {
    font-size: 1.22rem;
  }

  .legal-accept-modal__body,
  .legal-acceptance-docs {
    padding: 14px;
  }

  .legal-doc-card,
  .legal-acceptance-doc {
    gap: 8px;
    padding: 14px;
  }

  .legal-doc-card h3 {
    font-size: 1.05rem;
  }
}

/* Desktop feed bottom nav: align under the card column, not the viewport. */
@media (min-width: 900px) {
  :root {
    --feed-stage-width: 740px;
    --feed-card-width: 620px;
    --feed-card-column-width: 620px;
    --feed-rail-width: 56px;
    --feed-stage-gap: 20px;
  }

  body.has-feed-page.has-bottom-nav,
  body.has-feed-page {
    padding-bottom: 24px !important;
  }

  body.has-feed-page main {
    padding-bottom: 0 !important;
  }

  .feed,
  .feed-page,
  .feed-stage,
  .feed-scroll {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    overscroll-behavior-y: auto !important;
  }

  .feed-card {
    height: auto !important;
    min-height: 0 !important;
    place-items: start center !important;
    padding: 96px 16px 0 !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
  }

  .feed-item-shell,
  .feed-tabs {
    width: min(100%, var(--feed-stage-width)) !important;
    max-width: var(--feed-stage-width) !important;
  }

  .feed-item-shell {
    grid-template-columns: minmax(0, var(--feed-card-width)) var(--feed-rail-width) !important;
    gap: var(--feed-stage-gap) !important;
  }

  .feed-item-shell > .action-rail,
  .feed-item-shell > .action-rail-clean,
  .feed-item-shell > .article-actions--rail {
    width: var(--feed-rail-width) !important;
  }

  .feed-bottom-nav-stage,
  .feed-bottom-nav-shell {
    width: min(100%, var(--feed-stage-width));
    margin: 22px auto 0;
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, var(--feed-card-width)) var(--feed-rail-width);
    justify-content: center;
    align-items: center;
    gap: var(--feed-stage-gap);
    transform: none;
    box-sizing: border-box;
  }

  .feed-bottom-nav-column {
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .feed-bottom-nav-spacer {
    width: var(--feed-rail-width);
    min-width: 0;
  }

  .feed-bottom-nav.bottom-nav {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    min-height: 64px !important;
    margin: 0 auto !important;
    padding: 7px !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }

  .feed-bottom-nav.bottom-nav a,
  .feed-bottom-nav .bottom-nav-item {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    line-height: 1 !important;
  }

  .feed-bottom-nav.bottom-nav a.active,
  .feed-bottom-nav.bottom-nav a.is-active,
  .feed-bottom-nav .bottom-nav-item.active,
  .feed-bottom-nav .bottom-nav-item.is-active {
    min-height: 44px !important;
    margin: 6px !important;
    background: #ffc83d !important;
    color: #111827 !important;
    box-shadow: 0 8px 18px rgba(255, 200, 61, 0.2) !important;
  }

  .feed-bottom-nav .app-icon,
  .feed-bottom-nav .nav-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .feed-bottom-nav .bottom-nav-svg {
    width: 20px !important;
    height: 20px !important;
  }

  .feed-bottom-nav a small,
  .feed-bottom-nav .nav-label {
    font-size: 0.75rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 699px) {
  .feed-bottom-nav-stage,
  .feed-bottom-nav-shell,
  .feed-bottom-nav-column {
    display: contents;
    transform: none;
  }

  .feed-bottom-nav-spacer {
    display: none;
  }
}

/* Shared app bottom navigation system. */
:root {
  --z-header: 500;
  --z-bottom-nav: 700;
  --z-modal-backdrop: 850;
  --z-modal: 900;
  --z-required-modal: 1000;
  --mobile-bottom-nav-space: 112px;
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.topbar { z-index: var(--z-header) !important; }
.tds-help-menu__backdrop { z-index: var(--z-modal-backdrop) !important; }
.tds-help-menu__panel,
.confirm-dialog,
.report-dialog { z-index: var(--z-modal) !important; }
.legal-acceptance-overlay { z-index: var(--z-required-modal) !important; }

.app-bottom-nav-shell {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: var(--z-bottom-nav) !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 12px calc(10px + var(--mobile-safe-bottom)) !important;
  pointer-events: none !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.app-bottom-nav-column {
  display: flex !important;
  justify-content: center !important;
  width: min(100%, 680px) !important;
  min-width: 0 !important;
  pointer-events: auto !important;
}

.app-bottom-nav {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: repeat(var(--nav-item-count, 3), minmax(0, 1fr)) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  background: rgba(12, 22, 37, 0.96) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
  color: #e6edf8 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-sizing: border-box !important;
}

.app-bottom-nav .bottom-nav-item {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  display: flex !important;
  flex: 0 1 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: #e6edf8 !important;
  text-align: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  --tds-icon-fill: 0;
  justify-self: stretch !important;
  align-self: stretch !important;
}

.app-bottom-nav .bottom-nav-item.active,
.app-bottom-nav .bottom-nav-item.is-active {
  --tds-icon-fill: 1;
  background: #ffc83d !important;
  border-color: rgba(255, 209, 102, 0.5) !important;
  color: #111827 !important;
  box-shadow: 0 8px 18px rgba(255, 200, 61, 0.2) !important;
}

body.feed-page .app-bottom-nav.feed-bottom-nav .bottom-nav-item,
body.feed-page .app-bottom-nav.feed-bottom-nav .bottom-nav-item.active,
body.feed-page .app-bottom-nav.feed-bottom-nav .bottom-nav-item.is-active {
  margin: 0 !important;
}

.app-bottom-nav .app-icon,
.app-bottom-nav .nav-icon {
  width: 24px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
}

.app-bottom-nav .bottom-nav-svg {
  width: 20px !important;
  height: 20px !important;
}

.app-bottom-nav .nav-label,
.app-bottom-nav small {
  color: currentColor !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.story-editor-page .app-bottom-nav-shell { display: none !important; }

body.modal-open .app-bottom-nav-shell,
body.drawer-open .app-bottom-nav-shell,
body.legal-accept-open .app-bottom-nav-shell,
body.tds-help-menu-open .app-bottom-nav-shell,
body:has(dialog[open]) .app-bottom-nav-shell {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 699px) {
  body:not(.story-editor-page).has-bottom-nav main,
  body:not(.story-editor-page) .page-content,
  body:not(.story-editor-page) .article-layout,
  body:not(.story-editor-page) .article-shell,
  body:not(.story-editor-page) .comments.panel,
  body:not(.story-editor-page) .feed-scroll-container,
  body:not(.story-editor-page) .feed {
    padding-bottom: calc(var(--mobile-bottom-nav-space) + var(--mobile-safe-bottom)) !important;
    scroll-padding-bottom: calc(var(--mobile-bottom-nav-space) + var(--mobile-safe-bottom)) !important;
  }

  body.article-page .article-layout,
  body.article-page .article-shell {
    padding-bottom: calc(120px + var(--mobile-safe-bottom)) !important;
  }

  body.article-page .comments-section,
  body.article-page .comments.panel {
    margin-bottom: 24px !important;
  }

  .app-bottom-nav-spacer { display: none !important; }
}

/* Persistent feed nav dock: endless feeds keep the app nav visible. */
body.feed-page {
  --feed-bottom-nav-space: 110px;
}

body.feed-page .site-footer {
  display: none !important;
}

/* Shared brand logo placement. */
.brand::before {
  content: none !important;
  display: none !important;
}

.brand-logo,
.studio-brand-logo,
.site-footer-logo,
.page-loader-logo {
  display: block;
  object-fit: cover;
}

.brand-logo {
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
}

.brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-loader-mark {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  min-height: 80px !important;
}

.page-loader-mark span {
  display: none !important;
}

.page-loader-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.35);
}

.studio-brand-logo {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.18);
}

.site-footer-operator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer-logo {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px;
  }

  .page-loader-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .studio-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
}

body.feed-page .app-bottom-nav-shell,
body.feed-page .app-bottom-nav-shell.feed-nav-row {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  z-index: var(--z-bottom-nav, 700) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(calc(100% - 24px), 560px) !important;
  max-width: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
  grid-template-columns: none !important;
}

body.feed-page .app-bottom-nav-column,
body.feed-page .feed-bottom-nav-column {
  width: 100% !important;
  pointer-events: auto !important;
}

body.feed-page .app-bottom-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 62px !important;
  display: grid !important;
  grid-template-columns: repeat(var(--nav-item-count, 3), minmax(0, 1fr)) !important;
  align-items: center !important;
  border-radius: 20px !important;
  background: rgba(12, 22, 37, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  pointer-events: auto !important;
}

body.feed-page .app-bottom-nav-spacer,
body.feed-page .feed-bottom-nav-spacer {
  display: none !important;
}

body.feed-page main.feed-page-main,
body.feed-page main,
body.feed-page .feed-scroll-container,
body.feed-page .feed-page-main,
body.feed-page .feed-stage-wrapper,
body.feed-page .feed {
  padding-bottom: var(--feed-bottom-nav-space) !important;
  scroll-padding-bottom: var(--feed-bottom-nav-space) !important;
}

body.feed-page .feed-card {
  height: auto !important;
  scroll-margin-bottom: var(--feed-bottom-nav-space) !important;
}

body.feed-page .feed-item-shell {
  transform: translateY(-28px) !important;
}

@media (max-width: 699px) {
  body.feed-page {
    --feed-bottom-nav-space: calc(118px + var(--mobile-safe-bottom));
  }

  body.feed-page .app-bottom-nav-shell,
  body.feed-page .app-bottom-nav-shell.feed-nav-row {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + var(--mobile-safe-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  body.feed-page .app-bottom-nav {
    min-height: 74px !important;
    border-radius: 24px !important;
  }

  body.feed-page .feed-card {
    min-height: calc(100svh - 24px) !important;
    padding-bottom: calc(150px + var(--mobile-safe-bottom)) !important;
  }

  body.feed-page .feed-item-shell {
    transform: translateY(-18px) !important;
  }
}

@media (min-width: 700px) {
  body.feed-page .feed-card {
    min-height: calc(100svh - 96px) !important;
    padding-bottom: 150px !important;
  }

  body.feed-page .feed-item-shell {
    transform: translateY(-34px) !important;
  }
}

@media (min-width: 900px) {
  body.feed-page .app-bottom-nav-shell,
  body.feed-page .app-bottom-nav-shell.feed-nav-row {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 22px !important;
    width: 560px !important;
    max-width: 560px !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
  }

  body.feed-page .app-bottom-nav {
    min-height: 62px !important;
    border-radius: 20px !important;
  }

  body.feed-page .feed-item-shell {
    transform: translateY(-44px) !important;
  }
}

/* Standardized global bottom navigation dock. */
:root {
  --app-bottom-nav-bottom: 18px;
  --app-bottom-nav-width: min(calc(100% - 24px), 560px);
  --app-bottom-nav-clearance: 110px;
  --app-bottom-nav-mobile-clearance: calc(122px + env(safe-area-inset-bottom, 0px));
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.has-bottom-nav,
body.has-bottom-nav main,
body.feed-page.has-bottom-nav,
body.feed-page.has-bottom-nav main {
  padding-bottom: 0 !important;
}

body.has-bottom-nav .app-page-content {
  min-height: 100%;
  padding-bottom: var(--app-bottom-nav-clearance) !important;
  scroll-padding-bottom: var(--app-bottom-nav-clearance) !important;
}

body.article-page.has-bottom-nav .app-page-content,
body.article-page.has-bottom-nav .article-layout,
body.article-page.has-bottom-nav .article-shell,
body.article-page.has-bottom-nav .comments.panel,
body.article-page.has-bottom-nav .comments-section {
  padding-bottom: 120px !important;
  scroll-padding-bottom: 120px !important;
}

body.feed-page.has-bottom-nav .app-page-content,
body.feed-page.has-bottom-nav .feed-scroll-container,
body.feed-page.has-bottom-nav .feed-page-main,
body.feed-page.has-bottom-nav .feed-stage-wrapper,
body.feed-page.has-bottom-nav .feed {
  padding-bottom: var(--app-bottom-nav-clearance) !important;
  scroll-padding-bottom: var(--app-bottom-nav-clearance) !important;
}

body.feed-page .site-footer {
  display: none !important;
}

.app-bottom-nav-shell,
.app-bottom-nav-shell.feed-nav-row,
body.feed-page .app-bottom-nav-shell,
body.feed-page .app-bottom-nav-shell.feed-nav-row {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: var(--app-bottom-nav-bottom) !important;
  z-index: var(--z-bottom-nav, 700) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: var(--app-bottom-nav-width) !important;
  max-width: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
  grid-template-columns: none !important;
}

.app-bottom-nav-column,
.bottom-nav-column,
body.feed-page .app-bottom-nav-column,
body.feed-page .feed-bottom-nav-column {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  pointer-events: auto !important;
}

.app-bottom-nav,
.app-bottom-nav.bottom-nav,
body.feed-page .app-bottom-nav,
body.feed-page .app-bottom-nav.feed-bottom-nav {
  width: 100% !important;
  max-width: none !important;
  min-height: 62px !important;
  display: grid !important;
  grid-template-columns: repeat(var(--nav-item-count, 3), minmax(0, 1fr)) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  background: rgba(12, 22, 37, 0.96) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38) !important;
  color: #e6edf8 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

.app-bottom-nav .bottom-nav-item {
  min-width: 0 !important;
  width: auto !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border-radius: 16px !important;
  flex: 0 1 auto !important;
  grid-column: auto !important;
}

.app-bottom-nav .bottom-nav-item.active,
.app-bottom-nav .bottom-nav-item.is-active {
  width: auto !important;
  flex-grow: 0 !important;
  grid-column: auto !important;
}

.app-bottom-nav-spacer,
.feed-bottom-nav-spacer {
  display: none !important;
}

body.story-editor-page .app-bottom-nav-shell,
body.story-editor-page .bottom-nav-shell,
body.story-editor-page .app-bottom-nav,
body.story-editor-page .bottom-nav,
body.story-editor-page .mobile-bottom-nav {
  display: none !important;
}

body.modal-open .app-bottom-nav-shell,
body.drawer-open .app-bottom-nav-shell,
body.cropper-open .app-bottom-nav-shell,
body.legal-accept-open .app-bottom-nav-shell,
body.tds-help-menu-open .app-bottom-nav-shell,
body:has(dialog[open]) .app-bottom-nav-shell {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 699px) {
  body.has-bottom-nav .app-page-content,
  body.article-page.has-bottom-nav .app-page-content,
  body.article-page.has-bottom-nav .article-layout,
  body.article-page.has-bottom-nav .article-shell,
  body.article-page.has-bottom-nav .comments.panel,
  body.article-page.has-bottom-nav .comments-section,
  body.feed-page.has-bottom-nav .app-page-content,
  body.feed-page.has-bottom-nav .feed-scroll-container,
  body.feed-page.has-bottom-nav .feed-page-main,
  body.feed-page.has-bottom-nav .feed-stage-wrapper,
  body.feed-page.has-bottom-nav .feed {
    padding-bottom: var(--app-bottom-nav-mobile-clearance) !important;
    scroll-padding-bottom: var(--app-bottom-nav-mobile-clearance) !important;
  }

  .app-bottom-nav-shell,
  .app-bottom-nav-shell.feed-nav-row,
  body.feed-page .app-bottom-nav-shell,
  body.feed-page .app-bottom-nav-shell.feed-nav-row {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + var(--mobile-safe-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  .app-bottom-nav,
  .app-bottom-nav.bottom-nav,
  body.feed-page .app-bottom-nav,
  body.feed-page .app-bottom-nav.feed-bottom-nav {
    min-height: 72px !important;
    border-radius: 24px !important;
  }
}
