/*
  /product/ (How Axari works) · v6, 10 Nov 2026 (IA revision 2, 7.1)
  Layout and the page's product fragments, on top of site.css. Every token, glyph, plate, panel,
  .lines, .ticks, .cells, Slack avatar and APP badge comes from site.css; this file places them.
  Product UI inside fragments follows DESIGN_SYSTEM "Product UI (Linear, measured)": --ui-* inks,
  13px titles, 12px meta, one lit row, neighbours dim. The Slack windows follow Slack's own dark
  theme (#1a1d21, 36px rounded-square avatars, 15px text, Block Kit fields and a green primary
  button), because a preview never borrows the site's own buttons.
  Pulled 10 Nov with the five-part selector, the approval demo and the Work Graph figure: their
  styles are in _legacy/product-v5c.css.
*/

/* ---------- Hero ----------
   H1, one line, the CTA pair, then the My work board as the opening's proof (home's and
   /integrations/' "hero + proof, no line between them"). Until 10 Nov the board was chapter 1 with its
   own H2 and lede between the CTAs and the board: two headlines and two paragraphs before any product
   read as clutter next to every other first fold. Gap above the board: --hero-screen, shared with the home
   stage (12 Nov; was 64, matching /integrations/' stats, which stay at 64 since they are not a screen).
   Headers on this page top-align the lede with the headline's first line (the homepage rule). */
.pd-hero .ctas { margin-top: var(--s6); }
.pd-hero .pd-board { margin-top: var(--hero-screen); }
.pd-h1 { max-width: 16ch; }
.split { align-items: start; }
.split .h2 { max-width: 22ch; }

/* The fragment kit (pv-*, props, avs) moved to site.css on 10 Nov: /integrations/ uses it too. */

/* Card detail: the definition of done beside the card's properties */
.card-d { display: grid; grid-template-columns: minmax(0, 1fr) 236px; }
.card-d > div { padding: var(--s4) 6px var(--s3); }
.card-d > div .pv-k { padding-left: 10px; }
.dod { width: auto; font-size: 13px; }
.dod li { padding: 9px 10px; }
.props-side { border-left: 1px solid var(--ui-line); padding-block: var(--s2); }
.props-side > div { grid-template-columns: 64px minmax(0, 1fr); border-top: 0; padding-block: 9px; }
.props-side dd { font-size: 13px; white-space: nowrap; }

/* ---------- Slack (real dark theme) ----------
   12 Nov (Avi: "too crowded and dense, avatar sizes are different, bring the same craft"). The card ran at
   15px with 8px between messages, louder and tighter than every other window on the site, which sit at
   13px UI type. Now: 13px, 12px between messages, 32px avatars that are one tile (the photo and the app
   icon share the same radius and the same 1px ring, so neither reads larger), the APP tag at its shared
   site size. Was: 15px text, 36px avatars, ring on the app tile only, 18px APP tag, 8px message padding.
   Slack's structure is unchanged: rounded-square avatars, name, APP, time, Block Kit fields and context.
   Round 2, same day (Avi): the Axari mark is never resized or redrawn, it stays 18px as it always was (it
   had gone to 15px, which read as a changed logo). The ring is off every avatar: on the dark Axari tile it
   drew a visible edge that the photo never shows, so the two read as different sizes; now both are plain
   32px squares. Names are bold (700), as in the home Slack window. The DM header bar was removed; its
   markup is in a comment in product/index.html and its rules below are kept for that restore. */
.sk { border-radius: 12px; background: #1a1d21; border: 1px solid rgba(255, 255, 255, 0.08); color: #d1d2d3; font-size: 13px; line-height: 1.5; overflow: hidden; }
.sk-h { display: flex; align-items: center; gap: var(--s2); padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sk-h b { color: #f8f8f8; font-weight: 500; }
.sk-h .av-sq { width: 20px; height: 20px; border-radius: 5px; }
.sk .av-sq { position: relative; flex: none; }
.sk .av-sq-app { box-shadow: none; }
.sk-msgs { padding: var(--s4) 0; } /* no header above now, so top and bottom match */
.sk-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 20px; }
.sk-msg > div { min-width: 0; }
.sk-msg > div > p + p { margin-top: 2px; }
.sk-msg .av-sq { width: 32px; height: 32px; border-radius: 8px; }
.sk-msg .av-sq-app img { width: 18px; } /* the mark's own size; never change it */
.sk-msg b { color: #f8f8f8; font-weight: 500; }
.sk-msg > div > p:first-child > b { font-weight: 700; } /* the sender name; message text keeps 500 for its bold runs */
.sk-time { margin-left: 4px; font-size: 11px; color: #ababad; }
.sk-list { margin-top: 4px; padding-left: 18px; list-style: disc; }
.sk-list li + li { margin-top: 4px; }
.sk-list li::marker { color: #ababad; }
.sk-scan { animation: sk-blink 1.2s var(--ease) infinite; }
@keyframes sk-blink { 50% { opacity: 0.45; } }
/* Block Kit: section fields (two columns, a bold label over its value), an actions row, a context line */
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s5); margin-top: var(--s4); }
.bk-fields dd { margin-top: 2px; }
/* Phones: one column. At two columns "CHG-4471 · Tue 22:00" needs 132px and gets 90 to 125, so it broke after the dot. */
@media (max-width: 479px) { .bk-fields { grid-template-columns: minmax(0, 1fr); } }
.bk-fields dt { color: #f8f8f8; font-weight: 500; }
.bk-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.bk-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(209, 210, 211, 0.3); background: transparent; color: #d1d2d3; font: 500 14px/1 var(--font-body); }
.bk-primary { border-color: transparent; background: #007a5a; color: #fff; cursor: pointer; transition: background-color var(--t-hover) var(--ease); }
.bk-primary:hover { background: #148567; }
.bk-primary:focus-visible { outline: 2px solid #1d9bd1; outline-offset: 2px; }
.bk-context { display: flex; align-items: center; gap: 6px; margin-top: var(--s4); font-size: 12px; color: #ababad; }
.bk-context b { color: #d1d2d3; }
.bk-context .st { width: 12px; height: 12px; }
.bk-context .st-done::after { width: 3px; height: 5.5px; border-color: #1a1d21; }


/* ---------- 1 · My work board ----------
   Four columns, the same as home's live board (11 Nov): Queued · Twin working · Needs you · Done.
   Linear's card material (site.css --ui-*). Each card says where it came from
   (email, a meeting, a tool), the detail home's board doesn't show. One card lit: the approval that
   threads through the page. Below 1200px the board keeps its column width and fades on the right
   instead of squeezing, so it reads as a picture of the product (home's phone rule). */
.pd-board .ui { overflow: hidden; }
.pd-board .app-bar { padding: 11px var(--s4); font-size: var(--fs-cap); color: var(--ui-3); }
.pd-board .pv-aside { display: inline-flex; align-items: center; gap: var(--s2); }
.pd-board .av { width: 20px; height: 20px; font-size: 11px; }
.mw { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 10px; padding: var(--s4) var(--s4) var(--s7); }
.mw-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mw-h { display: flex; align-items: center; gap: var(--s2); height: 24px; margin-bottom: 2px; font-size: 13px; color: var(--ui-1); }
.mw-h i { font-style: normal; color: var(--ui-3); }
.mw-h .st { width: 14px; height: 14px; }
.mw-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px; background: var(--ui-card); border: 1px solid var(--ui-card-line); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.mw-card b { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ui-1); letter-spacing: -0.01em; }
.mw-card > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs-cap); color: var(--ui-3); }
.mw-card .tool { width: 14px; height: 14px; }
/* A queued signal leads with its source and severity, as on home's board (.card-k). */
.mw-card > .mw-k { color: var(--ui-3); }
.mw-card.hi { box-shadow: 0 0 0 1px color-mix(in srgb, var(--st-review) 45%, transparent); }
.mw-card.done b { color: var(--ui-2); }
.mw-bar { display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--st-progress) var(--p), var(--ui-line) var(--p)); }
@media (max-width: 1199px) { .pd-board .ui { -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); } }
/* 11 Nov (Avi): on a phone the board shows only its middle, Twin working and Needs you, both whole
   and side by side, with no fade. Queued and Done step out: the story on a phone is what the Twin is
   doing and what it needs from you. Home's phone board stays the full board shrunk to fit (9 Nov). */
@media (max-width: 767px) {
  .pd-board .ui { -webkit-mask-image: none; mask-image: none; }
  .mw { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: var(--s3) var(--s3) var(--s5); }
  .mw > .mw-col:first-child, .mw > .mw-col:last-child { display: none; }
  .mw-card > span { white-space: normal; }
}

/* The text-beside-fragment layout (.pair, .pair-r) moved to site.css on 10 Nov: /integrations/ uses it too. */
.pd-card-t { padding: var(--s4) var(--s4) 0; font-size: 15px; font-weight: 500; color: var(--ui-1); letter-spacing: -0.01em; }

/* ---------- 5 · One finding, carried to done (the signature figure) ----------
   Five stages on one horizontal rule with square nodes. Each exception is a return arc above the
   rule: a 1px inverted U whose two feet land on the nodes it loops between (from Prepare back to
   Assess, from Rescan back to Approve and deploy), with the exception written above it. No arrowheads
   or legend: "Back to assess" names the direction. Lines stop before text.
   Phones and narrow screens: the stages stack on a vertical rule, and the two exceptions follow as
   indented notes on their own rule, since an arc can't land on nodes of varying height. */
.flow5 { --g: var(--s5); --arc: 28px; display: flex; flex-direction: column; padding: var(--s7); }
.f5-loops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--g); }
.f5-loop { position: relative; padding: 0 0 calc(var(--arc) + var(--s4)) var(--s5); font-size: var(--fs-small); color: var(--ink-60); }
.f5-loop p { max-width: 44ch; }
.f5-loop b { font-weight: 500; color: var(--ink); }
.f5-back { display: block; margin-top: var(--s1); font-size: var(--fs-cap); color: var(--ink-60); }
/* The arc: from node to node is one column plus one gap. Feet sit on the nodes' centres (3px in). */
.f5-loop::after { content: ""; position: absolute; left: 3px; bottom: 0; width: calc((100% - var(--g)) / 2 + var(--g)); height: var(--arc); border: 1px solid var(--line-strong); border-bottom: 0; }
.f5-l1 { grid-column: 1 / span 2; }
.f5-l2 { grid-column: 3 / span 2; }
.f5-stages { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--g); }
.f5-stages::before { content: ""; position: absolute; left: 4px; right: calc((100% - 4 * var(--g)) / 5 - 4px); top: 3px; height: 1px; background: var(--line-strong); }
.f5-stages li { position: relative; min-width: 0; }
.f5-stages .node { position: relative; display: block; width: 7px; height: 7px; margin-bottom: var(--s4); background: var(--paper); border: 1px solid var(--ink-60); }
.f5-stages li:last-child .node { background: var(--ink); border-color: var(--ink); }
.f5-stages b { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.f5-at { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); color: var(--ink-60); }
.f5-at .st { width: 12px; height: 12px; }
.f5-at .st-done::after { width: 3px; height: 5.5px; }
.f5-stages p { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-60); }
.f5-stages .nb { white-space: nowrap; }
/* Stacked (10 Nov, Avi, phone: "looks off"). Was: both exceptions as boxed notes after the last stage, so
   they read as footnotes, cut off from the stages they loop between, and every stage took three lines.
   Now each exception sits on the track right after the stage it returns from (owner after Prepare, failed
   host after Rescan), as an unboxed note on its own hairline, with "↑" because back is up the track. The
   time sits on the title's line, right-aligned like a log. The rule is drawn per row so it runs past the
   notes. Restore the old block: _legacy/flow5-stacked-10nov.css. */
@media (max-width: 1199px) {
  .flow5 { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--s6); }
  .f5-loops, .f5-stages { display: contents; }
  .f5-stages::before, .f5-loop::after { display: none; }
  .f5-l1, .f5-l2 { grid-column: 1; }
  .f5-stages li:nth-child(1) { order: 1; } .f5-stages li:nth-child(2) { order: 2; } .f5-l1 { order: 3; }
  .f5-stages li:nth-child(3) { order: 4; } .f5-stages li:nth-child(4) { order: 5; } .f5-l2 { order: 6; }
  .f5-stages li:nth-child(5) { order: 7; }
  /* One row = node column (7px) + text. padding-bottom, not gap, so each row's rule meets the next. */
  .f5-stages li, .f5-loop { position: relative; padding: 0 0 var(--s5) calc(7px + var(--s4)); }
  .f5-stages li::before, .f5-loop::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
  .f5-stages li:first-child::before { top: 9px; }
  .f5-stages li:last-child { padding-bottom: 0; }
  .f5-stages li:last-child::before { bottom: auto; height: 7px; }
  .f5-stages li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); align-items: baseline; }
  .f5-stages .node { position: absolute; left: 0; top: 6px; margin: 0; }
  .f5-stages b { grid-column: 1; }
  .f5-at { grid-column: 2; }
  .f5-stages p { grid-column: 1 / -1; margin-top: var(--s1); }
  /* The exception: indented under the text column on its own short hairline, no box. */
  /* The note sits 16px under its stage. Done with the stage's padding, not a negative margin on the
     note: the margin overlapped the two rows' rule segments by 8px, and the translucent line drew
     double there (10 Nov, Avi). */
  .f5-stages li:nth-child(2), .f5-stages li:nth-child(4) { padding-bottom: var(--s4); }
  .f5-loop p, .f5-loop .f5-back { margin-left: 0; padding-left: var(--s3); border-left: 1px solid var(--line-strong); }
  .f5-loop .f5-back { margin-top: 0; padding-top: var(--s1); }
  .f5-back::before { content: "↑ "; }
}
@media (max-width: 767px) { .flow5 { padding: var(--s5); } }

/* ---------- 3 · The team: one window, Program beside the opened card ----------
   Left pane (5/12): the objective, then three groups whose labels are the words for their glyphs
   (needs a decision, blocked, changed this week). Right pane (7/12): SEC-1204 as the Security board
   shows it, with Program among its properties. The lit row left is the card right. One material, one
   height. Was a card beside a separate line figure (pulled 10 Nov). Phones stack the panes, list first. */
.pd-prog .app-bar { padding: 11px var(--s4); font-size: var(--fs-cap); color: var(--ui-3); }
.pg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pg-list { padding: var(--s4) 6px var(--s5); border-right: 1px solid var(--ui-line); }
.pg-obj { padding: 0 10px var(--s3); font-size: 15px; font-weight: 500; color: var(--ui-1); letter-spacing: -0.01em; }
.pg-list .pv-k { margin: var(--s4) 0 4px; padding-left: 10px; }
.pg-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--ui-2); }
.pg-row .t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ui-1); }
.pg-row .s { font-size: var(--fs-cap); color: var(--ui-3); white-space: nowrap; }
.pg-row .st { width: 14px; height: 14px; }
.pg-row.hi { background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pg-card { min-width: 0; }
.pg-card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s4) 0; font-size: var(--fs-cap); color: var(--ui-3); }
.pg-card-h .mono { color: var(--ui-2); }
@media (max-width: 1199px) { .pg { grid-template-columns: 1fr; } .pg-list { border-right: 0; border-bottom: 1px solid var(--ui-line); } }



/* ---------- 3 · Control: the decision boundary under the lede ---------- */
.pd-bound { margin-top: var(--s5); font-size: var(--fs-body); color: var(--ink-80); }

/* ---------- 5 · Reviewed context, then the tools it works through ---------- */
.pd-ctx > li { list-style: none; }
.pd-ctx .h4 + .body { margin-top: var(--s3); }
.pd-stack { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); margin-top: var(--s9); }

/* Phones: the opened card stacks, its owner, approver, Twin and SLA moving under the definition of
   done (they are the point of chapter 2, so they stay). The window title drops its aside for room. */
/* 10 Nov (Avi: "too long to read on a mobile"). The window was ~950px tall on a phone. Now: each
   done step is one line, its detail on the right as on web (was two lines each); the four properties
   are a 2x2 grid, label over value (was four stacked rows); "Changed this week" shows one example,
   not two. Every group and every done step stays, so the story is the same as on web.
   Restore: .dod li { grid-template-columns: 18px minmax(0, 1fr); row-gap: 2px; } .dod .s { grid-column: 2;
   white-space: normal; }, and drop the .props-side and .pg-list rules below. */
@media (max-width: 767px) {
  .card-d { grid-template-columns: 1fr; }
  .props-side { border-left: 0; border-top: 1px solid var(--ui-line); display: grid; grid-template-columns: 1fr 1fr; padding: var(--s3) 6px; }
  .props-side > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 7px 10px; }
  .props-side dd { white-space: normal; }
  .dod li { padding-block: 8px; }
  .dod .s { overflow: hidden; text-overflow: ellipsis; }
  .pg-list .pg-row:last-child { display: none; }
  /* Owner and approver stay (the lede names them). Program is the window itself; SLA is detail. */
  .props-side > div:nth-child(n+3) { display: none; }
  /* The title bar's aside wrapped to two lines and cut the title at 390px. */
  .pd-prog .pv-aside { display: none; }
  /* Row titles wrap instead of truncating: at 360px the lit row read "Patch OpenSSH on payments-…". */
  .pg-row .t { white-space: normal; }
  .pg-row .nb { white-space: nowrap; } /* never "payments-" / "api" */
  .part-vis .pv-state { font-size: var(--fs-cap); }
}
