
/* ------------------------------------------------------------------ Product mockups (HTML, CSS and SVG, no pictures)
   The app's look, from first-working-demo/platform/web/src/styles/tokens.css and rooms/workers/orient.css. */
.mk {
  --g: #101011; --pane: #19191b; --raised: #202023; --raised-2: #29292d; --sunk: #0d0d0f; --ln: #26262b; --ln-2: #34343a;
  --ink: #ececf0; --ink-2: #d2d2d8; --mut: #9d9ea7; --acc: #9692ff; --acc-ink: #0d0c1d; --acc-text: #b4adff;
  --acc-soft: rgba(150, 146, 255, .14); --acc-line: rgba(150, 146, 255, .42); --amb: #f5b62a; --okc: #45d98f; --red: #f08a7a;
  position: relative; font-family: var(--font); color: var(--ink); background: var(--g); font-size: 13px; line-height: 1.45; letter-spacing: -0.003em; text-align: left;
  border-radius: 12px; box-shadow: 0 0 0 1px #1f1f24, 0 34px 80px -30px rgba(8, 8, 19, .7);
}
/* every mockup is authored at the app's own metrics (13 px body, 12 px secondary, 28 px controls, 1 px hairlines,
   8 px gaps, 10 px radii); the hero windows are then scaled as one picture (.stage), the section cards shown 1:1 */
.mk p, .mk ul, .mk ol { margin: 0; }
.mk b { font-weight: 500; }
.mk .mut { color: var(--mut); }
.mk code { font-family: inherit; font-size: 11.5px; color: var(--mut); }

/* window frame: the app's top bar */
.mk-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 14px; border-bottom: 1px solid #1c1c20; font-size: 13px; color: var(--mut); white-space: nowrap; }
.mk-lock { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.mk-lock .sym { width: 15px; height: 15px; flex: none; }
.mk-lock b { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.mk-bar .sl { font-style: normal; opacity: .45; }
.mk-bar .ws { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.mk-bar .cv, .mk-gh .cv { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.mk-bar .cur { color: var(--ink); }
.cr { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-bar-r { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.mk-bar .bell { width: 15px; height: 15px; fill: none; stroke: var(--mut); stroke-width: 1.3; stroke-linejoin: round; }
.mk-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 452px; gap: 8px; padding: 8px; align-items: start; }
.mk-pane { background: var(--pane); border-radius: 10px; box-shadow: inset 0 0 0 1px #232327; }
.mk-k { font-size: 12px; color: var(--mut); padding: 0 2px; }
.mk-k em { font-style: normal; color: var(--amb); margin-left: 4px; }
.pi { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: #1f1d16; color: var(--ink-2); font-size: 12px; white-space: nowrap; margin-left: auto; }
.pi i { width: 6px; height: 6px; border-radius: 2px; background: var(--amb); }
.pi-ok { background: #15201a; }
.pi-ok i { background: var(--okc); }
.pi-info { background: #1c1b2c; }
.pi-info i { background: var(--acc); }
/* three states of one status in one place: the widest sets the size, each sits at the right (no shift) */
.pst { display: grid; margin-left: auto; }
.pst > .pi { grid-area: 1 / 1; justify-self: end; margin-left: 0; }
.pst > .pi:not(:last-child) { opacity: 0; }
.av { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--raised-2); color: var(--ink-2); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; }
.av.sys { background: var(--raised); }
.av.sys .sym { width: 12px; height: 12px; color: var(--ink); }
.ok { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--okc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* employee tiles: each its own soft gradient, the glyph in white */
.wt { display: inline-grid; place-items: center; flex: none; width: var(--s, 28px); height: var(--s, 28px); border-radius: calc(var(--s, 28px) * .28); color: #fff; background: linear-gradient(140deg, #8b7cff, #5b4ae6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.wt[data-hue="1"] { background: linear-gradient(140deg, #3fd0e0, #1590b8); }
.wt[data-hue="2"] { background: linear-gradient(140deg, #ffa05a, #e5602a); }
.wt[data-hue="3"] { background: linear-gradient(140deg, #f574cf, #c2409b); }
.wt[data-hue="4"] { background: linear-gradient(140deg, #45d98f, #1e9c5c); }
.wt[data-hue="5"] { background: linear-gradient(140deg, #62a8ff, #2f6ee0); }
.wt[data-hue="6"] { background: linear-gradient(140deg, #f7c653, #d4861a); }
.wt[data-hue="7"] { background: linear-gradient(140deg, #9aa6bf, #5c6884); }

/* sidebar: 28-30 px rows, 13 px text */
.mk-side { padding: 8px 6px 10px; display: grid; gap: 1px; align-content: start; }
.mk-nav li, .mk-gl li { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mk-nav svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--mut); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.mk-nav em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mut); }
.mk-side .mk-k { margin: 12px 8px 4px; }
.mk-emps li { position: relative; display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; }
.mk-emps li.on { background: var(--raised-2); }
.mk-emps b { display: block; font-size: 13px; color: var(--ink); line-height: 1.3; }
.mk-emps small { display: block; font-size: 12px; line-height: 1.3; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mk-emps .dot { position: absolute; left: 25px; top: 3px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amb); box-shadow: 0 0 0 2px var(--pane); }
.dot.g { background: #6b6c75; }
.mk-gh { display: flex; align-items: center; gap: 6px; height: 28px; margin-top: 6px; padding: 0 8px; font-size: 12px; color: var(--mut); }
.mk-gh em { font-style: normal; opacity: .8; }
.mk-gh .cv { margin-left: auto; }
.mk-gl li { height: 27px; gap: 8px; color: var(--ink-2); overflow: hidden; }
.mk-gl li span { overflow: hidden; text-overflow: ellipsis; }

/* conversation: a pane with its header, a 720 px measure, folded rows and the composer at the foot */
.mk-main { display: flex; flex-direction: column; min-height: 0; }
.mk-title { display: flex; align-items: baseline; gap: 10px; height: 44px; padding: 13px 18px 0; border-bottom: 1px solid var(--ln); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.mk-title .mut { font-size: 12px; font-weight: 400; }
.mk-col { width: 100%; max-width: 720px; margin: 0 auto; padding: 18px 22px 12px; display: grid; gap: 14px; align-content: start; }
.mk-msg { display: flex; gap: 10px; }
.mk-msg .who { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.mk-msg .who span { color: var(--mut); font-size: 12px; }
.mk-msg p + p { margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.mk-card { background: var(--raised); border-radius: 10px; box-shadow: inset 0 0 0 1px #29292f; padding: 14px 16px; }
.mk-h { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink); flex-wrap: wrap; row-gap: 6px; }
.mk-h span { color: var(--mut); }
.mk-h .wt { margin-right: 8px; }
.mk-head { margin-top: 8px; font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
.mk-figs { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; }
.mk-figs p b { display: block; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mk-figs p span { font-size: 11.5px; color: var(--mut); }
.mk-figs p.warn b { color: var(--amb); }
.mk-run.compact .mk-head { font-size: 15px; }
.mk-run.compact .mk-figs { gap: 4px 18px; }
.mk-run.compact .mk-figs p b { font-size: 18px; }
.mk-fold li { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--ink-2); }
.mk-fold li::before { content: ""; width: 5px; height: 5px; margin: 0 4px 0 2px; border-right: 1.3px solid var(--mut); border-bottom: 1.3px solid var(--mut); transform: rotate(-45deg); }
.mk-fold li:last-child { border-bottom: 1px solid var(--ln); }
.mk-fold span { color: var(--mut); font-size: 12px; }
.mk .mk-compose { position: relative; margin: auto 22px 14px; max-width: 676px; width: calc(100% - 44px); align-self: center; height: 38px; padding: 10px 12px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px #29292f; color: #85868f; font-size: 13px; }
.mk-compose .send { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--raised-2); }
.mk-compose .send::after { content: ""; position: absolute; left: 10px; top: 10px; width: 5px; height: 5px; border-left: 1.4px solid var(--mut); border-top: 1.4px solid var(--mut); transform: rotate(45deg); }

/* outputs and approval */
.mk-out { box-shadow: inset 0 0 0 1px var(--acc-line); background: #1b1a23; }
.mk-lab { font-size: 12px; color: var(--acc-text); }
.mk-t { margin-top: 6px; font-size: 14px; font-weight: 500; }
.mk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fc { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 4px; border-radius: 7px; background: var(--raised-2); font-size: 12px; color: var(--ink-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc b { display: inline-grid; place-items: center; height: 19px; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 600; letter-spacing: .04em; background: #14241a; color: #69d79a; }
.fc b.x-pdf { background: #2a1616; color: #f08a7a; }
.fc b.x-xml { background: #1b1f33; color: #9db4ff; }
.mk-act { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #2c2b36; min-height: 40px; }
.mk-act .mut { font-size: 12px; }
.st-ask, .st-done, .st-sent { display: flex; align-items: center; gap: 12px; width: 100%; }
.mk-act .st-ask .mut { margin-left: auto; text-align: right; }
.st-done { gap: 8px; font-size: 13px; }
.mk-out:not(.done):not(.flip) .st-done, .mk-out.done .st-ask { display: none; }
.mk-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; background: var(--acc); color: var(--acc-ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.mk-btn.wide { justify-content: center; margin: 6px 4px; }
/* the flip: asked, then approved (final state without script or with reduced motion) */
.mk-out.flip .mk-act { display: grid; }
.mk-out.flip .st-ask, .mk-out.flip .st-done { grid-area: 1 / 1; }
.mk-out.flip .st-ask { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .mk-out.flip .st-ask { visibility: visible; }
  .js .mk-out.flip .st-done { opacity: 0; }
  .js .in .mk-out.flip .mk-btn { animation: mk-press .24s ease .85s both; }
  .js .in .mk-out.flip .st-ask { animation: mk-away .24s ease 1.08s forwards; }
  .js .in .mk-out.flip .st-done { animation: mk-come .4s var(--out) 1.2s forwards; }
}
@keyframes mk-press { 45% { transform: scale(.95); } }
@keyframes mk-away { to { opacity: 0; visibility: hidden; transform: translate3d(0, -6px, 0); } }
@keyframes mk-come { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* evidence rail */
.mk-rail { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.mk-rail > * { flex: none; }
.mk-rs { padding: 10px 12px 10px; }
.mk-rs .mk-h { margin-bottom: 8px; }
.mk-rs .mk-tool { margin: 0 -12px 10px; padding: 0 12px 8px; }
.mk-h .pl-i { width: 12px; height: 12px; fill: var(--mut); }
.mk-canvas { position: relative; border-radius: 7px; overflow: hidden; background: var(--sunk); }
.mk-canvas.lt { background: #fff; }
.mk-rs .mk-canvas.lt { padding: 10px 8px; }
.mk-canvas svg { display: block; width: 100%; height: auto; }
.mk-foot { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--mut); }
.mk-foot b { color: var(--ink); }
.mk-foot .bar { display: block; flex: 1; height: 2px; border-radius: 2px; background: var(--raised-2); max-width: 120px; margin-left: auto; overflow: hidden; }
.mk-foot .bar i, .hw-prog .bar i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; }
.mk-items, .mk-qs, .mk-pstrip { padding: 10px 12px; }
.mk-grp { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 0 2px; font-size: 12px; }
.mk-grp span { color: var(--mut); }
.mk-items ul { margin-top: 2px; }
.mk-items li { display: flex; align-items: center; gap: 9px; height: 24px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mk-items li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mk-items li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.mk-items li b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-more { margin-top: 4px; font-size: 12px; color: var(--acc-text); }
.mk-items li.fold { padding-left: 17px; color: var(--mut); font-size: 12px; }
.mk-items li.fold b { color: var(--mut); font-weight: 400; }
.mk-qs ul { margin-top: 6px; display: grid; gap: 1px; }
.mk-qs li { min-width: 0; display: flex; align-items: center; gap: 9px; height: 23px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.mk-qs li i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--amb); }
.mk-qs li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* sheet view */
.mk-sheet { display: grid; gap: 0; }
.mk-tool { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; border-bottom: 1px solid var(--ln); font-size: 12px; color: var(--mut); }
.mk-tool b { font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-tool > span { color: var(--mut); }
.mk-tool .sg { display: inline-flex; margin-left: auto; padding: 2px; border-radius: 7px; background: var(--raised); }
.mk-tool .sg em { font-style: normal; padding: 2px 8px; border-radius: 5px; font-size: 12px; color: var(--mut); }
.mk-tool .sg em.on { background: var(--raised-2); color: var(--ink); }
.mk-sheet .mk-canvas { border-radius: 0 0 10px 10px; padding: 14px; }
.mk-center { overflow: hidden; display: flex; flex-direction: column; }
.mk-center .mk-sheet { flex: 1; grid-template-rows: auto minmax(0, 1fr); }
.mk-center .mk-canvas { display: grid; align-items: center; padding: 32px 28px; border-radius: 0 0 10px 10px; background: var(--sunk) radial-gradient(circle, rgba(236, 236, 242, .07) 1px, transparent 1.2px) 0 0 / 18px 18px; }

/* the plan, at drawing line weights: outlined walls over a faint poché, hairline plates and runs */
.plan { display: block; width: 100%; height: auto; }
.plan { --pw: rgba(232, 232, 238, .62); --pf: rgba(232, 232, 238, .1); --sheet: #0d0d0f; --pl-t: rgba(238, 238, 241, .42); }
.plan.light { --pw: rgba(24, 24, 32, .78); --pf: rgba(24, 24, 32, .1); --sheet: #fff; --pl-t: rgba(24, 24, 32, .5); }
.plan.ghost { --pw: rgba(236, 236, 242, .7); --pf: rgba(236, 236, 242, .07); --sheet: var(--sunk); --pl-t: rgba(236, 236, 242, .45); }
.plan .pp { fill: none; stroke: #f28419; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plan .pp.rt { stroke-opacity: .55; stroke-dasharray: 4 2.5; }
.plan .pl { fill: var(--c); fill-opacity: .3; stroke: var(--c); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.plan.light .pl { fill-opacity: .24; }

/* one idea per slot: a crop of the app, 1:1 */
.mk-float { width: 100%; }
.shot-mk { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(18px, 3.4vw, 44px); }
.shot-mk.bleed { padding-right: 0; }
.shot-mk.bleed .mk-float { width: calc(100% + 72px); }
.mk-sheetcard .mk-canvas { padding: 22px 16px; }
.mk-count { position: absolute; right: 86px; bottom: 16px; display: flex; gap: 18px; padding: 8px 12px; border-radius: 9px; background: rgba(25, 25, 27, .94); box-shadow: inset 0 0 0 1px #2c2c33, 0 18px 40px -18px rgba(0, 0, 0, .8); }
.mk-count b { font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mk-count span { margin-left: 5px; font-size: 12px; color: var(--mut); }
.mk-tile-sheet { border-radius: 10px; overflow: hidden; display: flex; background: var(--sunk); }
.mk-tile-sheet .mk-canvas { flex: 1; display: flex; align-items: center; padding: 16px 44px 16px 14px; border-radius: 0; }
.mk-tile-sheet .mk-canvas svg { height: 100%; }
.mk-counter { position: absolute; right: 44px; top: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(25, 25, 27, .94); box-shadow: inset 0 0 0 1px #2c2c33; font-size: 12px; color: var(--mut); }
.mk-counter b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-counter span { color: var(--mut); margin: 0 4px; }

.mk-find { padding: 16px; display: grid; gap: 14px; }
.mk-pair { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.mk-pair p { display: grid; gap: 2px; }
.mk-pair .mut { font-size: 12px; }
.mk-pair b { font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mk-pair small { font-size: 12px; color: var(--mut); }
.mk-pair .vs b { color: var(--amb); }
.mk-pair .diff { margin-left: auto; padding: 8px 12px; border-radius: 8px; background: #1f1d16; }
.mk-pair .diff b { font-size: 20px; color: var(--amb); }
/* the copy (b) slides onto the original (a) as the section crosses the screen (sol.js sets --p, 0 to 1), then locks;
   the slot it came from is left as the missing floor. Without script or with reduced motion: locked. */
.mk-stack { --oy: 58px; position: relative; padding-top: var(--oy); }
.mk-pl { position: relative; width: 74%; padding: 10px; border-radius: 10px; background: var(--sunk); box-shadow: inset 0 0 0 1px #26262c, 0 20px 40px -20px rgba(0, 0, 0, .8); }
.mk-pl p { display: flex; gap: 5px; font-size: 12px; color: var(--mut); margin: 0 2px 8px; white-space: nowrap; }
.mk-pl p b { color: var(--ink); }
.mk-pl.b { position: absolute; left: 0; top: var(--oy); background: transparent; box-shadow: none; transform: translate3d(calc(26% * (1 - var(--p, 1))), calc(var(--oy) * (var(--p, 1) - 1)), 0); }
.mk-pl.b p { justify-content: flex-end; color: #b4adff; }
.mk-pl.b p b { color: #cfcaff; }
.mk-pl.b .plan { --pw: rgba(165, 160, 255, .85); --pl-t: rgba(180, 173, 255, .8); }
.mk-miss { position: absolute; top: 0; left: 19.24%; width: 74%; bottom: var(--oy); display: grid; place-items: start end; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed rgba(245, 182, 42, .5); }
.mk-miss p { display: flex; gap: 6px; font-size: 12px; color: #f5c25a; white-space: nowrap; }
.mk-miss b { font-weight: 500; color: var(--amb); }
.mk-same { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #1f1e2a; box-shadow: inset 0 0 0 1px var(--acc-line); font-size: 12.5px; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .mk-pl.b { transition: background-color .45s ease, box-shadow .45s ease; }
  .js .mk-find.locked .mk-pl.b { transition: transform .35s var(--out), background-color .45s ease, box-shadow .45s ease; }
  .js .mk-find:not(.locked) .mk-pl.b { background: rgba(13, 13, 15, .62); box-shadow: inset 0 0 0 1px rgba(150, 146, 255, .4), 0 20px 40px -20px rgba(0, 0, 0, .8); }
  .js .mk-miss { transition: opacity .4s ease .2s, transform .5s var(--out) .2s; }
  .js .mk-find:not(.locked) .mk-miss { opacity: 0; transform: scale(.985); }
  .js .mk-same, .js .mk-pair .diff { transition: opacity .35s ease .4s, transform .5s var(--out) .4s; }
  .js .mk-find:not(.locked) .mk-same, .js .mk-find:not(.locked) .mk-pair .diff { opacity: 0; transform: translate3d(0, 6px, 0); }
}

.mk-bill { display: grid; gap: 10px; padding: 12px; }
.mk-tb { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.mk-tb th { text-align: left; font-weight: 400; font-size: 11.5px; color: var(--mut); padding: 5px 8px; border-bottom: 1px solid var(--ln); }
.mk-tb td { padding: 6px 8px; border-bottom: 1px solid #26262b; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-tb th:nth-child(n+2), .mk-tb td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.mk-tb tr.hi td { background: #1d1c17; color: var(--ink); }
.mk-tb tr.hi td:nth-child(3) { color: var(--amb); }
.mk-mail ol { margin-top: 8px; padding-left: 16px; display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); list-style: decimal; }
.mk-appr { display: grid; gap: 10px; padding: 12px; }
.mk-audit ul { margin-top: 10px; }
.mk-audit li { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr) 70px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #26262b; font-size: 12px; }
.mk-audit .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-audit .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-audit .av { width: 20px; height: 20px; border-radius: 5px; font-size: 8.5px; }
.mk-audit .ac { justify-self: start; padding: 1px 7px; border-radius: 5px; background: var(--raised-2); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.mk-audit .ent { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-audit code { text-align: right; }
.mk-appr .mk-audit li { grid-template-columns: 64px minmax(0, 1fr) auto 70px; }
.mk-appr .mk-audit .ent { display: none; }
.mk-audit .mk-bar-r { font-size: 12px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] .mk-audit.writes li, .js [data-rise] .mk-audit.writes .mk-bar-r { opacity: 0; }
  .js [data-rise].in .mk-audit.writes li { animation: mk-write .44s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(.3s + var(--w) * 140ms); }
  .js [data-rise].in .mk-audit.writes li:first-child { animation-delay: 1.36s; }
  .js [data-rise].in .mk-audit.writes .mk-bar-r { animation: mn-on .3s ease 1.8s both; }
}
@keyframes mk-write { from { opacity: 0; clip-path: inset(0 100% 0 0); } 25% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.mk-pid, .mk-ldar, .mk-hazop, .mk-rev, .mk-sub, .mk-ask, .mk-outs { display: grid; gap: 10px; padding: 12px; }
/* a crop of the app that floats on a picture is one panel: its parts are sections divided by hairlines, as in the
   app's own side panel, never cards inside a card; the drafted output keeps its tint as a full-width section */
.mk-float:is(.mk-pid, .mk-ldar, .mk-hazop, .mk-rev, .mk-sub, .mk-ask, .mk-outs, .mk-bill, .mk-appr) { gap: 0; padding: 0; overflow: hidden; }
.mk.mk-float:is(.mk-pid, .mk-ldar, .mk-hazop, .mk-rev, .mk-sub, .mk-ask, .mk-outs, .mk-bill, .mk-appr) > :is(.mk-card, .mk-pane, .mk-msg) { border-radius: 0; box-shadow: none; background: transparent; padding: 15px 18px 16px; }
.mk.mk-float:is(.mk-pid, .mk-ldar, .mk-hazop, .mk-rev, .mk-sub, .mk-ask, .mk-outs, .mk-bill, .mk-appr) > * + * { border-top: 1px solid var(--ln); }
.mk-float > .mk-card > .mk-k { margin-bottom: 4px; }
.mk.mk-float > .mk-out { background: rgba(150, 146, 255, .07); }
.mk.lt.mk-float > .mk-out { background: #f9f8ff; }
.mk.lt.mk-float > .mk-out .mk-act { border-top-color: rgba(91, 85, 232, .14); }
.mk.lt.mk-float .mk-pstrip li { background: #fafafb; }
.mk-pstrip ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.mk-pstrip li { display: grid; justify-items: start; gap: 2px; padding: 8px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px #2a2a30; }
.mk-pstrip svg { width: 30px; height: 26px; fill: none; stroke: #9db4ff; stroke-width: 1.5; stroke-linejoin: round; }
.mk-pstrip svg .f { fill: #9db4ff; }
.mk-pstrip svg .thin { stroke-width: 1; }
.mk-pstrip b { font-size: 12px; }
.mk-pstrip span { font-size: 11.5px; color: var(--mut); }
.mk-pstrip.small ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] .mk-pstrip li { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .4s ease, transform .5s var(--out); transition-delay: calc(.25s + var(--i) * 70ms); }
  .js [data-rise].in .mk-pstrip li { opacity: 1; transform: none; }
}
.mk-dev li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #26262b; font-size: 12.5px; }
.mk-dev li:first-child { border-top: 0; }
.mk-dev b { display: block; }
.mk-dev small { font-size: 11.5px; color: var(--mut); }
.mk-dev .mut { font-size: 12px; }
.tg { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.tg.red { background: #2a1717; color: #f39a8b; }
.tg.amb { background: #2a2214; color: #f5c25a; }
.tg.grn { background: #15241b; color: #6fdc9f; }
.mk-ans p + p { margin-top: 8px; }
.mk-ans > p:nth-child(2) { margin-top: 8px; font-size: 13.5px; color: var(--ink); }
.mk-src { display: flex; gap: 6px; }
.mk-src span { padding: 2px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); font-size: 12px; }

.mk-board { padding: 12px; }
.mk-board .mk-title { border: 0; padding: 2px 2px 12px; }
.mk-cols { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 8px; }
.mk-cols > div { padding: 8px; border-radius: 10px; background: var(--pane); box-shadow: inset 0 0 0 1px #242428; }
.mk-cols .mk-k { display: flex; justify-content: space-between; margin: 2px 2px 8px; color: var(--ink); font-size: 12.5px; }
.mk-cols .mk-k em { color: var(--mut); }
.mk-cols ul { display: grid; gap: 6px; }
.mk-cols li { display: grid; gap: 5px; padding: 10px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px #2a2a30; font-size: 12px; }
.mk-cols .bt { display: flex; justify-content: space-between; gap: 8px; }
.mk-cols .bt b { font-size: 13px; }
.mk-cols .bt em { flex: none; font-style: normal; font-size: 11px; color: var(--mut); padding: 1px 7px; border-radius: 6px; background: var(--raised-2); }
.mk-cols code { justify-self: start; padding: 1px 5px; border-radius: 4px; background: var(--sunk); font-size: 11px; }
.mk-cols li > span { color: var(--mut); display: flex; align-items: center; gap: 7px; }
.mk-cols li > span.warn { color: var(--ink-2); }
.mk-cols .dot { box-shadow: none; width: 7px; height: 7px; border-radius: 2px; }
.mk-cols .bw { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.mk-cols .bw .av { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }

/* heroes */
.shot-mkhero { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(14px, 3vw, 44px) clamp(14px, 3vw, 44px) 0; }
.shot-mkhero .mk-win { border-radius: 12px 12px 0 0; }
/* the stage: the window is laid out at a fixed screen width (1440, 1080 under 1180 px, 460 on phones) and scaled to
   the slot as one picture, like a screenshot (the inline __fit sets the scale before first paint, sol.js on resize).
   Without script it shows 1:1, cropped. */
.stage-box { position: relative; overflow: hidden; }
.stage { --sw: 1440px; width: var(--sw); transform-origin: 0 0; }
.stage-box.fit .stage { position: absolute; left: 0; top: 0; }
.stage-box:not(.fit) { max-height: 560px; }
.mk-hero .mk-body { height: 832px; align-items: stretch; }
.mk-hero .mk-pane, .mk-hero .mk-rail { overflow: hidden; }
.mk-ws .mk-body { grid-template-columns: 232px minmax(0, 1fr) 400px; }
.mk-tree { padding: 10px 6px; }
.mk-proj { display: grid; padding: 4px 8px 6px; }
.mk-proj b { font-size: 13px; }
.mk-proj small { font-size: 12px; color: var(--mut); }
.mk-tree .mk-k { margin: 12px 8px 4px; }
.mk-tree .mk-k em { color: var(--mut); }
.mk-files-t li { display: flex; align-items: center; gap: 8px; height: 27px; padding: 0 8px 0 24px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.mk-files-t.conv li { padding-left: 8px; }
.mk-files-t.conv em { margin-left: auto; font-size: 11.5px; }
.mk-files-t li.open { padding-left: 8px; color: var(--ink); }
.mk-files-t li.open::before { content: "▸"; color: var(--mut); font-size: 10px; }
.mk-files-t li.on { background: var(--raised-2); color: var(--ink); }
.mk-files-t em { font-style: normal; color: var(--mut); margin-left: 4px; }
.mk-ws .mk-rail { padding: 12px 14px; gap: 12px; }
.mk-conv > .mk-h { padding-bottom: 10px; border-bottom: 1px solid var(--ln); font-size: 13px; }

/* the home hero, alive (sol.js): swaps, the progress, the approval card's two states, the cursor, the scan */
.hw-sw { display: grid; }
.hw-sw > * { grid-area: 1 / 1; }
.hw-ha, .hw-prog, .hw-act .st-ask { opacity: 0; }
.hw-prog { align-self: start; display: grid; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--mut); }
.hw-prog b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hw-prog .bar { display: block; width: min(100%, 240px); height: 2px; border-radius: 2px; background: var(--raised-2); overflow: hidden; }
.hw-out { position: relative; }
.hw-act { display: grid; }
.hw-act > span { grid-area: 1 / 1; }
.mk-btn.ghost { gap: 6px; padding: 0 12px 0 9px; background: var(--raised-2); color: var(--ink-2); }
.mk-btn.ghost .ok { width: 13px; height: 13px; }
.apv { margin-left: auto; display: inline-flex; align-items: center; }
.apv .av { width: 20px; height: 20px; border-radius: 6px; font-size: 8.5px; box-shadow: 0 0 0 2px #1b1a23; }
.apv .av + .av { margin-left: 3px; }
.apv .mut { margin-left: 8px; white-space: nowrap; }
.hw-cur { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 2px 2px; width: 13px; height: 18px; fill: #fff; stroke: #0d0d0f; stroke-width: 1.2; stroke-linejoin: round; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); will-change: transform, opacity; }
.hw-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, rgba(150, 146, 255, 0), rgba(150, 146, 255, .2)); box-shadow: inset -1.5px 0 0 rgba(110, 102, 255, .8); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.hw .mk-btn { will-change: transform; }
.hw.blend [data-e] { transition: opacity .26s ease, transform .26s ease; }
@media (prefers-reduced-motion: no-preference) {
  /* before sol.js takes over: the start state, so the final picture never flashes first */
  .js .hw .hw-msg, .js .hw .hw-run, .js .hw .hw-out, .js .hw .mk-rs .pl, .js .hw .mk-rs .pipes, .js .hw .mk-rs .mk-foot,
  .js .hw .mk-items li, .js .hw .mk-grp, .js .hw .mk-more, .js .hw .mk-qs li, .js .hw .mk-qs em, .js .hw .pst > .pi, .js .hw .hw-fold li { opacity: 0; }
}


/* industry tiles */
.ind-vis.mkv { aspect-ratio: auto; height: clamp(260px, 25vw, 340px); padding: 22px 0 0 22px; background: linear-gradient(160deg, #1B2340 0%, #0D111F 100%); }
.ind-vis.mkv > .mk { width: calc(100% + 30px); height: 100%; border-radius: 12px 0 0 0; }
.mk-tile-pid { display: grid; gap: 8px; padding: 10px; align-content: start; }
.mk-tile-pid .mk-head { font-size: 18px; }

/* the roster: fifteen cards on the dark band */
.ros-f { margin-bottom: 22px; }
.filter.dk { background: rgba(245, 244, 240, .07); }
.filter.dk button { color: #A5B4C6; }
.filter.dk button[aria-pressed="true"] { color: #F5F4F0; }
.filter.dk button span { color: #8E9AB0; }
.filter.dk .seg-th { background: #23263a; box-shadow: 0 0 0 1px rgba(245, 244, 240, .08); }
.filter.dk:not(.has-th) button[aria-pressed="true"] { background: #23263a; }
.ros { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rc { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 232px; padding: 20px 18px 18px; border-radius: 16px; background: #12141F; box-shadow: inset 0 0 0 1px rgba(245, 244, 240, .07); color: #F5F4F0; transition: transform .45s var(--out), box-shadow .3s ease, background-color .3s ease; }
.rc[hidden] { display: none; }
.rc:hover { transform: translate3d(0, -4px, 0); background: #161a2a; box-shadow: inset 0 0 0 1px rgba(150, 146, 255, .4); }
.rc .wt { margin-bottom: 10px; }
.rc-n { font-size: 17px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.rc-l { font-size: 14px; line-height: 1.45; color: #A5B4C6; }
.rc-o { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(245, 244, 240, .08); font-size: 13px; line-height: 1.4; color: #C9D2DE; transition: color .3s ease; }
.rc-o span { display: inline-block; color: #9692ff; transition: transform .4s var(--out); }
.rc:hover .rc-o { color: #F5F4F0; }
.rc:hover .rc-o span { transform: translate3d(3px, 0, 0); }
.rc-g { position: absolute; top: 22px; right: 16px; display: grid; justify-items: end; font-size: 11.5px; color: #8E9AB0; }
.rc-g > span { grid-area: 1 / 1; transition: opacity .22s ease, transform .35s var(--out); }
.rc-x { display: inline-flex; gap: 4px; margin-top: -3px; opacity: 0; transform: translate3d(0, 4px, 0); }
.rc-x b { display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 600; letter-spacing: .04em; background: #14241a; color: #69d79a; }
.rc-x b.x-pdf { background: #2a1616; color: #f08a7a; }
.rc-x b.x-xml { background: #1b1f33; color: #9db4ff; }
.rc-x b.x-mail { background: #231b33; color: #c4b2ff; }
.rc-x b.x-text { background: #23263a; color: #C9D2DE; }
@media (hover: hover) {
  .rc:hover .rc-g > span:first-child { opacity: 0; transform: translate3d(0, -4px, 0); }
  .rc:hover .rc-x { opacity: 1; transform: none; }
}
.rc.sel { box-shadow: inset 0 0 0 1.5px #9692ff; background: #161829; }
.rc-live { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #F5F4F0; }
.rc-live i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: #f5b62a; }
.rc-live b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] .rc { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .36s ease-out calc(var(--i) * 32ms), transform .5s var(--out) calc(var(--i) * 32ms), box-shadow .3s ease, background-color .3s ease; }
  .rc-live i { animation: rc-breathe 2.6s ease-in-out infinite; }
  .js [data-rise].in .rc { opacity: 1; transform: none; }
  .js [data-rise].in .rc:hover { transform: translate3d(0, -4px, 0); transition-delay: 0s; }
}

@keyframes rc-breathe { 50% { opacity: .3; } }

/* the problem: five cards with something real to look at */
.srcs.mini { gap: 14px; }
.srcs.mini .src { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.src-vis { height: 196px; padding: 16px 14px 0; background: #ECEAE3; display: grid; place-items: start center; overflow: hidden; }
.src-b { padding: 18px 18px 22px; }
.src-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(47, 92, 158, .1); }
.src-ic svg { width: 20px; height: 20px; stroke: #2F5C9E; }
.srcs.mini .src .h4 { margin-top: 14px; font-size: 21px; letter-spacing: -0.025em; }
.mn { width: 100%; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(8, 8, 19, .08), 0 10px 24px -14px rgba(8, 8, 19, .35); font-size: 12.5px; line-height: 1.35; color: #1c1c22; overflow: hidden; }
/* the drawing crop at drawing line weights: cut walls outlined over a light poché, partitions thinner, glazing lines */
.mn-plan { max-width: 260px; padding: 8px 6px 6px; }
.mn-plan svg { display: block; width: 100%; height: auto; fill: none; stroke: none; } /* not the card icons' stroke (.src svg) */
.mn-plan .cw, .mn-plan .cp { fill: #E6E4DC; stroke: #2B2C36; stroke-width: .9; stroke-linejoin: miter; }
.mn-plan .cp { stroke-width: .7; }
.mn-plan .dr { fill: none; stroke: #7a7d88; stroke-width: .55; }
.mn-plan .gl { fill: #fff; stroke: #2B2C36; stroke-width: .7; }
.mn-plan .gz { stroke: #2B2C36; stroke-width: .4; }
.mn-plan text { font-size: 10.4px; letter-spacing: .06em; fill: #5d606b; font-family: var(--font); }
.mn-plan .no { font-weight: 600; letter-spacing: .02em; fill: #2a2d38; }
.mn-plan .run { fill: none; stroke: #f28419; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mn-plan .rs { fill: #fff; stroke: #f28419; stroke-width: 1.3; }
.mn-plan .pl { fill: var(--c); fill-opacity: .24; stroke: var(--c); stroke-width: 1.3; }
.mn-bill .r { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 26px 40px; gap: 4px; padding: 6px 9px; border-top: 1px solid #EEEDE8; }
.mn-bill .r > span { position: relative; }
.mn-bill .r > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-bill .r > span:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mn-bill .th { border-top: 0; background: #F6F5F1; font-size: 11.5px; font-weight: 500; color: #6b6e78; }
.mn-bill .hi { font-weight: 500; }
.mn-bill .hi::before { content: ""; position: absolute; inset: 0; background: #FFF1CC; transform-origin: 0 50%; }
.mn-bill .hi > span:last-child { color: #8A5A00; }
.mn-doc { padding: 12px 14px; display: grid; gap: 7px; }
.mn-doc .h { font-weight: 600; font-size: 12px; color: #6b6e78; }
.mn-doc i { display: block; height: 6px; margin: 5px 0; border-radius: 3px; background: #E6E5E0; }
.mn-doc .mark { justify-self: start; position: relative; padding: 2px 6px; font-weight: 500; font-size: 13px; }
.mn-doc .mark::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: #FFE58A; transform-origin: 0 50%; }
.mn-doc .mark span { position: relative; }
.mn-ds { padding: 12px 14px; }
.mn-ds .h { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 13px; }
.mn-ds .h span { font-weight: 400; font-size: 11.5px; color: #6b6e78; }
.mn-ds dl { margin: 8px 0 0; }
.mn-ds dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #EEEDE8; }
.mn-ds dt { color: #6b6e78; }
.mn-ds dd { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.mn-ds dd i { display: block; width: 54px; height: 6px; border-radius: 3px; background: #E6E5E0; }
.mn-ds .hi dd > span { color: #B4473B; }
.mn-ds dd em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: #FDE3DE; color: #B4473B; }
.mn-mail { padding: 12px 14px; display: grid; gap: 7px; }
.mn-mail .fr { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.mn-mail .fr .av { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; background: #EEECE6; color: #55524b; }
.mn-mail .fr span:last-child { margin-left: auto; color: #6b6e78; }
.mn-mail .sj { font-weight: 600; font-size: 13px; }
.mn-mail .ln i { display: block; height: 6px; margin: 4px 0; border-radius: 3px; background: #E6E5E0; }
.mn-mail .chips { display: grid; justify-items: start; gap: 4px; }
.mn-mail .att, .mn-mail .lnk .ok { padding: 3px 7px; border-radius: 6px; font-size: 11.5px; }
.mn-mail .att { background: #F1F0EC; }
.mn-mail .lnk { display: flex; align-items: flex-end; gap: 4px; padding-left: 9px; }
.mn-mail .lnk i { width: 8px; height: 13px; margin-bottom: 9px; border-left: 1px solid #a9cdb7; border-bottom: 1px solid #a9cdb7; border-bottom-left-radius: 3px; transform-origin: 0 0; }
.mn-mail .lnk .ok { width: auto; height: auto; fill: initial; stroke: none; background: #E7F4EC; color: #1f7a4d; }
/* one move each, as the card arrives and again on hover (sol.js replays the animations) */
@media (prefers-reduced-motion: no-preference) {
  .js .src .mn-plan .pl, .js .src .mn-ds .hi em, .js .src .mn-mail .lnk .ok { opacity: 0; }
  .js .src .mn-plan .run { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .src .mn-bill .hi::before, .js .src .mn-doc .mark::before { transform: scaleX(0); }
  .js .src .mn-mail .lnk i { transform: scaleY(0); }
  .js .src.in .mn-plan .run { animation: mn-draw .75s cubic-bezier(.45, 0, .2, 1) .3s both; }
  .js .src.in .mn-plan .pl { animation: mn-on .24s ease-out both; animation-delay: calc(.75s + var(--i) * 110ms); }
  .js .src.in .mn-bill .hi::before { animation: mn-sweep .5s var(--out) .35s both; }
  .js .src.in .mn-bill .hi > span:last-child { animation: mn-ink .3s ease .6s both; }
  .js .src.in .mn-doc .mark::before { animation: mn-sweep .55s cubic-bezier(.5, 0, .2, 1) .35s both; }
  .js .src.in .mn-ds .hi dd > span { animation: mn-red .3s ease .45s both; }
  .js .src.in .mn-ds .hi em { animation: mn-tag .34s var(--out) .55s both; }
  .js .src.in .mn-mail .lnk i { animation: mn-grow .24s ease-out .45s both; }
  .js .src.in .mn-mail .lnk .ok { animation: mn-slide .36s var(--out) .62s both; }
}
@keyframes mn-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes mn-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mn-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mn-ink { from { color: #1c1c22; } }
@keyframes mn-red { from { color: #1c1c22; } }
@keyframes mn-tag { from { opacity: 0; transform: translate3d(-4px, 0, 0) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes mn-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes mn-slide { from { opacity: 0; transform: translate3d(-6px, 0, 0); } to { opacity: 1; transform: none; } }

/* the numbers: one goal, today's measured figures beside it */
.acc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 12px; }
.acc-goal { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: 26px 26px 28px; border-radius: 18px; background: var(--ink); color: #F5F4F0; }
.acc-goal .tagl { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(143, 183, 241, .16); color: #8fb7f1; font-size: 13px; font-weight: 500; }
.acc-goal .stat-n { margin-top: 40px; font-size: clamp(64px, 7.4vw, 112px); line-height: .95; letter-spacing: -0.055em; font-weight: 500; font-variant-numeric: tabular-nums; }
.acc-goal .stat-n small { font-size: .45em; margin-left: 4px; }
.acc-goal .fn { margin-top: 14px; font-size: 13px; line-height: 1.5; color: #8D9AAE; max-width: 36ch; }
.unconf { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #F4A283; color: #080813; font-weight: 600; }
.acc-goal p.d { margin-top: 18px; font-size: 15.5px; line-height: 1.5; color: #C9D2DE; max-width: 32ch; }
.acc .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc .stat .k { margin-top: 0; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.acc .stat.wide { grid-column: span 2; }
.acc .stat .sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .acc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .acc .stats { grid-template-columns: minmax(0, 1fr); } .acc .stat.wide { grid-column: auto; } }

/* plates light in the order the reader finds them; runs follow; counters tick (sol.js) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] .plan .pl { opacity: 0; transition: opacity .3s ease; transition-delay: calc(.2s + var(--i) * 32ms); }
  .js [data-rise].in .plan .pl { opacity: 1; }
  .js [data-rise] .plan .pipes { opacity: 0; transition: opacity .5s ease 1.05s; }
  .js [data-rise].in .plan .pipes { opacity: 1; }
  /* the industry heroes light their sheet on load (CSS only) */
  .hero .mk-ws .plan .pl { animation: mn-on .3s ease both; animation-delay: calc(.6s + var(--i) * 30ms); }
  .hero .mk-ws .plan .pipes { animation: mn-on .5s ease 1.5s both; }
  .hero .mk-pidw .mk-pstrip li { animation: rise-in .45s var(--out) both; animation-delay: calc(.55s + var(--i) * 70ms); }
}

/* narrow screens: the windows are laid out as a narrower screen (1080 px, then a 460 px crop of the conversation),
   still at the app's own metrics; the section cards reflow */
@media (max-width: 1180px) {
  .stage { --sw: 1080px; }
  .mk-body { grid-template-columns: minmax(0, 1fr) 400px; }
  .mk-hero .mk-side { display: none; }
  .mk-ws .mk-body { grid-template-columns: minmax(0, 1fr) 380px; }
  .mk-ws .mk-tree { display: none; }
  .ros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stage { --sw: 460px; }
  .mk-body, .mk-ws .mk-body { grid-template-columns: minmax(0, 1fr); }
  .mk-hero .mk-body { height: auto; }
  .mk-hero .mk-side, .mk-hero .mk-rail, .mk-ws .mk-center { display: none; }
  .mk-ws .mk-rail { display: grid; }
  .mk-bar .sl, .mk-bar .ws, .mk-bar .cr:not(.cur) { display: none; }
  .mk-bar .cur::before { content: "/"; margin: 0 9px 0 2px; opacity: .45; }
  .mk-col { padding: 16px 16px 10px; }
  .mk .mk-compose { margin: 6px 16px 14px; width: calc(100% - 32px); }
  .shot-mk { padding: 14px; }
  .shot-mk .mk-float { width: 100%; }
  .mk-count { right: 12px; bottom: 12px; gap: 14px; }
  .mk-stack { --oy: 40px; }
  .mk-pl { width: 78%; }
  .mk-miss { left: 17.16%; width: 78%; }
  .mk-pl.b { transform: translate3d(calc(22% * (1 - var(--p, 1))), calc(var(--oy) * (var(--p, 1) - 1)), 0); }
  .mk-miss p span { display: none; }
  .mk-miss p::after { content: "missing"; }
  .mk-audit li { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .mk-audit .ent, .mk-audit code { display: none; }
  .mk-cols { grid-template-columns: minmax(0, 1fr); }
  .mk-cols > div:nth-child(n+2) { display: none; }
  .mk-pstrip ul, .mk-pstrip.small ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-tool .sg, .mk-tool .mut { display: none; }
  .ros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc { min-height: 0; }
}
@media (max-width: 480px) { .ros { grid-template-columns: minmax(0, 1fr); } .shot-mk .mk-act .st-ask .mut { display: none; } }

/* ------------------------------------------------------------------ Light app UI (class "lt" on the .mk root; kit.light())
   The app's own light theme (first-working-demo/platform/web/src/styles/tokens.css, [data-theme="light"]), for the small
   product cards that float on photographs, as the reference shows light cards there. The hero window stays dark. */
.mk.lt {
  --g: #ffffff; --pane: #ffffff; --raised: #f7f7f8; --raised-2: #efeff1; --sunk: #f2f2f4; --ln: #e2e2e6; --ln-2: #cfcfd5;
  --ink: #111113; --ink-2: #2a2a30; --mut: #55565f; --acc: #5b55e8; --acc-ink: #ffffff; --acc-text: #4b45d6;
  --acc-soft: rgba(91, 85, 232, .09); --acc-line: rgba(91, 85, 232, .35); --amb: #b7800f; --okc: #1f9d63; --red: #b4473b;
  background: #fff; box-shadow: 0 0 0 1px rgba(8, 8, 19, .06), 0 24px 64px -16px rgba(8, 8, 19, .28);
}
.mk.lt .mk-bar { border-bottom-color: var(--ln); }
.mk.lt .mk-pane, .mk.lt .mk-card, .mk.lt .mk-pstrip li, .mk.lt .mk-cols > div, .mk.lt .mk-cols li { box-shadow: inset 0 0 0 1px var(--ln); }
.mk.lt .pi { background: #faf3e3; color: var(--ink-2); }
.mk.lt .pi i { background: #e0a01c; }
.mk.lt .pi-ok { background: #edf6f0; }
.mk.lt .pi-ok i { background: #1f9d63; }
.mk.lt .pi-info { background: rgba(91, 85, 232, .09); }
.mk.lt .mk-out { background: #f7f6ff; box-shadow: inset 0 0 0 1px var(--acc-line); }
.mk.lt .fc b { background: #edf6f0; color: #1f7a4d; }
.mk.lt .fc b.x-pdf { background: #fde7e4; color: #b4473b; }
.mk.lt .fc b.x-xml { background: #e9edfb; color: #3d5bb3; }
.mk.lt .mk-act { border-top-color: var(--ln); }
.mk.lt .mk-tb td, .mk.lt .mk-audit li, .mk.lt .mk-dev li { border-color: var(--ln); }
.mk.lt .mk-tb tr.hi td { background: #faf3e3; }
.mk.lt .mk-pstrip svg { stroke: #3d6db3; }
.mk.lt .mk-pstrip svg .f { fill: #3d6db3; }
.mk.lt .tg.red { background: #fde7e4; color: #b4473b; }
.mk.lt .tg.amb { background: #faf3e3; color: #8a5a00; }
.mk.lt .tg.grn { background: #edf6f0; color: #1f7a4d; }
.mk.lt .apv .av { box-shadow: 0 0 0 2px #f7f6ff; }
.mk.lt .dot.g { background: #aeafb7; }
.mk.lt .mk-pair .diff { background: #faf3e3; }
.mk.lt .mk-count, .mk.lt .mk-counter { background: rgba(255, 255, 255, .95); box-shadow: inset 0 0 0 1px var(--ln), 0 18px 40px -18px rgba(8, 8, 19, .3); }
.mk.lt .wt { box-shadow: none; }

/* ------------------------------------------------------------------ Light product cards on photographs (.mk.lt.cc), shared
   by the product-style pages (Construction, Platform): the app's light theme, 12.5 px rows, white .96 under a blur */
.mk.cc { position: relative; z-index: 1; width: min(400px, 88%); padding: 0; border-radius: 14px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px -24px rgba(8, 8, 19, .32); font-size: 12.5px; line-height: 1.5; }
.mk.cc-steps { width: min(380px, 86%); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ln); }
.cc-t { font-weight: 500; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .cc-t { white-space: normal; } }
.cc-chip { flex: none; padding: 2px 7px; border-radius: 5px; background: var(--raised-2); color: var(--mut); font-size: 11px; line-height: 16px; white-space: nowrap; }
.cc-chip.blue { background: rgba(91, 85, 232, .09); color: var(--acc-text); }
.cc-chip.red { background: #fde7e4; color: #b4473b; }
.cc-ok { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--okc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-btn { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 500; }
.cc-mut { color: var(--mut); }
/* take-off: the sheet, light */
.cc-canvas { margin: 10px 12px 0; padding: 8px 6px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--ln); }
.cc-canvas svg { display: block; width: 100%; height: auto; }
.cc-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 16px 13px; color: var(--ink-2); }
.cc-foot b { font-weight: 500; color: var(--ink); }
.cc-foot .cc-mut { margin-left: auto; }
/* steps of a run */
.cc-list { padding: 8px 16px 12px; }
.cc-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink-2); }
.cc-list li.next { color: var(--mut); }
.cc-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.6px solid rgba(91, 85, 232, .22); border-top-color: var(--acc); animation: cc-spin 1s linear infinite; }
.cc-dash { width: 14px; height: 14px; flex: none; position: relative; }
.cc-dash::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6.5px; height: 1.4px; background: var(--ln-2); }
@keyframes cc-spin { to { transform: rotate(360deg); } }
/* submittals */
.cc-sub-k { padding: 10px 16px 0; font-size: 11.5px; color: var(--mut); }
.cc-rows { padding: 4px 16px 0; }
.cc-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ln); font-size: 12px; color: var(--ink-2); }
.cc-rows li:last-child { border-bottom: 0; }
.cc-tag { flex: none; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--raised-2); color: var(--mut); }
.cc-tag.red { background: #fde7e4; color: #b4473b; }
.cc-act { display: flex; justify-content: flex-end; padding: 6px 16px 14px; }
/* the colleagues' day */
.cc-ws { padding: 16px 16px 0; font-size: 11.5px; color: var(--mut); }
.cc-h { padding: 2px 16px 12px; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); border-bottom: 1px solid var(--ln); }
.cc-feed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--ln); }
.cc-feed li:last-child { border-bottom: 0; }
.cc-feed b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); }
.cc-feed li > span { min-width: 0; }
.cc-feed b, .cc-feed small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-feed small { display: block; font-size: 12px; color: var(--mut); }
.cc-done { flex: none; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; color: #1f7a4d; }
.cc-done .cc-ok { width: 12px; height: 12px; }
/* ask */
.cc-chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .02em; }
.mk .cc-q { margin: 14px 16px 0 auto; width: fit-content; max-width: 78%; padding: 8px 12px; border-radius: 10px; background: var(--raised-2); color: var(--ink); }
.cc-a { padding: 12px 16px 0; color: var(--ink-2); }
.cc-src { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.cc-src span { padding: 2px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); font-size: 11.5px; }
.mk .cc-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 12px 12px; padding: 6px 6px 6px 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--ln); color: var(--mut); }

/* ------------------------------------------------------------------ the workspace switcher (private equity): a crop of the
   app at 820 x 540, the side panel and the run, the switcher open under the workspace in the bar */
.mk-wsw .mk-body { grid-template-columns: 200px minmax(0, 1fr); height: 500px; overflow: hidden; }
.mk-wsw .mk-bar .ws { margin: 0 -4px; padding: 3px 6px 3px 8px; border-radius: 7px; background: var(--raised-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ln-2); }
.mk-wsm { position: absolute; left: 84px; top: 37px; z-index: 6; width: 318px; padding: 6px; border-radius: 12px; background: var(--pane); box-shadow: 0 0 0 1px var(--ln-2), 0 24px 48px -16px rgba(8, 8, 19, .35), 0 6px 14px -6px rgba(8, 8, 19, .18); }
.mk-wsm-h { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; font-size: 12px; color: var(--mut); }
.mk-wsm-h em { font-style: normal; }
.mk-wsm li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.mk-wsm li.on { background: var(--raised-2); }
.mk-wsm li > span:nth-child(2) { min-width: 0; flex: 1; }
.mk-wsm b { display: block; font-size: 13px; line-height: 1.3; color: var(--ink); }
.mk-wsm small { display: block; font-size: 12px; line-height: 1.35; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-wsm small.m { font-size: 11.5px; opacity: .85; }
.mk-wsm li { align-items: flex-start; }
.mk-wsm li .wt, .mk-wsm li .ok { margin-top: 3px; }
.mk-wsm .wt { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.mk-wsm .ok { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-wsm-add { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--ink-2); }
.mk-wsm-add i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--ln-2); font-style: normal; color: var(--mut); }
.mk-wsm-f { padding: 4px 8px 6px; font-size: 11.5px; line-height: 1.4; color: var(--mut); }
