/* tsvtnv.com, redesigned 29 Nov 2026 in the marclou.com shape: a fixed profile column on the left,
   a feed of cards on the right. Dark, calm, decided. Colour only with meaning:
   orange = the brand, green = live from Stripe, amber = a dated snapshot or in build. */
:root {
  --bg: #0c0d0f; --surface: #141518; --raised: #1b1d21; --line: #25282d; --line-2: #32363c;
  --ink: #ebe9e4; --muted: #9a9c9f; --faint: #64676c;
  --brand: #ff6a1a; --ok: #3fbf7f; --wait: #e9b949;
  --display: "Michroma", "Instrument Sans", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img, svg, canvas { display: block; max-width: 100%; }
b { font-weight: 600; color: var(--ink); }
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* layout */
.page { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.me { position: sticky; top: 40px; }
.feed { display: grid; gap: 12px; min-width: 0; }

/* the profile column */
.dots { position: absolute; left: 88px; top: -8px; width: 160px; height: 88px; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 14px 14px;
  mask-image: linear-gradient(90deg, #000, transparent); -webkit-mask-image: linear-gradient(90deg, #000, transparent); }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand); margin-bottom: 20px; }
h1 { font: 400 20px/1.3 var(--display); margin: 0 0 14px; letter-spacing: 0; }
.bio { margin: 0 0 10px; color: var(--muted); }
.follow { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.follow a, .follow .soon { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; min-height: 28px; }
.follow a:hover { color: var(--ink); text-decoration: none; }
.follow svg { width: 15px; height: 15px; fill: currentColor; }
.follow .n { font-family: var(--mono); font-size: 13px; }
.now { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.now b { color: var(--ink); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 4px 0; font: 600 15px/1.3 var(--sans); }
.row-h .count { color: var(--muted); font: 500 13px var(--mono); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.card-head h2 { margin: 0; font: 600 20px/1.2 var(--sans); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-head .unit { color: var(--muted); font-weight: 400; font-size: 14px; }
.pill { font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; background: var(--raised); white-space: nowrap; }
.status { margin: 6px 0 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status[data-state="live"] .dot { background: var(--ok); }
.status[data-state="live"] { color: var(--ok); }
.status[data-state="snapshot"] .dot { background: var(--wait); }
.status[data-state="snapshot"] { color: var(--wait); }

/* revenue chart */
.chart-box { position: relative; }
.chart { width: 100%; height: 220px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ylab { font: 400 11px var(--mono); fill: var(--faint); }
.chart .bar { fill: var(--ink); }
.chart .bar.partial { fill: url(#hatch); stroke: var(--ink); stroke-width: 1; }
.chart .hit { fill: transparent; }
.chart .hit:hover + .bar, .chart g:hover .bar { fill: #ffffff; }
.chart .lab { font: 400 12px var(--sans); fill: var(--muted); }
.tip { position: absolute; pointer-events: none; background: var(--raised); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px;
  font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tip .num { display: block; font-size: 14px; }
.tip .when { color: var(--muted); }
.kpis { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis dt { color: var(--muted); font-size: 13px; }
.kpis dd { margin: 2px 0 0; font-size: 18px; }
.kpis dd.pending { font: 400 13px/1.4 var(--sans); color: var(--faint); }
.legend { margin: 14px 0 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; }
.sw.solid { background: var(--ink); }
.sw.dash { border: 1px solid var(--ink); background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 3px); }

/* products */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product { padding: 16px 16px 12px; transition: border-color .15s ease; }
.product:hover { border-color: var(--line-2); }
.p-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: var(--raised); }
.p-ico.novtar { display: grid; place-items: center; background: var(--brand); }
.p-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-badge { flex: none; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line-2); color: var(--ink); }
.p-badge.num { font-size: 12px; }
.p-badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.p-badge.snap { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }
.p-badge.wait { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }
.p-badge.none { color: var(--muted); }
.p-tag { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.spark { width: 100%; height: 48px; margin-top: 12px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.spark path.fill { fill: var(--ink); opacity: .08; }
.spark path.part { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.spark.flat { background: linear-gradient(transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%); opacity: .8; }

/* Solace */
.solace { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; padding: 12px; }
.stage { position: relative; margin: 0; min-height: 420px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  touch-action: pan-y; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.stage.ready canvas { opacity: 1; }
.fallback { position: absolute; left: 50%; top: 50%; width: 400px; max-width: none; height: auto; transform: translate(-50%, -50%) rotate(-90deg); transition: opacity .4s ease; }
.stage.ready .fallback { opacity: 0; }
.stage-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
.hint { transition: opacity .4s ease; }
.hint.gone { opacity: 0; }
.solace-text { padding: 8px 8px 8px 0; min-width: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 16px 0; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts > div { background: var(--surface); padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-size: 15px; }
.facts .est { font: 400 11px var(--sans); color: var(--faint); margin-left: 6px; }
.progress { display: grid; gap: 16px; }
.progress h3 { margin: 0 0 8px; font: 600 13px/1.3 var(--sans); color: var(--muted); }
.ticks, .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.ticks li, .steps li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 10px/14px var(--mono); text-align: center; color: var(--muted); }
.ticks li.muted::before, .steps li.muted::before { display: none; }

/* log */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log li:last-child { padding-bottom: 0; }
.log time { color: var(--muted); font: 500 13px var(--mono); padding-top: 2px; }
.log p { margin: 0; }
.log .tag { color: var(--muted); font-size: 12px; padding-top: 2px; }

.foot { margin: 20px 4px 0; color: var(--faint); font-size: 13px; display: grid; gap: 6px; }
.foot p { margin: 0; }

@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; gap: 32px; padding: 28px 16px 48px; }
  .me { position: static; }
  .dots { display: none; }
  .solace { grid-template-columns: 1fr; }
  .stage { min-height: 360px; }
  .solace-text { padding: 4px 8px 8px; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .chart { height: 180px; }
  .fallback { width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage canvas, .fallback, .hint, .product { transition: none; }
}
