:root {
  --bg: #ECEBE8;
  --tile: #D9D8D5;
  --tile-2: #CFCECB;
  --dark: #151515;
  --on-dark: #F4F3F0;
  --on-dark-2: #8E8D8A;
  --ink: #151515;
  --ink-2: #5E5D5A;
  --ink-3: #9B9995;
  --line: #D6D4D0;
  --red: #E5443B;
  --up: #1E9E5A;
  --down: #E5443B;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --tile: #1D1D1D;
    --tile-2: #262626;
    --dark: #1A1A1A;
    --on-dark: #F4F3F0;
    --on-dark-2: #7D7C79;
    --ink: #F4F3F0;
    --ink-2: #A9A8A4;
    --ink-3: #6D6C69;
    --line: #262626;
    --up: #3CC47E;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 10px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px calc(110px + var(--safe-b)); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.wrap.pulling { transition: none; }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.title { margin: 0; font-size: 22px; font-weight: 500; color: var(--ink-3); letter-spacing: -0.01em; }
.title b { color: var(--ink); font-weight: 700; }
.icon-btn { width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: transform .12s; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.88); }
.icon-btn.busy svg, .ptr.busy svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; z-index: 15; transform: translateY(-60px); opacity: 0; pointer-events: none; }
.ptr svg { width: 18px; height: 18px; }
.ptr.ready { background: var(--red); }

/* сумма */
.hero { margin: 22px 0 18px; }
.hero-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.hero-sum b { font-size: clamp(32px, 9.5vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-sum span { font-size: 16px; color: var(--ink-3); font-weight: 500; }
.hero-line { margin-top: 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.hero-line .up { color: var(--up); font-weight: 700; }
.hero-line .down { color: var(--down); font-weight: 700; }

/* тёмная карточка графика */
.chart { background: var(--dark); color: var(--on-dark); border-radius: 26px; padding: 18px 16px 14px; box-shadow: 0 10px 0 -4px var(--tile-2); }
.chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .07); }
.chart .ylab { fill: var(--on-dark-2); font-size: 9px; font-family: var(--font); font-weight: 600; }
.chart .now { fill: none; stroke: var(--on-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .prev { fill: none; stroke: var(--on-dark-2); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.chart .dot { fill: var(--red); stroke: var(--on-dark); stroke-width: 2.5; }
.chart .tag rect { fill: var(--red); }
.chart .tag text { fill: #fff; font-size: 10px; font-weight: 700; font-family: var(--font); }
.chart-legend { display: flex; gap: 16px; font-size: 11px; color: var(--on-dark-2); font-weight: 600; margin: 2px 0 10px; }
.chart-legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--on-dark); vertical-align: 3px; margin-right: 6px; }
.chart-legend i.p { border-top: 2px dashed var(--on-dark-2); }
.ranges { display: flex; justify-content: space-between; gap: 2px; margin-top: 8px; }
.ranges button { border: 0; background: none; color: var(--on-dark-2); font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 10px; min-width: 40px; }
.ranges button[aria-pressed="true"] { background: #353535; color: var(--on-dark); }
.ranges button svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.ranges { align-items: center; }

.insight-line { margin: 24px 2px 0; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.insight-line b { color: var(--ink); }

/* плитки инсайтов */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile { border-radius: 22px; padding: 16px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; background: var(--tile); min-width: 0; }
.tile .l { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.tile .v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.tile.dark { background: var(--dark); color: var(--on-dark); }
.tile.dark .l, .tile.dark .s { color: var(--on-dark-2); }
.tile.red { background: var(--red); color: #fff; }
.tile.red .l, .tile.red .s { color: rgba(255, 255, 255, .8); }
.tile.ring { grid-row: span 2; align-items: center; text-align: center; justify-content: center; gap: 10px; }
.tile.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring-box { position: relative; }
.ring-box b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.tile.ring .v { font-size: 15px; white-space: normal; }

/* секции и строки */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 2px 8px; }
.sec h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.sec small, .sec .link { white-space: nowrap; font-size: 13px; color: var(--ink-3); font-weight: 600; border: 0; background: none; padding: 0; }
.row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border: 0; background: none; width: 100%; text-align: left; }
.row:active { opacity: .6; }
.row .name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .sub { font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 1px; }
.row .amt { text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .amt small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 1px; }
.row .amt small.up { color: var(--up); }
.row .amt small.down { color: var(--down); }
.row .amt.minus { color: var(--ink-2); }
.pmark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; overflow: hidden; flex: none; background: var(--dark); }
.pmark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmark.pad img { width: 58%; height: 58%; object-fit: contain; }
.pmark.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.ico-tile { width: 46px; height: 46px; border-radius: 14px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; }
.ico-tile svg { width: 22px; height: 22px; }
.ev-ico { width: 46px; height: 46px; position: relative; }
.ev-ico .kind { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--bg); }
.ev-ico .kind svg { width: 10px; height: 10px; color: #fff; }

/* текстовые табы */
.tabs-text { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 18px -22px 4px; padding: 0 22px; }
.tabs-text::-webkit-scrollbar { display: none; }
.tabs-text button { flex: none; border: 0; background: none; color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 7px; }
.tabs-text button[aria-pressed="true"] { background: var(--red); color: #fff; }
.day { margin: 22px 2px 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; }
.more { display: block; margin: 16px auto 0; border: 0; background: var(--tile); padding: 10px 20px; border-radius: 14px; font-weight: 600; font-size: 14px; }

.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--tile); color: var(--ink-2); }
.badge.active { background: var(--dark); color: var(--on-dark); }
.badge.canceling { background: var(--tile); color: var(--ink-2); }
.badge.refunded { background: var(--red); color: #fff; }

.empty { text-align: center; padding: 48px 24px; color: var(--ink-2); font-size: 15px; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* нижняя навигация как на макете */
.nav { position: fixed; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); display: flex; justify-content: center; gap: 10px; align-items: center; max-width: 520px; margin: 0 auto; padding: 0 22px; z-index: 10; pointer-events: none; }
.nav-pill { position: relative; display: flex; gap: 0; padding: 6px; background: var(--dark); border-radius: 999px; pointer-events: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.nav-ind { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 0; border-radius: 999px; background: var(--on-dark); transition: transform .45s cubic-bezier(.34, 1.4, .5, 1), width .45s cubic-bezier(.34, 1.4, .5, 1); }
.nav.instant .nav-ind { transition: none; }
.nav-pill button { position: relative; z-index: 1; border: 0; background: none; color: var(--on-dark-2); height: 46px; padding: 0 11px; border-radius: 999px; display: flex; align-items: center; font-size: 14px; font-weight: 700; transition: color .3s, padding .4s cubic-bezier(.2, .8, .2, 1); }
.nav-pill button svg { width: 22px; height: 22px; flex: none; }
.nav-pill button span { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s cubic-bezier(.2, .8, .2, 1), opacity .25s, margin .4s; margin-left: 0; }
.nav-pill button[aria-current] { color: var(--dark); padding: 0 14px 0 12px; }
.nav-pill button[aria-current] span { max-width: 90px; opacity: 1; margin-left: 8px; transition-delay: 0s, .1s, 0s; }
.nav-add { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; pointer-events: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.nav-add svg { width: 24px; height: 24px; }
.nav-add:active, .nav-pill button:active { transform: scale(.94); }

/* шторки */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; animation: fade .2s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 22px calc(22px + var(--safe-b)); z-index: 21; animation: up .3s cubic-bezier(.2, .8, .2, 1); max-height: 88dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.sheet .grab { width: 38px; height: 5px; border-radius: 4px; background: var(--tile-2); margin: 0 auto 16px; }
.sheet h3 { font-weight: 700; font-size: 20px; margin: 0 0 14px; overflow-wrap: anywhere; }
.sheet-sum { font-weight: 700; font-size: 32px; letter-spacing: -0.03em; margin: -4px 0 18px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.opt { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 13px 2px; font-size: 16px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--line); }
.opt svg { width: 20px; height: 20px; color: var(--red); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.input { width: 100%; min-width: 0; border: 0; background: var(--tile); border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none; min-height: 50px; }
.input:focus { outline: 2px solid var(--ink); }
.amount-input { font-weight: 700; font-size: 26px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--tile); border-radius: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); }
.btn { width: 100%; border: 0; border-radius: 16px; padding: 16px; font-weight: 700; font-size: 16px; background: var(--dark); color: var(--on-dark); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--tile); color: var(--ink); }
.btn.danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin: 4px 0 10px; font-weight: 500; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 360px; }
.login-art { display: flex; gap: 6px; height: 96px; align-items: flex-end; margin-bottom: 28px; }
.login-art span { flex: 1; border-radius: 12px; animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; } }
.login h1 { font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0 0 22px; letter-spacing: -0.02em; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; font-size: 15px; }
.kv dt { color: var(--ink-3); white-space: nowrap; font-weight: 500; }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-weight: 600; }
pre.code { background: var(--tile); border-radius: 14px; padding: 12px; font-size: 12px; overflow-x: auto; margin: 10px 0 0; line-height: 1.5; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--ink-3); margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--up); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 12px); background: var(--dark); color: var(--on-dark); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 30; animation: fade .2s; }
.skeleton { background: linear-gradient(90deg, var(--tile), var(--bg), var(--tile)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 22px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.foot { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 24px; font-weight: 500; }
.card { background: var(--tile); border-radius: 22px; padding: 16px; }

/* ведение пальцем по графику */
.chart { position: relative; }
#chart-svg { touch-action: pan-y; cursor: crosshair; }
.chart .cursor-line { stroke: var(--on-dark-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-top { height: 44px; margin-bottom: 4px; }
.chart-top .chart-legend { margin: 0; height: 100%; align-items: flex-start; flex-wrap: wrap; row-gap: 4px; }
.chart-top .hint { flex-basis: 100%; color: var(--on-dark-2); opacity: .7; font-weight: 500; }
.chart-top [hidden] { display: none !important; }
.ch-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--on-dark-2); font-weight: 600; }
.ch-h b { color: var(--on-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-chips { display: flex; gap: 6px; margin-top: 6px; overflow: hidden; white-space: nowrap; }
.ch-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 8px 2px 2px; border-radius: 999px; background: #2A2A2A; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-chip.muted { padding: 3px 10px; color: var(--on-dark-2); font-weight: 600; }
.pmark.xs { width: 18px; height: 18px; border-radius: 50%; font-size: 10px; flex: none; }
.pmark.xs.pad img { width: 70%; height: 70%; }
.ch-chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

/* изменения по проектам */
.movers { margin-top: 4px; }
.mover { display: grid; grid-template-columns: 22px 92px 1fr 78px; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; font-weight: 600; }
.mover .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover .track { position: relative; height: 8px; }
.mover .track { background: var(--tile); border-radius: 4px; }
.mover .track::before { content: ''; position: absolute; left: calc(50% - 1px); top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--ink-3); z-index: 1; }
.mover .bar { position: absolute; top: 0; height: 8px; min-width: 3px; border-radius: 4px; }
.mover .bar.up { left: 50%; background: var(--ink); }
.mover .bar.down { right: 50%; background: var(--red); }
.mover .d { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.mover .d.down { color: var(--red); }
.mover .pmark.xs { border-radius: 6px; }
.alert { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--tile); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.alert .pmark.xs { width: 28px; height: 28px; border-radius: 9px; }
.alert b { color: var(--ink); }
.tile .v.up { color: var(--up); }
.tile.dark .v.up { color: #4FD38B; }
.add-btn { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-btn svg { width: 18px; height: 18px; }

/* двусторонняя карточка графика */
.flip { perspective: 1400px; }
.flip-inner { display: grid; transition: transform .7s cubic-bezier(.3, 1.15, .45, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; background: var(--dark); color: var(--on-dark); border-radius: 26px; padding: 18px 16px 14px; box-shadow: 0 10px 0 -4px var(--tile-2); -webkit-backface-visibility: hidden; backface-visibility: hidden; position: relative; }
.face.back { transform: rotateY(180deg); }
.face svg { display: block; width: 100%; height: 170px; overflow: visible; }
.face .grid { stroke: rgba(255, 255, 255, .07); }
.face .ylab { fill: var(--on-dark-2); font-size: 9px; font-family: var(--font); font-weight: 600; }
.face .now { fill: none; stroke: var(--on-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.face .prev { fill: none; stroke: var(--on-dark-2); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.face .pline { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.face .cursor-line { stroke: var(--on-dark-2); stroke-width: 1; stroke-dasharray: 2 3; }
.plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.mk { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.mk.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2.5px var(--on-dark); }
.mk.tag { transform: translate(-50%, calc(-100% - 12px)); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk.logo .pmark.xs { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--c), 0 0 0 4px var(--dark); }
.chart-top { position: relative; height: 44px; margin-bottom: 4px; }
.chart-legend { display: flex; gap: 14px; font-size: 11px; color: var(--on-dark-2); font-weight: 600; flex-wrap: wrap; row-gap: 4px; padding-right: 96px; }
.chart-legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--on-dark); vertical-align: 3px; margin-right: 6px; }
.chart-legend i.p { border-top: 2px dashed var(--on-dark-2); }
.chart-legend.projects { gap: 4px 12px; }
.flip-btn { position: absolute; right: 0; top: -4px; border: 0; background: #2C2C2C; color: var(--on-dark); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 10px; }
.flip-btn:active { transform: scale(.95); }
.face .ch-scrub { display: none; }
.face.scrubbing .ch-scrub { display: block; }
.face.scrubbing .chart-legend, .face.scrubbing .flip-btn { display: none; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* логотип проекта в плитках инсайтов */
.tile { position: relative; overflow: hidden; }
.tile > * { position: relative; z-index: 1; }
.tile-art { position: absolute !important; z-index: 0 !important; right: -22px; bottom: -22px; width: 104px; height: 104px; border-radius: 30px; overflow: hidden; transform: rotate(-12deg); opacity: .22; }
.tile.red .tile-art { opacity: .28; mix-blend-mode: luminosity; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.who .pmark.xs { width: 18px; height: 18px; border-radius: 6px; }
.ring-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.ring-logo .pmark { width: 30px; height: 30px; border-radius: 10px; }
.tile.ring .ring-box { margin-top: 4px; }

/* слайдер двух графиков */
.slider { margin: 0 -22px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 22px 12px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--tile-2); transition: width .3s, background .3s; }
.dots button[aria-selected="true"] { width: 18px; background: var(--ink); }
.face .sbar { fill: var(--on-dark); opacity: .9; }
.face .sbar.on { fill: var(--red); opacity: 1; }
/* табы периода под слайдером — светлые, как на макете */
.slider + .ranges { margin-top: 12px; }
.slider + .ranges button { color: var(--ink-3); }
.slider + .ranges button[aria-pressed="true"] { background: var(--tile); color: var(--ink); }
/* ширина карточки не зависит от содержимого строки разбивки — иначе верстка прыгает на узких экранах */
.flip-inner { grid-template-columns: minmax(0, 1fr); }
.face, .chart-top, .ch-scrub, .ch-chips { min-width: 0; }
.ch-scrub { overflow: hidden; }
.ch-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }
