/* Shared editorial theme. Loaded last so new screens use the feed's tokens. */
:root,body.dark {
  --teal:#e51b2b;--teald:#bb1020;--newsit-teal:var(--teal);
  --nh-ui-font:var(--nh-script-font,NewsItScripts),Arial,'Helvetica Neue',sans-serif;
  --mcoin-primary:var(--teal);--mcoin-primary-glow:transparent;
  --mcoin-dark-bg:var(--panel);--mcoin-card-bg:var(--paper);
  --mcoin-card-border:var(--stroke);--mcoin-text-main:var(--ink);
  --mcoin-text-muted:var(--muted);
}
body,.app,button,input,textarea,select {font-family:var(--nh-ui-font)}
button,input[type=checkbox],input[type=radio],input[type=range] {accent-color:var(--teal)}
:is(.screenhead,.ui-page-head) {background:var(--paper);border-bottom:1px solid var(--stroke);min-height:54px}
:is(.screenhead b,.ui-page-head h1,.feedTitle,.ui-centered-hero h2) {font-family:var(--nh-ui-font);font-weight:800;letter-spacing:-.35px}
:is(.ui-primary,.ui-small-teal,.button,.edit-button,.nh-follow-publisher) {border-radius:4px;min-height:44px;box-shadow:none}
:is(.ui-field input,.ui-field textarea,.ui-field select,.ui-search-lite) {border-radius:4px;border-color:var(--stroke)}
:is(.ui-logo,.circleicon,.nh-initial) {background:var(--lightteal);color:var(--teal)}
.tile:nth-child(n) {background:var(--panel);color:var(--ink);border:1px solid var(--stroke);border-radius:4px}
.tile .svg,.nh-unread-dot {color:var(--teal)}
.nh-unread-dot {background:var(--teal)}
body.dark .nh-initial {background:var(--lightteal);color:var(--teal)}
:is(.ui-page,.nh-editorial-profile) button:focus-visible {outline:2px solid var(--teal);outline-offset:-2px}

/* Always reserve a visible, tappable profile control, even offline. */
.nh-user-avatar-btn {position:relative;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;background:var(--lightteal);color:var(--teal);border:1px solid var(--stroke);overflow:hidden}
.nh-user-avatar-btn>.svg {width:25px;height:25px;stroke:currentColor;fill:none}
.nh-user-avatar-btn>.nh-user-avatar-img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;background:var(--paper)}
.nh-user-avatar-btn:focus-visible {outline:2px solid var(--teal);outline-offset:2px}

/* Unified News It Crimson Tokens, Animations & Shared Primitives */
:root {
  --nh-crimson: #be080d;
  --nh-crimson-dark: #8e0509;
  --nh-crimson-bright: #e9131c;
  --nh-crimson-soft: #fff1f1;
  --nh-surface-bg: #f4f4f6;
  --nh-card-radius: 18px;
}
body.dark {
  --nh-surface-bg: #111115;
  --nh-crimson-soft: rgba(190, 8, 13, 0.22);
}

@keyframes nhPopIn {
  0% { opacity: 0; transform: translateY(12px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nhSheetUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes nhMinePulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(190, 8, 13, 0.34), 0 0 0 0 rgba(190, 8, 13, 0.28); transform: scale(1); }
  50% { box-shadow: 0 16px 38px rgba(190, 8, 13, 0.48), 0 0 0 12px rgba(190, 8, 13, 0.08); transform: scale(1.028); }
}
@keyframes nhMineActiveGlow {
  0%, 100% { box-shadow: 0 10px 26px rgba(190, 8, 13, 0.30), 0 0 0 4px rgba(190, 8, 13, 0.14); }
  50% { box-shadow: 0 14px 34px rgba(233, 19, 28, 0.45), 0 0 0 10px rgba(233, 19, 28, 0.06); }
}
@keyframes nhPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.25); }
}

/* Screens stay visible and stationary while navigation or data updates render. */
.nh-anim-in { animation: none; }
.nh-guest-card,.nh-signed-profile,.nh-ptc-story { animation: none !important; }

/* Unified Sticky Sub-screen Header (.app-header) */
.nh-app-header,
.nh-sub-header {
  position: sticky;
  top: 0;
  z-index: 25;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  background: var(--paper, #fff);
  border-bottom: 1px solid var(--stroke, #ebebef);
  color: var(--ink, #121216);
  box-sizing: border-box;
}
.nh-app-header-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink, #121216);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nh-icon-circle,
button.nh-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--stroke, #e7e7ec);
  background: var(--paper, #fff);
  color: var(--ink, #121216);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.nh-icon-circle:active { transform: scale(.92); }
.nh-icon-circle .svg { width: 18px; height: 18px; }
body.dark .nh-icon-circle { background: #1e1e24; border-color: #2c2c34; }

/* Unified Horizontal Sub-Switcher Pills */
.nh-sub-switcher {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 52px;
  gap: 6px;
  padding: 10px 14px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: var(--paper, #fff);
  border-bottom: 1px solid var(--stroke, #ebebef);
  box-sizing: border-box;
}
.nh-sub-switcher::-webkit-scrollbar { display: none; }
.nh-sub-chip {
  flex-shrink: 0;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke, #e4e4ea);
  background: var(--panel, #f4f4f6);
  color: var(--muted, #62626d);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .14s ease;
}
.nh-sub-chip:active { transform: scale(.96); }
.nh-sub-chip.active {
  background: var(--nh-crimson, #be080d);
  border-color: var(--nh-crimson, #be080d);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(190, 8, 13, 0.24);
}
body.dark .nh-sub-chip { background: #232329; border-color: #31313a; color: #b5b5c0; }
body.dark .nh-sub-chip.active { background: var(--nh-crimson, #be080d); border-color: var(--nh-crimson, #be080d); color: #fff; }

/* Unified Grouped Cards, Menu Rows, Pills & Verified Tick */
.nh-section-lbl {
  padding: 14px 16px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted, #72727c);
}
.nh-group-card {
  margin: 0 14px 12px;
  background: var(--paper, #ffffff);
  border: 1px solid var(--stroke, #ebebef);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 16, 22, 0.04);
}
body.dark .nh-group-card { background: #19191f; border-color: #292932; box-shadow: none; }
.nh-menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stroke, #f0f0f4);
  cursor: pointer;
  color: var(--ink, #121216);
  transition: background .14s ease;
}
.nh-menu-row:last-child { border-bottom: 0; }
.nh-menu-row:active { background: var(--panel, #f5f5f7); }
.nh-menu-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--nh-crimson-soft, #fff1f1);
  color: var(--nh-crimson, #be080d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nh-menu-ico .svg { width: 18px; height: 18px; stroke: currentColor; }
.nh-menu-ico.muted { background: var(--panel, #f2f2f5); color: var(--muted, #62626d); }
.nh-menu-text { flex: 1; min-width: 0; }
.nh-menu-title { display: block; font-size: 14px; font-weight: 700; color: var(--ink, #121216); line-height: 1.28; }
.nh-menu-sub { display: block; font-size: 11.5px; color: var(--muted, #6e6e78); margin-top: 2px; line-height: 1.35; }
.nh-menu-chev { color: var(--muted, #9a9aa6); font-size: 18px; font-weight: 600; flex-shrink: 0; }

.nh-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .16s ease;
}
.nh-pill-btn:active { transform: scale(.96); }
.nh-pill-btn.crimson { background: var(--nh-crimson, #be080d); color: #ffffff; box-shadow: 0 6px 16px rgba(190, 8, 13, 0.24); }
.nh-pill-btn.dark { background: #141418; color: #ffffff; }
.nh-pill-btn.soft { background: var(--nh-crimson-soft, #fff1f1); color: var(--nh-crimson, #be080d); }
.nh-pill-btn.outline { background: transparent; color: var(--ink, #121216); border: 1.5px solid var(--stroke, #dcdce2); }
body.dark .nh-pill-btn.dark { background: #ffffff; color: #121216; }

.nh-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* M-Coin inherits app light/dark surfaces */
body:not(.dark) .nh-mcoin-hub, body.dark .nh-mcoin-hub {
  --mcoin-dark-bg: var(--nh-surface-bg, #f4f4f6);
  --mcoin-card-bg: var(--paper, #ffffff);
  --mcoin-card-border: var(--stroke, #ebebef);
  --mcoin-text-main: var(--ink, #121216);
  --mcoin-text-muted: var(--muted, #62626d);
}
:is(.nh-mcoin-hub, .nh-mcoin-subscreen, .nh-mcoin-modal-overlay) { font-family: var(--nh-ui-font); }
.nh-mcoin-hub, .nh-mcoin-subscreen { max-width: 510px; margin-inline: auto; background: var(--nh-surface-bg, #f4f4f6); min-height: 100dvh; box-sizing: border-box; }
.nh-mcoin-hub > .nh-rewards-content,
.nh-mcoin-hub > .nh-mcoin-body,
.nh-mcoin-subscreen > .nh-mcoin-scroll-body,
.nh-mcoin-subscreen > .nh-rewards-content { flex: 1 0 auto !important; }
body.dark .nh-mcoin-hub, body.dark .nh-mcoin-subscreen { background: #111115; }
body.dark .nh-auth-social-ref { background: #1f1f27; border-color: #30303b; }
body.dark .nh-auth-social-ref summary { color: #ff8086; }
body.dark .nh-mcoin-code-pill { background: rgba(190, 8, 13, 0.18); color: #ff8086; border-color: rgba(233, 19, 28, 0.45); }

/* Approved 24-Screen M-Coin Mining Hub & Rewards UI */
.nh-mcoin-head-bal { display: inline-flex; align-items: center; gap: 6px; }
.nh-mcoin-sym { color: #be080d; font-size: 18px; }
.nh-mcoin-digits { font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.nh-mcoin-label { font-size: 12px; font-weight: 800; color: #be080d; }
.nh-mcoin-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 28px; }

.nh-mcoin-guest-hero,
.nh-reward-hero {
  background: linear-gradient(135deg, #8e0509 0%, #be080d 55%, #e9131c 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(190, 8, 13, 0.24);
  margin: 0 0 12px;
}
.nh-mcoin-guest-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.nh-mcoin-guest-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nh-mcoin-guest-badge {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.nh-mcoin-pioneer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px; line-height: 1.4; }
.nh-mcoin-pioneer-left { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.nh-mcoin-pioneer-avatar { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--stroke, #e7e7ec); }
.nh-mcoin-body { gap: 10px; padding: 12px 14px 28px; }
.nh-mcoin-mine-hero { padding: 16px 16px 18px; }

/* Unified bottom navigation active red bar on ALL 5 tabs including Shorts */
#nav.nav:after { display: none !important; }
#nav.nav button.sel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24%;
  right: 24%;
  height: 3px;
  background: linear-gradient(90deg, #be080d, #e9131c) !important;
  border-radius: 3px 3px 0 0;
  pointer-events: none;
}

/* Floating transparent icons directly over Article Detail hero image/video */
.dh-detail-nav {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.18) 65%, transparent 100%) !important;
  border-bottom: 0 !important;
}
.dh-detail-nav .dh-nav-back,
.dh-detail-nav .dh-nav-btn {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  min-width: 34px;
  height: 34px;
  padding: 4px 6px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}
.dh-detail-nav .dh-nav-back svg,
.dh-detail-nav .dh-nav-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
.dh-detail-nav .dh-nav-wa svg,
.dh-detail-nav .dh-nav-wa .svg {
  fill: #ffffff !important;
  stroke: none !important;
}
.dh-detail-nav .dh-nav-count {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.nh-mcoin-profile-incomplete-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #fff1f1; border-top: 1px solid #ffd8d8;
}

.nh-mcoin-mine-hero {
  background: var(--paper, #ffffff);
  border: 1px solid var(--stroke, #ebebef);
  border-radius: 22px;
  padding: 20px 16px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(16, 16, 22, 0.05);
}
body.dark .nh-mcoin-mine-hero { background: #19191f; border-color: #292932; }
.nh-mcoin-mine-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  color: #be080d; background: #fff1f1; padding: 4px 10px; border-radius: 999px;
}
body.dark .nh-mcoin-mine-eyebrow { background: rgba(190, 8, 13, 0.2); color: #ff8086; }
.nh-mcoin-orb {
  width: 124px; height: 124px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 25%, #ff4b52 0%, #be080d 55%, #7d0307 100%);
  color: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; margin: 6px 0 4px;
  transition: transform .18s ease;
}
.nh-mcoin-orb.is-idle { animation: nhMinePulse 2.3s ease-in-out infinite; }
.nh-mcoin-orb.is-active {
  background: radial-gradient(circle at 30% 25%, #e9131c 0%, #99060b 65%, #5c0204 100%);
  animation: nhMineActiveGlow 2.4s ease-in-out infinite;
}
.nh-mcoin-orb:active { transform: scale(.94); }
.nh-mcoin-orb-bolt { font-size: 28px; line-height: 1; }
.nh-mcoin-orb-title { font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.nh-mcoin-orb-rate { font-size: 11.5px; font-weight: 700; opacity: .92; }
.nh-mcoin-countdown { font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; color: var(--ink, #121216); letter-spacing: -.02em; }
.nh-mcoin-countdown.ready { font-size: 20px; color: #be080d; }
.nh-mcoin-mine-hint { font-size: 12px; color: var(--muted, #6a6a76); line-height: 1.4; max-width: 300px; }

.nh-mcoin-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nh-mcoin-stat-card {
  background: var(--paper, #ffffff); border: 1px solid var(--stroke, #ebebef);
  border-radius: 16px; padding: 14px 12px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
body.dark .nh-mcoin-stat-card { background: #19191f; border-color: #292932; }
.nh-mcoin-stat-num { font-size: 20px; font-weight: 850; color: #be080d; font-variant-numeric: tabular-nums; }
.nh-mcoin-stat-lbl { font-size: 11.5px; font-weight: 700; color: var(--muted, #6a6a76); }
.nh-mcoin-quick-actions { display: flex; gap: 10px; }
.nh-mcoin-kyc-tag {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.nh-mcoin-kyc-tag.verified { background: #eafaf1; color: #0e9f50; }
.nh-mcoin-kyc-tag.pending { background: #fff6e5; color: #b7791f; }
.nh-mcoin-kyc-tag.ready { background: #fff1f1; color: #be080d; }
.nh-mcoin-kyc-tag.locked { background: var(--panel, #f2f2f5); color: var(--muted, #6a6a76); }

/* Rewards Screens & Streak Grid */
.nh-rewards-screen { min-height: 100dvh; background: var(--nh-surface-bg, #f4f4f6); max-width: 510px; margin-inline: auto; padding-bottom: 26px; }
body.dark .nh-rewards-screen { background: #111115; }
.nh-rewards-content { padding: 14px; }
.nh-reward-kicker { margin: 0 0 6px; font-size: 10.5px; font-weight: 850; letter-spacing: .08em; color: rgba(255, 255, 255, 0.86); }
.nh-reward-hero h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.15; color: #ffffff; letter-spacing: -.03em; }
.nh-reward-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nh-reward-hero-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
.nh-reward-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nh-reward-section-head h2 { margin: 0; font-size: 15px; font-weight: 850; color: var(--ink, #121216); }
.nh-streak-pill, .nh-usage-rate { padding: 4px 10px; border-radius: 999px; background: #fff1f1; color: #be080d; font-size: 11.5px; font-weight: 800; }
.nh-reward-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0 8px; }
.nh-reward-day {
  border-radius: 12px; background: var(--panel, #f4f4f6); border: 1.5px solid transparent;
  padding: 8px 2px; text-align: center; display: flex; flex-direction: column; gap: 3px;
}
.nh-reward-day span { font-size: 10px; font-weight: 700; color: var(--muted, #787882); }
.nh-reward-day strong { font-size: 11.5px; font-weight: 850; color: var(--ink, #121216); }
.nh-reward-day small { font-size: 9px; font-weight: 800; color: #be080d; }
.nh-reward-day.done { background: #eafaf1; border-color: #c5edd6; }
.nh-reward-day.done strong { color: #0e9f50; }
.nh-reward-day.current { background: #fff1f1; border-color: #be080d; box-shadow: 0 3px 10px rgba(190, 8, 13, 0.16); }
.nh-reward-day.current strong { color: #be080d; }
.nh-usage-bar-track { height: 8px; border-radius: 999px; background: var(--panel, #ededf2); overflow: hidden; margin: 10px 0 8px; }
.nh-usage-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #be080d, #e9131c); transition: width .35s ease; }
.nh-usage-caption { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted, #6a6a76); }
.nh-reward-earned { color: #0e9f50; font-size: 12.5px; font-weight: 800; }
.nh-reward-note { font-size: 12px; color: var(--muted, #6a6a76); line-height: 1.45; margin: 4px 0 0; }
.nh-reward-error { background: #fff1f1; color: #be080d; border: 1px solid #ffd5d5; border-radius: 14px; padding: 12px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; }

/* Settings, Publisher List & Comments Sub-Screens Unification */
.nh-setting-page .nh-setting-card,
.nh-service-card { border-radius: 18px; }
.nh-setting-toggle {
  display: inline-flex; align-items: center; padding: 3px; width: 46px; height: 26px;
  border-radius: 999px; background: #d4d4dc; transition: background .2s ease; position: relative;
}
.nh-setting-toggle::after {
  content: ''; width: 20px; height: 20px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.nh-setting-toggle.on { background: #be080d; }
.nh-setting-toggle.on::after { transform: translateX(20px); }

/* Action Sheet, Report Modal, Article Detail, Search, Categories, Publishers & M-Coin Member Rows */
.nh-sheet {
  border-radius: 24px 24px 0 0 !important;
  padding: 10px 14px max(22px, env(safe-area-inset-bottom)) !important;
  background: var(--paper, #ffffff) !important;
}
.nh-sheet-handle { width: 38px; height: 4px; border-radius: 999px; background: #d4d4dc; margin: 2px auto 10px; }
.nh-sheet-head-label { font-size: 13px; font-weight: 850; color: var(--muted, #767682); padding: 0 4px 6px; letter-spacing: .04em; text-transform: uppercase; }
.nh-report-reasons-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.nh-report-option {
  border-radius: 14px !important;
  border: 1.5px solid var(--stroke, #e7e7ec) !important;
  background: var(--paper, #ffffff) !important;
  padding: 11px 14px !important;
}
.nh-report-option.selected {
  background: #fff1f1 !important;
  border-color: #be080d !important;
  color: #be080d !important;
}
.nh-report-submit { border-radius: 999px !important; background: #be080d !important; }
.nh-report-cancel { border-radius: 999px !important; }

.dh-follow-btn {
  height: 32px; padding: 0 14px; border-radius: 999px !important;
  background: #141418 !important; color: #ffffff !important; border: 0 !important;
  font-size: 12px; font-weight: 800;
}
.dh-follow-btn.following { background: #fff1f1 !important; color: #be080d !important; border: 1px solid #ffd5d5 !important; }
.dh-read-tools button { border-radius: 999px !important; border: 1px solid var(--stroke, #e4e4ea) !important; background: var(--panel, #f4f4f6) !important; font-weight: 700; }

.ui-page { background: var(--nh-surface-bg, #f4f4f6); min-height: 100dvh; }
body.dark .ui-page { background: #111115; }
.ui-page-content { padding: 14px; }
.nh-searchbox-pro { border-radius: 999px !important; border: 1.5px solid var(--stroke, #e4e4ea) !important; background: var(--paper, #ffffff) !important; padding: 4px 8px 4px 14px !important; }
.nh-voice-mic-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff1f1 !important; color: #be080d !important; display: grid; place-items: center; flex-shrink: 0; }
.nh-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nh-cat-tile {
  background: var(--paper, #ffffff) !important;
  border: 1px solid var(--stroke, #ebebef) !important;
  border-radius: 18px !important;
  padding: 16px 12px !important;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  box-shadow: 0 4px 14px rgba(16, 16, 22, 0.04);
}
body.dark .nh-cat-tile { background: #19191f !important; border-color: #292932 !important; }
.nh-category-logo { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }

.nh-pub-row-pro { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--stroke, #f0f0f4); }
.nh-pub-row-pro:last-child { border-bottom: 0; }
.nh-publisher-list-avatar { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; border: 1px solid var(--stroke, #e7e7ec); }
.nh-publisher-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14.5px; color: var(--ink, #121216); background: none; border: 0; padding: 0; text-align: left; }
.nh-follow-publisher {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 0;
  background: #141418; color: #ffffff; font-size: 12px; font-weight: 800; flex-shrink: 0; cursor: pointer;
}
.nh-follow-publisher.following { background: #fff1f1; color: #be080d; border: 1px solid #ffd8d8; }
body.dark .nh-follow-publisher { background: #ffffff; color: #121216; }
body.dark .nh-follow-publisher.following { background: rgba(190, 8, 13, 0.24); color: #ff8e93; border-color: rgba(233, 19, 28, 0.4); }

.nh-mcoin-member-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 14px; background: var(--panel, #f5f5f7); border: 1px solid var(--stroke, #e8e8ee);
}
body.dark .nh-mcoin-member-card { background: #202028; border-color: #2e2e38; }
.nh-mcoin-chat-admin-card { background: #fff1f1 !important; border-color: #ffd5d5 !important; }
body.dark .nh-mcoin-chat-admin-card { background: rgba(190, 8, 13, 0.2) !important; border-color: rgba(233, 19, 28, 0.35) !important; }
.nh-mcoin-chat-admin-badge { padding: 2px 7px; border-radius: 999px; background: #be080d; color: #fff; font-size: 10px; font-weight: 800; }

/* Language Selection UI & Unified Feed/Flip Card Footers */
.nh-lang-content { padding: 14px; }
.nh-lang-count-pill {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); color: #ffffff;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.nh-lang-list { display: flex; flex-direction: column; gap: 10px; }
.nh-lang-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 18px;
  background: var(--paper, #ffffff); border: 1.5px solid var(--stroke, #ebebef);
  box-shadow: 0 3px 12px rgba(16, 16, 22, 0.04); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.nh-lang-card:active { transform: scale(.985); }
.nh-lang-card > input { position: absolute; opacity: 0; pointer-events: none; }
.nh-lang-card.selected {
  background: #fff4f4; border-color: #be080d;
  box-shadow: 0 6px 18px rgba(190, 8, 13, 0.10);
}
body.dark .nh-lang-card { background: #19191f; border-color: #292932; }
body.dark .nh-lang-card.selected { background: rgba(190, 8, 13, 0.16); border-color: #e9131c; }
.nh-lang-emblem {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 18px; font-weight: 850; letter-spacing: -.02em;
}
.nh-lang-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nh-lang-text strong { font-size: 15px; font-weight: 800; color: var(--ink, #121216); }
.nh-lang-native { font-weight: 700; color: var(--muted, #686874); font-size: 13.5px; }
.nh-lang-text small { font-size: 11.5px; color: var(--muted, #767682); }
.nh-lang-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #d2d2dc; color: transparent;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.nh-lang-card.selected .nh-lang-check {
  background: #be080d; border-color: #be080d; color: #ffffff; transform: scale(1.06);
}

/* Publisher and actions for feed cards, with a separate compact-card layout below. */
.nh-unified-single-row {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 8px !important; padding: 10px 0 4px !important; margin-top: 8px !important;
  border-top: 1px solid var(--stroke, #ededf2) !important; min-height: 44px !important;
}
.nh-single-pub {
  display: flex !important; align-items: center !important; gap: 8px !important;
  min-width: 0 !important; flex: 1 !important; text-align: left !important; padding: 0 !important; border: 0 !important; background: none !important;
}
.nh-unified-pub-logo {
  width: 30px !important; height: 30px !important; border-radius: 9px !important;
  object-fit: cover !important; border: 1px solid var(--stroke, #e4e4ec); flex-shrink: 0;
}
.gn-pub-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gn-pub-name-row { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.gn-pub-name-row .gn-pub-name {
  font-size: 13px !important; font-weight: 850 !important; color: var(--ink, #141418);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gn-pub-sub { font-size: 11px; font-weight: 700; color: var(--muted, #686876); }
.gn-more-dots { width: 28px !important; min-width: 26px !important; height: 32px !important; padding: 2px !important; color: var(--muted, #5c5c66) !important; }

.nh-unified-footer {
  display: block !important; min-height: 40px !important;
  padding: 6px 0 6px !important; border-top: 1px solid var(--stroke, #ededf2); margin-top: 4px;
}
.nh-unified-actions {
  display: flex !important; align-items: center !important; gap: 6px !important; margin: 0 !important; flex-shrink: 0;
}
.nh-unified-actions .gn-icon-only {
  width: auto !important; min-width: 28px !important; height: 34px !important;
  padding: 4px 3px !important; display: inline-flex !important; align-items: center !important;
  justify-content: center !important; gap: 4px !important; color: var(--ink, #141418) !important;
}
.nh-bold-icons svg { width: 20px !important; height: 20px !important; stroke-width: 2.25 !important; }
.nh-unified-actions .gn-icon-only small { font-size: 11.5px; font-weight: 800; color: var(--ink, #141418); }
.nh-unified-actions .liked, .nh-unified-actions .liked small { color: #be080d !important; }
.nh-unified-actions .saved { color: #be080d !important; }
.gn-act-spacer { flex: 1; }
.gn-act-sep { width: 1px; height: 16px; background: var(--stroke, #e5e5ec); margin: 0 4px; }

/* Bold typography enhancement for Language cards */
.nh-lang-text strong { font-weight: 850 !important; color: var(--ink, #121216) !important; }
.nh-lang-text small { font-weight: 600 !important; }

/* Keep 2-column compact pair cards clean on narrow width */
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-single-row { gap: 4px !important; padding-top: 8px !important; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-pub-logo { width: 24px !important; height: 24px !important; border-radius: 7px !important; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .gn-pub-name-row .gn-pub-name { font-size: 11.5px !important; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-actions { gap: 1px !important; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-actions .gn-icon-only { min-width: 22px !important; padding: 3px 1px !important; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-bold-icons svg { width: 17px !important; height: 17px !important; }

/* A compact card has a publisher row and its own action row, never competing for width. */
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-single-row {
  display:grid !important; grid-template-columns:minmax(0,1fr); gap:4px !important;
}
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-single-pub {
  width:100%; min-height:36px; overflow:hidden; gap:6px !important;
}
:is(.nh-layout-pair-left,.nh-layout-pair-right) .gn-pub-meta { flex:1; overflow:hidden; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .gn-pub-name-row { display:flex; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-verified-badge { flex:none; width:12px; height:12px; }
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-actions {
  display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)); width:100%; gap:0 !important;
}
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-actions .gn-icon-only {
  width:100% !important; min-width:0 !important; height:44px !important;
  padding:3px 0 !important; flex-direction:column; gap:2px !important;
}
:is(.nh-layout-pair-left,.nh-layout-pair-right) .nh-unified-actions small {
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px !important;
}
:is(.nh-layout-pair-left,.nh-layout-pair-right) .gn-more-dots { width: 20px !important; min-width: 18px !important; }

.ws-photo-credit{display:block;font-size:11px;line-height:1.4;color:#fff9;margin-bottom:6px}

/* Desktop readers expose a scrollbar as well as wheel and keyboard controls. */
@media(hover:hover) and (pointer:fine){main{scrollbar-width:thin}}

/* ========================================================
   News It Approved Unified Crimson & Card Design System
   Applied to ALL non-Home screens; Home screen cards & layout stay untouched!
   ======================================================== */
:root, body.dark {
  --teal: #be080d;
  --teald: #980409;
  --lightteal: #ffeded;
  --newsit-teal: #be080d;
  --nh-red: #be080d;
  --nh-red-bright: #e9131c;
  --nh-red-soft: #ffeded;
  --nh-red-border: #ffd5d5;
  --nh-card-radius: 14px;
  --nh-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
body.dark {
  --lightteal: rgba(190, 8, 13, 0.18);
}

/* Home header brand mark alignment ONLY (Home cards & layout untouched) */
.nh-app-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nh-app-logo-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: block;
  flex: none;
  box-shadow: 0 2px 8px rgba(190, 8, 13, 0.28);
}

/* Shared Pill Buttons, Rounded Inputs & Grouped Cards on Non-Home Screens */
:is(.ui-primary, .ep-finish-btn, .ws-publish-btn, .nh-reward-action, .nh-ob-primary) {
  border-radius: 25px !important;
  background: #101010 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  min-height: 44px;
  border: 1px solid #101010 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
:is(.ui-primary.ui-secondary, .nh-ob-email) {
  background: #ffffff !important;
  color: #101010 !important;
  border: 1px solid var(--stroke, #dcdce0) !important;
  box-shadow: none !important;
}
body.dark :is(.ui-primary, .ep-finish-btn, .ws-publish-btn, .nh-reward-action, .nh-ob-primary) {
  background: #e9131c !important;
  border-color: #e9131c !important;
  color: #ffffff !important;
}
body.dark :is(.ui-primary.ui-secondary, .nh-ob-email) {
  background: #24262c !important;
  color: #f3f4f6 !important;
  border-color: #3a3d46 !important;
}

/* Follow / Following Pills across Discover, Watch, Channels & Publishers */
:is(.followchip, .nh-follow-publisher, .nh-publisher-follow) {
  border-radius: 25px !important;
  background: #101010 !important;
  color: #ffffff !important;
  border: 1px solid #101010 !important;
  font-weight: 700 !important;
  min-height: 34px;
  padding: 6px 15px !important;
}
:is(.followchip.active, .nh-follow-publisher.following, .nh-publisher-follow.active) {
  background: #ffeded !important;
  color: #be080d !important;
  border-color: #ffd5d5 !important;
}
body.dark :is(.followchip.active, .nh-follow-publisher.following, .nh-publisher-follow.active) {
  background: rgba(190, 8, 13, 0.22) !important;
  color: #ff7a80 !important;
  border-color: rgba(233, 19, 28, 0.42) !important;
}

/* Form Controls & Search */
:is(.ui-field input, .ui-field textarea, .ui-field select, .ep-input, .ws-input, .ws-editor-wrap, .ui-search-lite) {
  border-radius: 12px !important;
  border-color: var(--stroke, #e5e5ea) !important;
}
:is(.ui-field input, .ui-field textarea, .ep-input, .ws-input):focus {
  border-color: #be080d !important;
  box-shadow: 0 0 0 3px rgba(190, 8, 13, 0.10);
}

/* Discover Flip Article Reader */
.nh-flip-header > b {
  color: #be080d;
  letter-spacing: 0.4px;
}
.nh-flip-category {
  border-radius: 999px !important;
  background: #e9131c !important;
  padding: 5px 11px !important;
  font-weight: 800 !important;
}
.nh-flip-actions .liked,
.nh-flip-actions .saved {
  color: #be080d !important;
}
.nh-discover-flip #nav button.sel:after {
  background: #e9131c !important;
}

/* Videos Hub & Watch Page */
.nh-video-feed {
  background: var(--panel, #f5f5f7);
}
.nh-vfeed-header {
  background: var(--paper, #ffffff);
  border-bottom: 1px solid var(--stroke, #e7e7e7);
}
.nh-vfeed-header > img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nh-vfeed-head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-vfeed-shorts-pill {
  width: auto !important;
  height: 32px !important;
  padding: 0 13px !important;
  border-radius: 25px !important;
  background: #be080d !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  white-space: nowrap;
}
.nh-vfeed-card {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--nh-card-radius) !important;
  overflow: hidden;
  background: var(--paper, #ffffff) !important;
  box-shadow: var(--nh-card-shadow) !important;
  border: 0 !important;
}
.nh-vfeed-media {
  border-radius: 0 !important;
}
.nh-vfeed-engine { z-index: 1; }
.nh-vfeed-poster { z-index: 2; }
.nh-vfeed-poster img {
  object-fit: cover !important;
}
.nh-vfeed-hero-card {
  border-radius: var(--nh-card-radius);
  overflow: hidden;
  background: var(--paper, #ffffff);
  box-shadow: var(--nh-card-shadow);
}
.nh-vfeed-hero-media {
  position: relative;
  height: 205px;
  background: linear-gradient(135deg, #32090d, #141418);
  overflow: hidden;
  cursor: pointer;
}
.nh-vfeed-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nh-vfeed-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82), transparent 62%);
}
.nh-vfeed-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #e9131c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.nh-vfeed-hero-play {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #be080d;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.nh-vfeed-hero-play svg { width: 22px; height: 22px; fill: #be080d; stroke: #be080d; }
.nh-vfeed-hero-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
}
.nh-vfeed-hero-overlay h3 {
  margin: 0 0 3px;
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 800;
}
.nh-vfeed-hero-overlay small {
  font-size: 11px;
  opacity: 0.88;
}
.nh-vfeed-hero-pub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
}
.nh-vfeed-hero-pub-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
}
.nh-vfeed-hero-pub-info img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}
.nh-vfeed-hero-pub-info b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Featured editorial card: a complete thumbnail and a quiet publisher footer. */
.nh-landscape-feed .nh-vfeed-hero-card { margin:0; border:1px solid var(--stroke); border-radius:16px; box-shadow:none; }
.nh-vfeed-featured-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 14px; }
.nh-vfeed-featured-heading>span { display:flex; align-items:center; gap:6px; font-size:10px; letter-spacing:.09em; font-weight:850; color:var(--teal); }
.nh-vfeed-featured-heading i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.nh-vfeed-featured-heading>small { font-size:10px; color:var(--muted); }
.nh-vfeed-hero-card .nh-vfeed-hero-media { display:block; width:100%; height:auto; aspect-ratio:16/9; padding:0; border:0; border-radius:0; background:#151519; }
.nh-vfeed-hero-card .nh-vfeed-hero-media>img { position:absolute; inset:0; z-index:1; object-fit:contain; }
.nh-vfeed-featured-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; background:radial-gradient(ellipse at 30% 20%,#61212b,#201820 75%); color:#ffffffb0; font-size:11px; letter-spacing:.06em; }
.nh-vfeed-featured-placeholder>img { width:46px; height:46px; }
.nh-vfeed-hero-media.has-poster .nh-vfeed-featured-placeholder { visibility:hidden; }
.nh-vfeed-hero-card .nh-vfeed-hero-media::after { display:none; }
.nh-vfeed-hero-card .nh-vfeed-hero-play { top:auto; left:auto; right:10px; bottom:10px; transform:none; width:auto; height:34px; border-radius:8px; display:flex; gap:6px; padding:0 10px; background:rgba(15,15,20,.85); color:#fff; box-shadow:none; font-size:11px; font-weight:750; }
.nh-vfeed-hero-card .nh-vfeed-hero-play svg { width:16px; height:16px; margin:0; fill:currentColor; stroke:currentColor; }
.nh-vfeed-hero-card .nh-vfeed-hero-body { padding:14px; }
.nh-vfeed-hero-card .nh-vfeed-hero-headline { width:100%; padding:0; margin:0 0 12px; font-family:var(--nh-ui-font); font-size:17px; line-height:1.45; font-weight:800; text-align:left; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.nh-vfeed-hero-card .nh-vfeed-hero-pub { padding:10px 0 0; gap:10px; }
.nh-vfeed-hero-card .nh-vfeed-hero-pub-info { flex:1; overflow:hidden; }
.nh-vfeed-hero-card .nh-vfeed-hero-pub-info b { font-size:12px; }
.nh-vfeed-hero-card .nh-vfeed-hero-pub-info>svg { flex:none; }
.nh-vfeed-publisher-monogram { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:8px; background:var(--lightteal); color:var(--teal); font-weight:800; }
.nh-vfeed-featured-follow { flex:none; min-height:36px; padding:0 10px; border:1px solid var(--stroke); border-radius:8px; color:var(--teal); background:var(--paper); font-size:11px; font-weight:800; }
.nh-vfeed-featured-follow.following { color:var(--muted); background:var(--panel); }
/* Portrait clips have a distinct silhouette, readable titles and explicit play targets. */
.nh-landscape-feed .nh-vfeed-clips { padding:10px 0 0; }
.nh-vfeed-clips .nh-vfeed-clips-head { padding:0 2px 12px; align-items:center; }
.nh-vfeed-section-kicker { display:block; font-size:9px; font-weight:800; letter-spacing:.12em; color:var(--muted); margin:0 0 4px; }
.nh-vfeed-clips .nh-vfeed-clips-head h2 { font-size:19px; letter-spacing:-.4px; }
.nh-vfeed-clips .nh-vfeed-clips-head>button { font-size:11px; min-height:40px; padding:0 4px; }
.nh-vfeed-clips .nh-vfeed-clips-rail { padding:0 0 8px; gap:12px; scroll-snap-type:x proximity; }
.nh-vfeed-clips .nh-vfeed-clip-card { width:clamp(142px,42vw,184px); scroll-snap-align:start; border-radius:12px; border:1px solid var(--stroke); box-shadow:none; }
.nh-vfeed-clips .nh-vfeed-clip-thumb { aspect-ratio:4/3; }
.nh-vfeed-clips .nh-vfeed-clip-card.is-short .nh-vfeed-clip-thumb { aspect-ratio:9/14; }
.nh-vfeed-clips .nh-vfeed-clip-thumb::after { content:''; position:absolute; inset:50% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.7)); pointer-events:none; }
.nh-vfeed-clips .nh-vfeed-clip-badge { top:8px; bottom:auto; right:8px; font-size:8px; letter-spacing:.07em; padding:4px 6px; border-radius:5px; }
.nh-vfeed-clip-overlay { position:absolute; z-index:1; left:10px; right:10px; bottom:10px; display:flex; align-items:center; gap:6px; color:#fff; }
.nh-vfeed-clip-overlay small { font-size:10px; font-weight:700; }
.nh-vfeed-clip-play { display:grid; place-items:center; width:26px; height:26px; border:1px solid #ffffff70; border-radius:50%; background:#ffffff18; flex:none; }
.nh-vfeed-clip-play svg { width:12px; height:12px; fill:currentColor; stroke:currentColor; }
.nh-vfeed-clips .nh-vfeed-clip-meta { padding:10px; }
.nh-vfeed-clips .nh-vfeed-clip-meta h3 { font-family:var(--nh-ui-font); font-size:12px; line-height:1.5; min-height:36px; margin-bottom:6px; }
.nh-vfeed-clips .nh-vfeed-clip-meta>small { font-size:10px; }
.nh-vfeed-tabs {
  background: var(--paper, #ffffff);
  border-bottom: 1px solid var(--stroke, #e7e7e7);
}
.nh-vfeed-tabs button {
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  color: var(--muted, #4a4a4f) !important;
  font-weight: 700 !important;
  padding: 12px 14px !important;
}
.nh-vfeed-tabs button.active {
  color: #be080d !important;
  border-bottom-color: #be080d !important;
  font-weight: 800 !important;
}
.nh-vfeed-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.nh-vfeed-card {
  border-radius: var(--nh-card-radius) !important;
  overflow: hidden;
  background: var(--paper, #ffffff) !important;
  box-shadow: var(--nh-card-shadow) !important;
  border: 0 !important;
}
.nh-vfeed-title {
  padding: 10px 12px 2px !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.3px;
}
.nh-vfeed-card .gn-feed-source,
.nh-vfeed-card .gn-footer {
  padding-inline: 12px !important;
}
.nh-vfeed-play {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #be080d !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.nh-vfeed-more {
  border-radius: 25px !important;
  border: 1px solid var(--stroke, #dadada) !important;
  background: var(--paper, #ffffff) !important;
  color: var(--ink, #101010) !important;
  font-weight: 700 !important;
  margin: 4px 12px 20px !important;
  width: calc(100% - 24px) !important;
}
.nh-watch-toolbar {
  border-bottom: 1px solid var(--stroke, #e7e7e7);
}
.nh-watch-play {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #be080d !important;
}

/* Publishers Directory & Following Tabs */
.nh-publisher-list-screen {
  background: var(--panel, #f5f5f7) !important;
}
.nh-publisher-list-screen > header {
  background: var(--paper, #ffffff) !important;
  color: var(--ink, #101010) !important;
  border-bottom: 1px solid var(--stroke, #e7e7e7) !important;
  min-height: 56px !important;
}
.nh-publisher-list-screen h1 {
  font-size: 18px !important;
  font-weight: 800 !important;
}
.nh-publisher-tabs {
  background: var(--paper, #ffffff) !important;
  border-bottom: 1px solid var(--stroke, #e7e7e7) !important;
  box-shadow: none !important;
}
.nh-publisher-tabs button[aria-pressed="true"] {
  color: #be080d !important;
  border-bottom: 3px solid #be080d !important;
  font-weight: 800 !important;
}
.nh-publisher-list {
  margin: 12px !important;
  padding: 4px 12px !important;
  border-radius: var(--nh-card-radius) !important;
  overflow: hidden;
  background: var(--paper, #ffffff) !important;
  box-shadow: var(--nh-card-shadow) !important;
}
.nh-publisher-row {
  border-bottom: 1px solid var(--stroke, #ececef);
}
.nh-publisher-row:last-child { border-bottom: 0; }
.nh-publisher-avatar,
.nh-publisher-list-avatar {
  border-radius: 12px !important;
}

/* Article Action Sheet, Report Modal & Comments */
.nh-sheet {
  border-radius: 22px 22px 0 0 !important;
}
.nh-report-submit {
  background: linear-gradient(135deg, #e1141e, #b1060b) !important;
  border-radius: 25px !important;
}
.nh-report-cancel {
  border-radius: 25px !important;
}
.nh-report-option.selected {
  border-color: #be080d !important;
  background: #ffeded !important;
}
body.dark .nh-report-option.selected {
  background: rgba(190, 8, 13, 0.2) !important;
}
.dh-react-box.selected {
  border-color: #be080d !important;
  background: #ffeded !important;
  color: #be080d !important;
}
.comments-send-btn {
  background: #be080d !important;
  color: #ffffff !important;
  border-radius: 50% !important;
}

/* Settings, Sub-screens & Service Cards */
.ui-page {
  background: var(--panel, #f5f5f7);
}
.ui-page .ui-settings-row,
.ui-page .nh-language-option,
.ui-page .nh-notice,
.ui-page .ui-faq,
.ui-page .nh-plan,
.ui-page .nh-paper,
.ui-page .audio-row {
  background: var(--paper, #ffffff) !important;
  border-radius: var(--nh-card-radius) !important;
  box-shadow: var(--nh-card-shadow);
  border: 1px solid var(--stroke, #ececef) !important;
  margin-bottom: 10px;
}
.ui-row-icon {
  background: var(--nh-red-soft) !important;
  color: #be080d !important;
  border-radius: 10px !important;
}
.nh-category-grid > button {
  border-radius: var(--nh-card-radius) !important;
  background: var(--paper, #ffffff) !important;
  box-shadow: var(--nh-card-shadow);
  border: 1px solid var(--stroke, #ececef) !important;
}

/* Rewards, M-Coin Wallet & Mining Hub */
.nh-rewards-screen,
.nh-mcoin-hub,
.nh-mcoin-subscreen {
  background: var(--panel, #f5f5f7) !important;
}
.nh-rewards-content {
  padding: 14px 14px 36px !important;
}
.nh-reward-intro {
  background: var(--paper, #ffffff) !important;
  padding: 22px 18px !important;
  border-radius: 16px !important;
  border: 0 !important;
  box-shadow: var(--nh-card-shadow) !important;
  margin-bottom: 14px !important;
}
.nh-reward-balance {
  position: relative;
  overflow: hidden;
  padding: 18px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #d8111b 0%, #8c0409 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(190, 8, 13, 0.26) !important;
}
.nh-reward-balance :is(h1, p, small, span, .nh-reward-kicker) {
  color: #ffffff !important;
}
.nh-reward-balance h1 {
  font-size: 40px !important;
  letter-spacing: -1.5px !important;
}
.nh-reward-balance .nh-reward-action {
  background: #ffffff !important;
  color: #be080d !important;
  border-color: #ffffff !important;
}
.nh-reward-section {
  background: var(--paper, #ffffff) !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  border: 0 !important;
  border-radius: var(--nh-card-radius) !important;
  box-shadow: var(--nh-card-shadow) !important;
}
.nh-reward-row {
  background: var(--paper, #ffffff) !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
  border: 0 !important;
  border-radius: var(--nh-card-radius) !important;
  box-shadow: var(--nh-card-shadow) !important;
}
.nh-reward-section .nh-reward-row {
  padding: 12px 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--stroke, #ececef) !important;
}
.nh-reward-section .nh-reward-row:last-child { border-bottom: 0 !important; }
.nh-mcoin-body > :is(section, div),
.nh-mcoin-member-card {
  border-radius: var(--nh-card-radius) !important;
  box-shadow: var(--nh-card-shadow) !important;
}
.nh-reward-day {
  border-radius: 10px !important;
  border: 1px solid var(--stroke, #e7e7e7) !important;
}
.nh-reward-day.current {
  background: #ffeded !important;
  border-color: #be080d !important;
  color: #be080d !important;
}
.nh-mcoin-mine-card .nh-mcoin-mine-btn {
  background: radial-gradient(circle at 35% 30%, #ef4444, #980409) !important;
  border: 4px solid #ffd5d5 !important;
  box-shadow: 0 8px 22px rgba(190, 8, 13, 0.34) !important;
}
.nh-mcoin-btn-primary {
  border-radius: 25px !important;
  background: #be080d !important;
  color: #ffffff !important;
}
.nh-mcoin-header {
  border-bottom: 2px solid #be080d !important;
}

/* Onboarding Accents (Rich Crimson Welcome + Rounded Pill Chips) */
.nh-ob-welcome {
  background: radial-gradient(circle at 50% 22%, #dc141e 0%, #8e050a 62%, #4a0205 100%) !important;
}
#nh-onboarding .nh-ob-start {
  background: #ffffff !important;
  color: #101010 !important;
  border-color: #ffffff !important;
  border-radius: 25px !important;
}
.nh-ob-brand > img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
}
.nh-ob-progress i.current {
  background: #be080d !important;
}
#nh-onboarding .nh-ob-topics button,
#nh-onboarding .nh-ob-language-list button {
  border-radius: 999px !important;
  padding: 9px 14px !important;
}
.nh-ob-topics button[aria-pressed="true"],
.nh-ob-language-list button[aria-pressed="true"] {
  background: #be080d !important;
  border-color: #be080d !important;
  color: #ffffff !important;
}
.nh-profile-feed {
  padding: 12px 12px 0;
  background: var(--panel, #f5f5f7);
}
.nh-signed-profile.nh-signed-ref {
  padding: 0 0 6px !important;
}

@media (hover: hover) and (pointer: fine) {
  main, .nh-side-flip-live { scrollbar-width: thin; scrollbar-color: #888 transparent; }
  main::-webkit-scrollbar, .nh-side-flip-live::-webkit-scrollbar { display: block; width: 8px; }
  main::-webkit-scrollbar-thumb, .nh-side-flip-live::-webkit-scrollbar-thumb { background: #888; border-radius: 8px; }
}

/* Ensure Shorts publisher name is always crisp white over vertical video */
.nh-short-copy .gn-pub-name,
.nh-short-copy .gn-pub {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78);
}

/* Fix class collision between Web Stories (.ws-toolbar) and Write Stories editor (.ws-editor-wrap .ws-toolbar) */
.ws-editor-wrap .ws-toolbar {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  background: #f5f5f7 !important;
  border-bottom: 1px solid #e7e7ec !important;
  overflow-x: auto;
}
.ws-editor-wrap .ws-toolbar button.ws-tool-btn {
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #333338 !important;
  backdrop-filter: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  flex: none;
}
.ws-editor-wrap .ws-toolbar button.ws-tool-btn .svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #333338 !important;
}
body.dark .ws-editor-wrap .ws-toolbar {
  background: #23242a !important;
  border-bottom-color: #33343a !important;
}
body.dark .ws-editor-wrap .ws-toolbar button.ws-tool-btn,
body.dark .ws-editor-wrap .ws-toolbar button.ws-tool-btn .svg {
  color: #e8e8ee !important;
  stroke: #e8e8ee !important;
}

/* The brand mark is the refresh control; motion stays inside the control. */
.nh-brand-refresh.nh-brand-refresh { position:relative; display:inline-grid; place-items:center; width:40px; height:40px; min-width:40px; padding:7px; border:1px solid var(--stroke); border-radius:12px; background:var(--paper); color:var(--teal); overflow:visible; }
.nh-refresh-logo { display:block; width:24px; height:24px; flex:none; object-fit:contain; }
.nh-brand-refresh::after { content:''; position:absolute; inset:1px; border:2px solid transparent; border-radius:inherit; pointer-events:none; }
.nh-brand-refresh[aria-busy="true"] { cursor:progress; opacity:1; }
.nh-brand-refresh[aria-busy="true"]::after { border-top-color:var(--teal); border-right-color:var(--teal); animation:nh-refresh-spin .9s linear infinite; }
.nh-brand-refresh[aria-busy="true"] .nh-refresh-logo,
.nh-pull-indicator.is-refreshing .nh-refresh-logo { animation:nh-brand-refresh-pulse 1s ease-in-out infinite; }
.nh-pull-indicator .nh-refresh-logo { width:25px; height:25px; }
.nh-pull-indicator.is-refreshing { border-top-color:var(--teal); }
@keyframes nh-brand-refresh-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(.8)} }
@media(prefers-reduced-motion:reduce) {
 .nh-brand-refresh[aria-busy="true"]::after,
 .nh-brand-refresh[aria-busy="true"] .nh-refresh-logo,
 .nh-pull-indicator.is-refreshing .nh-refresh-logo { animation:none; }
}

/* Smooth 60fps compositor scroll, offscreen card virtualization, and instant tap response */
button, a, [role="button"], #nav button, .nh-cat-tab, .nh-ptc-tab, .nh-editorial-card, .nh-vfeed-card, .nh-ptc-story, .nh-profile-short-tile, .nh-menu-row {
  touch-action: manipulation;
}
.nh-home-screen, .nh-video-feed, .nh-ptc-page, .nh-user-profile-page {
  touch-action: pan-y;
}
.nh-cat-tabs-rail, .nh-follow-rail, .webstories-rail, .nh-top-story-carousel-wrap, .hscroll, .nh-vfeed-tabs, .nh-ptc-tabs, .nh-signed-collection-pills {
  touch-action: pan-x pan-y;
}
.nh-editorial-card,
.dh-infeed-video-card,
.nh-vfeed-card,
.nh-ptc-story.nh-ptc-card {
  content-visibility: auto;
  contain: layout style paint;
  contain-intrinsic-size: auto 340px;
}
.nh-profile-short-tile {
  content-visibility: auto;
  contain: layout style paint;
  contain-intrinsic-size: auto 190px;
}
#nav button:active,
.nh-cat-tab:active,
.nh-ptc-tab:active,
.nh-menu-row:active,
.nh-icon-circle:active {
  transform: scale(0.95);
  transition: transform 0.08s ease;
}

/* Instant 0ms tap response across WebView pages (no 300ms double-tap zoom wait) */
button, a, [onclick], [role="button"], .nh-btn, .nh-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
