/* Skilleze course demos: animated app windows (VS Code, n8n, Premiere, design, chat, dashboards).
   Pure CSS + /js/demos.js. The windows are app mock-ups, so they keep their own dark UI in both site themes. */

/* ---- layout: hero text left, demo right (stacked on small screens) ---- */
.sk-hero-grid { display: block; }
html.skd-js .sk-hero-grid { display: grid; gap: 2rem; align-items: center; }
.sk-hero-grid > section { min-width: 0; }
@media (min-width: 1180px) {
  html.skd-js .sk-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 2.75rem; }
}
.sk-demo-wrap { display: none; min-width: 0; }
html.skd-js .sk-demo-wrap { display: block; }
.sk-demo-cap { margin: .75rem .25rem 0; font-size: .75rem; line-height: 1.45; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }
.sk-demo-cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(139, 92, 246, .6); animation: skd-live 2.2s ease-out infinite; flex: none; }
@keyframes skd-live { 70% { box-shadow: 0 0 0 7px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }
.sk-demo { position: relative; container-type: inline-size; }
.sk-demo:empty { min-height: 420px; }

/* ---- window shell ---- */
.skd { position: relative; height: 420px; border-radius: 14px; overflow: hidden; background: #1e1e1e; color: #d4d4d4; font-family: "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace; font-size: 11px; line-height: 1.5; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 30px 70px -28px rgba(76, 29, 149, .55), 0 0 0 1px rgba(139, 92, 246, .16); display: flex; flex-direction: column; text-align: left; letter-spacing: 0; contain: layout paint; }
.skd *, .skd *::before, .skd *::after { box-sizing: border-box; }
.skd-bar { flex: none; height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #181818; border-bottom: 1px solid rgba(255, 255, 255, .06); font-family: Inter, system-ui, sans-serif; font-size: 11px; color: #9a9aa5; }
.skd-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; flex: none; }
.skd-bar i:nth-child(1) { background: #ff5f57; } .skd-bar i:nth-child(2) { background: #febc2e; } .skd-bar i:nth-child(3) { background: #28c840; }
.skd-bar span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 36px; }
.skd-cur { display: inline-block; width: 1.5px; height: 1.15em; background: #aeafad; vertical-align: text-bottom; margin-left: 1px; animation: skd-blink 1s steps(1) infinite; }
@keyframes skd-blink { 50% { opacity: 0; } }
.skd-pointer { position: absolute; z-index: 30; width: 18px; height: 18px; left: 0; top: 0; pointer-events: none; transition: transform .75s cubic-bezier(.4, .1, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.skd-pointer svg { width: 18px; height: 18px; display: block; }
.skd-pointer::after { content: ""; position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .9); opacity: 0; transform: scale(.3); }
.skd-pointer.click::after { animation: skd-click .45s ease-out; }
@keyframes skd-click { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---- VS Code ---- */
.skd-code .skd-body { flex: 1; display: flex; min-height: 0; }
.skd-act { flex: none; width: 34px; background: #333333; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 10px; }
.skd-act svg { width: 17px; height: 17px; stroke: #858585; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skd-act svg.on { stroke: #fff; }
.skd-exp { flex: none; width: 108px; background: #252526; padding: 8px 0; font-family: Inter, system-ui, sans-serif; font-size: 10.5px; color: #cccccc; overflow: hidden; }
.skd-exp h6 { margin: 0 0 6px; padding: 0 10px; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #bbbbbb; }
.skd-exp div { padding: 2px 10px 2px 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skd-exp div.dir { padding-left: 10px; font-weight: 600; }
.skd-exp div.on { background: #37373d; color: #fff; }
.skd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.skd-edwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.skd-tabs { flex: none; height: 28px; display: flex; background: #252526; overflow: hidden; font-family: Inter, system-ui, sans-serif; font-size: 11px; }
.skd-tab { flex: none; display: none; align-items: center; gap: 6px; padding: 0 12px; color: #969696; background: #2d2d2d; border-right: 1px solid #1e1e1e; border-top: 1px solid transparent; }
.skd-tab.vis { display: flex; animation: skd-tabin .3s ease-out; }
.skd-tab.on { background: #1e1e1e; color: #fff; border-top-color: #8b5cf6; }
.skd-tab b { width: 8px; height: 8px; border-radius: 2px; display: block; }
@keyframes skd-tabin { from { opacity: 0; transform: translateY(-4px); } }
.skd-ed { flex: 1; min-height: 0; overflow: hidden; padding: 6px 0; position: relative; }
.skd-file { display: none; }
.skd-file.on { display: block; }
.skd-ln { display: none; white-space: pre; height: 17px; }
.skd-ln.vis { display: block; }
.skd-ln i { display: inline-block; width: 30px; padding-right: 12px; text-align: right; font-style: normal; color: #6e7681; }
.skd-ln.act { background: rgba(255, 255, 255, .045); }
.skd-ln.act i { color: #c6c6c6; }
.skd .k { color: #c586c0; } .skd .f { color: #dcdcaa; } .skd .s { color: #ce9178; } .skd .n { color: #b5cea8; } .skd .c { color: #6a9955; font-style: italic; }
.skd .t { color: #4ec9b0; } .skd .v { color: #9cdcfe; } .skd .tg { color: #569cd6; } .skd .at { color: #9cdcfe; } .skd .p { color: #808080; } .skd .cs { color: #d7ba7d; } .skd .x { color: #d4d4d4; }
.skd-stat { flex: none; height: 20px; display: flex; align-items: center; gap: 14px; padding: 0 10px; background: #007acc; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.skd-stat span:last-child { margin-left: auto; }

/* panes under/next to the editor */
.skd-pane { flex: none; height: 46%; display: flex; flex-direction: column; border-top: 1px solid #333; background: #1e1e1e; min-height: 0; }
.skd-pane > h6 { flex: none; margin: 0; height: 22px; display: flex; align-items: center; padding: 0 10px; gap: 8px; font-family: Inter, system-ui, sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cccccc; border-bottom: 1px solid #2b2b2b; }
.skd-pane > h6 em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: #858585; }
.skd-term { flex: 1; min-height: 0; overflow: hidden; padding: 6px 10px; white-space: pre-wrap; word-break: break-all; }
.skd-term .pr { color: #8b5cf6; } .skd-term .ok { color: #4ec9b0; } .skd-term .dim { color: #858585; }
.skd-term div { min-height: 16.5px; }
@container (min-width: 640px) {
  .skd-main .skd-split { flex: 1; display: flex; min-height: 0; }
}

/* ---- browser / phone / chart previews ---- */
.skd-br { flex: 1; min-height: 0; background: #f4f1fb; overflow: hidden; position: relative; display: flex; justify-content: center; }
.skd-url { flex: none; margin: 5px 8px; height: 18px; border-radius: 9px; background: #2b2b2b; color: #9a9aa5; padding: 0 10px; font-family: Inter, system-ui, sans-serif; font-size: 9.5px; line-height: 18px; }
.pv { width: 100%; height: 100%; overflow: hidden; background: #fff; color: #111; font-family: "Times New Roman", serif; padding: 5px 12px; transition: width .7s ease; position: relative; font-size: 11px; line-height: 1.3; }
.pv > * { display: none; }
.pv[data-s="1"] > *, .pv[data-s="2"] > *, .pv[data-s="3"] > * { display: block; }
.pv .pv-toast { display: none !important; }
.pv-nav a { color: #0000ee; text-decoration: underline; margin-right: 8px; font-size: 10px; }
.pv h1 { font-size: 18px; margin: 3px 0 1px; font-weight: 700; }
.pv p { margin: 1px 0 4px; }
.pv button { font: 11px Arial, sans-serif; padding: 2px 8px; border: 1px solid #767676; background: #efefef; border-radius: 3px; color: #000; }
.pv-cards div { margin: 3px 0; }
.pv-cards small { margin-left: 6px; opacity: .7; }
.pv[data-s="2"], .pv[data-s="3"] { font-family: Inter, system-ui, sans-serif; text-align: center; background: #f5f0ff; }
.pv[data-s="2"] .pv-nav, .pv[data-s="3"] .pv-nav { display: flex; justify-content: center; gap: 12px; padding: 2px 0 4px; }
.pv[data-s="2"] .pv-nav a, .pv[data-s="3"] .pv-nav a { color: #6d28d9; text-decoration: none; font-weight: 600; margin: 0; }
.pv[data-s="2"] h1, .pv[data-s="3"] h1 { color: #5b21b6; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pv[data-s="2"] p, .pv[data-s="3"] p { color: #5b5470; }
.pv[data-s="2"] button, .pv[data-s="3"] button { background: #7c3aed; color: #fff; border: 0; padding: 6px 16px; border-radius: 999px; font-weight: 700; transition: background .3s, transform .2s; }
.pv[data-s="2"] .pv-cards, .pv[data-s="3"] .pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 7px; }
.pv[data-s="2"] .pv-cards div, .pv[data-s="3"] .pv-cards div { background: #fff; border-radius: 9px; padding: 6px 4px; box-shadow: 0 6px 16px -8px rgba(91, 33, 182, .4); font-weight: 600; margin: 0; transition: transform .25s; }
.pv[data-s="2"] .pv-cards small, .pv[data-s="3"] .pv-cards small { display: block; margin: 2px 0 0; color: #7c3aed; opacity: 1; }
.pv[data-s="3"] .pv-toast { display: block !important; position: absolute; right: 8px; top: 4px; background: #1f1535; color: #fff; padding: 5px 12px; border-radius: 8px; font-size: 10px; white-space: nowrap; animation: skd-tabin .35s ease-out; }
.pv.pressed button { transform: scale(.93); background: #5b21b6; }
.pv.narrow { width: 150px; }
.pv.narrow .pv-cards { grid-template-columns: 1fr !important; }
.pv.narrow h1 { font-size: 15px; }

.skd-phonewrap { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-end; background: #202024; padding-top: 6px; overflow: hidden; }
.skd-phone { width: 132px; height: 100%; border: 3px solid #44444c; border-bottom: 0; border-radius: 16px 16px 0 0; background: #fff; overflow: hidden; font-family: Roboto, Inter, system-ui, sans-serif; color: #1d1b20; position: relative; }
.skd-phone .ph-bar { display: none; height: 24px; background: #6d28d9; color: #fff; font-size: 10.5px; font-weight: 500; padding: 5px 8px; }
.skd-phone[data-s="1"] .ph-bar, .skd-phone[data-s="2"] .ph-bar { display: block; }
.skd-phone .ph-it { display: none; margin: 4px 6px; padding: 4px 6px; border-radius: 8px; background: #f3edf7; font-size: 9.5px; align-items: center; justify-content: space-between; }
.skd-phone .ph-it.vis { display: flex; animation: skd-tabin .3s ease-out; }
.skd-phone .ph-it b { font-weight: 600; } .skd-phone .ph-it em { font-style: normal; color: #6d28d9; font-weight: 700; }
.skd-phone .ph-cart { position: absolute; right: 5px; top: 4px; min-width: 14px; height: 14px; border-radius: 7px; background: #fff; color: #6d28d9; font-size: 9px; font-weight: 800; text-align: center; line-height: 14px; display: none; padding: 0 3px; }
.skd-phone .ph-cart.vis { display: block; animation: skd-tabin .25s; }

.skd-chart { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 8px 10px; overflow: hidden; }
.skd-chart pre { margin: 0; flex: none; font: inherit; color: #d4d4d4; width: 44%; overflow: hidden; }
.skd-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding-bottom: 14px; position: relative; border-bottom: 1px solid #444; min-width: 0; }
.skd-bars div { flex: 1; height: 0; background: linear-gradient(#a78bfa, #6d28d9); border-radius: 3px 3px 0 0; position: relative; transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.skd-bars div span { position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: 9px; color: #9a9aa5; }

/* ---- n8n style flow canvas ---- */
.skd-flow { background: #1a1a22; font-family: Inter, system-ui, sans-serif; }
.n8-top { flex: none; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #20202a; border-bottom: 1px solid #2d2d3a; color: #e9e9f1; font-size: 11px; }
.n8-top b { font-weight: 600; }
.n8-top .tabs { margin-left: 14px; display: flex; gap: 12px; color: #8d8da0; } .n8-top .tabs .on { color: #fff; border-bottom: 2px solid #ff6d5a; padding-bottom: 2px; }
.n8-top .act { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #8d8da0; }
.n8-tg { width: 24px; height: 13px; border-radius: 7px; background: #3a3a4a; position: relative; transition: background .3s; } .n8-tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: transform .3s; }
.n8-tg.on { background: #8b5cf6; } .n8-tg.on::after { transform: translateX(11px); }
.n8-cv { position: relative; flex: 1; min-height: 0; background-image: radial-gradient(#34344a 1px, transparent 1px); background-size: 16px 16px; overflow: hidden; }
.n8-cv svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.n8-edge { fill: none; stroke: #7b7b94; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s ease; }
.n8-edge.dash { stroke-dasharray: 4 4; stroke-dashoffset: 0; opacity: 0; transition: opacity .4s; }
.n8-edge.dash.vis { opacity: 1; }
.n8-edge.vis:not(.dash) { stroke-dashoffset: 0; }
.n8-edge.hot { stroke: #ff6d5a; }
.n8-node { position: absolute; transform: translate(-50%, -50%) scale(.4); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
.n8-node.vis { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.n8-box { width: 46px; height: 46px; border-radius: 11px; background: #2b2b38; border: 1.5px solid #4a4a5e; display: flex; align-items: center; justify-content: center; position: relative; transition: border-color .25s, box-shadow .25s; }
.n8-box svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.n8-node.big .n8-box { width: 88px; height: 56px; border-radius: 14px; }
.n8-node.sub .n8-box { width: 36px; height: 36px; border-radius: 50%; } .n8-node.sub .n8-box svg { width: 17px; height: 17px; }
.n8-node.run .n8-box { border-color: #ff6d5a; box-shadow: 0 0 0 4px rgba(255, 109, 90, .22); }
.n8-node.done .n8-box { border-color: #8b5cf6; }
.n8-ck { position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: #8b5cf6; display: none; align-items: center; justify-content: center; }
.n8-node.done .n8-ck { display: flex; animation: skd-tabin .3s; } .n8-ck svg { width: 9px; height: 9px; stroke: #fff; stroke-width: 3; fill: none; }
.n8-lb { font-size: 9px; color: #c9c9d8; white-space: nowrap; text-align: center; line-height: 1.25; }
.n8-lb small { display: block; color: #7d7d92; font-size: 8px; }
.n8-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #ff6d5a; box-shadow: 0 0 10px #ff6d5a; display: none; z-index: 4; }
.n8-run { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; border: 0; border-radius: 7px; background: #ff6d5a; color: #fff; font: 600 10.5px Inter, system-ui, sans-serif; padding: 7px 14px; display: none; align-items: center; gap: 6px; }
.n8-run.vis { display: flex; animation: skd-tabin .3s; } .n8-run.busy { background: #b9473a; }
.n8-run svg { width: 11px; height: 11px; fill: #fff; }
.n8-out { position: absolute; right: 10px; bottom: 10px; width: 178px; z-index: 5; background: #20202a; border: 1px solid #3a3a4c; border-radius: 9px; padding: 6px 9px; font: 9.5px/1.45 "Cascadia Code", Consolas, monospace; color: #cfcfe0; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.n8-out.vis { opacity: 1; transform: none; } .n8-out h6 { margin: 0 0 3px; font: 600 9px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #8d8da0; } .n8-out .s { color: #ce9178; } .n8-out .k { color: #9cdcfe; font-style: normal; }
.n8-toast { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -14px); opacity: 0; background: #2b1f4d; color: #e9defd; border: 1px solid #6d28d9; border-radius: 8px; padding: 5px 12px; font: 600 10px Inter, system-ui, sans-serif; z-index: 8; transition: all .4s; white-space: nowrap; }
.n8-toast.vis { opacity: 1; transform: translate(-50%, 0); }

/* ---- Premiere-style editor ---- */
.skd-pr { background: #232323; font-family: Inter, system-ui, sans-serif; }
.pr-top { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 5px; padding: 5px; }
.pr-mon, .pr-side { background: #1a1a1a; border: 1px solid #333; border-radius: 4px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pr-h { flex: none; height: 17px; padding: 0 8px; font-size: 9px; color: #bdb6d6; background: #2a2630; display: flex; align-items: center; justify-content: space-between; }
.pr-scr { flex: 1; min-height: 0; margin: 6px; border-radius: 3px; position: relative; overflow: hidden; background: #09090c; }
.pr-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.pr-scene.on { opacity: 1; }
.pr-title { position: absolute; left: 0; right: 0; top: 36%; text-align: center; font: 800 16px/1.1 Inter, system-ui, sans-serif; color: #fff; letter-spacing: -.01em; opacity: 0; transform: translateY(8px); transition: all .5s; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.pr-title.on { opacity: 1; transform: none; }
.pr-cap { position: absolute; left: 8px; right: 8px; bottom: 7px; text-align: center; font: 700 10px Inter, system-ui, sans-serif; color: #fff; min-height: 14px; }
.pr-cap span { background: rgba(0, 0, 0, .65); padding: 1px 6px; border-radius: 3px; }
.pr-tc { flex: none; padding: 3px 8px 5px; display: flex; justify-content: space-between; font: 10px "Cascadia Code", Consolas, monospace; color: #a78bfa; }
.pr-side-b { padding: 6px 8px; font-size: 9.5px; color: #c9c4da; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.pr-side-b .row { display: none; justify-content: space-between; gap: 6px; padding: 3px 6px; background: #2a2630; border-radius: 3px; } .pr-side-b .row.vis { display: flex; animation: skd-tabin .3s; }
.pr-side-b .row em { font-style: normal; color: #a78bfa; }
.pr-prog { height: 4px; border-radius: 2px; background: #3a3544; overflow: hidden; } .pr-prog i { display: block; height: 100%; width: 0; background: #a78bfa; }
.pr-tl { flex: none; height: 46%; background: #1d1d1d; border-top: 1px solid #333; position: relative; overflow: hidden; }
.pr-area { position: relative; margin-left: 30px; height: calc(100% - 0px); }
.pr-ruler { height: 14px; position: relative; border-bottom: 1px solid #333; background: repeating-linear-gradient(90deg, #444 0 1px, transparent 1px 8.33%); }
.pr-tr { position: relative; height: 22px; border-bottom: 1px solid #292929; }
.pr-tr b { position: absolute; left: -30px; top: 0; width: 30px; height: 22px; line-height: 22px; text-align: center; font-size: 8.5px; font-weight: 600; color: #8a8497; background: #232323; }
.pr-clip { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; font-size: 8.5px; line-height: 17px; padding: 0 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(-12px); transition: left .5s ease, width .5s ease, opacity .35s, transform .35s; }
.pr-clip.vis { opacity: 1; transform: none; }
.pr-clip.v1 { background: #6d4fc4; } .pr-clip.v2 { background: #b9488f; } .pr-clip.cp { background: #2f8f8f; } .pr-clip.au { background: #3b7a57; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 4px); } .pr-clip.sel { outline: 1.5px solid #fff; }
.pr-head { position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; background: #ff4d6d; z-index: 5; pointer-events: none; }
.pr-head::before { content: ""; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: #ff4d6d; }
.pr-razor { position: absolute; top: 14px; bottom: 0; width: 1px; background: #fff; z-index: 4; display: none; }
.pr-exp { position: absolute; right: 8px; top: 20px; z-index: 6; padding: 4px 10px; border-radius: 4px; background: #7c3aed; color: #fff; font: 600 9.5px Inter, system-ui, sans-serif; display: none; }
.pr-exp.vis { display: block; animation: skd-tabin .3s; }

/* ---- design editor ---- */
.skd-ds { background: #1f1f26; font-family: Inter, system-ui, sans-serif; }
.ds-opt { flex: none; height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: #2a2a33; border-bottom: 1px solid #111; color: #b9b9c8; font-size: 9.5px; }
.ds-opt b { color: #fff; font-weight: 600; }
.ds-body { flex: 1; min-height: 0; display: flex; }
.ds-tools { flex: none; width: 30px; background: #2a2a33; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; border-right: 1px solid #111; }
.ds-tools i { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.ds-tools i.on { background: #6d28d9; }
.ds-tools svg { width: 13px; height: 13px; stroke: #d8d8e6; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ds-cv { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; background: #17171c; position: relative; }
.ds-art { position: relative; height: 94%; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); container-type: inline-size; }
.ds-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #4c1d95, #a855f7 70%, #f0abfc); clip-path: inset(0 100% 100% 0); transition: clip-path .8s ease; }
.ds-bg.vis { clip-path: inset(0 0 0 0); }
.ds-circ { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; background: #fde4cf; left: 22%; top: 24%; transform: scale(0); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1); }
.ds-circ.vis { transform: scale(1); }
.ds-cup { position: absolute; left: 36%; top: 40%; width: 28%; aspect-ratio: 1; opacity: 0; transform: translateY(-20px) scale(.7); transition: all .5s cubic-bezier(.3, 1.4, .5, 1); }
.ds-cup.vis { opacity: 1; transform: none; }
.ds-cup .c { position: absolute; left: 6%; right: 14%; bottom: 8%; top: 36%; background: #5b3a29; border-radius: 4px 4px 40% 40%; }
.ds-cup .h { position: absolute; right: 0; bottom: 24%; width: 28%; height: 34%; border: 4px solid #5b3a29; border-left: 0; border-radius: 0 50% 50% 0; }
.ds-cup .st { position: absolute; left: 30%; top: 4%; width: 6%; height: 28%; border-radius: 4px; background: rgba(91, 58, 41, .35); animation: skd-steam 2s ease-in-out infinite; } .ds-cup .st + .st { left: 52%; animation-delay: .5s; }
@keyframes skd-steam { 50% { transform: translateY(-5px); opacity: .4; } }
.ds-t1 { position: absolute; left: 0; right: 0; top: 8%; text-align: center; font: 800 11.5cqw/1 Georgia, "Times New Roman", serif; color: #fff; white-space: nowrap; transition: color .35s, top .5s ease; }
.ds-t2 { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 600 4.6cqw Inter, system-ui, sans-serif; color: #fff; white-space: nowrap; letter-spacing: .04em; }
.ds-guide { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #ff3d9a; opacity: 0; transition: opacity .2s; z-index: 3; }
.ds-guide.vis { opacity: 1; }
.ds-sel { outline: 1.5px solid #8b5cf6; outline-offset: 3px; }
.ds-side { flex: none; width: 112px; background: #2a2a33; border-left: 1px solid #111; padding: 7px; color: #c9c9d8; font-size: 9px; overflow: hidden; }
.ds-side h6 { margin: 0 0 5px; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: #8d8da0; font-weight: 600; }
.ds-ly { display: none; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #34343f; }
.ds-ly.vis { display: flex; animation: skd-tabin .3s; } .ds-ly.on { background: #4a2c8f; } .ds-ly::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #6f6f84; flex: none; }
.ds-sw { display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap; } .ds-sw i { width: 16px; height: 16px; border-radius: 4px; display: block; border: 1.5px solid transparent; } .ds-sw i.on { border-color: #fff; }
.ds-sl { height: 4px; border-radius: 2px; background: #44444f; margin: 5px 0 9px; position: relative; } .ds-sl i { position: absolute; top: -3px; left: 20%; width: 9px; height: 9px; border-radius: 50%; background: #fff; transition: left .8s ease; }
.ds-toast { position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 10px); opacity: 0; background: #2b1f4d; color: #e9defd; border: 1px solid #6d28d9; border-radius: 7px; padding: 4px 10px; font-size: 9.5px; font-weight: 600; transition: all .4s; z-index: 6; white-space: nowrap; }
.ds-toast.vis { opacity: 1; transform: translate(-50%, 0); }

/* ---- AI chat ---- */
.skd-chat { background: #212126; font-family: Inter, system-ui, sans-serif; }
.ch-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ch-msgs { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 11.5px; line-height: 1.5; color: #ececf1; }
.ch-u { align-self: flex-end; max-width: 88%; background: #3a3547; padding: 8px 11px; border-radius: 14px 14px 3px 14px; animation: skd-tabin .3s; }
.ch-a { align-self: flex-start; max-width: 94%; display: flex; gap: 8px; animation: skd-tabin .3s; }
.ch-a > i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #d946ef); display: block; margin-top: 1px; }
.ch-a .tx { min-width: 0; } .ch-a .tx p { margin: 0 0 5px; } .ch-a .tx li { margin-left: 15px; list-style: disc; } .ch-a b { color: #fff; }
.ch-dots { display: inline-flex; gap: 3px; padding: 6px 0; } .ch-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9a9aa8; animation: skd-dot 1s infinite; } .ch-dots i:nth-child(2) { animation-delay: .15s; } .ch-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes skd-dot { 50% { transform: translateY(-3px); opacity: .5; } }
.ch-chips { flex: none; display: flex; gap: 5px; padding: 0 12px 6px; flex-wrap: wrap; }
.ch-chips span { font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid #4a4659; color: #8d8aa0; transition: all .3s; } .ch-chips span.on { color: #fff; }
.ch-in { flex: none; margin: 0 12px 12px; min-height: 52px; border-radius: 14px; background: #2d2d34; border: 1px solid #44444f; padding: 8px 40px 8px 11px; position: relative; font-size: 11.5px; line-height: 1.45; color: #ececf1; }
.ch-in .ph { color: #7c7c8a; }
.ch-send { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: #5a5a66; display: flex; align-items: center; justify-content: center; transition: background .25s; } .ch-send.on { background: #8b5cf6; }
.ch-send svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ch-seg { border-bottom: 2px solid transparent; transition: border-color .3s; }

/* ---- dashboards ---- */
.skd-dash { background: #1c1b22; font-family: Inter, system-ui, sans-serif; }
.db-top { flex: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #23222b; border-bottom: 1px solid #333; font-size: 11px; font-weight: 600; color: #eeeaf8; }
.db-top em { margin-left: auto; font-style: normal; font-weight: 500; color: #8d8aa0; font-size: 10px; }
.db-b { flex: 1; min-height: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.db-k { display: grid; grid-template-columns: repeat(var(--kc, 3), 1fr); gap: 8px; }
.db-k div { background: #26252f; border: 1px solid #34323f; border-radius: 9px; padding: 7px 9px; } .db-k small { display: block; font-size: 9px; color: #8d8aa0; } .db-k b { display: block; font-size: 17px; line-height: 1.2; color: #fff; font-weight: 700; } .db-k i { font-style: normal; font-size: 9px; color: #c4b5fd; }
.db-m { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.db-c { background: #26252f; border: 1px solid #34323f; border-radius: 9px; padding: 7px 9px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; } .db-c h6 { margin: 0 0 5px; font-size: 9px; font-weight: 600; color: #8d8aa0; text-transform: uppercase; letter-spacing: .05em; }
.db-c svg { flex: 1; min-height: 0; width: 100%; } .db-ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; } .db-ln.go { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease; }
.db-ar { opacity: 0; transition: opacity 1.2s .8s; } .db-ar.go { opacity: .22; }
.db-bar { margin-bottom: 7px; font-size: 9.5px; color: #cfcbe0; } .db-bar div { display: flex; justify-content: space-between; } .db-bar span { display: block; height: 5px; border-radius: 3px; background: #3a3846; margin-top: 3px; overflow: hidden; } .db-bar span i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b5cf6, #d946ef); border-radius: 3px; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.db-tb { width: 100%; border-collapse: collapse; font-size: 9.5px; color: #cfcbe0; } .db-tb th { text-align: left; font-weight: 600; color: #8d8aa0; padding: 2px 4px; font-size: 8.5px; text-transform: uppercase; } .db-tb td { padding: 4px; border-top: 1px solid #34323f; } .db-tb tr { opacity: 0; transition: opacity .4s; } .db-tb tr.vis { opacity: 1; }
.db-pill { font-size: 8.5px; padding: 1px 6px; border-radius: 99px; background: #3b2a66; color: #d8c8ff; font-weight: 600; }
.db-ai { flex: none; min-height: 34px; border-radius: 9px; border: 1px dashed #6d28d9; background: rgba(109, 40, 217, .12); color: #ddd2fb; font-size: 10px; padding: 7px 10px; line-height: 1.4; }
.db-ab { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; font-size: 9.5px; color: #cfcbe0; } .db-ab .w { display: none; margin-left: 5px; color: #d8c8ff; font-weight: 700; } .db-ab .w.vis { display: inline; animation: skd-tabin .3s; }

@container (max-width: 470px) {
  .skd-exp, .skd-act { display: none; }
  .pr-top { grid-template-columns: 1fr; } .pr-side { display: none; }
  .ds-side { display: none; }
  .db-m { grid-template-columns: 1fr; } .db-m .db-c:last-child { display: none; }
  .skd { height: 390px; }
}
@container (min-width: 700px) {
  .skd-code .skd-main { flex-direction: row; }
  .skd-code .skd-pane { height: auto; width: 42%; border-top: 0; border-left: 1px solid #333; }
}
@media (prefers-reduced-motion: reduce) {
  .skd-cur, .sk-demo-cap::before, .ds-cup .st, .ch-dots i { animation: none !important; }
}
html.v6-scrolling .skd-cur, html.v6-scrolling .sk-demo-cap::before { animation-play-state: paused !important; }

/* the site's gradient headline styling must not leak into the mock-up windows */
.skd h1, .skd h2, .skd h3, .skd h6 { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important; text-shadow: none; }
.skd h1::after, .skd h2::after, .skd h3::after { display: none !important; }
.skd .pv h1 { margin: 6px 0 2px; padding: 0; }
.skd p { margin: 0; }

.pv[data-s="2"] button, .pv[data-s="3"] button { display: block; margin: 0 auto; }
.pv-nav a { white-space: nowrap; }
.pv.narrow .pv-nav a:nth-child(n+3), .pv.narrow p { display: none; }
.pv.narrow .pv-cards { gap: 4px; margin-top: 5px; }
.pv.narrow .pv-cards div { padding: 3px 4px; }
.skd table, .skd th, .skd td { font-size: 9.5px; line-height: 1.3; color: inherit; border: 0; }
.db-tb td { border-top: 1px solid #34323f; } .db-tb th { font-size: 8.5px; }
.skd ul, .skd li { margin: 0; padding: 0; }
.ch-a .tx li { margin-left: 15px; }
.db-bar div span { display: inline; height: auto; background: none; margin: 0; border-radius: 0; overflow: visible; }
.db-bar > span { display: block; height: 5px; border-radius: 3px; background: #3a3846; margin-top: 3px; overflow: hidden; }
@media (max-width: 1179px) { .sk-demo-wrap { max-width: 720px; } }
