/* «Сигналы» v2 (webapp/hub2.js): истории дня + заметки Claude.
   Главный экран — на токенах приложения (светлая и тёмная тема),
   просмотр истории — всегда тёмный, как в сторис. */
.h2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.h2-head .app-title { margin: 0; }
.h2-live { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.h2-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 22%, transparent); }

.h2-stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 14px -2px 0; padding: 2px 2px 12px;
    border-bottom: 1px solid var(--border); }
.h2-stories::-webkit-scrollbar { display: none; }
.h2-st { flex: none; width: 64px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font);
    color: var(--text); font-size: 11.5px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.h2-ring { width: 60px; height: 60px; border-radius: 50%; padding: 2.5px;
    background: conic-gradient(#E08A6B, #f3b294, #d97757, #E08A6B); display: block; }
.h2-ring > span { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--bg);
    display: grid; place-items: center; color: var(--accent); }
.h2-ring svg { width: 24px; height: 24px; }
.h2-st.seen .h2-ring { background: var(--border); }
.h2-st.seen .h2-ring > span { color: var(--muted); }
.h2-st:active .h2-ring { transform: scale(.95); }

.h2-pin { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 9px 12px; border-radius: 14px;
    font-size: 13px; line-height: 1.35; color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.h2-pin svg { width: 17px; height: 17px; flex: none; }

.h2-feed-h { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11.5px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h2-cl { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.h2-cl svg { width: 13px; height: 13px; }
.h2-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-bottom: 16px; }
.h2-note { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 18px 18px 18px; padding: 11px 12px;
    font-size: 14px; line-height: 1.5; color: var(--text); }
.h2-note b { font-weight: 600; }
.h2-note-t { font-size: 11px; color: var(--muted); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.h2-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.h2-tags span { font-size: 11.5px; border-radius: 7px; padding: 3px 7px; color: var(--down);
    background: color-mix(in srgb, var(--down) 12%, transparent); }
.h2-pair { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 9px; border-radius: 12px; background: var(--bg); }
.h2-pair b { font-size: 13.5px; white-space: nowrap; }
.h2-spark { margin-left: auto; flex: none; }
.h2-pair > span { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h2-pair .up, .h2-s-big .up { color: var(--up); }
.h2-pair .down, .h2-s-big .down { color: var(--down); }
.h2-sig { flex: none; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--font);
    font-weight: 600; font-size: 13px; padding: 8px 13px; cursor: pointer; }
.h2-sig:active { transform: scale(.97); }

/* ---------- просмотр истории ---------- */
.h2-sv { position: fixed; inset: 0; z-index: 900; color: #F4F2EC; font-family: var(--font); display: flex; flex-direction: column;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: radial-gradient(120% 60% at 50% 0%, #3d2b23 0%, #1f1d1a 62%); }
.h2-sv.hidden { display: none; }
.h2-sv-bars { display: flex; gap: 4px; flex: none; }
.h2-sv-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.h2-sv-bars span i { display: block; height: 100%; width: 0; background: #F4F2EC; }
.h2-sv-bars span.done i { width: 100%; }
.h2-sv-who { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 14px; flex: none; }
.h2-sv-who .h2-cl { width: 30px; height: 30px; }
.h2-sv-who .h2-cl svg { width: 16px; height: 16px; }
.h2-sv-who b { font-weight: 600; }
.h2-sv-x { margin-left: auto; width: 36px; height: 36px; border: none; background: none; color: #cfccc4; cursor: pointer; position: relative; z-index: 3; }
.h2-sv-x svg { width: 22px; height: 22px; }
.h2-sv-body { flex: 1; min-height: 0; overflow-y: auto; padding-top: 18px; }
.h2-sv-tap { position: absolute; top: 90px; bottom: 150px; width: 34%; z-index: 2; }
.h2-sv-tap.l { left: 0; } .h2-sv-tap.r { right: 0; }
.h2-sv-foot { flex: none; position: relative; z-index: 3; padding-top: 10px; }
.h2-sv-hint { text-align: center; font-size: 12px; color: #8f8d86; margin-top: 10px; }
.h2-s-eb { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #E08A6B; font-weight: 600; }
.h2-s-h { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 29px; line-height: 1.1; margin: 8px 0 0; text-wrap: balance; }
.h2-s-src { font-size: 12.5px; color: #a8a59d; margin: 6px 0 0; }
.h2-scs { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.h2-sc { display: flex; gap: 11px; align-items: flex-start; background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 12px; }
.h2-sc i { color: #E08A6B; flex: none; margin-top: 1px; }
.h2-sc i svg { width: 20px; height: 20px; }
.h2-sc b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.h2-sc small { display: block; font-size: 13px; color: #b5b2aa; margin-top: 2px; line-height: 1.4; }
.h2-sc small:empty { display: none; }
.h2-s-big { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.h2-s-big b { font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.h2-s-big span { font-size: 15px; }
.h2-s-chart { display: block; width: 100%; height: 150px; margin-top: 12px; }
.h2-nl { display: flex; flex-direction: column; margin-top: 14px; }
.h2-nr { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.h2-nr.past { opacity: .5; }
.h2-nr-t { font-size: 15px; font-weight: 600; min-width: 46px; font-variant-numeric: tabular-nums; }
.h2-nr > span:nth-child(2) { flex: 1; min-width: 0; }
.h2-nr b { display: block; font-size: 14px; font-weight: 600; }
.h2-nr small { display: block; font-size: 12px; color: #a8a59d; margin-top: 2px; overflow-wrap: anywhere; }
.h2-imp { font-style: normal; color: #F0645F; font-size: 10px; letter-spacing: 1px; white-space: nowrap; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .h2-st:active .h2-ring, .h2-sig:active { transform: none; } }
