/* ============================================================================
   HUMANITYBOOK · ЕДИНЫЙ CSS-КОНТРАКТ ПОРТАЛА (hb-tokens.css)
   Участники Международного конкурса дизайна меняют ТОЛЬКО эти переменные и правила,
   не изменяя ни одного байта в HTML, PHP или JS. (1 правило = 1 строка)
   ============================================================================ */
:root {
  --hb-canvas:     #090b10;
  --hb-canvas-ink: #ece7dc;
  --hb-nav-bg:     #12151d;
  --hb-nav-ink:    #ece7dc;
  --hb-nav-brd:    #2a3040;
  --hb-card-bg:    #12151d;
  --hb-card-ink:   #ece7dc;
  --hb-card-muted: #9a9589;
  --hb-card-brd:   #262b38;
  --hb-sub-bg:     #0b0d12;
  --hb-sub-ink:    #ece7dc;
  --hb-sub-brd:    #262b38;
  --hb-accent:     #d4af37;
  --hb-accent-2:   #a3e635;
  --hb-act-bg:     #d4af37;
  --hb-act-ink:    #090b10;
  --hb-pill-bg:    #0b0d12;
  --hb-pill-ink:   #ffd700;
  --hb-pill-brd:   #d4af37;
  --hb-ice:        #7dd3fc;
  --hb-ice-dim:    rgba(125, 211, 252, .10);
  --hb-red:        #ef4444;
  --hb-red-dim:    rgba(239, 68, 68, .12);
  --hb-gold-dim:   rgba(212, 175, 55, .12);
  --hb-emerald:    #34d399;
  --hb-w-gate:     760px;
  --hb-w-main:     1350px;
  --hb1: var(--hb-canvas); --hb2: var(--hb-card-bg); --hb3: var(--hb-nav-bg); --hb4: var(--hb-card-brd); --hb5: var(--hb-sub-brd); --hb6: var(--hb-card-ink); --hb7: var(--hb-accent); --hb8: var(--hb-accent-2); --hb9: var(--hb-pill-ink); --hb10: var(--hb-nav-bg); --hb11: var(--hb-canvas);
  --bg: var(--hb-canvas); --panel: var(--hb-card-bg); --panel-2: var(--hb-nav-bg); --panel2: var(--hb-nav-bg); --line: var(--hb-card-brd); --ink: var(--hb-card-ink); --muted: var(--hb-card-muted); --gold: var(--hb-accent); --lime: var(--hb-accent-2); --sky: var(--hb-ice); --ice: var(--hb-ice); --ice-dim: var(--hb-ice-dim); --gold-dim: var(--hb-gold-dim); --red-dim: var(--hb-red-dim); --ok: #4ade80; --warn: #fbbf24; --err: #f87171; --red: var(--hb-red);
}

/* ПРИМЕНЕНИЕ КОНТРАКТА КО ВСЕМ ТЕМАТИЗИРУЕМЫМ ЭКРАНАМ (1 КЛАСС = 1 СТРОКА) */
body:not(.hb-no-theme) { background: var(--hb-canvas) !important; color: var(--hb-canvas-ink) !important; }
body:not(.hb-no-theme) .topbar, body:not(.hb-no-theme) .status-strip { background: var(--hb-nav-bg) !important; color: var(--hb-nav-ink) !important; border-bottom: 1px solid var(--hb-nav-brd) !important; }
body:not(.hb-no-theme) .brand, body:not(.hb-no-theme) .hero h1, body:not(.hb-no-theme) h1, body:not(.hb-no-theme) h2, body:not(.hb-no-theme) h3 { color: var(--hb-accent) !important; }
body:not(.hb-no-theme) .hero { background: var(--hb-nav-bg) !important; color: var(--hb-nav-ink) !important; border: 1px solid var(--hb-accent) !important; }
body:not(.hb-no-theme) .card, body:not(.hb-no-theme) .nav-card, body:not(.hb-no-theme) .cov-box, body:not(.hb-no-theme) .stat-card, body:not(.hb-no-theme) .design-card, body:not(.hb-no-theme) .trust-box, body:not(.hb-no-theme) details, body:not(.hb-no-theme) #hbLowerInfoStack1180, body:not(.hb-no-theme) #joyAscensionPanel { background: var(--hb-card-bg) !important; color: var(--hb-card-ink) !important; border: 1px solid var(--hb-card-brd) !important; }
body:not(.hb-no-theme) .nav-card:hover { border-color: var(--hb-accent) !important; transform: translateY(-2px); }
body:not(.hb-no-theme) .card-desc, body:not(.hb-no-theme) .card-file, body:not(.hb-no-theme) .desc, body:not(.hb-no-theme) .muted, body:not(.hb-no-theme) label { color: var(--hb-card-muted) !important; }
body:not(.hb-no-theme) .notice, body:not(.hb-no-theme) .notice-box, body:not(.hb-no-theme) .notice-ice, body:not(.hb-no-theme) .shield, body:not(.hb-no-theme) .w-cell, body:not(.hb-no-theme) .seed-cell, body:not(.hb-no-theme) .entry-item, body:not(.hb-no-theme) .entry-box, body:not(.hb-no-theme) .kin-row, body:not(.hb-no-theme) .row-item, body:not(.hb-no-theme) .log-item, body:not(.hb-no-theme) .cart-item, body:not(.hb-no-theme) .orphan-item, body:not(.hb-no-theme) .face-card, body:not(.hb-no-theme) .kin-node, body:not(.hb-no-theme) .idx-counter-card, body:not(.hb-no-theme) .hb-inner-box { background: var(--hb-sub-bg) !important; color: var(--hb-sub-ink) !important; border: 1px solid var(--hb-sub-brd) !important; }
body:not(.hb-no-theme) .notice *, body:not(.hb-no-theme) .notice-box *, body:not(.hb-no-theme) .shield *, body:not(.hb-no-theme) .hb-inner-box * { color: inherit; }
body:not(.hb-no-theme) .btn, body:not(.hb-no-theme) .tbtn, body:not(.hb-no-theme) .copy-btn, body:not(.hb-no-theme) .icon-btn, body:not(.hb-no-theme) .nav-pill, body:not(.hb-no-theme) .tab, body:not(.hb-no-theme) .tab-btn, body:not(.hb-no-theme) .gen-pill, body:not(.hb-no-theme) .mode-btn { background: var(--hb-sub-bg) !important; color: var(--hb-sub-ink) !important; border: 1px solid var(--hb-sub-brd) !important; }
body:not(.hb-no-theme) .btn:hover, body:not(.hb-no-theme) .tbtn:hover, body:not(.hb-no-theme) .copy-btn:hover, body:not(.hb-no-theme) .nav-pill:hover, body:not(.hb-no-theme) .tab:hover, body:not(.hb-no-theme) .tab-btn:hover, body:not(.hb-no-theme) .gen-pill:hover { border-color: var(--hb-accent) !important; color: var(--hb-accent) !important; }
body:not(.hb-no-theme) .btn.primary, body:not(.hb-no-theme) .btn.gold, body:not(.hb-no-theme) .btn.ice, body:not(.hb-no-theme) .tab.active, body:not(.hb-no-theme) .tab-btn.active, body:not(.hb-no-theme) .gen-pill.active, body:not(.hb-no-theme) .mode-btn.active { background: var(--hb-act-bg) !important; color: var(--hb-act-ink) !important; border-color: var(--hb-act-bg) !important; font-weight: 800 !important; }
body:not(.hb-no-theme) input:not([type="checkbox"]):not([type="radio"]), body:not(.hb-no-theme) select, body:not(.hb-no-theme) textarea { background: var(--hb-sub-bg) !important; color: var(--hb-sub-ink) !important; border: 1px solid var(--hb-sub-brd) !important; }
body:not(.hb-no-theme) input:focus, body:not(.hb-no-theme) select:focus, body:not(.hb-no-theme) textarea:focus { border-color: var(--hb-accent) !important; }
body:not(.hb-no-theme) .pill, body:not(.hb-no-theme) .hb-time-gold-pill { background: var(--hb-pill-bg) !important; color: var(--hb-pill-ink) !important; border: 1px solid var(--hb-pill-brd) !important; }
body:not(.hb-no-theme) .time-lime, body:not(.hb-no-theme) #statPaid, body:not(.hb-no-theme) #statBonus, body:not(.hb-no-theme) #liveTimeCounter { color: var(--hb-accent-2) !important; }

/* ГЛАВНАЯ КРАСНАЯ СУРГУЧНАЯ КНОПКА ЗАПЕЧАТЫВАНИЯ — НЕПРИКОСНОВЕННЫЙ ИНВАРИАНТ */
#btnSealRecord, #btnManualSaveTime:not(:disabled) { background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important; color: #ffffff !important; border: 1.5px solid #fecaca !important; font-weight: 900 !important; }

/* ЭТАЛОН 02 · СТАРАЯ ГАЗЕТА (BROADSHEET EDITORIAL + SKY BLUE #a5f3fc) */
html.hb-theme-newspaper, html.hb-theme-newspaper body:not(.hb-no-theme) { --hb-canvas: #fdfdf8; --hb-canvas-ink: #1a1a1a; --hb-nav-bg: #fdfdf8; --hb-nav-ink: #1a1a1a; --hb-nav-brd: #1a1a1a; --hb-card-bg: #ffffff; --hb-card-ink: #1a1a1a; --hb-card-muted: #333333; --hb-card-brd: #1a1a1a; --hb-sub-bg: #fbfbcf; --hb-sub-ink: #1a1a1a; --hb-sub-brd: #1a1a1a; --hb-accent: #b22222; --hb-accent-2: #1a1a1a; --hb-act-bg: #a5f3fc; --hb-act-ink: #1a1a1a; --hb-pill-bg: #a5f3fc; --hb-pill-ink: #1a1a1a; --hb-pill-brd: #1a1a1a; --hb-gold-dim: #fbfbcf; --hb-ice: #1a1a1a; }
html.hb-theme-newspaper body:not(.hb-no-theme) .topbar { border-bottom: 3px double #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hero, html.hb-theme-newspaper body:not(.hb-no-theme) .biz-hero, html.hb-theme-newspaper body:not(.hb-no-theme) .card, html.hb-theme-newspaper body:not(.hb-no-theme) .nav-card, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-entry-card, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-prologue, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-ladder-step, html.hb-theme-newspaper body:not(.hb-no-theme) .trust-box, html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel, html.hb-theme-newspaper body:not(.hb-no-theme) details { background: #ffffff !important; color: #1a1a1a !important; border: 3px double #1a1a1a !important; border-radius: 2px !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .biz-hero { background: #fbfbcf !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hero p, html.hb-theme-newspaper body:not(.hb-no-theme) .biz-hero p, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-prologue, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-ladder-txt, html.hb-theme-newspaper body:not(.hb-no-theme) .card-desc, html.hb-theme-newspaper body:not(.hb-no-theme) .lead, html.hb-theme-newspaper body:not(.hb-no-theme) .desc { color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .btn, html.hb-theme-newspaper body:not(.hb-no-theme) .idx-sec-btn, html.hb-theme-newspaper body:not(.hb-no-theme) .nav-pill, html.hb-theme-newspaper body:not(.hb-no-theme) .tbtn, html.hb-theme-newspaper body:not(.hb-no-theme) .copy-btn, html.hb-theme-newspaper body:not(.hb-no-theme) #btnRollDice23 { background: #ffffff !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .btn.primary, html.hb-theme-newspaper body:not(.hb-no-theme) .btn.gold, html.hb-theme-newspaper body:not(.hb-no-theme) .btn.green, html.hb-theme-newspaper body:not(.hb-no-theme) .idx-enter-btn, html.hb-theme-newspaper body:not(.hb-no-theme) #paranoidWordsBox, html.hb-theme-newspaper body:not(.hb-no-theme) #createKbdBuf, html.hb-theme-newspaper body:not(.hb-no-theme) #enterKbdBuf { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .btn:hover, html.hb-theme-newspaper body:not(.hb-no-theme) .idx-sec-btn:hover, html.hb-theme-newspaper body:not(.hb-no-theme) .idx-enter-btn:hover, html.hb-theme-newspaper body:not(.hb-no-theme) .nav-pill:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #btnRollDice23:hover { background: #fbfbcf !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) button:disabled { opacity: .62 !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) details > summary::before { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) details details > summary::before { background: #fbfbcf !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hero h1, html.hb-theme-newspaper body:not(.hb-no-theme) .card h2, html.hb-theme-newspaper body:not(.hb-no-theme) h1, html.hb-theme-newspaper body:not(.hb-no-theme) h2 { color: #1a1a1a !important; border-bottom: 1px solid #1a1a1a; padding-bottom: 4px; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-time-strip, html.hb-theme-newspaper body:not(.hb-no-theme) .ws-shell aside, html.hb-theme-newspaper body:not(.hb-no-theme) .ws-shell main { background: #fdfdf8 !important; color: #1a1a1a !important; border-color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) table th { background: #d8d8d8 !important; color: #1a1a1a !important; border-top: 2px solid #1a1a1a !important; border-bottom: 3px double #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) table td { border-bottom: 1px dashed #888888 !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-entry-title, html.hb-theme-newspaper body:not(.hb-no-theme) .hb-ladder-age { color: #b22222 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbThemePopover { background: #fdfdf8 !important; color: #1a1a1a !important; border: 3px double #1a1a1a !important; border-radius: 4px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel > div > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianDigestV0Shell, html.hb-theme-newspaper body:not(.hb-no-theme) #cornerCandleDock { background: #fdfdf8 !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #btnExitZone, html.hb-theme-newspaper body:not(.hb-no-theme) #btnOpenMinistryModal, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveTopCornerWrap button { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #btnExitZone:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #btnOpenMinistryModal:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveTopCornerWrap button:hover { background: #fbfbcf !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel span, html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianDigestV0Shell div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianDigestV0Shell button { color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyCountersGrid > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianDigestV0Shell .hb-gz-tab, html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel > div > div > div { background: #fdfdf8 !important; border: 1.5px solid #1a1a1a !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyCountersGrid > div:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianDigestV0Shell .hb-gz-tab:hover { background: #fbfbcf !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-time-gold-pill, html.hb-theme-newspaper body:not(.hb-no-theme) #hbStrip5LostVal, html.hb-theme-newspaper body:not(.hb-no-theme) #hbStrip5ExchangeBtn, html.hb-theme-newspaper body:not(.hb-no-theme) #btnZoneRamLogout, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter button, html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel > div > button { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-time-gold-pill:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbStrip5ExchangeBtn:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #btnZoneRamLogout:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #joyAscensionPanel > div > button:hover { background: #fbfbcf !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #btnManualSaveTime { background: #dc2626 !important; color: #ffffff !important; border: 1.5px solid #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #btnTopUpTime { background: #16a34a !important; color: #ffffff !important; border: 1.5px solid #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #grandZoneCapitalBanner { background: #fdfdf8 !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #gatheredStreamFooterBar { background: #fbfbcf !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyCountersGrid .hb-time-gold-pill, html.hb-theme-newspaper body:not(.hb-no-theme) #joyCountersGrid #hbStrip5LostVal, html.hb-theme-newspaper body:not(.hb-no-theme) #btnArkMillenniaView { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; box-shadow: none !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #joyCountersGrid .hb-time-gold-pill:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #btnArkMillenniaView:hover { background: #fbfbcf !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #stagesGrid > div > div:nth-child(2) { background: #fbfbcf !important; border: 1px solid #1a1a1a !important; height: 9px !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #stagesGrid > div > div:nth-child(2) > div { background: #38bdf8 !important; border-right: 1px solid #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #cornerCandleDock button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter a, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter button, html.hb-theme-newspaper body:not(.hb-no-theme) [id*="Ministry"] { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #cornerCandleDock button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter a:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) [id*="Ministry"]:hover { background: #fbfbcf !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #cntLostTime { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocCard, html.hb-theme-newspaper body:not(.hb-no-theme) #hbMinistryModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hb99RingModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbArkMillenniaModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDemoGalleryModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveModeModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbTimeDetailModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostExchangeModal > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDonateConfirmModal > div { background: #fdfdf8 !important; color: #1a1a1a !important; border: 3px double #1a1a1a !important; border-radius: 3px !important; box-shadow: 0 12px 32px rgba(0,0,0,.35) !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocCard *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbMinistryModal > div *, html.hb-theme-newspaper body:not(.hb-no-theme) #hb99RingModal > div *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbArkMillenniaModal > div *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDemoGalleryModal > div *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveModeModal > div * { color: #1a1a1a !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbMinistryModal pre, html.hb-theme-newspaper body:not(.hb-no-theme) #hbArkMillenniaModal > div > div > div, html.hb-theme-newspaper body:not(.hb-no-theme) #hb99RingModal input, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDemoGalleryModal > div > div { background: #fbfbcf !important; border: 1px solid #1a1a1a !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocCard button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbMinistryModal button, html.hb-theme-newspaper body:not(.hb-no-theme) #hb99RingModal button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbArkMillenniaModal button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDemoGalleryModal button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveModeModal button { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocCard button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbMinistryModal button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hb99RingModal button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbArkMillenniaModal button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbDemoGalleryModal button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbAliveModeModal button:hover { background: #fbfbcf !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) [style*="#7dd3fc"], html.hb-theme-newspaper body:not(.hb-no-theme) [style*="#38bdf8"] { color: #0369a1 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule > div { background: #fdfdf8 !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostExchangeModal > div * { color: #1a1a1a !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule select, html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocBody div[style*="background"], html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostExchangeModal div[style*="background"] { background: #fbfbcf !important; color: #1a1a1a !important; border: 1px solid #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostExchangeModal button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter ~ div button, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter ~ button { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; box-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbGrowthCodesModule button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostExchangeModal button:hover, html.hb-theme-newspaper body:not(.hb-no-theme) #hbGuardianFooter ~ div button:hover { background: #fbfbcf !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) [id*="99Ring"]:not(#hb99RingModal), html.hb-theme-newspaper body:not(.hb-no-theme) [class*="99-tip"], html.hb-theme-newspaper body:not(.hb-no-theme) [id*="RingTip"] { background: #fdfdf8 !important; color: #1a1a1a !important; border: 2px solid #b22222 !important; box-shadow: 0 6px 18px rgba(0,0,0,.22) !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) [id*="99Ring"]:not(#hb99RingModal) *, html.hb-theme-newspaper body:not(.hb-no-theme) [class*="99-tip"] *, html.hb-theme-newspaper body:not(.hb-no-theme) [id*="RingTip"] * { color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbExchRateVal { color: #b22222 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 { background: #fdfdf8 !important; border: 1.5px solid #1a1a1a !important; color: #1a1a1a !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 *, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 span { color: #1a1a1a !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 b, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 strong { color: #b22222 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 .hb-time-gold-pill, html.hb-theme-newspaper body:not(.hb-no-theme) #hbLostTimeStrip5 [id*="Lost"] { background: #a5f3fc !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-99-ring-tip { background: #fbfbcf !important; color: #1a1a1a !important; border: 2px solid #1a1a1a !important; border-top: 5px solid #38bdf8 !important; border-radius: 3px !important; box-shadow: 0 6px 18px rgba(0,0,0,.22) !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-99-ring-tip * { color: #1a1a1a !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) .hb-99-ring-tip strong { background: #a5f3fc !important; color: #1a1a1a !important; padding: 1px 5px; border-radius: 2px; display: inline-block; margin-bottom: 3px; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav a, html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav button { background: #fbfbcf !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; text-shadow: none !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav a[style*="linear-gradient"], html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav a[style*="--hb-act-bg"], html.hb-theme-newspaper body:not(.hb-no-theme) #hbUnifiedZoneNav #hbThemeMagicBtn { background: #a5f3fc !important; color: #1a1a1a !important; font-weight: 900 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height:6px"], html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height: 6px"], html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height:8px"], html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height: 8px"] { background: #fbfbcf !important; border: 1px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height:6px"] > div, html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height: 6px"] > div, html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height:8px"] > div, html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="height: 8px"] > div { background: #38bdf8 !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocBody a[style*="background"], html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocBody div[style*="background"] { background: #fbfbcf !important; color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #hbInfoDocBody a[style*="background"]:hover { background: #a5f3fc !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="overflow:hidden"], html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="overflow: hidden"] { background: #fbfbcf !important; border: 1px solid #1a1a1a !important; border-radius: 2px !important; }
html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="overflow:hidden"] > div, html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard div[style*="overflow: hidden"] > div, html.hb-theme-newspaper body:not(.hb-no-theme) #arkCounterCard [style*="width:"][style*="%"] { background: #38bdf8 !important; min-width: 6px !important; }

/* УНИВЕРСАЛЬНЫЙ Ч/Б-ФИЛЬТР ПОВЕРХ ЛЮБОГО СТИЛЯ */
html.hb-bw-filter, html:has(body.hb-theme-off) { filter: grayscale(100%) contrast(1.06); }
#hbBwToggleBtn { width: 100%; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--hb-accent, #d4af37); background: var(--hb-sub-bg, #0b0d12); color: var(--hb-card-ink, #ece7dc); font-size: .73rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
#hbBwToggleBtn.is-bw { background: var(--hb-act-bg, #d4af37); color: var(--hb-act-ink, #090b10); }

/* КОМПАКТНАЯ ПЛАШКА ПОКОЛЕНИЯ И КНОПКА ПАЛИТРЫ В ШАПКЕ */
#hbHeaderContestBar { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hb-gen-badge { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--hb-sub-bg, #0b0d12); border: 1px solid var(--hb-accent, #d4af37); color: var(--hb-accent, #d4af37); font-size: .74rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hb-gen-badge:hover { background: var(--hb-act-bg, #d4af37); color: var(--hb-act-ink, #090b10); }
@media (max-width: 640px) { .hb-gen-badge .hb-gen-long { display: none; } }
#hbThemeMagicBtn { height: 21px; padding: 0 3px; border-radius: 9px; border: 1px solid var(--hb-accent, #d4af37); color: #000000 !important; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; white-space: nowrap; background: conic-gradient(from 45deg, red, orange, yellow, green, teal, blue, purple); }
#hbThemePopover { position: fixed; top: 54px; right: 16px; z-index: 10090; width: 320px; max-width: calc(100vw - 24px); padding: 14px; background: var(--hb-card-bg, #0d1017); border: 1.5px solid var(--hb-accent, #d4af37); border-radius: 14px; box-shadow: 0 22px 55px rgba(0,0,0,0.92); color: var(--hb-card-ink, #ece7dc); display: none; flex-direction: column; gap: 10px; }
#hbThemePopover a, #hbThemePopover a:visited, #hbThemePopover a:hover, #hbThemePopover a:active { text-decoration: none !important; color: var(--hb-accent, #d4af37) !important; }
#hbThemeGrid12 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.hb-t-dot { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--hb-card-brd, #262b38); background: var(--hb-sub-bg, #12151d); color: var(--hb-card-ink, #ece7dc); font-size: .74rem; font-weight: 800; text-decoration: none !important; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,0.85); }
.hb-t-dot.act { border: 2px solid var(--hb-accent, #d4af37) !important; box-shadow: 0 0 0 1px var(--hb-accent, #d4af37); }
.hb-t-dot.hb-t-slot-empty { opacity: .72; border-style: dashed; border-color: var(--hb-sub-brd, #262b38); background: var(--hb-sub-bg, #0b0d12); color: var(--hb-accent, #d4af37) !important; text-shadow: none; }
.hb-t-dot.hb-t-slot-empty:hover { opacity: 1; border-color: var(--hb-accent, #d4af37) !important; }
