/* Stratuye consumer app — premium mobile-first design system (prototype).
   Visual-refinement pass: larger scale, confident hierarchy, real brand, intelligent desktop. */
:root{
  /* ===== Stratuye brand palette (tokenized; white/black/graphite first, orange-red as a controlled accent) ===== */
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-soft:#f5f5f3;      /* warm off-white section fill */
  --surface-2:#f5f5f3;         /* soft surface (secondary buttons, chips, seg track) */
  --surface-3:#ececea;         /* pressed/hover soft surface */
  --ink:#121214;               /* primary text — headings, balance, body */
  --ink-2:#63676f;             /* secondary text (readable graphite) */
  --ink-3:#8f939b;             /* muted text / meta / inactive / eyebrow (darkened from #9a9ea6 — quiet info must never read as disabled; --disabled stays #c7c9cd) */
  --disabled:#c7c9cd;          /* disabled / no-data / dashes / light chevrons */
  --graphite:#292b2f;          /* dark controls / supporting dark elements */
  --line:#f2f3f4;              /* hairline separators (default) */
  --line-2:#eeeff1;            /* stronger hairline / outlines */
  /* financial semantics — deliberately SEPARATE from the brand accent (never orange) */
  --pos:#1c9a5b;               /* gain — accessible green */
  --pos-bg:#e7f5ee;
  --neg:#e5473d;               /* loss — financial red, distinct from the orange accent */
  --neg-bg:#fbecea;
  --warn:#a9680d;              /* status amber */
  --warn-bg:#faf1e1;
  /* brand accent — Electric Orange-Red, used only for CTAs / active / selected states */
  --accent:#ff4b18;
  --accent-hover:#e23e10;      /* pressed / darker */
  --accent-soft:#ffe9e1;       /* restrained accent tint */
  --brand:var(--accent);       /* back-compat alias → brand accent */
  --brand-2:var(--accent-hover);
  --primary:#0b0b0c;           /* premium black (retained for dark controls) */
  --primary-ink:#ffffff;
  --focus:var(--accent);
  /* radius scale — icon surfaces 12, cards 16, hero 20, pills 999 (restrained/flatter) */
  --r-xl:20px; --r-lg:16px; --r-md:16px; --r-sm:12px; --r-pill:999px;
  --shadow-sm:0 1px 2px rgba(12,14,20,.05);
  --shadow:0 2px 6px rgba(12,14,20,.06), 0 14px 40px rgba(12,14,20,.07);
  --shadow-lg:0 30px 80px rgba(18,22,34,.16);
  --ease:cubic-bezier(.22,.61,.36,1);
  --maxw:480px; --maxw-wide:880px;
  --font:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{height:100%}
html,body{margin:0;padding:0}
body{
  font-family:var(--font); color:var(--ink); background:var(--surface-3);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  font-size:16px; line-height:1.42; letter-spacing:-.006em;
  /* Stable app shell: the DOCUMENT never scrolls or rubber-bands — the single inner content scroller
     (.scroll) owns all vertical scrolling on every viewport. This is what stops the iOS shell drift. */
  height:100dvh; overflow:hidden; overscroll-behavior:none;
}
button{font-family:inherit}
a{color:inherit; text-decoration:none}
:focus-visible{outline:2.5px solid var(--focus); outline-offset:2px; border-radius:10px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition:none!important}}

/* Unobtrusive prototype label (replaces the intrusive top ribbon) */
#proto-flag{
  position:fixed; z-index:60; left:14px; bottom:14px;
  background:rgba(11,11,13,.55); color:#fff; font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  font-weight:600; padding:5px 9px; border-radius:var(--r-pill); backdrop-filter:blur(6px);
  pointer-events:none; opacity:.5;
}
@media (min-width:900px){ #proto-flag{ left:auto; right:20px; bottom:20px; } }

/* App frame — the stable shell. FIXED height (not min-height): it fills the viewport and never grows
   with content, so the header/tab bar stay put and only .scroll moves. */
.app-frame{
  height:100dvh; max-width:var(--maxw); margin:0 auto; background:var(--bg);
  position:relative; display:flex; flex-direction:column; overflow:hidden;
}
@media (max-width:899px){ .app-frame{ box-shadow:0 0 0 1px var(--line); } }
@media (min-width:900px){
  body{background:
    radial-gradient(1400px 700px at 50% -20%, #e9ecf2, transparent),
    linear-gradient(180deg,#eceef3,#e6e8ee)}
  .app-frame{ margin:34px auto; height:calc(100dvh - 68px); border-radius:34px;
    box-shadow:var(--shadow-lg), 0 0 0 1px var(--line); overflow:hidden; }
  .app-frame.wide{ max-width:var(--maxw-wide); border-radius:28px; }
}

/* Screen scaffold */
.screen{display:flex; flex-direction:column; flex:1; min-height:0; animation:fade .3s var(--ease)}
/* opacity-only (no transform): a transform on .screen would make a position:fixed bottom-nav
   resolve against .screen instead of the viewport during the animation. */
@keyframes fade{from{opacity:0}to{opacity:1}}
/* THE single primary content scroller. A flex column so centering screens (auth/loading/funding) whose
   inner .pad uses flex:1 can fill the scroller height; tall content overflows and scrolls here — and
   ONLY here. overscroll-behavior:contain stops scroll-chaining/rubber-band from leaking to the shell. */
.scroll{flex:1; min-height:0; display:flex; flex-direction:column; max-width:100%;
  overflow-x:hidden; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain}
  /* overflow-x:hidden is REQUIRED: with only overflow-y:auto set, CSS computes overflow-x to `auto`,
     making .scroll horizontally scrollable whenever any child exceeds width → the iOS Discovery
     left/right jitter during vertical momentum. Clipping x kills the drift; vertical momentum is unchanged.
     Genuinely wide content (charts/tables) must scroll inside its own overflow-x:auto container. */

/* ── MOBILE: native-app shell (single inner scroller) ─────────────────────────
   The base rules above already make .app-frame a fixed-height flex column with .appbar (flex-none) +
   .scroll (flex:1) + .tabbar (flex-none) as siblings — the header and tab bar live OUTSIDE the scroller,
   so the shell is visually fixed and the document never rubber-bands. On phones we only add the header's
   top safe-area inset (the tab bar's bottom safe-area inset is already in its base rule). Full-viewport
   carousel (Welcome) screens need no exception: .screen is a flex column and .carousel flex:1 fills it. */
@media (max-width:899px){
  .appbar{ padding-top:calc(14px + env(safe-area-inset-top)); }
}

/* Global "tap top edge → scroll to top" hit-zone. A thin, transparent strip pinned to the very top,
   sized to the iPhone safe-area (status bar) plus a small base — it sits ABOVE the header's top padding,
   so it never covers the back/menu controls or any link/button. Touch devices ONLY (no desktop control).
   Below modal/sheet overlays (z-index 90) so it never fires while a dialog is open. */
#tap-top{ display:none; }
@media (pointer: coarse){
  #tap-top{
    display:block; position:fixed; top:0; left:0; right:0;
    height:calc(env(safe-area-inset-top, 0px) + 8px);
    z-index:45; background:transparent; pointer-events:auto; touch-action:manipulation;
  }
}
.pad{padding:20px 22px 28px}
.pad-x{padding-left:22px;padding-right:22px}
.stack>*+*{margin-top:16px}
.gap-sm>*+*{margin-top:10px}
.spacer{flex:1}
/* On wide desktop, center content and give discovery/home room to breathe */
@media (min-width:900px){
  .app-frame.wide .pad{ padding:30px 34px 40px; }
}

/* ── Setup Progress Rail — compact onboarding indicator (≈52px) directly below the app bar ──────────
   "Setup · N of 4" · four dots/segments · one short next-action line. done = restrained green ✓,
   current = brand orange, future = quiet gray. Light base + thin separator; no card, no shadow. */
.setup-rail{flex:none; background:#fff; padding:7px 22px 8px; border-bottom:1px solid var(--line)}   /* density pass: ~52px → ~44px */
.sr-title{font-size:10.5px; font-weight:620; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3)}
.sr-dots{display:flex; align-items:center; gap:6px; margin:4px 0 3px; max-width:260px}
.sr-dot{width:16px; height:16px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; flex:none; background:var(--surface-3); color:var(--ink-3)}
.sr-dot.done{background:var(--pos-bg); color:var(--pos)}
.sr-dot.cur{background:var(--accent); color:#fff}
.sr-line{flex:1; height:2px; border-radius:2px; background:var(--line-2)}
.sr-line.done{background:var(--pos)}
.sr-next{font-size:13px; font-weight:600; color:var(--ink-2)}

/* App bar — a flex-none row at the top of the shell, OUTSIDE the scroller (no longer sticky-over-content). */
.appbar{position:relative; flex:none; z-index:20; background:rgba(255,255,255,.82);
  backdrop-filter:saturate(1.4) blur(16px); display:flex; align-items:center; gap:10px;
  padding:14px 14px; min-height:60px; border-bottom:1px solid transparent}
.appbar.bordered{border-bottom-color:var(--line)}
.appbar .title{font-weight:680; font-size:19px; letter-spacing:-.02em}
.iconbtn{appearance:none; border:0; background:transparent; width:44px;height:44px; border-radius:var(--r-pill);
  display:grid; place-items:center; cursor:pointer; color:var(--ink); font-size:22px; transition:background .15s}
.iconbtn:hover{background:var(--surface-2)} .iconbtn:active{background:var(--surface-3); transform:scale(.94)}
.appbar .grow{flex:1}

/* Brand */
.brand-mark{width:38px;height:38px;border-radius:9px;object-fit:contain;display:block}
.brand-mark.lg{width:60px;height:60px;border-radius:16px}
.brand-lockup{display:flex;align-items:center;gap:10px}
.brand-word{font-weight:760;font-size:20px;letter-spacing:-.03em}

/* Typography */
.h1{font-size:34px; line-height:1.06; letter-spacing:-.035em; font-weight:760; margin:0}
.h2{font-size:26px; line-height:1.12; letter-spacing:-.025em; font-weight:720; margin:0}
.h3{font-size:18px; font-weight:680; letter-spacing:-.015em; margin:0}
/* headline figure — confident + precise (not marketing-oversized); dominates the first viewport */
.display{font-size:52px; line-height:.96; letter-spacing:-.05em; font-weight:800; font-variant-numeric:tabular-nums}
.lede{font-size:17px; color:var(--ink-2); line-height:1.5; margin:0}
.muted{color:var(--ink-2)}
.dim{color:var(--ink-3)}
.eyebrow{font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3); font-weight:700}
.num{font-variant-numeric:tabular-nums}
.pos{color:var(--pos)} .neg{color:var(--neg)} .warn{color:var(--warn)}
.small{font-size:13px}
/* secondary risk/meta text on discover cards & hero: readable, not tiny, muted, comfortable leading */
.card-risk{font-size:13.5px; color:var(--ink-2); line-height:1.5}
/* featured-hero one-line explanation: primary readable ink, sits under the category, wraps at most ~2 lines */
.hero-explain{font-size:15px; color:var(--ink-1); line-height:1.45; margin-top:4px; text-wrap:balance}
/* single-line ellipsis for secondary text (e.g. Activity company name) — needs a min-width:0 flex parent */
.ellip{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%}
/* Activity/list rows: let the middle column shrink so .ellip truncates instead of forcing horizontal overflow */
.listrow > .grow{flex:1; min-width:0}

/* Buttons */
.btn{appearance:none; border:0; cursor:pointer; width:100%; padding:18px 20px; border-radius:var(--r-pill);
  font-size:17px; font-weight:660; letter-spacing:-.01em; transition:transform .12s var(--ease), background .15s, box-shadow .15s;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:56px}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--primary); color:var(--primary-ink); box-shadow:0 6px 18px rgba(11,11,13,.18)}   /* premium black CTA (orange-red felt warning/destructive on device) */
.btn-primary:hover{background:var(--graphite)}   /* pressed/hover: slightly lighter black (graphite) */
.btn-secondary{background:var(--surface-2); color:var(--ink)}
.btn-secondary:hover{background:var(--surface-3)}
.btn-ghost{background:transparent; color:var(--ink-2); font-weight:620; box-shadow:none; min-height:50px}
.btn-ghost:hover{color:var(--ink)}
.btn-outline{background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line-2)}
.btn[disabled]{opacity:.32; pointer-events:none; box-shadow:none}
.btn-row{display:flex; gap:12px}
.btn-sm{width:auto; padding:11px 18px; font-size:14px; min-height:auto}

/* Sticky footer CTA */
.cta-dock{position:sticky; bottom:0; background:linear-gradient(180deg, rgba(255,255,255,0), #fff 34%);
  padding:12px 22px calc(14px + env(safe-area-inset-bottom)); z-index:15}
.cta-dock>*+*{margin-top:8px}

/* Cards & rows — a card is a warm, borderless functional GROUP (not an outlined box). Flatter, calmer,
   Petronex-like warm surface; use spacing/hairlines/lists for everything that isn't a real functional unit. */
.card{background:var(--surface-soft); border:0; border-radius:var(--r-lg); padding:18px 20px}
/* INVERTED surface (Trade analytics): a quiet light-gray SECTION with a clean WHITE card inside —
   subtle border, no heavy shadow, same radius language. The page itself stays white. */
/* (.section-soft / .card.on-soft removed 2026-10-06 — Trade Analytics went FLAT; no other user) */
.card.flat{border:0; background:var(--surface-2)}
.card.tap{cursor:pointer; transition:transform .14s var(--ease), background .18s}
.card.tap:hover{background:var(--surface-3)} .card.tap:active{transform:scale(.99)}
.row{display:flex; align-items:center; gap:14px}
.row .grow{flex:1; min-width:0}
.between{display:flex; align-items:center; justify-content:space-between; gap:14px}
.listrow{display:flex; align-items:center; gap:14px; padding:16px 2px; border-bottom:1px solid var(--line)}
.listrow:last-child{border-bottom:0}
/* flat grouped list — replaces a rounded card box around rows that already carry their own
   separators (listrow/menu-item). Two subtle hairlines bound the group top and bottom; the rows
   divide themselves. No fill, no radius, no border sides — a grouped list, not a box. */
.list{border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
/* a tappable flat row (managed strategy / nav row on Home) — affordance without a card box */
.listrow.tap{cursor:pointer; transition:opacity .12s}
.listrow.tap:active{opacity:.55}
/* (Managed-object card outlines removed by product decision — status clarity is textual only.) */
.truncate{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Avatars / marks */
.logo-dot{width:44px;height:44px;border-radius:13px; display:grid;place-items:center; font-weight:760; color:#fff; flex:none; font-size:15px}
.avatar{width:48px;height:48px;border-radius:var(--r-pill); background:var(--surface-2); display:grid;place-items:center; font-weight:720; flex:none; font-size:18px}

/* ===== Strategy artwork (SVG lives inside; these style the frame + overlays) ===== */
.strategy-art{aspect-ratio:16/10; border-radius:var(--r-lg); position:relative; overflow:hidden; color:#fff; isolation:isolate}
.strategy-art.tall{aspect-ratio:3/2}
.strategy-art.hero{aspect-ratio:16/9; border-radius:var(--r-xl)}
/* Strategy-Detail PROFILE cover = the page header itself: EDGE-TO-EDGE (block wrapper is a child of the
   flex-column .scroll, OUTSIDE the .pad gutter), dominant 3:2, no text overlay, NO darken/blur. Square top
   (meets the appbar), rounded bottom. The .strat-cover WRAPPER is flex:0 0 auto so the aspect-ratio box is
   never collapsed to 0 height by flex min-height:auto (the bug that hid the cover on iOS in 20260928-2). */
.strat-cover{flex:0 0 auto; width:100%; position:relative}
/* 17/10 (was 3/2): ~12% shorter cover so name/status/performance surface earlier on the first mobile
   viewport. Same artwork assets, same edge-to-edge treatment. */
.strategy-art.cover{aspect-ratio:17/10; width:100%; border-radius:0 0 var(--r-xl) var(--r-xl)}
.strategy-art.cover .art-scrim{background:none}   /* pure artwork — no darken/blur treatment */
/* Immersive-header overlay controls (back/share) — translucent circular, safe-area aware, high contrast on any art */
.cover-ctl{ position:absolute; top:calc(12px + env(safe-area-inset-top)); z-index:4; width:38px; height:38px; border:0;
  border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; line-height:1; cursor:pointer;
  color:#15151a; background:rgba(255,255,255,.86); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:0 2px 10px rgba(0,0,0,.20); }
.cover-ctl:active{ transform:scale(.94); }
.cover-back{ left:14px; } .cover-share{ right:14px; }
/* ── Strategy Detail — premium performance block (return dominant → large calm chart → selector → max DD) ── */
.perf-block{ margin-top:4px; }
.perf-head{ display:flex; flex-direction:column; gap:1px; }
.perf-type{ font-size:12px; font-weight:680; letter-spacing:.02em; }        /* LIVE / PAPER / DEMO badge (colored by perfTypeCls) */
.perf-head .display{ margin-top:3px; line-height:.94; }   /* density: caption→figure tightened */
.perf-head .muted{ font-size:14px; margin-top:2px; }      /* figure→date tightened */
/* period-scoped max drawdown — SECONDARY, calm, sits BELOW the selector (not beside the number) */
.perf-dd-row{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:16px; padding-top:13px; border-top:1px solid var(--line); }
.perf-dd-k{ font-size:13.5px; font-weight:600; color:var(--ink-2); }
.perf-dd-ctx{ font-size:11.5px; color:var(--ink-3); margin-top:1px; }
.perf-dd-v{ font-size:19px; font-weight:740; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.perf-dd-v.dim{ color:var(--disabled); }
/* Compact "by author" identity row */
.author-row.compact{ padding:8px 2px; }
.by-author{ font-weight:600; font-size:15px; color:var(--ink); }
.strategy-art svg.art{position:absolute; inset:0; width:100%; height:100%; z-index:0}
.strategy-art .art-scrim{position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.28))}
.strategy-art .art-name{position:absolute; left:20px; bottom:18px; z-index:2; font-weight:760; font-size:24px; letter-spacing:-.025em; text-shadow:0 2px 18px rgba(0,0,0,.28)}
.strategy-art.hero .art-name{font-size:30px}
.strategy-art .art-badge{position:absolute; right:14px; top:14px; z-index:2}
.strategy-art .art-sub{position:absolute; left:20px; bottom:52px; z-index:2; font-size:13px; font-weight:560; opacity:.92; text-shadow:0 1px 10px rgba(0,0,0,.3)}

/* Badges / pills */
/* badges kept small + quiet (LIVE / PAPER / risk) — informational, never promotional */
.pill{display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:var(--r-pill);
  font-size:12px; font-weight:620; background:var(--surface-2); color:var(--ink-2); line-height:1}
.pill.pos{background:var(--pos-bg); color:var(--pos)}
.pill.neg{background:var(--neg-bg); color:var(--neg)}
.pill.warn{background:var(--warn-bg); color:var(--warn)}
.pill.solid-dark{background:rgba(0,0,0,.28); color:#fff; backdrop-filter:blur(6px); font-weight:620}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.risk{font-size:13px;font-weight:660}
.risk.low{color:var(--pos)} .risk.medium{color:var(--warn)} .risk.high{color:var(--neg)}

/* Segmented / period selector — recedes behind content */
.seg{display:inline-flex; background:var(--surface-2); border-radius:var(--r-pill); padding:5px; gap:2px; width:100%}
.seg button{flex:1; border:0; background:transparent; padding:10px 6px; border-radius:var(--r-pill);
  font-size:14px; font-weight:600; color:var(--ink-2); cursor:pointer; transition:all .18s var(--ease)}
.seg button:hover{color:var(--ink)}
/* selected period/source: a confident single orange focal point — accent text on a crisp white pill */
.seg button[aria-selected="true"]{background:#fff; color:var(--accent); font-weight:680; box-shadow:var(--shadow-sm)}
/* period NOT backed by enough canonical history — inert + muted (never tappable, no hover lift). */
.seg button.seg-disabled,.seg button:disabled{ color:var(--ink-3); opacity:.5; cursor:default; pointer-events:none; box-shadow:none; background:transparent }
/* LIVE | PAPER source selector — compact (not two large buttons); reuses .seg styling */
.src-seg{width:auto; align-self:flex-start}
.src-seg button{flex:0 0 auto; padding:8px 18px}
/* "Как считается LIVE" — subtle text action, never a filled/warning button */
.methodlink{align-self:flex-start; background:none; border:0; padding:6px 0 0; color:var(--ink-2);
  font-size:13px; font-weight:560; cursor:pointer; text-decoration:underline; text-underline-offset:2px}
.methodlink:hover{color:var(--ink)}
/* Calm LIVE "Данные накапливаются" headline (intentional state, not an error) */
.live-calm-h{font-size:21px; font-weight:720; letter-spacing:-.01em; margin-top:4px; color:var(--ink)}
/* Waitlist status chip on the /pending screen — calm, non-alarming. */
.pending-status{ display:inline-block; align-self:center; margin:10px auto 14px; padding:4px 12px; border-radius:999px;
  background:var(--surface-2); color:var(--ink-2); font-size:12.5px; font-weight:640; letter-spacing:.02em; }
.filters{opacity:.96}

/* Choice cards */
.choice{display:flex; flex-direction:column; gap:5px; text-align:left; width:100%; cursor:pointer;
  border:1.5px solid var(--line-2); background:#fff; border-radius:var(--r-md); padding:18px 20px; transition:all .16s var(--ease)}
.choice:hover{border-color:var(--ink-3)}
.choice:active{transform:scale(.99)}
.choice[aria-checked="true"]{border-color:var(--accent); box-shadow:inset 0 0 0 1.5px var(--accent)}   /* selected option: accent outline (no fill) */
.choice .t{font-weight:680; font-size:17px}
.choice .d{color:var(--ink-2); font-size:14px; line-height:1.4}

/* Inputs */
.field{width:100%; border:1.5px solid var(--line-2); border-radius:15px; padding:17px 18px; font-size:17px;
  background:#fff; color:var(--ink); transition:border-color .15s}
.field:focus{outline:none; border-color:var(--ink)}
.label{font-size:13.5px; font-weight:640; color:var(--ink-2); margin:0 0 9px 2px}
.code-input{display:flex; gap:12px}
.code-input input{flex:1; text-align:center; font-size:28px; font-weight:720; letter-spacing:.1em; padding:18px 0}

/* Range slider */
input[type=range]{-webkit-appearance:none; width:100%; height:8px; border-radius:8px; background:var(--surface-2)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none; width:32px;height:32px; border-radius:50%;
  background:#fff; border:2.5px solid var(--ink); box-shadow:var(--shadow); cursor:pointer}
input[type=range]::-moz-range-thumb{width:30px;height:30px;border-radius:50%;background:#fff;border:2.5px solid var(--ink)}

/* Chart */
.chart-wrap{width:100%; position:relative}
.chart-wrap svg{display:block; width:100%; height:auto}
/* Strategy-Detail LIVE chart — larger, calmer, less boxed-in: thinner confident line, whisper-soft fill,
   no grid, a hair of horizontal bleed so it reads as part of the page, and generous breathing room below
   before the period selector. Data behavior is unchanged (same series, same scrubbing). */
.chart-lg{ margin:16px -6px 4px; }
.chart-lg .chart-line{ stroke-width:2.25; }
.chart-lg .chart-area{ opacity:.09; }
.chart-lg .chart-zero{ stroke:var(--line-2); opacity:.65; }
.chart-lg + .seg{ margin-top:6px; }
.chart-grid{stroke:var(--line); stroke-width:1}
.chart-line{fill:none; stroke-width:2.75; vector-effect:non-scaling-stroke; stroke-linejoin:round; stroke-linecap:round}
.chart-area{opacity:.16}
.chart-zero{stroke:var(--line-2); stroke-dasharray:3 5}
/* interactive scrub */
.chart-wrap{cursor:crosshair; touch-action:pan-y}
.chart-cross{stroke:var(--ink-3); stroke-width:1; stroke-dasharray:3 3; vector-effect:non-scaling-stroke; pointer-events:none}
.chart-dot{fill:#fff; stroke-width:2.5; vector-effect:non-scaling-stroke; pointer-events:none}

/* Strategy Detail — lightweight metrics row (no containing card) */
.metrics-lite{display:flex; margin:4px 0}
.metrics-lite .mlite{flex:1; padding:2px 16px}
.metrics-lite .mlite:first-child{padding-left:2px}
.metrics-lite .mlite+.mlite{border-left:1px solid var(--line)}
.mlite-k{font-size:11.5px; color:var(--ink-3); font-weight:560; letter-spacing:.01em}
.mlite-v{font-size:21px; font-weight:740; margin-top:3px; font-variant-numeric:tabular-nums; letter-spacing:-.025em}
.mlite-v.dim{color:var(--disabled)}
/* Strategy Detail — disclosures as plain rows + light author row (hairlines, no grey card) */
.disc-list{margin-top:2px}
.authorrow{padding:16px 2px; border-top:1px solid var(--line); cursor:pointer}

/* Stat columns — editorial (plain columns split by ONE hairline), not boxed tiles. Values dominate; keys
   are quiet. Same treatment as .metrics-lite so numeric sections read consistently across the app. */
.stats{display:grid; grid-template-columns:1fr 1fr; gap:0; background:transparent; border-radius:0; margin:2px 0}
@media (min-width:900px){ .app-frame.wide .stats{ grid-template-columns:1fr 1fr 1fr; } }
.stats .cell{background:transparent; padding:2px 16px}
.stats .cell:first-child{padding-left:2px}
.stats .cell+.cell{border-left:1px solid var(--line)}
.stats .cell .k{font-size:11.5px; color:var(--ink-3); font-weight:560; letter-spacing:.01em}
.stats .cell .v{font-size:21px; font-weight:740; margin-top:3px; font-variant-numeric:tabular-nums; letter-spacing:-.025em}

/* Bottom navigation. NOTE: no base `position` here — mobile makes it position:fixed (in the
   max-width:899px block above) and desktop makes it position:sticky (min-width:900px block below).
   A base `position:sticky` here would come LATER in source order than the mobile block and, at equal
   specificity, override it — leaving the mobile nav in normal/sticky flow so it drifts with content. */
.tabbar{display:flex; flex:none; background:rgba(255,255,255,.92); backdrop-filter:blur(16px);
  border-top:1px solid var(--line); padding:9px 8px calc(9px + env(safe-area-inset-bottom))}
/* Both viewports: a flex-none row at the bottom of the shell, OUTSIDE the scroller — always visible,
   never overlapping content (so no content reserve/padding hack is needed). */
/* inactive tabs stay quiet (580, muted ink) so the orange active tab carries the emphasis alone */
.tabbar a{flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0; color:var(--ink-3); font-size:11px; font-weight:580; transition:color .15s}
.tabbar a:hover{color:var(--ink-2)}
.tabbar a.active{color:var(--accent); font-weight:700}   /* active tab: brand-accent icon (currentColor) + label */
/* one consistent icon box for all four tabs — SVG (not a glyph): equal 24×24 render, currentColor stroke */
.tabbar .ic{width:24px; height:24px; display:flex; align-items:center; justify-content:center}
.tabbar .ic svg{width:24px; height:24px; display:block}
/* locked tab (pending user): icon + label kept, subdued/disabled; tap shows a message, no nav */
.tabbar .tab-locked{flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0;
  background:none; border:0; font:inherit; font-size:11px; font-weight:620; color:var(--ink-3); opacity:.4; cursor:default}

/* Sheet / modal */
.sheet-backdrop{position:fixed; inset:0; background:rgba(10,12,18,.44); z-index:50; display:flex; align-items:flex-end; justify-content:center; animation:fade .22s}
@media (min-width:900px){.sheet-backdrop{align-items:center}}
.sheet{background:#fff; width:100%; max-width:var(--maxw); border-radius:28px 28px 0 0;
  padding:10px 22px calc(26px + env(safe-area-inset-bottom, 0px));   /* iOS home-indicator safe area */
  max-height:88dvh; overflow-y:auto; animation:slideup .34s var(--ease)}
@media (min-width:900px){.sheet{border-radius:26px; margin:0 16px; box-shadow:var(--shadow-lg)}}
@keyframes slideup{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.sheet .grab{width:40px;height:5px;border-radius:5px;background:var(--line-2);margin:8px auto 14px}
.menu-item{display:flex;align-items:center;gap:14px;padding:17px 4px;border-bottom:1px solid var(--line);cursor:pointer;font-weight:560;font-size:16px;transition:padding-left .15s}
.menu-item:hover{padding-left:8px}
.menu-item:last-child{border-bottom:0}
.menu-item.danger{color:var(--neg)}
/* unimplemented settings row: muted, no hover-shift, clearly marked "coming soon" */
.menu-item.is-soon{color:var(--ink-2);cursor:default}
.menu-item.is-soon:hover{padding-left:4px}
.soon-tag{font-size:12px;color:var(--ink-3);background:var(--surface-2,rgba(145,152,165,.14));padding:2px 8px;border-radius:999px;white-space:nowrap}

/* Banners */
.banner{display:flex; gap:14px; align-items:center; padding:16px 18px; border-radius:var(--r-md); font-size:14.5px}
.banner.info{background:var(--surface-2)}
.banner.warn{background:var(--warn-bg); color:var(--warn)}
.banner.pos{background:var(--pos-bg); color:var(--pos)}
.banner .b-ic{font-size:22px}

/* status line */
.status{display:flex; align-items:center; gap:12px; padding:16px 18px; border-radius:var(--r-md); font-weight:580; font-size:15px}
.status.ok{background:var(--pos-bg); color:var(--pos)}
.status.sync{background:var(--surface-2); color:var(--ink-2)}
.status.warn{background:var(--warn-bg); color:var(--warn)}

/* Skeletons */
.sk{background:linear-gradient(90deg,#eceef1 25%,#f5f6f8 37%,#eceef1 63%); background-size:400% 100%;
  animation:shine 1.4s ease infinite; border-radius:12px}
@keyframes shine{0%{background-position:100% 0}100%{background-position:0 0}}

/* Progress dots */
.progress{display:flex; gap:7px; padding:0 22px}
.progress i{height:5px; flex:1; border-radius:5px; background:var(--line); transition:background .2s}
.progress i.on{background:var(--accent)}   /* onboarding progress: brand-accent active steps */

/* Discovery grid — expands on wide desktop */
/* Discover cover-card grid (2026-10-06): 2-up masonry-style catalog on phones, like the Detail
   artwork made small. Cards are the tap targets; chips overlay the art. */
.disc-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px}
.scard{border:1px solid var(--line-2); border-radius:18px; overflow:hidden; background:#fff; cursor:pointer;
  display:flex; flex-direction:column; text-align:left; transition:transform .14s var(--ease);}
.scard:active{transform:scale(.985)}
.scard:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
.scard-cover{position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--surface-3)}
.scard-cover .art, .scard-cover img, .scard-cover svg{width:100%; height:100%; display:block; object-fit:cover}
.scard-chips{position:absolute; top:8px; left:8px; right:8px; display:flex; justify-content:space-between; gap:6px; pointer-events:none}
.scard-chip{background:rgba(255,255,255,.92); border-radius:999px; padding:3px 9px; font-size:10.5px; font-weight:700; letter-spacing:.02em; color:#15171a; white-space:nowrap}
.scard-chip.new{background:var(--accent); color:#fff}
.scard-body{padding:11px 12px 12px; display:flex; flex-direction:column; gap:7px; min-width:0}
.scard-ev-k{font-size:9.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-3); line-height:1.2}
.scard-ev-v{font-size:17px; font-weight:660; letter-spacing:-.01em; font-variant-numeric:tabular-nums; line-height:1.15; margin-top:1px}
.scard-ev-sub{font-size:10.5px; color:var(--ink-3); margin-top:2px; font-variant-numeric:tabular-nums}
.scard-name{font-weight:700; font-size:15.5px; letter-spacing:-.01em; min-width:0}
.scard-author{display:flex; align-items:center; gap:7px; background:none; border:0; padding:0; font:inherit; font-size:12px; color:var(--ink-2); cursor:pointer; min-width:0; text-align:left}
.scard-author .author-av{width:20px; height:20px; font-size:9px; flex:none}
@media (min-width:720px){.app-frame.wide .disc-grid{grid-template-columns:1fr 1fr; gap:20px}}

/* NEW / НОВАЯ badge on the latest-strategy hero (and its catalog card) */
.new-badge{position:absolute; left:14px; top:14px; z-index:3;
  background:var(--brand); color:#fff; font-size:10px; font-weight:800; letter-spacing:.09em;
  text-transform:uppercase; padding:4px 10px; border-radius:var(--r-pill);
  box-shadow:0 2px 8px rgba(255,75,24,.28)}   /* brand-accent tint (was a stray blue shadow) */
.new-badge.sm{left:12px; top:12px; font-size:9.5px; padding:3px 8px}
/* compact sort toggle in the All-strategies header */
/* Plain text control (sort toggle) — a tappable label + implicit caret, not a filled pill. */
.textctl{appearance:none; border:0; background:transparent; color:var(--ink-2);
  font-size:13px; font-weight:620; padding:6px 2px; cursor:pointer; transition:color .15s}
.textctl:hover{color:var(--ink)}
/* Light filter chips (risk selector) — text buttons; the selected one is inked + underlined.
   Flatter than a second segmented pill stacked under the period control. */
.chips{display:flex; gap:16px; flex-wrap:wrap; padding:2px 2px}
/* Discover intro + filters — tight vertical rhythm (avoids the 16px .stack gap piling up in the first viewport) */
.disc-sub{ color:var(--ink-2); font-size:15px; line-height:1.4; margin:4px 0 0; }
.disc-filters{ display:flex; flex-direction:column; gap:10px; }
.chip{appearance:none; border:0; background:transparent; color:var(--ink-3); cursor:pointer;
  font-size:14px; font-weight:600; padding:6px 0; box-shadow:inset 0 -2px 0 transparent; transition:color .15s, box-shadow .15s}
.chip:hover{color:var(--ink-2)}
.chip[aria-selected="true"]{color:var(--accent); box-shadow:inset 0 -2px 0 var(--accent)}   /* selected filter chip: accent underline */

/* Ticker / company mark chips (brand-colored, safe fallback) */
.tik{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:780;font-size:14px;flex:none;color:#fff;letter-spacing:-.02em}
.tik.mono{background:var(--surface-2);color:var(--ink-2)}
/* real logo overlay (FMP <img>) on top of the initials chip; hides on error → chip shows through */
.tik-logo{position:relative; overflow:hidden}
/* remote logo overlays the initials chip, VISIBLE immediately (progressive paint / instant from cache);
   a blank or broken image is dropped retroactively on load/error, revealing the initials underneath. */
.tik-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#fff; border-radius:inherit}

/* misc */
.hr{height:1px;background:var(--line);border:0;margin:22px 0}
.chiprow{display:flex;gap:9px;flex-wrap:wrap}
.tag{font-size:13px;font-weight:600;color:var(--ink-2);background:var(--surface-2);padding:7px 13px;border-radius:var(--r-pill);cursor:pointer;transition:background .15s}
.tag:hover{background:var(--surface-3)}
details.disc{border-top:1px solid var(--line); padding:16px 0}
details.disc summary{cursor:pointer; font-weight:640; font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center}
details.disc summary::-webkit-details-marker{display:none}
details.disc[open] summary .chev{transform:rotate(90deg)}
details.disc .chev{transition:transform .2s; color:var(--disabled); font-size:18px}   /* light navigation chevron */
details.disc .body{padding-top:12px; color:var(--ink-2); font-size:14.5px; line-height:1.6}

/* social link chip */
.social{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:var(--r-pill);background:var(--surface-2);font-weight:600;font-size:14px;color:var(--ink);cursor:pointer;transition:background .15s}
.social:hover{background:var(--surface-3)}
.social .g{width:18px;height:18px;display:grid;place-items:center}

/* metric block (author) */
.metric{display:flex;flex-direction:column;gap:3px}
.metric .m-v{font-size:26px;font-weight:780;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.metric .m-k{font-size:12px;color:var(--ink-3);font-weight:560;letter-spacing:.01em}
.metric-row{display:flex;gap:26px}
.metric-row.n3{gap:22px}   /* three metrics still fit ~390px without wrapping */
/* Risk stat: label doubles as an ⓘ affordance opening the methodology sheet */
.risk-info{ appearance:none; border:0; background:none; padding:0; margin:0; font:inherit; cursor:pointer;
  display:inline-flex; align-items:center; gap:4px; color:var(--ink-3); }
.risk-info:hover{ color:var(--ink-2); }
.info-i{ font-size:11px; opacity:.75; }
/* Compact risk affordance — shown INSTEAD of a full ПОРТФЕЛЬ block when Risk is the only available metric. */
.risk-compact{ display:flex; align-items:baseline; gap:8px; }
.risk-compact .rc-k{ font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3); font-weight:700; }
.risk-compact .rc-v{ appearance:none; border:0; background:none; padding:0; margin:0; font:inherit; cursor:pointer;
  display:inline-flex; align-items:center; gap:4px; font-size:15px; font-weight:680; color:var(--ink); }
.risk-compact .rc-v:hover{ color:var(--ink-2); }

/* ===== uploaded hero images inside strategy artwork ===== */
.strategy-art img.art{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0}

/* wide desktop: cap prose line length so text doesn't stretch across ~880px */
@media (min-width:900px){
  .app-frame.wide p.lede, .app-frame.wide .lede{ max-width:62ch; }
}

/* ===== Welcome carousel ===== */
.carousel{position:relative; flex:1; overflow:hidden; background:#0b0b0d; touch-action:pan-y; user-select:none}
.carousel-track{display:flex; height:100%; transition:transform .55s var(--ease); will-change:transform}
.cslide{min-width:100%; height:100%; position:relative; overflow:hidden}
.cslide .c-img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0}
.cslide .c-art{position:absolute; inset:0; z-index:0}
.cslide .c-art svg{width:100%;height:100%}
.cslide.brand{background:#0b0b0d}   /* generic fallback: plain neutral near-black (matches carousel base — no gradient, no bleed) */
.cslide .c-tint{position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(0,0,0,.10) 40%, rgba(0,0,0,.30))}
.c-overlay{position:absolute; left:0; right:0; bottom:0; z-index:4; color:#fff;
  padding:26px 24px calc(20px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.62) 46%); display:flex; flex-direction:column; gap:12px}
.c-title{font-size:34px; font-weight:770; letter-spacing:-.035em; text-shadow:0 2px 22px rgba(0,0,0,.4); min-height:38px}
.c-sub{font-size:17px; opacity:.94; margin-top:-4px; max-width:26ch; text-shadow:0 1px 14px rgba(0,0,0,.5); min-height:22px}
.carousel-dots{display:flex; gap:8px; margin:4px 0 6px}
.cdot{width:8px;height:8px;border-radius:50%;border:0;background:rgba(255,255,255,.42);cursor:pointer;padding:0;transition:all .25s var(--ease)}
.cdot.on{background:#fff; width:24px; border-radius:5px}
.c-overlay .btn{min-height:54px}
.c-overlay .btn-primary{background:#fff; color:#0b0b0d; box-shadow:0 10px 30px rgba(0,0,0,.4)}
.c-overlay .btn-ghost{color:#fff}
@media (min-width:900px){ .c-title{font-size:40px} }

/* ===== Admin content manager (prototype-only) ===== */
.admin-flag{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#7a3d00;background:#fdeccb;border-radius:999px;padding:6px 12px;letter-spacing:.02em}
.admin-card{border:1px solid var(--line); border-radius:var(--r-md); padding:14px; background:#fff}
.admin-card+.admin-card{margin-top:14px}
.admin-thumb{width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; position:relative; background:var(--surface-2)}
.admin-thumb .strategy-art{position:absolute;inset:0;border-radius:0;aspect-ratio:auto;height:100%}
.admin-thumb img.c-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mini-input{width:100%;border:1.5px solid var(--line-2);border-radius:10px;padding:11px 13px;font-size:15px;background:#fff}
.mini-input:focus{outline:none;border-color:var(--ink)}
.mini-label{font-size:11px;color:var(--ink-3);font-weight:640;text-transform:uppercase;letter-spacing:.08em;margin:0 0 6px 2px}
.focal-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.focal-row label{font-size:12px;color:var(--ink-2);display:flex;align-items:center;gap:8px;flex:1;min-width:120px}
.focal-row input[type=range]{height:6px}
.preview-pair{display:flex;gap:12px}
.preview-pair .pv{flex:1}
.pv .lbl{font-size:11px;color:var(--ink-3);font-weight:640;margin-bottom:6px;text-transform:uppercase;letter-spacing:.08em}
.pv-box{border-radius:12px;overflow:hidden;background:var(--surface-2);position:relative}
.pv-box.mobile{aspect-ratio:3/2}
.pv-box.desktop{aspect-ratio:16/9}
.pv-box img{width:100%;height:100%;object-fit:cover}
.mini-btn{appearance:none;border:1.5px solid var(--line-2);background:#fff;border-radius:10px;padding:9px 13px;font-size:13px;font-weight:620;cursor:pointer;transition:background .15s}
.mini-btn:hover{background:var(--surface-2)}
.mini-btn.danger{color:var(--neg);border-color:#f3d3d1}
.mini-btn.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.filebtn{position:relative;overflow:hidden;display:inline-flex}
.filebtn input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0;width:100%;height:100%}
.admin-toolbar{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%);padding:14px 0 calc(10px + env(safe-area-inset-bottom));display:flex;gap:10px}

/* full-bleed strategy artwork inside a carousel slide (reuses the proven .strategy-art render) */
.cslide .strategy-art.c-fill{position:absolute; inset:0; border-radius:0; aspect-ratio:auto; width:100%; height:100%; z-index:0}
.cslide .strategy-art.c-fill .art-scrim{background:linear-gradient(180deg, rgba(0,0,0,.04) 45%, rgba(0,0,0,.18))}

/* ===== Compact admin list ===== */
.admin-list-item{border-bottom:1px solid var(--line)}
.admin-list-item:last-child{border-bottom:0}
.arow{display:flex; align-items:center; gap:10px; padding:12px 2px; cursor:pointer}
.arow .grow{min-width:0}
.arow-editor{padding:2px 2px 16px; display:flex; flex-direction:column; gap:12px}
.reorder{display:flex; flex-direction:column; gap:3px; flex:none}
.rbtn{width:28px; height:20px; border:1px solid var(--line-2); background:#fff; border-radius:6px; font-size:11px; line-height:1; cursor:pointer; color:var(--ink-2); display:grid; place-items:center; padding:0}
.rbtn:hover{background:var(--surface-2)}
.rbtn.dis{opacity:.28; cursor:default}
.admin-thumb.sm{width:66px; height:42px; aspect-ratio:auto; border-radius:9px; flex:none}
.enabled-dot{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600}
.enabled-dot .d{width:7px;height:7px;border-radius:50%}

/* ===== Manage Content v2 (admin) — large previews, autosave image fields, contextual save ===== */
.admin-card{border:1px solid var(--line); border-radius:16px; padding:14px; background:var(--surface)}
.admin-pv{width:100%; border-radius:12px; overflow:hidden; position:relative; background:var(--surface-2)}
.admin-pv img{width:100%; height:100%; object-fit:cover; display:block}
.admin-pv .strategy-art{position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; border-radius:0}
.admin-pv.wide{aspect-ratio:16/9}
.admin-pv.portrait{aspect-ratio:9/16; max-height:300px; width:auto; margin:0 auto}
.admin-pv-empty{position:absolute; inset:0; display:grid; place-items:center; color:var(--ink-3); font-size:13px}
.admin-pv-brand{position:absolute; inset:0; display:grid; place-items:center; background:#0b0b0d}
.admin-imgfield{display:flex; flex-direction:column; gap:8px}
.admin-reco{margin:0}
.admin-imgrow{display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-height:44px}
.admin-changebtn{width:auto; min-height:44px; padding:11px 18px}
.admin-pick{position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center}
.admin-pick input[type=file]{position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0; width:100%; height:100%}
.admin-pick.is-busy{opacity:.5; pointer-events:none}
.admin-imgstatus{display:inline-flex; align-items:center; gap:5px}
.admin-imgstatus.ok{color:var(--pos)}
.admin-imgstatus.neg{color:var(--neg)}
.admin-cardhead{display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap}
.admin-cardhead > .grow{flex:1 1 auto; min-width:0}                                  /* left column may shrink → title truncates, never pushes the button out */
.admin-cardhead > .btn{flex:0 0 auto; width:auto; min-width:0; min-height:44px}       /* compact Edit action: ≥44px tap target, auto width, no forced/min width; row wraps before overflow */
.status-pill{display:inline-flex; align-items:center; font-size:12px; font-weight:660; padding:2px 9px; border-radius:999px; margin-top:4px}
.status-pill.on{color:var(--accent); background:var(--accent-soft)}
.status-pill.off{color:var(--ink-3); background:var(--surface-2)}
.admin-editor{display:flex; flex-direction:column; gap:12px; padding-top:14px; margin-top:12px; border-top:1px solid var(--line)}
.admin-pos.seg{width:100%}
.admin-savebar{display:flex; gap:10px}
.admin-unsavedrow{margin-top:2px}
.admin-toggle{display:flex; align-items:center; gap:12px; min-height:44px}
.admin-danger{color:var(--neg); align-self:flex-start}
.linkbtn{appearance:none; border:0; background:none; color:var(--ink-2); font-weight:600; font-size:13px; cursor:pointer; padding:4px 0; text-decoration:underline}
.linkbtn:hover{color:var(--ink)}
.admin-adv{align-self:flex-start; font-size:12px}
.hair{height:1px; background:var(--line); margin:2px 0}
.enabled-dot.on .d{background:var(--pos)} .enabled-dot.on{color:var(--pos)}
.enabled-dot.off .d{background:var(--ink-3)} .enabled-dot.off{color:var(--ink-3)}

/* strategy artwork used as a full-bleed fill (carousel slide, admin thumbnails, previews) */
.strategy-art.c-fill{position:absolute; inset:0; border-radius:0; aspect-ratio:auto; width:100%; height:100%; z-index:0}
.admin-thumb, .pv-box{position:relative}

/* (compact strategy list rows removed 2026-10-06 — Discover AND the Author Profile both render the
   shared .scard cover cards now; see "DISCOVER COVER CARDS" below.) */
/* Evidence layers (Strategy Detail) — backtest is visually SEPARATE + quiet (never masquerades as LIVE). */
.evi-label{ font-weight:660; letter-spacing:.01em; color:var(--ink-2); }
.evi-forward{ margin-top:4px; }
.evi-backtest{ margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.evi-backtest.primary{ margin-top:4px; padding-top:0; border-top:0; }   /* primary = main content, no card chrome */
.evi-backtest .bt-chart{ opacity:.82; }                                 /* muted line — distinct from the LIVE chart */
.evi-disc{ line-height:1.45; color:var(--ink-3); }
/* Instrument identity page header + fact rows */
.instr-head{ display:flex; align-items:center; gap:15px; }
.instr-logo{ flex:none; }
.instr-head .tik{ width:58px; height:58px; border-radius:16px; font-size:21px; }
.instr-facts{ display:flex; flex-direction:column; gap:12px; }
.instr-fact .k{ font-size:12px; color:var(--ink-3); letter-spacing:.02em; }
.instr-fact .v{ font-size:15px; font-weight:560; color:var(--ink); margin-top:2px; }
.holdings-defensive{ padding:2px 0 }
.holdings-defensive .lbl{ font-weight:640; color:var(--ink-2) }
.defensive-alloc{ margin:0; font-size:16px; font-weight:680; color:var(--ink); font-variant-numeric:tabular-nums }
/* MODEL sector summary — clean wrapping count chips (public-safe counts, never target weights). */
.sector-chips{ display:flex; flex-wrap:wrap; gap:6px }
.sector-chip{ display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px;
  background:var(--surface-2); border:1px solid var(--hairline); font-size:12.5px; line-height:1.35; color:var(--ink-2) }
.sector-chip .sc-name{ white-space:nowrap }
.sector-chip .sc-n{ font-weight:720; font-variant-numeric:tabular-nums; color:var(--ink) }
.sector-chip.sector-more{ color:var(--ink-3); font-weight:600; }   /* "ещё N" — quiet, no count emphasis */

/* shared author avatar (Strategy Detail author row · Account public-profile · Author Profile screen).
   Same source everywhere; initials fallback when no portrait. */
.author-av{ width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none; background:var(--surface-2);
  display:grid; place-items:center; font-weight:750; color:var(--ink-2); font-size:16px; letter-spacing:-.01em; }
.author-av.lg{ width:76px; height:76px; font-size:28px; }
/* Account public-profile row + Strategy Detail author row (tappable, hairline, no card box) */
.pubprofile-row, .author-row{ display:flex; align-items:center; gap:14px; width:100%; text-align:left;
  appearance:none; border:0; background:none; font:inherit; color:inherit; cursor:pointer; padding:14px 2px; }
.author-row{ border-top:1px solid var(--line); }
.author-row.in-profile{ border-top:0; padding:6px 2px; }   /* profile-header author: metadata, not a bottom section */
.pub-name{ font-weight:660; font-size:16px; letter-spacing:-.01em; }
.pub-sub{ font-size:13px; color:var(--ink-2); margin-top:2px; }

/* ===== Strategy-Detail PROFILE identity (simplified: name → author → CTA; artwork carries identity) ===== */
.strat-title{ font-weight:800; font-size:28px; letter-spacing:-.038em; line-height:1.06; margin:0; }
/* Historical-test teaser — secondary evidence: a hair more separation from the primary Results block. */
.bt-teaser{ margin-top:20px; }
.strat-cta{ margin-top:12px; }
.strat-cta .btn{ width:100%; }
/* avatar upload field (Public profile editor) — square preview + change-photo picker */
.avatar-field-row{ display:flex; align-items:center; gap:16px; }
.avatar-pv{ width:72px; height:72px; border-radius:50%; object-fit:cover; flex:none; background:var(--surface-2); }
.avatar-pv.ph{ display:grid; place-items:center; color:var(--ink-2); font-weight:700; font-size:24px; }
/* public Author-Profile links — compact platform labels, restrained (no raw URLs) */
.author-links{ display:flex; flex-wrap:wrap; gap:8px 10px; }
.author-link{ display:inline-flex; align-items:center; font-size:14px; font-weight:560; color:var(--ink-2);
  text-decoration:none; padding:6px 12px; border:1px solid var(--line); border-radius:999px; }
.author-link:hover{ color:var(--ink); border-color:var(--ink-3); }
.author-link:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }
