/* Session: a 24 second kinetic loop. One shape builds a manufacturing ERP, a B2B CRM and a supply chain.
   Sizes inside the canvas are design pixels; the canvas scales to its stage. */
.k-session { background: #e8ddd0; }
.k-session-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw; align-items: end; margin-bottom: 44px; }
.k-session-head h2 { font-size: clamp(40px, 4.8vw, 80px); max-width: 920px; }
.k-session-head p { font-size: clamp(17px, 1.5vw, 21px); color: var(--proto-muted); max-width: 540px; }
.k-session-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; background: #ebe5dd; overflow: hidden; contain: layout paint; }
.k-session:not([data-s-ready]) .k-s-canvas { visibility: hidden; }
/* Keep a real visual until mounting has rendered successfully, including failed or blocked JS. */
.k-session-fallback { position: absolute; inset: 0; display: block; }
.k-session-fallback img { display: block; width: 100%; height: 100%; object-fit: contain; }
.k-session[data-s-ready] .k-session-fallback { display: none; }

.k-s-canvas { position: absolute; left: 0; top: 0; width: 1200px; height: 675px; transform-origin: 0 0; font-family: 'Supreme', sans-serif; font-size: 24px; line-height: 1.3; color: #17130f; font-variant-numeric: tabular-nums; }
:where(.k-s-canvas) :where(p, strong, b) { margin: 0; }
.k-s-canvas .k-icon { width: 32px; height: 32px; stroke-width: 1.75; }
.k-s-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.k-s-shape { position: absolute; left: 0; top: 0; width: 720px; height: 108px; border-radius: 54px; background: #fff; overflow: hidden; }
.k-s-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; }
.k-s-cursor { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -4.8px 0 0 -9.6px; transform-origin: 9.6px 4.8px; filter: drop-shadow(0 4px 6px rgba(23, 19, 15, .22)); pointer-events: none; }

/* Background, color-block wipes and marquee */
.k-s-bg { position: absolute; inset: 0; overflow: hidden; background: #120f0d; }
.k-s-wipe { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; }
.k-s-marquee { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--s-ink, #f4f0e9); }
.k-s-marquee p { position: absolute; left: 0; white-space: nowrap; font: 600 72px/1 'Clash Grotesk', sans-serif; letter-spacing: -.02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--s-ink, #f4f0e9); opacity: .22; }
.k-s-marquee p:first-child { top: 14px; }
.k-s-marquee p:last-child { bottom: 14px; }

/* Kinetic type */
.k-s-type { position: absolute; inset: 0; pointer-events: none; color: var(--s-ink, #f4f0e9); }
.k-s-cue { position: absolute; font-family: 'Clash Grotesk', sans-serif; font-weight: 600; line-height: .92; letter-spacing: -.025em; white-space: nowrap; }
.k-s-w { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: top; padding: .08em .03em .12em; margin: -.08em -.03em -.12em; }
.k-s-ch { display: inline-block; transform-origin: 50% 100%; }
.k-s-cue.is-accent { color: var(--proto-orange); }
.k-s-cue.is-light { color: #fff; }
.k-s-cue--prompt { left: 72px; right: 72px; top: 92px; white-space: normal; font-size: 86px; font-weight: 500; line-height: 1.02; letter-spacing: -.025em; transform-origin: 50% 100%; }
.k-s-cue--prompt .k-s-w, .k-s-cue--live .k-s-w, .k-s-cue--outline .k-s-w { overflow: visible; }
.k-s-type-caret { display: inline-block; width: .07em; height: .8em; margin-left: .05em; vertical-align: -.04em; background: var(--proto-orange); }
.k-s-cue--stat, .k-s-cue--flash { left: 64px; top: 50%; translate: 0 -50%; text-transform: uppercase; }
.k-s-cue--stat b { display: block; font-size: 148px; font-weight: 600; line-height: .86; letter-spacing: -.035em; font-variant-numeric: tabular-nums; transform-origin: 0 80%; }
.k-s-cue--stat > span { display: block; max-width: 440px; margin-top: 18px; font-size: 52px; line-height: .95; white-space: normal; }
.k-s-cue--flash { max-width: 450px; font-size: 88px; line-height: .9; white-space: normal; }
.k-s-odo { display: inline-block; height: .86em; overflow: hidden; vertical-align: top; }
.k-s-odo-strip { display: flex; flex-direction: column; }
.k-s-odo-strip i { display: block; height: .86em; line-height: .86; font-style: normal; text-align: center; }
.k-s-odo-fixed { display: inline-block; }
.k-s-cue--live { left: 0; right: 0; top: 50%; translate: 0 -64%; text-align: center; font-size: 300px; line-height: .85; letter-spacing: -.035em; }
.k-s-cue--live .k-s-ch { transform-origin: 50% 50%; }
.k-s-cue--outline { left: 36px; top: 50%; translate: 0 -50%; font-size: 270px; line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px var(--s-ink, #f4f0e9); }
.k-s-cue--stack { left: 64px; top: 50px; font-size: 136px; line-height: .9; text-transform: uppercase; }
.k-s-cue--stack > span { display: block; }
.k-s-canvas.is-tall .k-s-cue--prompt { left: 48px; right: 48px; top: 110px; font-size: 78px; }
.k-s-canvas.is-tall .k-s-cue--stat, .k-s-canvas.is-tall .k-s-cue--flash { left: 0; right: 0; top: 64px; translate: none; text-align: center; }
.k-s-canvas.is-tall .k-s-cue--stat b { font-size: 150px; transform-origin: 50% 80%; }
.k-s-canvas.is-tall .k-s-cue--stat > span { max-width: none; font-size: 52px; }
.k-s-canvas.is-tall .k-s-cue--flash { max-width: none; font-size: 100px; }
.k-s-canvas.is-tall .k-s-cue--live { font-size: 210px; }
.k-s-canvas.is-tall .k-s-cue--outline { font-size: 180px; }
.k-s-canvas.is-tall .k-s-cue--stack { left: 48px; top: 80px; font-size: 104px; }
.k-s-canvas.is-tall .k-s-marquee p { font-size: 56px; }

/* Composer */
.k-s-composer { display: flex; align-items: center; gap: 18px; width: 720px; height: 108px; padding: 0 20px 0 30px; }
.k-s-plus { display: grid; place-items: center; color: #6f655c; }
.k-s-plus .k-icon { width: 36px; height: 36px; }
.k-s-field { position: relative; flex: 1; min-width: 0; height: 44px; font-size: 31px; line-height: 44px; white-space: nowrap; overflow: hidden; }
.k-s-placeholder { position: absolute; left: 0; top: 0; color: #6f655c; }
.k-s-caret { display: inline-block; width: 3px; height: 36px; margin-left: 2px; vertical-align: -7px; border-radius: 2px; background: var(--proto-orange); }
.k-s-send { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #ece5dc; color: #6f655c; }
.k-s-send .k-icon { width: 34px; height: 34px; stroke-width: 2.25; }

/* Islands, loader, check, toasts, go live */
.k-s-island, .k-s-golive, .k-s-toast { display: flex; align-items: center; justify-content: center; gap: 18px; white-space: nowrap; color: #fff; font-size: 32px; font-weight: 600; }
.k-s-island { height: 100px; }
.k-s-island[data-s-group="buildingCrm"] { color: #17130f; }
.k-s-spin { flex: none; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .22); border-top-color: #fff; }
.k-s-spin--big { width: 60px; height: 60px; border-width: 6px; }
.k-s-golive .k-icon { width: 34px; height: 34px; }
.k-s-loader { display: grid; place-items: center; width: 140px; height: 140px; }
.k-s-toast-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--proto-orange); color: #17130f; }
.k-s-toast-icon .k-icon { width: 28px; height: 28px; stroke-width: 2.5; }
.k-s-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--proto-orange); }

/* Panels */
.k-s-panel { padding: 34px 40px; }
.k-s-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 56px; }
.k-s-panel-head strong { font-size: 38px; font-weight: 600; letter-spacing: -.02em; }
.k-s-pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 23px; background: #f2ece5; font-size: 23px; color: #5b4f47; }
.k-s-pill b, .k-s-stat b { font-weight: 600; color: #17130f; }
.k-s-stat, .k-s-muted { font-size: 23px; color: #6f655c; }
.k-s-live { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 23px; background: var(--proto-orange); color: #17130f; font-size: 22px; font-weight: 600; opacity: min(1, var(--pop, 0)); transform: scale(calc(.6 + .4 * var(--pop, 0))); }
.k-s-live i { width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* Modules */
.k-s-modules { width: 980px; height: 560px; }
.k-s-tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 20px; height: 412px; margin-top: 24px; }
.k-s-tile { display: flex; flex-direction: column; justify-content: space-between; padding: 24px 24px; border-radius: 24px; background: color-mix(in srgb, #f6f1eb, #ffffff calc(var(--hover, 0) * 100%)); box-shadow: 0 0 0 calc(var(--hover, 0) * 2.5px) #17130f, 0 calc(var(--hover, 0) * 14px) calc(var(--hover, 0) * 30px) rgba(40, 28, 20, .12); }
.k-s-tile .k-icon { width: 40px; height: 40px; color: #17130f; }
.k-s-tile strong { display: block; margin-top: auto; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.k-s-tile span { font-size: 19px; line-height: 1.25; color: #6f655c; }

/* Data model */
.k-s-schema { width: 1060px; height: 640px; }
.k-s-links, .k-s-flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k-s-links path, .k-s-flow-lines path { fill: none; stroke: #17130f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.k-s-tables { position: absolute; inset: 0; }
.k-s-table { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); display: flex; flex-direction: column; gap: 3px; width: 200px; height: 150px; margin: -75px 0 0 -100px; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; background: #fff; font-size: 19px; color: #6f655c; box-shadow: 0 0 0 1.5px #e7ded3, 0 10px 24px rgba(40, 28, 20, .07); }
.k-s-table strong { margin-bottom: 4px; font-size: 21px; font-weight: 600; color: #17130f; white-space: nowrap; }
.k-s-table span { display: flex; align-items: center; gap: 9px; }
.k-s-table span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #d9cfc3; }
.k-s-table[data-s-focus-table] { box-shadow: 0 0 0 calc(1.5px + var(--focus, 0) * 1.5px) color-mix(in srgb, #e7ded3, #ff6b32 calc(var(--focus, 0) * 100%)), 0 calc(10px + var(--focus, 0) * 8px) 24px rgba(40, 28, 20, .1); }

/* Workflow */
.k-s-flow { width: 1040px; height: 500px; }
.k-s-run-btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 28px; background: color-mix(in srgb, #17130f, #b84f25 calc(var(--press, 0) * 100%)); color: #fff; font-size: 23px; font-weight: 600; transform: scale(calc(1 - var(--press, 0) * .06)); }
.k-s-node { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); display: flex; flex-direction: column; justify-content: center; width: 200px; height: 92px; margin: -46px 0 0 -100px; box-sizing: border-box; padding: 0 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 calc(1.5px + var(--done, 0) * 1.5px) color-mix(in srgb, #e7ded3, #ff6b32 calc(var(--done, 0) * 100%)), 0 10px 24px rgba(40, 28, 20, .07); }
.k-s-node strong { font-size: 22px; font-weight: 600; white-space: nowrap; }
.k-s-node span { font-size: 18px; color: #6f655c; }
.k-s-node::after { content: ""; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--proto-orange); opacity: var(--done, 0); transform: scale(var(--done, 0)); }
.k-s-node--rule { background: #17130f; color: #fff; }
.k-s-node--rule span { color: #bfb2a7; }
.k-s-token { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--proto-orange); box-shadow: 0 0 0 7px rgba(255, 107, 50, .18); opacity: 0; }
.k-s-result { position: absolute; left: 50%; bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; width: 640px; margin-left: -320px; font-size: 23px; font-weight: 550; }
.k-s-result-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--proto-orange); color: #17130f; }
.k-s-result-icon .k-icon { width: 22px; height: 22px; stroke-width: 2.5; }

/* Permissions */
.k-s-roles { width: 920px; height: 560px; }
.k-s-matrix { display: grid; grid-template-columns: 180px repeat(4, 1fr); grid-auto-rows: 58px; gap: 10px 12px; align-items: center; margin-top: 20px; font-size: 21px; }
.k-s-matrix > b { font-weight: 600; font-size: 20px; color: #6f655c; text-align: center; }
.k-s-matrix > strong { font-size: 23px; font-weight: 600; }
.k-s-matrix > i { display: grid; place-items: center; height: 46px; border-radius: 14px; background: #f2ece5; color: #5b4f47; font-style: normal; font-size: 20px; }
.k-s-matrix > i.is-edit { background: #17130f; color: #fff; }
.k-s-matrix > i.is-none { background: transparent; box-shadow: inset 0 0 0 1.5px #e2d8cc; color: #6f655c; }
.k-s-rule-row { position: absolute; left: 40px; right: 40px; bottom: 34px; display: flex; align-items: center; justify-content: space-between; height: 60px; padding-top: 14px; border-top: 1.5px solid #eee6dc; font-size: 23px; font-weight: 550; }
.k-s-switch { position: relative; flex: none; width: 80px; height: 44px; border-radius: 22px; background: #ddd4c9; }
.k-s-switch > i { position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 18px; background: #fff; box-shadow: 0 2px 5px rgba(23, 19, 15, .2); }

/* Dashboard */
.k-s-dash { width: 1040px; height: 620px; }
.k-s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; height: 130px; margin-top: 24px; }
.k-s-kpis p { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 26px; border-radius: 22px; background: #f6f1eb; }
.k-s-kpis span { font-size: 21px; color: #6f655c; }
.k-s-kpis b { font-size: 50px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.k-s-kpis i { font-style: normal; }
.k-s-kpis .is-alert b { color: #d24f17; }
.k-s-chart { position: absolute; left: 40px; right: 40px; top: 268px; bottom: 34px; }
.k-s-chart-label { font-size: 21px; color: #6f655c; }
.k-s-bars { position: absolute; left: 0; right: 0; bottom: 36px; height: 200px; display: flex; align-items: flex-end; justify-content: space-around; }
.k-s-bars i { width: 64px; height: calc(var(--v) * var(--grow, 0) * 200px); border-radius: 12px 12px 4px 4px; background: color-mix(in srgb, #17130f, #ff6b32 calc(var(--hover, 0) * 100%)); }
.k-s-days { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; font-size: 19px; color: #6f655c; }
.k-s-days span { width: 64px; text-align: center; }
.k-s-tip { position: absolute; left: calc(50% + 137px); top: -12px; padding: 10px 16px; border-radius: 12px; background: #17130f; color: #fff; font-size: 21px; font-weight: 550; white-space: nowrap; opacity: 0; }

/* CRM */
.k-s-crm { width: 1040px; height: 600px; }
.k-s-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; height: 452px; margin-top: 24px; }
.k-s-col { padding: 16px; border-radius: 22px; background: #f6f1eb; }
.k-s-col-head { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-bottom: 12px; font-size: 22px; font-weight: 600; }
.k-s-col-head b { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 15px; background: #fff; font-size: 18px; }
.k-s-deal { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 70px; margin-bottom: 12px; padding: 0 14px; box-sizing: border-box; border-radius: 16px; background: #fff; font-size: 19px; font-weight: 550; white-space: nowrap; box-shadow: 0 2px 6px rgba(40, 28, 20, .06); translate: 0 calc(var(--shift, 0) * -82px); }
.k-s-deal span { font-size: 17px; font-weight: 400; color: #6f655c; }
.k-s-deal--slot { visibility: hidden; }
.k-s-deal--drag { position: absolute; left: 50%; top: 50%; width: 193px; margin: 0; translate: none; box-shadow: 0 calc(2px + var(--lift, 0) * 16px) calc(6px + var(--lift, 0) * 26px) rgba(40, 28, 20, calc(.06 + var(--lift, 0) * .12)), 0 0 0 calc(var(--lift, 0) * 2.5px) #17130f; }
.k-s-drop { display: grid; place-items: center; height: 70px; border-radius: 16px; box-shadow: inset 0 0 0 2px #ddd2c5; font-size: 19px; color: #6f655c; }

/* Supply chain */
.k-s-supply { width: 1040px; height: 600px; }
.k-s-head-right { display: inline-flex; align-items: center; gap: 12px; }
.k-s-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.k-s-routes path { fill: none; stroke: #cbbfb2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.k-s-routes .k-s-reroute { stroke: var(--proto-orange); stroke-width: 4; }
.k-s-site { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); display: flex; flex-direction: column; justify-content: center; width: 170px; height: 62px; margin: -31px 0 0 -85px; box-sizing: border-box; padding: 0 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px #e7ded3, 0 8px 18px rgba(40, 28, 20, .07); }
.k-s-site strong { font-size: 20px; font-weight: 600; white-space: nowrap; }
.k-s-site span { font-size: 16px; color: #6f655c; }
.k-s-site.is-supplier { background: #f6f1eb; }
.k-s-site.is-plant { background: #17130f; color: #fff; box-shadow: none; }
.k-s-site.is-plant span { color: #bfb2a7; }
.k-s-site.is-customer { box-shadow: 0 0 0 2px #17130f; }
.k-s-site em { position: absolute; left: 50%; top: -18px; padding: 4px 10px; border-radius: 10px; background: var(--proto-orange); color: #17130f; font-style: normal; font-size: 15px; font-weight: 600; white-space: nowrap; opacity: var(--late, 0); transform: translate(-50%, calc((1 - var(--late, 0)) * 6px)); }
.k-s-site[data-s-late] { box-shadow: 0 0 0 calc(1.5px + var(--late, 0) * 1.5px) color-mix(in srgb, #e7ded3, #ff6b32 calc(var(--late, 0) * 100%)), 0 8px 18px rgba(40, 28, 20, .07); }
.k-s-ship { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #17130f; box-shadow: 0 0 0 4px #fff; opacity: 0; }
.k-s-ship--new { background: var(--proto-orange); }
.k-s-alert { position: absolute; right: 40px; bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 520px; height: 88px; box-sizing: border-box; padding: 0 16px 0 22px; border-radius: 22px; background: #17130f; color: #fff; font-size: 21px; font-weight: 550; opacity: 0; }
.k-s-alert p { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.k-s-alert p i { width: 12px; height: 12px; border-radius: 50%; background: var(--proto-orange); }
.k-s-alert-btn { position: relative; display: grid; place-items: center; height: 56px; padding: 0 20px; border-radius: 28px; background: color-mix(in srgb, #ff6b32, #ffffff calc(var(--done, 0) * 100%)); color: #17130f; font-size: 19px; font-weight: 600; white-space: nowrap; }
.k-s-alert-btn > span { grid-area: 1 / 1; }
.k-s-alert-ask { opacity: var(--ask, 1); filter: blur(calc((1 - var(--ask, 1)) * 6px)); }
.k-s-alert-done { opacity: var(--done, 0); filter: blur(calc((1 - var(--done, 0)) * 6px)); }

/* Finale */
.k-s-finale { display: flex; align-items: center; justify-content: center; gap: 16px; white-space: nowrap; }
.k-s-finale span { display: inline-flex; align-items: center; gap: 12px; height: 76px; padding: 0 28px; border-radius: 38px; background: #17130f; color: #fff; font-size: 28px; font-weight: 600; }
.k-s-finale i { width: 12px; height: 12px; border-radius: 50%; background: var(--proto-orange); }

/* Controls under the stage */
.k-session-foot { display: grid; grid-template-columns: minmax(220px, .35fr) 1fr auto; align-items: start; gap: 28px; margin-top: 22px; }
.k-session-phase { font-family: 'Clash Grotesk', sans-serif; font-size: clamp(24px, 2.2vw, 36px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.k-session-chapters { position: relative; display: grid; grid-template-columns: 13.4fr 4fr 6.6fr; margin: 0; padding: 12px 0 0; list-style: none; font-size: 13px; color: var(--proto-muted); }
.k-session-chapters::before, .k-session-chapters i { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: #e2d8cc; }
.k-session-chapters i { background: var(--proto-orange); transform: scaleX(var(--s-progress, 0)); transform-origin: left; }
.k-session-chapters li { padding-left: 8px; border-left: 1.5px solid #e2d8cc; }
.k-session[data-chapter="1"] .k-session-chapters li:nth-child(1), .k-session[data-chapter="2"] .k-session-chapters li:nth-child(2), .k-session[data-chapter="3"] .k-session-chapters li:nth-child(3) { color: var(--proto-ink); font-weight: 600; }
.k-session-toggle { height: 38px; padding: 0 18px; border: 1.5px solid #d8cdc0; border-radius: 19px; background: transparent; color: var(--proto-ink); font: 600 13px/1 'Supreme', sans-serif; cursor: pointer; }
.k-session-toggle:hover { border-color: var(--proto-ink); }
.k-session-toggle:focus-visible { outline: 2px solid var(--proto-orange); outline-offset: 3px; }
.k-session-note { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--proto-muted); }

@media (max-width: 700px) {
  .k-session-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .k-session-stage { aspect-ratio: 4 / 5; border-radius: 20px; }
  .k-session-foot { grid-template-columns: 1fr auto; grid-template-areas: "phase toggle" "rail rail"; gap: 14px 16px; }
  .k-session-caption { grid-area: phase; }
  .k-session-toggle { grid-area: toggle; }
  .k-session-chapters { grid-area: rail; height: 2px; padding-top: 0; }
  .k-session-chapters li { display: none; }
}

html.dark .k-session { background: #352b24; }
html.dark .k-session-head p, html.dark .k-session-note, html.dark .k-session-chapters { color: var(--k-muted); }
html.dark .k-session-phase, html.dark .k-session-toggle { color: var(--k-ink); }
html.dark .k-session-stage { background: #2b241f; }
html.dark .k-session-chapters::before, html.dark .k-session-chapters li { border-color: var(--k-line); }
html.dark .k-session-chapters::before { background: var(--k-line); }
html.dark .k-session-toggle { border-color: var(--k-line); }
html.dark .k-session[data-chapter="1"] .k-session-chapters li:nth-child(1), html.dark .k-session[data-chapter="2"] .k-session-chapters li:nth-child(2), html.dark .k-session[data-chapter="3"] .k-session-chapters li:nth-child(3) { color: var(--k-ink); }
