/* The screen kit of the industry pages (built by herramientas/kit.py, looped by ../js/kit.js).
   A. Solution screens: dark glass windows drawn at 520 × 360 (frame and scale in industria.css).
   B. Product panels for Types of Solutions: light windows drawn at 520 × 325 and app screens (frame in tipos.css).
   Every name, figure and status in them is illustrative interface, not a claim. */

/* ================= A. solution screens ================= */
.k-in { display: flex; flex-direction: column; gap: 14px; }
.k-in small, .k-in em { font-style: normal; }
.k-note { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; }
.k-note i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.k-note.is-ok { background: rgba(43,182,115,.12); color: #8fe3bb; }
.k-note.is-info { background: rgba(1,96,231,.16); color: #b5ceff; }
.k-note.is-warn { background: rgba(255,122,48,.14); color: #ffbf96; }
.k-pill { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600 !important; white-space: nowrap; }
.k-pill.is-ok { background: rgba(43,182,115,.14); color: #5fd6a0; }
.k-pill.is-run { background: rgba(1,96,231,.22); color: #8fb6ff; }
.k-pill.is-warn { background: var(--orange-soft); color: #ff9e68; }
.k-pill.is-no { background: rgba(255,90,90,.14); color: #ff8a7a; }
.k-cap { font-size: 12px; color: var(--mute-d); }
.k-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.k-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #4f6fae, #2a3a5e); }
.k-id { min-width: 0; }
.k-id b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-id small { font-size: 12px; color: var(--mute-d); }
.k-tag { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(1,96,231,.2); color: #8fb6ff; white-space: nowrap; }
.k-tag.is-ok { background: rgba(43,182,115,.14); color: #5fd6a0; }
.k-kpis { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.k-kpis > span { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); min-width: 0; }
.k-kpis small { display: block; font-size: 11.5px; color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-kpis b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-checks li, .k-mods li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.k-checks li:last-child, .k-mods li:last-child { border-bottom: 0; }
.k-checks span { color: rgba(255,255,255,.78); }
.k-checks b { font: 500 12.5px var(--f-code); }

/* feed: a record or an activity line */
.k-tl { position: relative; padding-left: 24px; }
.k-tl::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; border-left: 1px dashed rgba(255,255,255,.2); }
.k-tl li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.k-tl li:last-child { border-bottom: 0; }
.k-tl li > i { position: absolute; left: -23px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.k-tl small { font-size: 12px; color: var(--mute-d); white-space: nowrap; }

/* kpis: figures and bars */
.k-bars-w { display: grid; gap: 8px; }
.k-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 120px; }
.k-bars span { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.k-bars i { align-self: end; height: calc(var(--v) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #7ea8ff, rgba(1,96,231,.55)); transform-origin: 50% 100%; }
.k-bars span:last-child i { background: linear-gradient(180deg, #ffb68b, rgba(255,122,48,.6)); }
.k-bars small { font-size: 11px; color: var(--mute-d); }

/* chart: a line over ranked rows */
.k-chart { position: relative; height: 112px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.k-chart svg { position: absolute; inset: 10px 12px 26px; width: calc(100% - 24px); height: calc(100% - 36px); overflow: visible; }
.k-chart path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.k-a { stroke: #7ea8ff; }
.k-p { stroke: #ffb68b; stroke-dasharray: 5 5; }
.k-key { position: absolute; left: 12px; bottom: 7px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mute-d); }
.k-key i { width: 14px; height: 2px; margin-left: 8px; }
.k-key i:first-child { margin-left: 0; }
.k-key .is-a { background: #7ea8ff; }
.k-key .is-p { background: #ffb68b; }
.k-rank li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.k-rank li:last-child { border-bottom: 0; }
.k-rank span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-rank b { text-align: right; font-size: 12px; }
.k-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.k-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--c); border-radius: 3px; transform-origin: left center; }
.k-foot { margin-top: auto; font-size: 12.5px; color: var(--mute-d); }
.k-foot b { color: #fff; }

/* hub: systems around an engine, a packet travelling */
.k-x-hub { display: block; }
.k-lines { position: absolute; inset: 26px 22px 92px; width: calc(100% - 44px); height: calc(100% - 118px); overflow: visible; }
.k-lines path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; }
.k-node { position: absolute; left: calc(22px + (100% - 44px) * var(--x) / 100); top: calc(26px + (100% - 118px) * var(--y) / 100); transform: translate(-50%, -50%); padding: 8px 12px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background-color .3s, box-shadow .3s; }
.k-node.is-hit { background: rgba(1,96,231,.3); box-shadow: inset 0 0 0 1px rgba(126,168,255,.7); }
.k-hubn { padding: 12px 16px; font-weight: 500; background: rgba(1,96,231,.18); box-shadow: inset 0 0 0 1px rgba(126,168,255,.45); }
.k-pkt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ffb68b; box-shadow: 0 0 0 4px rgba(255,182,139,.2), 0 0 14px #ffb68b; opacity: 0; }
.k-log { position: absolute; left: 20px; right: 20px; bottom: 16px; display: grid; gap: 6px; }
.k-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12px; }
.k-log b { font-family: var(--f-code); font-size: 11.5px; color: #8fb6ff; }
.k-log span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.75); }
.k-log em { color: #5fd6a0; font-weight: 600; }

/* flow: a case across workflow stages */
.k-cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.k-col { display: grid; align-content: start; gap: 8px; min-height: 196px; padding: 10px 8px; border-radius: 10px; background: rgba(255,255,255,.04); }
.k-col small { font-size: 11.5px; color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-slot { height: 92px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.12); }
.k-ghost { height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); }
.k-card { position: absolute; left: 8px; top: 35px; width: calc((100% - (var(--n) - 1) * 10px) / var(--n) - 16px); height: 92px; display: grid; align-content: start; gap: 3px; padding: 9px 10px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); }
.k-card > b:first-child { font-size: 12px; font-weight: 600; line-height: 1.32; padding-bottom: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-card small { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-card .k-pill { justify-self: start; margin-top: 3px; font-size: 10.5px; }
.k-card .k-pill.is-run { background: #e8f0fe; color: var(--blue); }
.k-card .k-pill.is-ok { background: #e5f6ee; color: #1f9a5f; }

/* table: rows verified one by one */
.k-tbl { display: grid; }
.k-tr { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.k-tr > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.8); }
.k-tr > span:first-child { color: #fff; }
.k-th { padding-top: 0; }
.k-th > span, .k-th > span:first-child { font-size: 11.5px; color: var(--mute-d); }
.k-tr > b { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(43,182,115,.14); color: #5fd6a0; transition: background-color .3s, color .3s; }
.k-tr.is-pend > b { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }

/* migrate */
.k-mods li .tick { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.k-mods li:not(.is-old):not(.is-mig) .tick { background: var(--run); box-shadow: none; }
.k-mods li:not(.is-old):not(.is-mig) .tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4.5px; height: 8.5px; border: solid #fff; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.k-st { font-size: 11.5px; font-weight: 600 !important; padding: 3px 9px; border-radius: 999px; background: rgba(43,182,115,.14); color: #5fd6a0; }
.k-mods .is-mig .k-st { background: rgba(1,96,231,.22); color: #8fb6ff; }
.k-mods .is-old .k-st { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.k-mods .is-old span { color: rgba(255,255,255,.55); }
.k-traffic { margin-top: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--mute-d); }
.k-traffic b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.k-meter { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.k-meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2bb673, #5fd6a0); transform-origin: left center; transform: scaleX(var(--v)); }

/* route: a unit on the map */
.k-x-route { flex-direction: row; gap: 16px; }
.k-map { position: relative; flex: 1.35; min-width: 0; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #23293a, #14161c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.k-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-road { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 9; }
.k-route { fill: none; stroke: #7ea8ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 6; }
.k-mark { fill: #14161c; stroke: rgba(255,255,255,.6); stroke-width: 2.5; }
.k-mark.is-on { stroke: #5fd6a0; fill: #5fd6a0; }
.k-unit { fill: #ffb68b; stroke: rgba(255,182,139,.35); stroke-width: 8; paint-order: stroke; }
.k-chip { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(0,0,0,.5); }
.k-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.k-eta small { display: block; font-size: 11.5px; color: var(--mute-d); }
.k-eta b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.k-stops li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.k-stops li:last-child { border-bottom: 0; }
.k-stops span { display: grid; min-width: 0; }
.k-stops b, .k-stops small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-stops small { font-size: 11.5px; color: var(--mute-d); }
.k-side .k-note { padding: 8px 10px; font-size: 12px; }

/* grid: a floor of tiles */
.k-floor { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; }
.k-floor i { height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background-color .4s, box-shadow .4s; }
.k-floor i.is-a, .k-legend .is-a { background: rgba(1,96,231,.55); box-shadow: none; }
.k-floor i.is-b, .k-legend .is-b { background: rgba(255,210,122,.32); box-shadow: none; }
.k-floor i.is-c, .k-legend .is-c { background: rgba(255,122,48,.45); box-shadow: none; }
.k-floor i.is-new { background: #2bb673; box-shadow: 0 0 0 3px rgba(43,182,115,.25); }
.k-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--mute-d); }
.k-legend span { display: inline-flex; align-items: center; gap: 6px; }
.k-legend i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

/* player */
.k-x-player { flex-direction: row; gap: 14px; }
.k-vid { position: relative; flex: 1.5; min-width: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(155deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 40% 14%)); }
.k-shape { position: absolute; right: -12%; top: 8%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, hsla(calc(var(--h) - 30), 80%, 70%, .55), transparent 62%); }
.k-live { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #e5484d; }
.k-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.k-view { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(0,0,0,.45); }
.k-view b { font-variant-numeric: tabular-nums; }
.k-play { position: absolute; left: 50%; top: 42%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.k-play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.k-cap2 { position: absolute; left: 12px; right: 12px; bottom: 22px; display: grid; }
.k-cap2 b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-cap2 small { font-size: 11.5px; color: rgba(255,255,255,.7); }
.k-prog { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.k-prog i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left center; transform: scaleX(.62); }
.k-list li { display: grid; gap: 1px; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; background: rgba(255,255,255,.05); }
.k-list span { font-size: 12.5px; }
.k-list small { font-size: 11px; color: var(--mute-d); }

/* chat */
.k-msgs { display: grid; align-content: start; gap: 8px; }
.k-msgs li { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; }
.k-msgs .is-them { justify-self: start; background: rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.k-msgs .is-me { justify-self: end; background: var(--blue); border-bottom-right-radius: 4px; }
.k-msgs .is-sys { justify-self: stretch; max-width: none; text-align: center; font-size: 11.5px; color: #8fe3bb; background: rgba(43,182,115,.1); }
.k-typing { display: none; gap: 4px; padding: 12px 14px !important; }
.k-typing.is-on { display: inline-flex; }
.k-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); animation: k-dot 1s infinite; }
.k-typing i:nth-child(2) { animation-delay: .15s; }
.k-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes k-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

/* cloud */
.k-x-cloud { gap: 16px; }
.k-regions { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; }
.k-r { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.k-r small { font-size: 11.5px; color: var(--mute-d); }
.k-nodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 9px; }
.k-nodes i { height: 13px; border-radius: 3px; background: rgba(95,214,160,.6); }
.k-r:last-child .k-nodes i { background: rgba(126,168,255,.35); }
.k-link { width: 100%; height: 20px; overflow: visible; }
.k-link path { fill: none; stroke: rgba(126,168,255,.7); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; animation: k-flow 1.1s linear infinite; }
@keyframes k-flow { to { stroke-dashoffset: -16; } }

/* score: a decision */
.k-x-score { display: grid; grid-template-columns: minmax(0, 1fr) 150px; grid-template-rows: auto 1fr auto; column-gap: 20px; row-gap: 8px; }
.k-subj { grid-column: 1; }
.k-subj b { display: block; font-size: 15px; }
.k-subj small { font-size: 12px; color: var(--mute-d); }
.k-x-score .k-checks { grid-column: 1; grid-row: 2 / 4; }
.k-x-score .k-checks li { padding: 8px 0; }
.k-ring { grid-column: 2; grid-row: 1 / 3; position: relative; align-self: center; width: 150px; height: 150px; }
.k-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.k-ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.k-ring .k-arc { stroke: #7ea8ff; stroke-linecap: round; stroke-dasharray: calc(var(--f) * 100) 100; }
.k-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.k-ring b { font-size: 32px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k-ring small { font-size: 11.5px; color: var(--mute-d); }
.k-decision { grid-column: 2; grid-row: 3; justify-self: center; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.k-decision.is-ok { background: rgba(43,182,115,.16); color: #5fd6a0; }
.k-decision.is-warn { background: var(--orange-soft); color: #ff9e68; }
.k-decision.is-info { background: rgba(1,96,231,.22); color: #8fb6ff; }

/* gallery: asset tiles */
.k-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.k-tile { position: relative; display: grid; gap: 6px; }
.k-art { display: block; height: 82px; border-radius: 10px; background: linear-gradient(150deg, hsl(var(--h) 55% 46%), hsl(calc(var(--h) + 36) 50% 22%)); position: relative; overflow: hidden; }
.k-art::after { content: ""; position: absolute; right: -18%; bottom: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: hsla(calc(var(--h) - 40), 85%, 75%, .4); }
.k-tile small { font-size: 11.5px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-tile.is-pick .k-art { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(126,168,255,.5); }
.k-tags { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.k-tags i { padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600; background: rgba(0,0,0,.55); }
.k-done { position: absolute; right: 6px; top: 58px; }

/* gantt: a schedule */
.k-gh, .k-gr { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; }
.k-days { display: grid; grid-template-columns: repeat(var(--u), minmax(0, 1fr)); font-size: 11px; color: var(--mute-d); }
.k-gw { position: relative; display: grid; gap: 4px; }
.k-gr { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.k-gr > span:first-child { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-lane { position: relative; height: 20px; }
.k-lane i { position: absolute; top: 2px; bottom: 2px; left: calc(var(--s) * 100%); width: calc(var(--l) * 100%); border-radius: 5px; background: var(--c); opacity: .85; transform-origin: left center; }
.k-now { position: absolute; top: -4px; bottom: -4px; left: calc(132px + (100% - 132px) * .38); width: 2px; border-radius: 1px; background: #ffb68b; box-shadow: 0 0 10px #ffb68b; }

/* rules: switches and a result */
.k-x-rules { flex-direction: row; gap: 18px; }
.k-x-rules > ul { flex: 1.3; min-width: 0; }
.k-x-rules li { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.k-x-rules li:last-child { border-bottom: 0; }
.k-x-rules li span { color: rgba(255,255,255,.82); }
.k-tog { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background-color .3s; }
.k-tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-out); }
.is-on > .k-tog { background: var(--run); }
.is-on > .k-tog::after { transform: translateX(14px); }
.k-res { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.k-res small { font-size: 12px; color: var(--mute-d); }
.k-res b { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k-res .k-note { padding: 8px 10px; font-size: 12px; }

/* api: a request and its response */
.k-req { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font: 500 12.5px var(--f-code); }
.k-m { padding: 2px 8px; border-radius: 6px; background: rgba(43,182,115,.18); color: #5fd6a0; }
.k-req span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-json { margin: 0; display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.28); font: 12.5px/1.45 var(--f-code); white-space: pre; overflow: hidden; }
.k-json i { font-style: normal; }
.k-json .k { color: #8fb6ff; }
.k-json .s { color: #ffd27a; }
.k-json .n { color: #5fd6a0; }
.k-resp { margin-top: auto; display: flex; align-items: center; gap: 12px; font: 500 12.5px var(--f-code); color: var(--mute-d); }

/* ================= B. product panels (light, still) ================= */
.kp-spark { position: relative; height: 96px; border-radius: 9px; box-shadow: inset 0 0 0 1px #eceef1; overflow: hidden; }
.kp-spark svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; }
.kp-ar { fill: rgba(1,96,231,.1); }
.kp-ln { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dk-app.is-dark .kp-spark { box-shadow: inset 0 0 0 1px #23252a; }
.dk-app.is-dark .kp-ar { fill: rgba(95,214,160,.12); }
.dk-app.is-dark .kp-ln { stroke: #5fd6a0; }
.kp-cap { position: absolute; left: 10px; top: 8px; display: grid; }
.kp-cap em { font-size: 9.5px; }
.kp-cap b { font-size: 15px; letter-spacing: -.02em; }
.kp-bars { display: grid; gap: 6px; }
.kp-bars > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 7px; align-items: end; height: 86px; }
.kp-bars span { display: grid; grid-template-rows: 1fr auto; gap: 4px; height: 100%; text-align: center; }
.kp-bars i { align-self: end; height: calc(var(--v) * 100%); border-radius: 4px 4px 1px 1px; background: #c9dafc; }
.kp-bars span:last-child i { background: var(--blue); }
.kp-bars em { font-size: 9px; }
.kp-t { font-size: 9.5px; }
.kp-board { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.kp-col { display: grid; align-content: start; gap: 6px; padding: 7px; border-radius: 8px; background: #f4f5f7; min-height: 170px; }
.kp-col > em { font-size: 9.5px; font-weight: 600; color: #6b7280; }
.kp-col > em i { font-style: normal; color: #9aa0a8; margin-left: 2px; }
.kp-card { display: grid; gap: 2px; padding: 7px 8px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px #eceef1; }
.kp-card b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-card em { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-card .dk-pill { margin-top: 3px; }
.kp-map { position: relative; height: 150px; border-radius: 9px; overflow: hidden; background: #eef2f7; box-shadow: inset 0 0 0 1px #e3e7ee; }
.kp-map svg, .kp-amap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kp-road { fill: none; stroke: #fff; stroke-width: 10; }
.kp-route { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 5; }
.kp-pin { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-6px, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 3px; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); white-space: nowrap; }
.kp-pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.kp-chip { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 600; background: var(--ink); color: #fff; }
.kp-thumbs { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: 9px; }
.kp-th { display: grid; gap: 2px; min-width: 0; }
.kp-th b, .kp-th em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-th b { font-size: 10.5px; }
.kp-th em { font-size: 9.5px; }
.kp-th .dk-pill { margin-top: 2px; }
.kp-img { display: block; height: 62px; margin-bottom: 4px; border-radius: 7px; position: relative; overflow: hidden; background: linear-gradient(150deg, hsl(var(--h) 45% 72%), hsl(calc(var(--h) + 30) 40% 48%)); }
.kp-img::after { content: ""; position: absolute; right: -15%; bottom: -35%; width: 65%; aspect-ratio: 1; border-radius: 50%; background: hsla(calc(var(--h) - 30), 70%, 88%, .5); }
.kp-gantt { display: grid; gap: 2px; }
.kp-gr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #f0f1f3; }
.kp-gr > span:first-child { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-gh { border-bottom: 0; padding-top: 0; }
.kp-days { display: grid; grid-template-columns: repeat(var(--u), minmax(0, 1fr)); }
.kp-days em { font-size: 9px; }
.kp-lane { position: relative; height: 14px; }
.kp-lane i { position: absolute; top: 1px; bottom: 1px; left: calc(var(--s) * 100%); width: calc(var(--l) * 100%); border-radius: 4px; background: #c9dafc; }
.kp-lane i.is-blue { background: var(--blue); }
.kp-lane i.is-green { background: #3cc68a; }
.kp-lane i.is-amber { background: #f5b14a; }
.kp-flow { display: flex; align-items: center; gap: 6px; }
.kp-node { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 8px; border-radius: 8px; background: #f4f5f7; text-align: center; }
.kp-node b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-node em { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-node.is-on { background: #e8f0fe; box-shadow: inset 0 0 0 1px #b9cff8; }
.kp-arr { flex: none; width: 14px; height: 2px; background: #c3c8d0; position: relative; }
.kp-arr::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 5px solid #c3c8d0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.kp-list { display: grid; }
.kp-li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid #f0f1f3; }
.kp-li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kp-li > span { display: grid; min-width: 0; }
.kp-li b, .kp-li em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-li em { font-size: 9.5px; }
.kp-split { display: grid; grid-template-columns: var(--r); gap: 10px; min-height: 0; }
.kp-split > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dk-app.is-dark .kp-col, .dk-app.is-dark .kp-node, .dk-app.is-dark .dk-kpi { background: #17181c; }
.dk-app.is-dark .dk-tr, .dk-app.is-dark .kp-li, .dk-app.is-dark .kp-gr { border-bottom-color: #23252a; }

/* app screens */
.ap.is-dark { background: #0f1013; }
.ap.is-dark .ph-scr { background: #0f1013; color: #f2f3f5; }
.ap.is-dark .ap-top { color: #fff; }
.ap.is-dark .ap-row, .ap.is-dark .ap-li { border-bottom-color: #23252a; }
.ap.is-dark .ap-card { background: #1a1b20; }
.kp-at { display: grid; gap: 1px; }
.kp-at b { font-size: 17px; letter-spacing: -.02em; }
.kp-aimg { position: relative; display: block; flex: none; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, hsl(var(--h) 45% 66%), hsl(calc(var(--h) + 30) 42% 38%)); }
.kp-aimg::after { content: ""; position: absolute; right: -12%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: hsla(calc(var(--h) - 30), 70%, 85%, .45); }
.kp-aimg b { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 12px; }
.kp-amap { position: relative; display: block; flex: none; height: 120px; border-radius: 12px; overflow: hidden; background: #eef2f7; }
.kp-alert { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; }
.kp-alert.is-no { background: #fdeceb; }
.kp-alert.is-no b { color: #c2410c; }
.kp-alert.is-ok { background: #e5f6ee; }
.kp-alert.is-ok b { color: #1f9a5f; }
.kp-alert.is-run { background: #e8f0fe; }
.kp-alert.is-run b { color: var(--blue); }
.kp-alert em { font-size: 10.5px; }
.kp-neg { color: #c2410c; }
.kp-run { color: var(--blue); }

/* fixes after the first pages */
.k-x-score .k-checks b { font: 500 12.5px var(--f-text); }
.ap.is-dark .ap-btn { background: #fff; color: #0f1013; }
.ap.is-dark .ap-btn.is-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #3a3b40; }
.ap.is-dark .ph-scr em { color: #9aa0a8; }
