/* Markland Street Ontology product screens, drawn for the site. Dark screens sit on night; office views on paper.
   Switzer throughout, tabular figures for every number. */

.m-dark { --bg: #232321; --p1: #2a2a27; --p2: #32322f; --ln: rgba(238, 235, 228, 0.12); --tx: #eeebe4; --tx2: #b3afa7; --tx3: #9e9a92; --tp: #ff6a4d; --tpw: rgba(255, 106, 77, 0.16); --gn: #6cc08e; --gnw: rgba(108, 192, 142, 0.14); color: var(--tx); }
.m-light { --bg: var(--paper); --p1: var(--sheet); --p2: var(--well); --ln: var(--rule); --tx: var(--ink); --tx2: var(--soft); --tx3: var(--soft); --tp: var(--tape); --tpw: var(--tape-wash); --gn: var(--go); --gnw: var(--go-wash); color: var(--tx); }
.m-dark, .m-light { font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.35; letter-spacing: 0; text-align: left; }
.m-dark :where(b, strong), .m-light :where(b, strong) { font-weight: 600; }
.m-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-mark { width: 17px; height: 18px; flex: none; }
.m-spark { width: 64px; height: 22px; flex: none; }
.m-spark path { fill: none; stroke: var(--tx2); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.m-count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--p2); font-size: 11.5px; font-weight: 600; color: var(--tx2); }
.m-card { padding: 14px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln); }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 6px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s var(--out); }
.m-btn:active { transform: scale(0.97); }
.m-btn--go { background: var(--tx); color: var(--bg); }
.m-btn--go:hover { background: color-mix(in srgb, var(--tx) 84%, var(--bg)); }
.m-dark .m-btn--go:hover { background: #fff; }
.m-btn--go:disabled { cursor: default; opacity: 0.75; }
.m-btn--line { box-shadow: inset 0 0 0 1px var(--ln); color: var(--tx); }
.m-btn--line:hover { box-shadow: inset 0 0 0 1px var(--tx); }
.m-btn[hidden] { display: none; }

/* Panel heads used across the screens */
.q-head { display: flex; align-items: center; gap: 8px; height: 22px; margin-bottom: 10px; font-size: 13px; }
.q-head b { font-weight: 600; }
.q-head__r { margin-left: auto; font-size: 11.5px; color: var(--tx2); }

/* ---------------- Operations centre (1200 x 720, scaled to fit) ---------------- */
.deck { width: 1200px; height: 720px; border-radius: 8px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px rgba(238, 235, 228, 0.12); }
.dk-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--ln); }
.dk-op { font-size: 14px; letter-spacing: -0.01em; }
.dk-crumb { color: var(--tx2); padding-left: 12px; border-left: 1px solid var(--ln); }
.dk-search { display: flex; align-items: center; gap: 8px; width: 300px; height: 30px; margin-left: auto; margin-right: auto; padding: 0 6px 0 12px; border-radius: 6px; background: var(--p1); color: var(--tx2); }
.dk-search kbd, .ask__in kbd { margin-left: auto; padding: 2px 7px; border-radius: 5px; background: var(--p2); font: inherit; font-size: 11px; color: var(--tx2); }
.dk-clock { color: var(--tx2); }
.dk-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p2); font-size: 11px; font-weight: 600; }
.dk-body { display: grid; grid-template-columns: 56px 1fr; height: 674px; }
.dk-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-right: 1px solid var(--ln); color: var(--tx3); }
.dk-rail span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.dk-rail span.is-on { background: var(--p2); color: var(--tx); }
.dk-rail .m-i { width: 18px; height: 18px; }
.dk-rail hr { width: 22px; margin: 6px 0; border: 0; border-top: 1px solid var(--ln); }
.dk-main { display: grid; grid-template-rows: 78px 1fr; gap: 12px; padding: 14px; min-height: 0; }
.dk-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dk-kpi { display: grid; align-content: space-between; padding: 10px 12px; border-radius: 6px; background: var(--p1); }
.dk-kpi__k { font-size: 11.5px; color: var(--tx2); }
.dk-kpi__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.dk-kpi__v { font-size: 25px; font-weight: 500 !important; letter-spacing: -0.035em; line-height: 1; }
.dk-kpi__v small { margin-left: 4px; font-size: 12px; letter-spacing: 0; color: var(--tx2); }
.dk-kpi__v.is-bad { color: var(--tp); }
.dk-kpi__d { font-size: 11px; color: var(--tx2); }
.dk-kpi__d.is-bad { color: var(--tp); }
.dk-kpi__d.is-good { color: var(--gn); }
.dk-grid { display: grid; grid-template-columns: 1fr 1fr 324px; grid-template-rows: minmax(0, 1fr) 196px; gap: 12px; min-height: 0; }
.dk-panel { min-height: 0; padding: 12px 14px; border-radius: 6px; background: var(--p1); overflow: hidden; }
.dk-map { grid-column: 1 / 3; display: flex; flex-direction: column; padding-bottom: 10px; }
.dk-queue { grid-column: 3; grid-row: 1 / 3; }
.dk-feed { grid-column: 1; grid-row: 2; }
.dk-heat { grid-column: 2; grid-row: 2; }

/* ---------------- Map ---------------- */
.mp-box { position: relative; flex: 1; min-height: 0; border-radius: 4px; overflow: hidden; }
.m-card .mp-box { aspect-ratio: 1.6; }
.m-card.is-narrow .mp-box { aspect-ratio: 1.15; }
.mp { width: 100%; height: 100%; }
.mp-sea { fill: #252523; }
.mp-grat path { stroke: #2c2c29; stroke-width: calc(var(--u) * 0.12); fill: none; }
.mp-land path { fill: #3b3a36; stroke: #4b4a45; stroke-width: calc(var(--u) * 0.16); stroke-linejoin: round; }
.mp-routes path { fill: none; stroke: #6a6862; stroke-width: calc(var(--u) * 0.22); stroke-dasharray: calc(var(--u) * 0.6) calc(var(--u) * 0.6); stroke-linecap: round; }
.mp-farm { fill: none; stroke: #a8a59e; stroke-width: calc(var(--u) * 0.25); }
.mp-shop { fill: #eeebe4; }
.mp-plant { fill: #232321; stroke: #eeebe4; stroke-width: calc(var(--u) * 0.4); }
.mp-ship { fill: #6d6b66; }
.mp-labels text { fill: #a8a59e; font-family: var(--font); font-weight: 500; }
.mp-v { stroke: #232321; stroke-width: calc(var(--u) * 0.35); }
.mp-v--tanker { fill: #eeebe4; }
.mp-v--reefer { fill: #6cc08e; }
.mp-v--alert { fill: #ff6a4d; }
.mp-v--ship { fill: #a8a59e; }
.mp-chips { display: flex; gap: 6px; margin-left: auto; }
.mp-chips i, .f-chips i, .run__chips i, .conn__objs i { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--p2); font-style: normal; font-size: 11px; font-weight: 500; color: var(--tx2); white-space: nowrap; }
.mp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: 11.5px; color: var(--tx2); }
.mp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.lg--tanker { background: #eeebe4; } .lg--reefer { background: #6cc08e; } .lg--alert { background: #ff6a4d; }
.lg--shop { border-radius: 2px; background: #eeebe4; } .lg--farm { box-shadow: inset 0 0 0 1.5px #a8a59e; } .lg--ship { width: 8px; height: 8px; border-radius: 1px; background: #6d6b66; transform: rotate(45deg); }
.lg--plant { border-radius: 2px; box-shadow: inset 0 0 0 2px #eeebe4; }

/* ---------------- Decision queue ---------------- */
.q-list { display: grid; gap: 8px; }
.q-row { display: grid; gap: 7px; padding: 11px 12px; border-radius: 6px; background: var(--p2); box-shadow: inset 0 0 0 1px transparent; }
.q-row.is-sel { box-shadow: inset 0 0 0 1px var(--tx2); }
.q-top { display: flex; align-items: center; gap: 8px; }
.q-type { font-size: 11.5px; color: var(--tx2); font-weight: 500; }
.q-chip { margin-left: auto; display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.q-chip--action { background: var(--tpw); color: var(--tp); }
.q-chip--watch { box-shadow: inset 0 0 0 1px var(--ln); color: var(--tx2); }
.q-chip--done { background: var(--gnw); color: var(--gn); }
.q-text { font-size: 13px; line-height: 1.35; font-weight: 500; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-meta { font-size: 11px; color: var(--tx3); }
.q-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 5px; background: var(--tx); color: var(--bg); font-size: 11.5px; font-weight: 500; }
.m-card .q-list { gap: 8px; }

/* ---------------- Event feed ---------------- */
.f-pin { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; background: var(--tpw); box-shadow: inset 2px 0 0 var(--tp); }
.f-pin__k { display: block; font-size: 10.5px; font-weight: 600; color: var(--tp); margin-bottom: 1px; }
.f-pin .q-btn { margin-left: auto; }
.f-list { list-style: none; display: grid; margin-top: 4px; }
.f-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--ln); }
.f-list li:last-child { border-bottom: 0; }
.f-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--p2); color: var(--tx2); flex: none; }
.f-ic .m-i { width: 15px; height: 15px; }
.f-ic--tape { background: var(--tp); color: #121211; }
.f-ic--go { background: var(--gnw); color: var(--gn); }
.f-main { display: grid; gap: 1px; min-width: 0; }
.f-main b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-main small { font-size: 11.5px; color: var(--tx2); }
.f-chips { display: flex; gap: 4px; margin-top: 4px; }
.f-list time { font-size: 11px; color: var(--tx3); white-space: nowrap; padding-top: 2px; }

/* ---------------- Heat grid ---------------- */
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; margin: -3px; table-layout: fixed; }
.heat th { font-size: 10.5px; font-weight: 500; color: var(--tx2); text-align: center; padding: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat thead th:first-child, .heat tbody th { text-align: left; width: 92px; padding: 0 4px 0 0; font-size: 11.5px; }
.heat td { height: 21px; border-radius: 3px; text-align: center; font-size: 11px; font-weight: 600; color: var(--tx2); }
.heat .h0 { background: var(--tp); color: #121211; }
.heat .h1 { background: rgba(255, 106, 77, 0.72); color: #121211; }
.heat .h2 { background: rgba(255, 106, 77, 0.3); color: var(--tx); }
.heat .h3 { background: #43423d; }
.heat .h4 { background: #3b3a36; }
.heat .h5 { background: #34332f; color: var(--tx2); }
.h-key { display: inline-flex; gap: 2px; }
.h-key i { width: 12px; height: 8px; border-radius: 2px; }
.h-key .h1 { background: rgba(255, 106, 77, 0.72); } .h-key .h2 { background: rgba(255, 106, 77, 0.3); } .h-key .h3 { background: #4a4944; } .h-key .h4 { background: #43423d; } .h-key .h5 { background: #3b3a36; }
.m-card .heat td { height: 30px; font-size: 12px; }
.m-card .heat thead th:first-child, .m-card .heat tbody th { width: 100px; font-size: 12px; }
.js [data-mock="heat"] .heat td { opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--out), transform 0.7s var(--out); }
.js [data-mock="heat"].is-on .heat td { opacity: 1; transform: none; }
.js [data-mock="heat"].is-on .heat tr:nth-child(2) td { transition-delay: 0.06s; } .js [data-mock="heat"].is-on .heat tr:nth-child(3) td { transition-delay: 0.12s; }
.js [data-mock="heat"].is-on .heat tr:nth-child(4) td { transition-delay: 0.18s; } .js [data-mock="heat"].is-on .heat tr:nth-child(5) td { transition-delay: 0.24s; } .js [data-mock="heat"].is-on .heat tr:nth-child(6) td { transition-delay: 0.3s; }

/* ---------------- Recommendation card ---------------- */
.rec { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln), var(--shadow-float); }
.rec__top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--tx2); }
.rec__top time { margin-left: auto; }
.rec__ai { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tp); color: #fff; flex: none; }
.rec__ai .m-i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.rec__ai--dark { background: var(--p2); color: var(--tx); }
.rec__ai--dark .m-i { fill: none; stroke: currentColor; }
.rec__h { font-size: 18px; font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance; }
.rec__ev { display: flex; flex-wrap: wrap; gap: 5px; }
.rec__ev span { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; background: var(--p1); font-size: 11.5px; font-weight: 500; color: var(--tx2); }
.rec__ev span.is-mark { background: var(--tx); color: var(--bg); font-weight: 600; }
.rec__opts { display: grid; gap: 6px; }
.rec__opt { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ln); }
.rec__opt.is-rec { box-shadow: inset 0 0 0 1.5px var(--tx); }
.rec__radio { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tx3); }
.rec__opt.is-rec .rec__radio { box-shadow: inset 0 0 0 4.5px var(--tx); }
.rec__ot { display: grid; gap: 1px; min-width: 0; }
.rec__ot b { font-size: 13.5px; font-weight: 600; }
.rec__ot small { font-size: 12px; color: var(--tx2); }
.rec__opt em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--gnw); color: var(--gn); white-space: nowrap; }
.rec__impact { border-radius: 8px; background: var(--p1); }
.rec__impact summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 8px; }
.rec__impact summary::-webkit-details-marker { display: none; }
.rec__impact summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--out); }
.rec__impact[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.rec__impact ul { list-style: none; display: grid; gap: 4px; padding: 0 11px 10px; font-size: 12.5px; color: var(--tx2); }
.rec__impact li::before { content: "\2192\00a0"; color: var(--tx3); }
.rec__staged { display: grid; gap: 6px; }
.rec__sh { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.rec__staged ol { list-style: none; display: grid; gap: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ln); }
.rec__staged li { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--ln); font-size: 12.5px; transition: background 0.3s; }
.rec__staged li:first-child { border-top: 0; }
.rec__w { min-width: 0; }
.rec__st { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--tx3); white-space: nowrap; }
.rec__st .m-i { width: 13px; height: 13px; stroke-width: 2.2; }
.rec__staged li.is-writing .rec__st { color: var(--tx); }
.rec__staged li.is-done .rec__st { color: var(--gn); font-weight: 600; animation: m-tap 0.45s var(--out); }
@keyframes m-tap { 40% { transform: scale(0.88); } }
.sys { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; white-space: nowrap; justify-self: start; background: var(--p2); color: var(--tx); }
.sys--bb { background: var(--tx); color: var(--bg); }
.sys--agent { box-shadow: inset 0 0 0 1px var(--ln); background: transparent; color: var(--tx2); }
.rec__confirm { padding: 9px 11px; border-radius: 8px; background: var(--tpw); font-size: 12.5px; font-weight: 500; }
.rec__confirm[hidden] { display: none; }
.rec__foot { display: flex; flex-wrap: wrap; gap: 8px; }
.rec__log { font-size: 12px; color: var(--gn); font-weight: 500; min-height: 0; }
.rec__log:empty { display: none; }
.rec.is-review .m-btn--go { background: var(--tp); color: #fff; font-weight: 600; }

/* ---------------- Agent run ---------------- */
.run { display: grid; gap: 12px; padding: 16px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln); }
.run__top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.run__name { color: var(--tx2); }
.run__again { margin-left: auto; white-space: nowrap; height: 28px; padding: 0 12px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 12px; font-weight: 500; color: var(--tx2); transition: box-shadow 0.2s, color 0.2s; }
.run__again:hover { color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx2); }
.run__totals { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; }
.run__totals span { padding: 5px 9px; border-radius: 6px; background: var(--p1); font-size: 11.5px; color: var(--tx2); white-space: nowrap; }
.run__totals b { color: var(--tx); font-weight: 600; }
.run__steps { list-style: none; position: relative; display: grid; }
.run__steps li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 12px; }
.run__steps li::before { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 0; width: 1px; background: var(--ln); }
.run__steps li:last-child::before { display: none; }
.run__dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gn); color: #121211; transition: background 0.3s, box-shadow 0.3s; }
.run__dot .m-i { width: 13px; height: 13px; stroke-width: 2.4; transition: opacity 0.2s; }
.run__body { display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.run__h { display: flex; align-items: baseline; gap: 10px; }
.run__h b { font-size: 13px; }
.run__h time { margin-left: auto; font-size: 11.5px; color: var(--tx3); }
.run__find, .run__think { font-size: 12.5px; color: var(--tx2); }
.run__think { display: none; }
.run__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.run__steps li.is-queued .run__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ln); }
.run__steps li.is-queued .run__dot .m-i, .run__steps li.is-active .run__dot .m-i { opacity: 0; }
.run__steps li.is-queued .run__body { opacity: 0.45; }
.run__steps li.is-queued .run__find, .run__steps li.is-queued .run__chips, .run__steps li.is-queued time { visibility: hidden; }
.run__steps li.is-active .run__dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tx); }
.run__steps li.is-active .run__dot::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--tx); }
.run__steps li.is-active .run__find, .run__steps li.is-active .run__chips, .run__steps li.is-active time { display: none; }
.run__steps li.is-active .run__think { display: block; color: var(--tx); }
.run__steps li.is-done .run__find { animation: m-in 0.5s var(--out); }
@keyframes m-in { from { opacity: 0; } }
.run__out { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 6px; background: var(--p1); font-size: 12.5px; color: var(--tx2); opacity: 0.35; transition: opacity 0.6s var(--out), background 0.6s; }
.run__out b { color: var(--tx); font-size: 13.5px; }
.run__out.is-on { opacity: 1; background: var(--p2); }

/* ---------------- What-if ---------------- */
.sim { display: grid; gap: 12px; padding: 16px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln); }
.sim__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.sim__name { color: var(--tx2); font-size: 12.5px; }
.sim__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sim__chips button { height: 30px; padding: 0 13px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 12.5px; font-weight: 500; color: var(--tx2); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.sim__chips button:hover { color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx2); }
.sim__chips button[aria-pressed="true"] { background: var(--tx); color: var(--bg); box-shadow: none; }
.sim__chart { width: 100%; height: auto; overflow: visible; }
.sim-g { stroke: var(--ln); stroke-width: 1; }
.sim-yl, .sim-xl, .sim-minl { fill: var(--tx3); font-size: 10px; font-family: var(--font); font-weight: 500; }
.sim-xl { fill: var(--tx2); }
.sim-min { stroke: var(--tx3); stroke-width: 1; stroke-dasharray: 3 3; }
.sim-base, .sim-scn, .sim-plan { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: d 0.9s var(--out); }
.sim-base { stroke: var(--tx3); stroke-dasharray: 1 4; }
.sim-scn { stroke: var(--tp); }
.sim-plan { stroke: var(--gn); }
.sim__out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim__out div { display: grid; gap: 2px; padding: 9px 11px; border-radius: 6px; background: var(--p1); }
.sim__out small { font-size: 11.5px; color: var(--tx2); }
.sim__out b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sim__out .is-bad { color: var(--tp); } .sim__out .is-good { color: var(--gn); }
.sim__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--tx2); }
.sim__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sim__legend i { width: 14px; height: 2px; border-radius: 1px; }
.l-base { background: repeating-linear-gradient(90deg, var(--tx3) 0 2px, transparent 2px 5px); } .l-scn { background: var(--tp); } .l-plan { background: var(--gn); }

/* ---------------- Ask ---------------- */
.ask { display: grid; gap: 12px; padding: 16px; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: 0 0 0 1px var(--ln); }
.ask__q { justify-self: end; max-width: 86%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--tx); color: var(--bg); font-size: 13.5px; font-weight: 500; }
.ask__a { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ask__body { display: grid; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.ask__body sup { display: inline-grid; place-items: center; min-width: 15px; height: 15px; margin-left: 2px; padding: 0 3px; border-radius: 4px; background: var(--p2); font-size: 10px; font-weight: 600; line-height: 1; vertical-align: 2px; }
.ask__src { list-style: none; display: grid; gap: 4px; }
.ask__src li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx2); }
.ask__src b { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--p2); font-size: 10.5px; color: var(--tx); }
.ask__do { display: flex; flex-wrap: wrap; gap: 6px; }
.ask__do span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ln); font-size: 12px; font-weight: 500; }
.ask__in { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: 8px; background: var(--p1); color: var(--tx2); font-size: 13px; }

/* ---------------- Connect ---------------- */
.conn { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; padding: 14px; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln); }
.conn__src { list-style: none; display: grid; gap: 6px; }
.conn__src li { display: grid; gap: 0; padding: 7px 10px; border-radius: 6px; background: var(--p1); }
.conn__src b { font-size: 12.5px; }
.conn__src small { font-size: 11px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn__lines { width: 100%; height: 100%; }
.conn__lines path { fill: none; vector-effect: non-scaling-stroke; }
.conn__base path { stroke: var(--ln); stroke-width: 1.5; }
.conn__flow path { stroke: var(--tx2); stroke-width: 1.5; stroke-dasharray: 4 14; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.6s; }
.is-on .conn__flow path { opacity: 1; }
.conn__hub { align-self: center; display: grid; align-content: center; gap: 10px; padding: 12px; border-radius: 8px; background: var(--p1); box-shadow: inset 0 0 0 1.5px var(--tx); }
.conn__hub-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.conn__objs { display: flex; flex-wrap: wrap; gap: 4px; }
.m-light .conn__objs i { background: var(--bg); color: var(--tx); }

/* ---------------- Build ---------------- */
.bld { border-radius: 6px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--ln); }
.bld__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ln); font-size: 12.5px; }
.bld__bar span { color: var(--tx2); }
.bld__bar .bld__live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--gnw); color: var(--gn); font-size: 11px; font-weight: 600; }
.bld__canvas { display: grid; justify-items: center; gap: 0; padding: 16px 14px 18px; }
.bld__node { display: grid; gap: 2px; width: 100%; max-width: 300px; padding: 9px 12px; border-radius: 8px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln), 0 10px 20px -16px rgba(18, 18, 17, 0.5); }
.bld__node small { font-size: 11px; font-weight: 600; color: var(--tx2); }
.bld__node b { font-size: 12.5px; font-weight: 500; }
.bld__node--ask { box-shadow: 0 0 0 1.5px var(--tx), 0 10px 20px -16px rgba(18, 18, 17, 0.5); }
.bld__link { display: block; width: 1.5px; height: 16px; background: var(--tx2); }
/* ---------------- Deploy ---------------- */
.dep ul { list-style: none; display: grid; gap: 6px; }
.dep li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln); }
.dep li .m-i { width: 18px; height: 18px; }
.dep li span { display: grid; gap: 1px; min-width: 0; }
.dep li b { font-size: 13px; }
.dep li small { font-size: 11.5px; color: var(--tx2); }
.dep li em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--gnw); color: var(--gn); white-space: nowrap; }
.dep li em.is-idle { background: var(--p1); color: var(--tx2); }
.js [data-mock="deploy"] li { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--out), transform 0.7s var(--out); }
.js [data-mock="deploy"].is-on li { opacity: 1; transform: none; }
.js [data-mock="deploy"].is-on li:nth-child(2) { transition-delay: 0.15s; } .js [data-mock="deploy"].is-on li:nth-child(3) { transition-delay: 0.3s; }

/* ---------------- Audit and access ---------------- */
.aud, .acc { padding: 14px 16px; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--ln); }
.aud__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.aud__top span { color: var(--tx2); margin-left: auto; font-size: 12px; }
.aud table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.aud th { text-align: left; font-size: 11px; font-weight: 500; color: var(--tx2); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ln); }
.aud td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ln); vertical-align: top; }
.aud tr:last-child td { border-bottom: 0; }
.aud td:first-child { color: var(--tx2); width: 46px; }
.aud td:nth-child(2) { width: 92px; white-space: nowrap; }
.aud td:last-child { width: 80px; padding-right: 0; }
.aud tr.is-agent td { color: var(--tx2); }
.acc ul { list-style: none; display: grid; }
.acc li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--ln); font-size: 12.5px; }
.acc li b { font-size: 13px; }
.acc__m { grid-column: 1; color: var(--tx2); font-size: 12px; }
.acc li em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--p1); }

@media (max-width: 720px) {
  .run__name { display: none; }
  .rec { padding: 14px; border-radius: 14px; }
  .rec__h { font-size: 17px; }
  .rec__staged li { grid-template-columns: 66px 1fr auto; padding: 7px 9px; font-size: 12px; }
  .conn { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 0.9fr); padding: 12px; }
  .conn__src small { display: none; }
  .aud td:nth-child(2), .aud th:nth-child(2) { display: none; }
  .m-card .heat thead th:first-child, .m-card .heat tbody th { width: 84px; font-size: 11px; }
  .m-card .heat td { font-size: 11px; height: 28px; }
  .m-card .heat th { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-mock] .heat td, .js [data-mock] .ask__q, .js [data-mock] .ask__a, .js [data-mock] .bld__node, .js [data-mock] .bld__link, .js [data-mock] li { opacity: 1 !important; transform: none !important; }
  .is-on .conn__flow path { animation: none; opacity: 0; }
}
