/* The features page (owner, 2026-12-02: mock-up v1 of the page,
 * https://claude.ai/artifact/EagBcvPKmHzy6YxJE5QK8w).
 *
 * Loaded only by templates/public/features.html, after site.css, whose
 * tokens and shared parts (.wrap, .sec, .h1/.h2/.h3, .lead, .head, .btn,
 * .tag, .frame, .winbar, .mark, .checks, .link, .page-hero) it builds on.
 * The pictures are small pieces of the app in the app's own look
 * (templates/public/_features_parts.html); what moves them is
 * static/js/features.js. The small app pieces the home page also draws
 * (.ord, .job-ic, .node, .kicker, .pointer...) are written out here again,
 * because this page does not load home.css.
 *
 * The rule from motion.css holds: the served markup is the finished page.
 * A "before" state is written only under `.motion` (the visitor accepts
 * motion) or under a state features.js itself sets (`is-live`,
 * `is-watching`, `play`, `now`, a stop without `on`, `data-state` other
 * than the served "done"), so a page whose script never ran hides nothing.
 * Loops run only inside `.is-live`: on screen, tab visible.
 */

:root { --ft-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* ── hero: the words, then one product's journey ── */
.ft-hero .page-hero-in { padding-bottom: 0; }
.ft-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.ft-hero-pic { position: relative; padding-bottom: clamp(32px, 4.5vw, 56px); }
.jr { position: relative; margin-top: clamp(40px, 5.5vw, 68px); }
.jr .frame { box-shadow: var(--shadow); }
.jr-in { position: relative; }
.jr-bar { position: relative; height: 3px; background: var(--line); }
.jr-bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 0; transform: scaleX(var(--jp, 1)); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.jr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jr-stop { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 16px 18px; border-right: 1px solid var(--line); min-width: 0; text-align: left; transition: background-color .45s; }
.jr-stop:last-child { border-right: 0; }
.jr-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.jr-head .job-ic { transition: background-color .35s, color .35s; }
.jr-head > span:last-child { min-width: 0; }
.jr-head b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.jr-head small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.jr-n { position: absolute; top: 11px; left: 16px; font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.jr-piece { flex: none; margin-top: auto; display: grid; align-content: center; min-height: 104px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 12px; min-width: 0; transition: opacity .45s, transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, background-color .4s; }
.jr-stop.on .jr-head .job-ic { background: var(--ink); color: var(--on-ink); }
.motion .jr-stop:not(.on) .jr-piece { opacity: .3; transform: translateY(6px) scale(.97); }
.jr-stop.now { background: var(--blue-tint); }
.jr-stop.now .jr-piece { border-color: var(--blue-pale); background: var(--card); }
@media (max-width: 899px) {
  .jr-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; height: auto; z-index: 1; }
  .jr-bar i { transform: scaleY(var(--jp, 1)); }
  .jr-grid { grid-template-columns: minmax(0, 1fr); }
  .jr-stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .jr-stop:last-child { border-bottom: 0; }
  .jr-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .jr-piece { min-height: 88px; padding: 10px; margin-top: 0; }
  .jr-n { display: none; }
}
.sample { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--faint); }

/* what each stop leaves behind */
.pc { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; line-height: 1.35; }
.pc b { font-weight: 600; }
.pc small { color: var(--muted); font-size: 11.5px; }
.thumb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--blue-pale); flex: none; }
.pc-t { display: grid; gap: 6px; min-width: 0; }
.sw { display: flex; gap: 5px; }
.sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sw-a { background: #0284c7; }
.sw-b { background: #e2674a; }
.sw-c { background: #2f855a; }
.pc-ch { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 8px 10px; }
.pc-ch > span { position: relative; }
.pc-ch em { position: absolute; right: -5px; top: -5px; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); display: grid; place-items: center; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; transition-delay: calc(var(--i) * 140ms + 200ms); }
.pc-ch em svg { width: 8px; height: 8px; stroke: #ffffff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.motion .jr-stop:not(.on) .pc-ch em { transform: scale(0); opacity: 0; transition-delay: 0s; }
.pc-ord { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
.pc-ord > span:nth-child(2) { display: grid; min-width: 0; }
.pc-ord b, .pc-ord small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ord .tag { grid-column: 1 / -1; justify-self: start; font-size: 11px; padding: 1px 8px 1px 7px; }
.pc-label { flex-direction: column; align-items: stretch; gap: 7px; }
.lb-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-top small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barcode { display: block; height: 22px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 9px, var(--text) 9px 12px, transparent 12px 14px, var(--text) 14px 15px, transparent 15px 17px); opacity: .85; }
.trk { font-family: var(--ft-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-inv { flex-direction: column; align-items: stretch; gap: 8px; }
.pc-inv > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-width: 0; }
.pc-inv > div > * { white-space: nowrap; }
.pc-inv > div > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc-inv .tag { align-self: flex-start; font-size: 11px; padding: 1px 8px 1px 7px; }
.lines { display: grid; gap: 5px; }
.lines i { height: 6px; border-radius: 3px; background: var(--line-2); }
.lines i:nth-child(2) { width: 64%; }

/* ── the page's own menu: stays under the header and marks the part being read ── */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 74px); z-index: 30; display: flex; justify-content: center; pointer-events: none; margin-top: 8px; padding-inline: var(--gutter); }
.subnav ul { pointer-events: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .18s, background-color .25s; }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: var(--ink); color: var(--on-ink); }
@media (max-width: 639px) {
  .subnav { top: calc(env(safe-area-inset-top, 0px) + 66px); }
  .subnav a { padding: 6px 12px; font-size: 13.5px; }
}
.anchor { scroll-margin-top: 132px; }

/* ── small app pieces (the home page's, under the same names) ── */
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.kicker b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel); }
.kicker .ic { width: 16px; height: 16px; }
.kicker.on-soft b { background: var(--card); border: 1px solid var(--line); }
.sc { font-size: 13.5px; line-height: 1.45; }
.sc-pad { padding: 16px; display: grid; gap: 12px; }
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ord { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.ord:last-child { border-bottom: 0; }
.ord-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ord-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord .tag { font-size: 11px; padding: 1px 8px 1px 7px; }
.tag.ok { background: var(--green-tint); }
.tag.warn { background: var(--orange-tint); }
.job-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); flex: none; }
.job-ic .ic { width: 16px; height: 16px; }
.job-ic.dark { background: var(--ink); color: var(--on-ink); }
.job-ic.blue { background: var(--blue-pale); color: var(--blue); }
.job-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.job-main small { font-size: 11.5px; color: var(--muted); }
.job-main b { font-weight: 600; }
.cap { text-align: center; font-size: 12.5px; color: var(--muted); }
.winbar .tag { margin-left: auto; font-size: 11.5px; padding: 1px 9px 1px 8px; }
.winbar .tag span { margin-left: 0; }
.pointer { position: absolute; width: 22px; height: 22px; opacity: 0; transform: translate(10px, -10px); transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .3s; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
[data-state="ready"] > .pointer { opacity: 1; transform: translate(0, -22px); }
[data-state="press"] > .pointer { opacity: 1; transform: translate(0, -22px) scale(.86); }

/* A picture with a person's click in it: the piece for the state it is not
   in stays out. Served "done"; features.js walks ready, press, done. */
[data-ft-loop] [data-on] { display: none; }
[data-ft-loop][data-state="ready"] [data-on="ready"], [data-ft-loop][data-state="press"] [data-on="ready"], [data-ft-loop][data-state="done"] [data-on="done"] { display: inline-flex; }
[data-ft-loop] .btn { pointer-events: none; }
[data-ft-loop][data-state="press"] .btn { transform: scale(.97); background: var(--ink-2); }
.act { display: grid; height: 44px; }
.act > [data-on] { width: 100%; height: 100%; }
.okline { align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--green-tint); font-weight: 600; font-size: 14px; }
.okline .ic { color: var(--green); stroke-width: 2.4; width: 16px; height: 16px; }

/* ── the four parts of the work ── */
.fbs { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 80px); }
.fb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; padding-block: clamp(44px, 6.5vw, 92px); }
.fb + .fb { border-top: 1px solid var(--line); }
.fb.solo { padding-block: 0; }
.fb-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.fb-copy .h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
.fb-copy .lead { font-size: 1.04rem; }
.fb-copy .btn { margin-top: 6px; }
.fb-scene { min-width: 0; width: 100%; max-width: 560px; justify-self: center; }
.fb-scene .frame { box-shadow: var(--shadow); }
@media (min-width: 960px) {
  .fb { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); column-gap: 76px; }
  .fb.flip .fb-copy { order: 2; }
  .fb .fb-scene { justify-self: end; }
  .fb.flip .fb-scene { justify-self: start; }
}

/* channels: what each one just did; one is still at work */
.ord.busy { position: relative; }
.ord.busy::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent) 50% 0 / 40% 100% no-repeat; }
.is-live .ord.busy::after { animation: ft-busy 2.2s ease-in-out infinite; }
.is-live .ord.busy .dot { animation: ft-pulse 1.2s ease-in-out infinite; }
@keyframes ft-busy { from { background-position: -70% 0; } to { background-position: 170% 0; } }
@keyframes ft-pulse { 50% { opacity: .45; } }

/* shipping: pick the courier, print, the number lands on the order */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick > span { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 600; min-width: 0; }
.pick > span.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.rowline { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 500; min-width: 0; }
.rowline .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.rowline .ic.go { margin-left: auto; transform: rotate(-90deg); }
.shipx { position: relative; }
.shipx .pointer { right: 14%; bottom: 74px; }
.trackrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px dashed var(--line-2); border-radius: 12px; min-height: 58px; transition: border-color .4s, background-color .4s; }
.trackrow .barcode { width: 64px; height: 30px; }
.trackrow > span:not(.tag) { position: relative; display: grid; min-width: 0; }
.trackrow .tag { white-space: nowrap; }
.trackrow small { font-size: 11.5px; color: var(--muted); }
.trackrow .trk { font-size: 13px; }
.trackrow .wait { position: absolute; left: 0; bottom: 5px; height: 8px; width: min(70%, 150px); border-radius: 4px; background: var(--line-2); }
.shipx[data-state="done"] .trackrow { border-style: solid; border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: var(--card); }
.shipx[data-state="done"] .trackrow .wait { display: none; }
.shipx:not([data-state="done"]) .trackrow .trk, .shipx:not([data-state="done"]) .trackrow .tag, .shipx:not([data-state="done"]) .trackrow .barcode { visibility: hidden; }
.shipx.is-live .trackrow .wait { animation: ft-pulse 1.2s ease-in-out infinite; }
.motion .shipx[data-state="done"] .trackrow .trk, .motion .shipx[data-state="done"] .trackrow .tag { animation: ft-node-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ft-node-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .trackrow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .trackrow .barcode { display: none; }
  .trackrow .tag { justify-self: start; }
}

/* invoice: a sheet of paper on the desk */
.desk { position: relative; padding: clamp(22px, 4vw, 38px) clamp(16px, 4vw, 38px); background-color: var(--soft); background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.6px); background-size: 22px 22px; display: grid; place-items: center; overflow: hidden; }
.paper { position: relative; z-index: 0; width: min(100%, 360px); border: 1px solid var(--line); border-radius: 6px; background: var(--card); box-shadow: var(--shadow); padding: 22px 22px 20px; font-size: 12.5px; line-height: 1.5; transform: rotate(-1.4deg); }
.paper::before { content: ""; position: absolute; inset: 8px -9px -9px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); z-index: -1; transform: rotate(2.2deg); }
.paper::after { content: ""; position: absolute; inset: 0; border-radius: 5px; background: var(--card); z-index: -1; }
.paper-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.paper-top b { display: block; font-weight: 600; font-size: 13.5px; }
.paper-top small { display: block; font-size: 11px; color: var(--muted); }
.paper-top div:last-child { text-align: right; }
.paper-top div:last-child b { font-size: 11px; letter-spacing: .04em; color: var(--blue); }
.paper dl { display: grid; gap: 6px; padding: 14px 0; font-variant-numeric: tabular-nums; }
.paper dl div { display: flex; justify-content: space-between; gap: 12px; }
.paper dt { color: var(--muted); }
.paper dd { font-weight: 500; white-space: nowrap; }
.paper .sum { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.paper .sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.paper .sum .tot { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin-top: 2px; }
.stamp { position: absolute; right: -12px; bottom: -14px; transform: rotate(3deg); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); box-shadow: var(--shadow); }
.motion .is-watching .stamp { transition: opacity .35s .5s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .5s; }
.motion .is-watching:not(.play) .stamp { opacity: 0; transform: rotate(3deg) scale(1.5); transition: none; }
@media (max-width: 480px) { .stamp { right: 6px; bottom: -12px; } }

/* automation: the rule as blocks; the buyer's mail waits for a person */
.rule-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.switch i { width: 30px; height: 18px; border-radius: 999px; background: var(--ink); position: relative; }
.switch i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-ink); }
.flow { display: grid; }
.node { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); position: relative; }
.node + .node { margin-top: 22px; }
.node + .node::before { content: ""; position: absolute; left: 28px; top: -23px; height: 22px; width: 2px; background: var(--line-2); }
.node.start { background: var(--blue-tint); border-color: var(--blue-pale); }
.node .tag { margin-left: auto; }
.node.wait { background: var(--orange-tint); border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); }
.motion .rule.is-watching:not(.play) .node.act { opacity: 0; }
.motion .rule.play .node.act { animation: ft-node-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .7s + .3s); }
@media (max-width: 480px) {
  .node.wait { flex-wrap: wrap; row-gap: 8px; }
  .node.wait .tag { margin-left: 46px; }
}

/* ── integrations: one sheet, hairlines between ── */
.igrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 46px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--line); }
.igrid > li { display: flex; min-width: 0; background: var(--card); }
.icell { position: relative; flex: 1; display: flex; gap: 12px; align-items: center; padding: 20px 18px; background: var(--card); min-width: 0; transition: background-color .18s; }
.icell:hover { background: var(--soft); }
.icell > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.icell b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.icell small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.icell .ic { width: 15px; height: 15px; color: var(--faint); flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.icell:hover .ic, .icell:focus-visible .ic { opacity: 1; transform: none; }
@media (hover: none) { .icell .ic { opacity: .7; transform: none; } }
@media (max-width: 1040px) { .igrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .igrid { grid-template-columns: minmax(0, 1fr); }
  .icell { padding: 15px 16px; }
}
.after { display: flex; justify-content: center; margin-top: 36px; }

/* ── everyday work: six small windows ── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.bcell { border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bcell.wide { grid-column: span 2; }
.bviz { position: relative; height: 176px; background: var(--soft); border-bottom: 1px solid var(--line); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; overflow: hidden; font-size: 12.5px; line-height: 1.4; }
.bcopy { padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; }
.bcopy .kicker { font-family: var(--body); letter-spacing: 0; }
.bcopy .kicker b { width: 28px; height: 28px; border-radius: 8px; }
.bcopy p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1199px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bcell.wide { grid-column: auto; }
}
.vz-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-width: 0; overflow: hidden; }
.mini-rows { display: grid; }
.mini-rows > div { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.mini-rows > div:last-child { border-bottom: 0; }
.mini-rows .t { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-rows b { font-weight: 600; }
.mini-rows small { color: var(--muted); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-rows .mark { width: 46px; height: 26px; border-radius: 7px; padding: 3px 5px; }
.mini-rows .btn, .mini-rows .tag { flex: none; }
/* sales: seven days, then thirty */
.vz-sales { align-content: stretch; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.vz-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.vz-seg { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--panel); }
.vz-seg span { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.vz-sales[data-range="7"] [data-ft-range="7"], .vz-sales[data-range="30"] [data-ft-range="30"] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.bars-x { display: flex; align-items: flex-end; gap: var(--gap, 10px); height: 100%; min-height: 0; border-bottom: 1px solid var(--line-2); }
.bars-x i { flex: 1; min-width: 0; border-radius: 4px 4px 0 0; background: var(--blue); opacity: .32; height: calc(var(--v) * 1%); transform-origin: 50% 100%; }
.bars-x i.top { opacity: 1; }
.vz-sales[data-range="7"] [data-ft-bars="30"], .vz-sales[data-range="30"] [data-ft-bars="7"] { display: none; }
.motion .vz-sales.is-watching:not(.play) .bars-x i { transform: scaleY(0); }
.motion .vz-sales.play .bars-x i { animation: ft-grow .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ft-grow { from { transform: scaleY(0); } to { transform: none; } }
/* buyer, stock, who did what */
.vz-buyer { gap: 10px; }
.who { display: flex; align-items: center; gap: 9px; font-weight: 600; min-width: 0; }
.ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 600; flex: none; }
.ava.soft { background: var(--panel); color: var(--text); }
.delta { font-family: var(--display); font-size: 14px; width: 34px; flex: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.delta.up { color: var(--green); }
/* price: a suggestion a person approves */
.vz-price .mini-rows b { font-variant-numeric: tabular-nums; }
.vz-price .sug { background: var(--blue-tint); min-height: 43px; }
.vz-price .btn-sm { height: 26px; padding: 0 11px; font-size: 12px; }
.vz-price .tag { font-size: 11px; padding: 1px 8px 1px 7px; }
.vz-price s { color: var(--faint); font-weight: 400; margin-right: 6px; }
.vz-price[data-state="ready"] b > [data-on="ready"], .vz-price[data-state="press"] b > [data-on="ready"], .vz-price[data-state="done"] b > [data-on="done"] { display: inline; }
/* REST API */
.code { font-family: var(--ft-mono); font-size: 12px; line-height: 1.75; white-space: pre; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 14px; }
.code::-webkit-scrollbar { display: none; }
.code .k { color: var(--blue); font-weight: 500; }
.code .c { color: var(--faint); }
.code .g { color: var(--green); font-weight: 500; }

/* ── AI: the approval list ── */
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.q-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 5px; transition: border-color .4s; }
.q-who { display: flex; align-items: center; gap: 8px; min-height: 21px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.q-who .tag { margin-left: auto; font-size: 11px; padding: 1px 8px 1px 7px; }
.q-item p { font-size: 13.5px; font-weight: 500; }
.q-item .q-note { font-size: 12px; font-weight: 400; color: var(--muted); display: flex; gap: 7px; align-items: baseline; }
.q-note .dot { transform: translateY(-1px); flex: none; }
.q-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.q-acts span { padding: 3px 10px; border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 600; }
.q-acts span:first-child { background: var(--ink); color: var(--on-ink); }
.queue { position: relative; }
.queue .pointer { right: 14%; bottom: 6px; }
.queue .q-acts[data-on] { display: flex; }
.queue[data-state="done"] .q-acts[data-on="ready"] { visibility: hidden; }
.queue[data-state="done"] .q-item.ok { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }

/* ── a system of your own ── */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--line); }
.col { padding: 28px 28px 6px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.col + .col { padding-left: 28px; border-left: 1px solid var(--line); }
.col p { font-size: 15px; color: var(--muted); }
@media (max-width: 820px) {
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .col, .col + .col { padding: 24px 0 8px; border-left: 0; }
  .col + .col { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .jr-bar i, .jr-stop, .jr-piece, .pc-ch em, .pointer, .subnav a, .trackrow, .q-item, .vz-seg span { transition: none; }
}
