/* Torvi product mock-up kit (mk-). Load AFTER tokens.css and BEFORE torvi.css.
   One white card, 12px radius, hairline + one soft shadow, floating on a landscape photo or a cream panel.
   Type: Geist 13–15px for labels, Geist Mono for code, numbers and ids. One orange accent per card.
   Status colours (green / red / blue / violet) appear only as small dots and the segmented bar. ≤ 30 words per card. */

.mk { font-family: var(--font); color: var(--text); }
.mk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); overflow: hidden; }
.mk-card--flat { box-shadow: none; }
.mk-pad { padding: 16px 18px; }
.mk-row { display: flex; align-items: center; gap: 10px; }
.mk-sp { flex: 1; }
.mk-mono { font-family: var(--mono); }
.mk-dim { color: var(--text-2); }
.mk-xs { font-size: 12px; line-height: 1.4; }
.mk-sm { font-size: 13px; line-height: 1.45; }
.mk-md { font-size: 15px; line-height: 1.4; }
.mk-hr { height: 1px; background: var(--line); margin: 12px 0; border: 0; }

/* dots + status chips */
.mk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }
.mk-dot--g { background: var(--success); } .mk-dot--r { background: var(--danger); } .mk-dot--y { background: var(--warning); }
.mk-dot--b { background: var(--info); } .mk-dot--v { background: var(--violet); } .mk-dot--k { background: var(--text-2); }
.mk-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.mk-status .mk-dot { width: 6px; height: 6px; }
.mk-count { font: 500 12px/1 var(--mono); background: var(--surface-3); color: var(--text); border-radius: 5px; padding: 4px 6px; }

/* round tool chips (+3 tools) */
.mk-tools { display: flex; gap: 6px; align-items: center; }
.mk-tool { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--text); }
.mk-tool svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-tool--more { width: auto; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }

/* progress bar */
.mk-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mk-bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* segmented bar (token breakdown) */
.mk-seg { display: flex; gap: 3px; height: 6px; }
.mk-seg i { border-radius: 3px; background: var(--surface-3); }
.mk-seg .s1 { background: var(--info); } .mk-seg .s2 { background: var(--danger); } .mk-seg .s3 { background: var(--node-green); }
.mk-seg .s4 { background: var(--accent); } .mk-seg .s5 { background: var(--surface-3); }

/* code editor card */
.mk-code { padding: 12px; }
.mk-code__head { display: flex; align-items: center; gap: 10px; background: var(--surface-3); border-radius: 8px; padding: 9px 14px; font-size: 13.5px; }
.mk-code__head::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.mk-code__head em { margin-left: auto; font-style: italic; color: var(--text-2); font-size: 12px; }
.mk-code ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: ln; font: 400 13px/1.92 var(--mono); color: var(--text); }
.mk-code li { counter-increment: ln; display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.mk-code li::before { content: counter(ln); display: inline-block; width: 24px; color: var(--text); }
.mk-code .k { color: var(--danger-ink); } .mk-code .t { color: var(--accent-ink); } .mk-code .c { color: var(--text-2); }
.mk-code__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.mk-kbd { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-3); border-radius: 6px; padding: 5px 8px; font: 500 13px/1 var(--mono); }
.mk-kbd b { background: var(--accent); color: var(--on-accent); border-radius: 4px; padding: 3px 5px; font-weight: 400; font-size: 12px; }
.mk-run { background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 6px 10px; font: 500 12px/1 var(--mono); letter-spacing: .06em; }

/* metric card (token breakdown) */
.mk-metric__head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mk-metric__head svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.mk-metric__head small { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--text-2); }
.mk-big { font: 400 24px/1 var(--mono); letter-spacing: -.5px; }
.mk-big small { font: 400 12px/1 var(--font); color: var(--text-2); margin-left: 6px; letter-spacing: 0; }
.mk-legend { display: grid; gap: 9px; margin-top: 16px; }
.mk-legend div { display: grid; grid-template-columns: 14px 1fr auto 44px; align-items: center; font-size: 13px; }
.mk-legend span:nth-child(3), .mk-legend span:nth-child(4) { font: 400 12px/1 var(--mono); text-align: right; }
.mk-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.mk-trio small { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.mk-trio b { font: 400 13px/1 var(--mono); }
.mk-up { color: var(--success-ink); } .mk-acc { color: var(--accent-ink); }

/* agent card (Data Navigator / Agent Overview) */
.mk-agent { padding: 14px 14px 16px; }
.mk-agent__t { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.mk-agent__t .mk-more { margin-left: auto; color: var(--text); letter-spacing: 1px; }
.mk-agent__m { margin: 8px 0 10px; font-size: 13.5px; color: var(--text); }
.mk-agent__m em { font-style: normal; color: var(--text-2); margin-left: 4px; }
.mk-agent__k { display: flex; gap: 20px; margin: 12px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mk-agent__k small { display: block; font-size: 12px; color: var(--text-2); }
.mk-agent__k b { font-size: 14px; font-weight: 600; }
.mk-agent__u { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }

/* model card (orange top edge) */
.mk-model { border-top: 3px solid var(--accent); padding: 16px; }
.mk-model__id { display: flex; gap: 12px; align-items: center; }
.mk-model__ic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.mk-model__ic svg { width: 16px; height: 16px; stroke: var(--on-accent); fill: none; stroke-width: 2; }
.mk-model__id b { font-size: 15px; font-weight: 500; display: block; }
.mk-model__id small { font: 400 12px/1.3 var(--mono); color: var(--text-2); }
.mk-model p { margin: 12px 0 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.mk-model__stats { display: flex; gap: 14px; font: 400 12px/1 var(--mono); color: var(--text-2); }
.mk-btn { display: block; margin-top: 14px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--card); }

/* file + insights */
.mk-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mk-file__ic { width: 38px; height: 38px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--text-2); }
.mk-file b { font-size: 13px; font-weight: 400; display: block; }
.mk-file small { font-size: 12px; color: var(--text-2); }
.mk-file .x { margin-left: auto; color: var(--text-2); font-size: 14px; }
.mk-ins { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; }
.mk-ins h5 { margin: 0 0 10px; font: 400 12px/1 var(--mono); }
.mk-ins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 12px; color: var(--text); }
.mk-ins li { display: flex; gap: 8px; align-items: center; }
.mk-ins li::before { content: "·"; color: var(--text-2); }
.mk-ins .ok { font-size: 12px; color: var(--text-2); }

/* node graph (over a photo) */
.mk-graph { position: relative; }
.mk-node { position: absolute; width: 182px; background: var(--card); border-radius: 6px; box-shadow: var(--shadow-2); font: 400 12px/1 var(--mono); overflow: hidden; }
.mk-node__h { display: flex; align-items: center; gap: 8px; padding: 9px 10px; color: var(--on-accent); font-size: 12px; background: var(--accent); }
.mk-node__h::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
.mk-node__h svg { width: 10px; height: 10px; fill: currentColor; opacity: .8; }
.mk-node--g .mk-node__h { background: var(--node-green); color: #0E3B1F; }
.mk-node--g .mk-node__h::after { background: #0E3B1F; }
.mk-node--r .mk-node__h { background: var(--node-red); color: #fff; }
.mk-node__r { display: flex; gap: 8px; align-items: center; padding: 11px 12px 11px 28px; border-top: 1px solid var(--line); color: var(--text); }
.mk-node__r i { font-style: normal; color: var(--accent-ink); }
.mk-node__r svg { width: 12px; height: 12px; stroke: var(--text); fill: none; stroke-width: 1.6; margin-left: -16px; }
.mk-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mk-wires path { fill: none; stroke: #fff; stroke-width: 1.4; }

/* app window (hero dashboard) */
.mk-app { display: grid; grid-template-columns: 44px 1fr; background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-3); overflow: hidden; }
.mk-app__side { border-right: 1px solid var(--line); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-app__side > svg { width: 26px; height: 26px; margin-bottom: 6px; }
.mk-app__side span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text); }
.mk-app__side span.on { background: var(--accent); color: var(--on-accent); }
.mk-app__side span svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-app__main { padding: 20px 20px 24px; }
.mk-app__title { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font); }
.mk-app__title svg { width: 16px; height: 16px; stroke: var(--success); fill: none; stroke-width: 1.8; }
.mk-search { margin: 18px 0 16px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font-size: 12px; color: var(--text-2); }
.mk-search svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.mk-flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mk-flow { border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 10px; background: var(--card); }
.mk-flow__top { display: flex; justify-content: space-between; align-items: center; }
.mk-flow b { display: block; width: fit-content; font-size: 13px; font-weight: 600; margin: 10px 0 12px; }
.mk-flow p { margin: 0 0 14px; font-size: 12px; line-height: 1.45; color: var(--text-2); min-height: 24px; }
.mk-flow__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); padding-top: 9px; border-top: 1px solid var(--line); }

/* prompt composer (home 2 hero) */
.mk-compose { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 20px 20px 14px; text-align: left; }
.mk-compose__in { display: block; min-height: 82px; font-size: 15px; color: var(--text-2); }
.mk-compose__in::before { content: ""; display: inline-block; width: 2px; height: 17px; background: var(--accent); vertical-align: -3px; margin-right: 8px; animation: mk-caret 1.1s steps(1) infinite; }
@keyframes mk-caret { 50% { opacity: 0; } }
.mk-compose__foot { display: flex; align-items: center; justify-content: space-between; }
.mk-compose__foot > span:not(.btn) { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }

/* integration hub (one app tile, wires to five tool tiles) */
.mk-hub { position: relative; display: grid; justify-items: center; }
.mk-hub__core { width: 150px; height: 150px; border-radius: 24px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), .7); }
.mk-hub__core svg { width: 62px; height: 62px; }
.mk-hub__wires { width: 100%; height: 110px; display: block; }
.mk-hub__wires path { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.mk-hub__tiles { display: flex; justify-content: space-between; width: 100%; }
.mk-tile { width: 150px; min-height: 104px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.mk-tile { grid-template-rows: 1fr auto auto; padding: 18px 10px 14px; height: auto; gap: 6px; }
.mk-tile svg { width: 44px; height: 44px; }
.mk-tile__t { font: 500 14px/1.2 var(--font); color: var(--text); }
.mk-tile__s { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.mk-tile__s .mk-dot { width: 6px; height: 6px; }

.mk-compose__foot .mk-run, .mk-compose__foot .btn { color: var(--on-accent); }
