/* ==========================================================================
   SCM for Transporter — product page.
   Shares home-sections.css components (.s, .s-title .hl, .s-cta, .s-eyebrow,
   .s-proof); adds the page frame (rails, seams, registration ticks) and the
   product-specific pieces.
   ========================================================================== */

.scm-page {
  --n-ink: #0b8fa8;
  --n-ink-2: #0a84a0;
  --n-ink-3: #1fb3cc;
  --n-cyan: #09bbdf;
  --n-sky: #31ddff;
  --n-paper: #f1fafc;
  --n-line: rgba(11, 143, 168, 0.1);
  --n-line-d: rgba(122, 233, 255, 0.14);
  --n-on: #e6f7fb;
  --n-on-2: rgba(224, 245, 250, 0.7);
  --n-on-3: rgba(224, 245, 250, 0.46);
  --n-text: #2f3a3d;
  --n-text-2: #43757c;
  --sig-geo: #34d399;
  --sig-vision: #31ddff;
  --sig-text: #0ccef5;
  --sig-video: #fb7185;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: rgba(11, 143, 168, 0.12);
  --rail-d: rgba(122, 233, 255, 0.16);
  background: var(--n-paper) !important;
  background-image: none !important;
}
.scm-page main { margin: 0 !important; border: 0 !important; overflow-x: clip; }
.scm-page main > section { margin: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.scm-page .site-footer { margin: 0 !important; }
.scm-page .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.scm-page .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   The frame: rails down the content edges, a seam on every section,
   registration ticks where they meet
   ========================================================================== */
.scm-page .s,
.scm-page .s-proof,
.scm-page .scm-stage { position: relative; }
.scm-page .s::after,
.scm-page .s-proof::after,
.scm-page .scm-stage::after {
  --r: var(--rail);
  --t: #048eaa;
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(min(100%, 1280px + 2 * var(--gut)) - 2 * var(--gut) + 18px);
  transform: translateX(-50%);
  pointer-events: none;
  background:
    /* registration ticks (left, right) */
    linear-gradient(var(--t), var(--t)) no-repeat 0 0 / 19px 1px,
    linear-gradient(var(--t), var(--t)) no-repeat 100% 0 / 19px 1px,
    linear-gradient(var(--t), var(--t)) no-repeat 7px 0 / 5px 5px,
    linear-gradient(var(--t), var(--t)) no-repeat calc(100% - 7px) 0 / 5px 5px,
    /* seam */
    linear-gradient(var(--r), var(--r)) no-repeat 9px 0 / calc(100% - 18px) 1px,
    /* rails */
    linear-gradient(var(--r), var(--r)) no-repeat 9px 0 / 1px 100%,
    linear-gradient(var(--r), var(--r)) no-repeat calc(100% - 9px) 0 / 1px 100%;
}
.scm-page .s--dark::after,
.scm-page .s--ink::after,
.scm-page .s-proof::after,
.scm-page .scm-stage::after { --r: var(--rail-d); --t: var(--n-cyan); }
.scm-page .scm-stage::after { background-size: 0 0, 0 0, 0 0, 0 0, 0 0, 1px 100%, 1px 100%; }
.scm-page .s > .s__wrap,
.scm-page .s-proof > .s__wrap,
.scm-page .scm-stage > .s__wrap { position: relative; z-index: 2; }
@media (max-width: 640px) {
  .scm-page .s::after,
  .scm-page .s-proof::after,
  .scm-page .scm-stage::after { width: calc(100% - 2 * var(--gut) + 18px); }
}

/* Seamed grids: 1px seams instead of gaps */
.seamed { gap: 1px !important; background: var(--rail); border: 1px solid var(--rail); }
.s--dark .seamed,
.s--ink .seamed { background: var(--rail-d); border-color: var(--rail-d); }

/* ==========================================================================
   Header on this page
   ========================================================================== */
.scm-page .site-header { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* ==========================================================================
   Stage
   ========================================================================== */
.scm-stage {
  overflow: hidden;
  background: var(--n-ink);
  color: var(--n-on);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  isolation: isolate;
}
.scm-stage__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 480px at 78% 40%, rgba(9, 187, 223, 0.22), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(0, 167, 201, 0.22), transparent 70%),
    linear-gradient(rgba(122, 233, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(122, 233, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--n-ink);
  mask-image: none;
}
.scm-stage__grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1060px) { .scm-stage__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.scm-stage .crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; font-size: 13px; color: var(--n-on-3); }
.scm-stage .crumbs a { color: var(--n-on-2); text-decoration: none; }
.scm-stage .crumbs a:hover { color: var(--n-cyan); }
.scm-stage .s-eyebrow { color: var(--n-cyan); }
.scm-stage .s-title {
  font-size: clamp(36px, 4.6vw, 62px);
  color: #fff;
}
.scm-stage .s-title .hl { background-image: linear-gradient(100deg, #79e4fa 0%, var(--n-cyan) 45%, #7ce9ff 100%); }
.scm-stage .s-title .hl::after { transition-delay: 0.7s; }
.scm-stage.is-in .s-title .hl::after { clip-path: inset(0 0 0 0); }
.scm-stage .s-lede { margin-top: 22px; color: var(--n-on-2); max-width: 58ch; }
.scm-stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.scm-link {
  color: #fff;
  font: 600 12.5px/1 "Source Sans 3", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.scm-link:hover { color: var(--n-cyan); border-color: var(--n-cyan); }
.scm-stage__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--n-line-d); font-size: 13.5px; color: var(--n-on-3); }
.scm-stage__facts b { color: #fff; font-weight: 600; margin-right: 6px; }

/* Phone + floating signal cards */
.phone-scene { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); padding: 24px 0 40px; }
.phone {
  position: relative;
  margin: 0 auto;
  width: min(340px, 86%);
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(160deg, #0b8fa8, #0b8fa8);
  box-shadow: 0 0 0 1px rgba(122, 233, 255, 0.25), 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(9, 187, 223, 0.4);
}
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 22px 22px 0 0; background: #0b8fa8; color: #fff; }
.phone__bar small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.phone__bar b { font-size: 14px; }
.phone__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--n-cyan), var(--n-sky)); color: #2f3a3d; font-weight: 700; }
.chat {
  list-style: none;
  margin: 0;
  padding: 14px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 420px;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0) 0 0 / 14px 14px,
    #0b8fa8;
}
.msg { display: flex; flex-direction: column; max-width: 86%; padding: 8px 10px 6px; font-size: 12.5px; line-height: 1.45; border-radius: 10px; }
.msg time { align-self: flex-end; margin-top: 2px; font-size: 9.5px; color: rgba(255, 255, 255, 0.45); }
.msg--in { align-self: flex-end; background: #0b8fa8; color: #e8f8fb; border-top-right-radius: 2px; }
.msg--out { align-self: flex-start; background: #0b8fa8; color: #e6f7fb; border-top-left-radius: 2px; }
.msg b { color: #96e4f4; }
.msg--photo span { display: flex; align-items: center; gap: 8px; }
.msg--photo i { width: 34px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, #0795b2, #84e6fa); }
.chat.is-live .msg { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.chat.is-live .msg.is-shown { opacity: 1; transform: none; }

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 143, 168, 0.86);
  border: 1px solid rgba(122, 233, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-size: 12.5px;
  color: #fff;
  animation: float-bob 6s ease-in-out infinite;
}
.float small { display: block; font: 600 9.5px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n-on-3); }
.float--a { top: 70px; left: -20px; }
.float--b { top: 46%; right: -24px; animation-delay: -2s; }
.float--c { bottom: 66px; left: -8px; animation-delay: -4s; }
@media (max-width: 520px) { .float--a { left: 0; } .float--b { right: 0; } .float--c { left: 0; } }
@keyframes float-bob { 50% { transform: translateY(-8px); } }
.sig-dot { width: 9px; height: 9px; flex: 0 0 auto; }
.sig-dot--geo { background: var(--sig-geo); box-shadow: 0 0 10px var(--sig-geo); }
.sig-dot--vision { background: var(--sig-vision); box-shadow: 0 0 10px var(--sig-vision); }
.sig-dot--text { background: var(--sig-text); box-shadow: 0 0 10px var(--sig-text); }
.sig-dot--video { background: var(--sig-video); box-shadow: 0 0 10px var(--sig-video); }
.phone-scene figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11.5px; color: var(--n-on-3); }

/* Scale band: six stats */
.scm-scale .scm-scale__stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .scm-scale .scm-scale__stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .scm-scale .scm-scale__stats { grid-template-columns: repeat(6, 1fr); } }
.scm-scale .s-proof__stats li { border-right: 1px solid var(--n-line-d) !important; border-bottom: 0 !important; padding: 34px 18px 34px 20px !important; }
.scm-scale .s-proof__stats li:last-child { border-right: 0 !important; }
.scm-scale .s-proof__stats b { font-size: clamp(42px, 4.4vw, 64px); }

/* ==========================================================================
   Journey
   ========================================================================== */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rail);
  border: 1px solid var(--rail);
}
@media (min-width: 680px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .journey { grid-template-columns: repeat(5, 1fr); } }
.jr-step {
  --c: var(--sig-vision);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 22px 28px;
  background: #fff;
  transition: background-color 0.3s ease;
}
.jr-step:hover { background: #f8fdfe; }
.jr-step--geo { --c: var(--sig-geo); }
.jr-step--vision { --c: var(--sig-vision); }
.jr-step--text { --c: var(--sig-text); }
.jr-step--video { --c: var(--sig-video); }
.jr-step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 38%; background: var(--c); transition: width 0.6s var(--ease); }
.jr-step:hover::before { width: 100%; }
.jr-step__n { font: 500 30px/1 "Newsreader", Georgia, serif; color: #b5d0d4; }
.jr-step__dot { position: absolute; top: 30px; right: 22px; width: 9px; height: 9px; background: var(--c); box-shadow: 0 0 12px var(--c); transform: rotate(45deg); }
.jr-step h3 { margin: 10px 0 0; font: 500 23px/1.15 "Newsreader", Georgia, serif; color: var(--n-text); }
.jr-step__mod { margin: 0; font: 600 10.5px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #048eaa; }
.jr-step p:not(.jr-step__mod) { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--n-text-2); }

/* ==========================================================================
   WhatsApp
   ========================================================================== */
.wa-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--rail-d); border: 1px solid var(--rail-d); }
@media (min-width: 900px) { .wa-grid { grid-template-columns: 1fr 1fr 1.25fr; } }
.wa-card { padding: 30px 28px; background: var(--n-ink); }
.wa-card--flow { background: linear-gradient(160deg, var(--n-ink-3), var(--n-ink)); }
.wa-card__tag { margin: 0 0 10px; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-cyan); }
.wa-card h3 { margin: 0 0 18px; font: 500 26px/1.15 "Newsreader", Georgia, serif; color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--n-on-2); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px;
  background: rgba(9, 187, 223, 0.14) no-repeat center/9px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314c4d4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ticks--dark li { color: var(--n-text-2); }
.ticks--dark li::before { background-color: rgba(4, 142, 170, 0.12); }
.ticks b { color: inherit; font-weight: 700; }
.ticks--dark b { color: var(--n-text); }
.pipe { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 0; }
.pipe li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 40px; counter-increment: p; }
.pipe li::before {
  content: counter(p);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 1px solid rgba(9, 187, 223, 0.5);
  font: 600 11px "IBM Plex Mono", monospace;
  color: var(--n-cyan);
  background: var(--n-ink);
}
.pipe li::after { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 1px; background: rgba(9, 187, 223, 0.3); }
.pipe li:last-child::after { display: none; }
.pipe b { font-size: 15px; color: #fff; }
.pipe span { font-size: 13.5px; color: var(--n-on-2); }
.wa-extras { list-style: none; margin: 1px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rail-d); border: 1px solid var(--rail-d); border-top: 0; }
@media (min-width: 760px) { .wa-extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .wa-extras { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.wa-extras li { padding: 18px 22px; background: var(--n-ink-2); font-size: 14px; line-height: 1.5; color: var(--n-on-2); }
.wa-extras b { font: 500 22px/1 "Newsreader", Georgia, serif; color: var(--n-cyan); margin-right: 6px; }

/* ==========================================================================
   E-way bill
   ========================================================================== */
.ewb { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1020px) {
  .ewb { grid-template-columns: 0.85fr 1.6fr; gap: 56px; }
  .ewb-card { position: sticky; top: 120px; }
}
.ewb-card {
  position: relative;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(11, 143, 168, 0.96), rgba(11, 143, 168, 0.98)) padding-box,
    linear-gradient(135deg, var(--n-cyan), rgba(0, 167, 201, 0.2) 45%, rgba(255, 255, 255, 0.1)) border-box;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  color: var(--n-on);
  box-shadow: 0 40px 80px -40px rgba(11, 143, 168, 0.6);
}
.ewb-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--n-line-d); }
.ewb-card__head span { width: 100%; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-on-3); }
.ewb-card__head b { font: 500 26px/1 "IBM Plex Mono", monospace; letter-spacing: 0.02em; color: #fff; }
.ewb-card__head em { font-style: normal; padding: 4px 8px; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #2f3a3d; background: var(--sig-geo); }
.ewb-card__rows { margin: 0; display: grid; }
.ewb-card__rows div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--n-line-d); }
.ewb-card__rows dt { font: 600 10.5px/1.7 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-on-3); }
.ewb-card__rows dd { margin: 0; font-size: 15px; color: #fff; }
.ewb-card__valid { margin-top: 18px; display: grid; gap: 8px; font-size: 12.5px; color: var(--n-on-2); }
.ewb-card__valid > span { font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-on-3); }
.ewb-bar { height: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ewb-bar i { display: block; height: 100%; width: var(--v, 60%); background: linear-gradient(90deg, var(--sig-geo), var(--n-cyan)); box-shadow: 0 0 12px rgba(9, 187, 223, 0.6); animation: ewb-pulse 3.2s ease-in-out infinite; }
@keyframes ewb-pulse { 50% { filter: brightness(1.3); } }
.ewb-card__note { margin: 16px 0 0; font-size: 11.5px; color: var(--n-on-3); }
.ewb-lists { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ewb-lists { grid-template-columns: 1fr 1fr; } }
.ewb-lists h3 { margin: 0 0 14px; font: 500 26px/1.15 "Newsreader", Georgia, serif; color: var(--n-text); }
.ewb-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rail); }
.ewb-list li { display: grid; gap: 3px; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--rail); position: relative; }
.ewb-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; background: var(--sig-text); transform: rotate(45deg); }
.ewb-list--auto li::before { background: var(--sig-geo); }
.ewb-list b { font-size: 15.5px; color: var(--n-text); }
.ewb-list span { font-size: 14px; line-height: 1.5; color: var(--n-text-2); }
.ewb-safe { margin: 22px 0 0; padding: 16px 18px; border-left: 2px solid var(--n-cyan); background: #fff; font-size: 14px; line-height: 1.55; color: var(--n-text-2); }
.ewb-safe b { color: var(--n-text); }

/* ==========================================================================
   Control room
   ========================================================================== */
.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rail-d);
  border: 1px solid var(--rail-d);
}
@media (min-width: 760px) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .wall { grid-template-columns: repeat(6, 1fr); } }
.wall__pane {
  --c: var(--sig-vision);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 14px 16px;
  background:
    radial-gradient(140px 90px at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
    linear-gradient(rgba(122, 233, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 12px,
    #0b8fa8;
  overflow: hidden;
}
.wall__pane--geo { --c: var(--sig-geo); }
.wall__pane--vision { --c: var(--sig-vision); }
.wall__pane--text { --c: var(--sig-text); }
.wall__pane--video { --c: var(--sig-video); }
.wall__tag { font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n-on-3); }
.wall__pane b { font: 500 17px/1.25 "Source Sans 3", sans-serif; color: #fff; }
.wall__pane i { position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); animation: wall-ping 2.4s infinite; }
.wall__pane:nth-child(3n) i { animation-delay: -0.8s; }
.wall__pane:nth-child(4n) i { animation-delay: -1.6s; }
@keyframes wall-ping { 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.wall__note { margin: 12px 0 28px; font-size: 12.5px; color: var(--n-on-3); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 8px 12px;
  border: 1px solid var(--n-line-d);
  font: 500 13px/1 "Source Sans 3", sans-serif;
  color: var(--n-on-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chips li:hover { border-color: var(--n-cyan); color: #fff; }
.chips--light li { border-color: var(--rail); color: var(--n-text-2); background: #fff; }
.chips--light li:hover { border-color: #048eaa; color: var(--n-text); }

/* ==========================================================================
   Money
   ========================================================================== */
.money { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1020px) { .money { grid-template-columns: 0.95fr 1.5fr; gap: 56px; } }
.ledger { padding: 24px; background: #fff; border: 1px solid var(--rail); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.ledger__tag { margin: 0 0 14px; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #048eaa; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ledger th { text-align: left; padding: 8px 6px; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #79a2a8; border-bottom: 1px solid var(--rail); }
.ledger td { padding: 10px 6px; border-bottom: 1px solid var(--rail); color: var(--n-text); font-variant-numeric: tabular-nums; }
.ledger td:nth-child(n + 3), .ledger th:nth-child(n + 3) { text-align: right; }
.ledger tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--n-text); color: #048eaa; }
.ledger__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #79a2a8; }
.money__cols { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .money__cols { grid-template-columns: 1fr 1fr; } }
.money__cols h3 { margin: 0 0 16px; font: 500 26px/1.15 "Newsreader", Georgia, serif; color: var(--n-text); }
.dash { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rail); }
.dash__lead, .screens__lead { margin: 0 0 14px; font-size: 15px; color: var(--n-text-2); }
.dash__lead b, .screens__lead b { font: 500 26px/1 "Newsreader", Georgia, serif; color: #048eaa; margin-right: 6px; }

/* ==========================================================================
   Automation
   ========================================================================== */
.auto { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .auto { grid-template-columns: 1.15fr 1fr; } }
.rules { overflow-x: auto; border: 1px solid var(--rail-d); }
.rules table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.rules caption { text-align: left; padding: 16px 18px; font: 600 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-cyan); border-bottom: 1px solid var(--rail-d); }
.rules th, .rules td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rail-d); vertical-align: top; }
.rules thead th { font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--n-on-3); }
.rules tbody th { font: 600 12px/1.4 "IBM Plex Mono", monospace; color: var(--n-cyan); white-space: nowrap; }
.rules td { color: var(--n-on-2); }
.rules td:nth-child(2) { color: #fff; }
.rules tbody tr { transition: background-color 0.2s ease; }
.rules tbody tr:hover { background: rgba(9, 187, 223, 0.06); }

.flows { border: 1px solid var(--rail-d); background: var(--n-ink-2); }
.flows__head { padding: 18px 18px 14px; border-bottom: 1px solid var(--rail-d); }
.flows__head h3 { margin: 0 0 6px; font: 500 24px/1.15 "Newsreader", Georgia, serif; color: #fff; }
.flows__head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--n-on-2); }
.flows__head b { color: #fff; }
.flows__sum { margin-top: 10px !important; font: 600 11px/1.4 "IBM Plex Mono", monospace !important; letter-spacing: 0.06em; color: var(--n-cyan) !important; }
.flow-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.flow { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px 9px 18px; border-bottom: 1px solid var(--rail-d); font-size: 13.5px; }
.flow__code { font: 600 11px "IBM Plex Mono", monospace; color: var(--n-on-3); }
.flow__name { color: #fff; }
.flow__state { display: inline-flex; border: 1px solid var(--rail-d); }
.flow__state button {
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: var(--n-on-3);
  font: 600 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.flow__state button + button { border-left: 1px solid var(--rail-d); }
.flow__state button:hover { color: #fff; }
.flow[data-state="off"] [data-set="off"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.flow[data-state="draft"] [data-set="draft"] { background: rgba(49, 221, 255, 0.22); color: #bff4ff; }
.flow[data-state="auto"] [data-set="auto"] { background: var(--n-cyan); color: #2f3a3d; }
.flow[data-state="auto"] .flow__name::after { content: " · made by autopilot"; font-size: 11.5px; color: var(--n-cyan); }

/* ==========================================================================
   Module atlas
   ========================================================================== */
.atlas { display: grid; grid-template-columns: 1fr; border: 1px solid var(--rail); background: #fff; }
@media (min-width: 900px) { .atlas { grid-template-columns: 320px 1fr; min-height: 520px; } }
.atlas template { display: none; }
.atlas__nav { display: flex; flex-direction: column; border-right: 1px solid var(--rail); max-height: 600px; overflow-y: auto; }
@media (max-width: 899px) { .atlas__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rail); max-height: none; } }
.atlas__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--rail);
  background: transparent;
  text-align: left;
  font: 500 14.5px/1.2 "Source Sans 3", sans-serif;
  color: var(--n-text-2);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.atlas__nav button b { font: 500 18px/1 "Newsreader", Georgia, serif; color: #9dbfc4; }
.atlas__nav button:hover { background: #f5fcfd; color: var(--n-text); }
.atlas__nav button[aria-selected="true"] { background: var(--n-ink); color: #fff; }
.atlas__nav button[aria-selected="true"] b { color: var(--n-cyan); }
.atlas__nav button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--n-cyan); }
.atlas__panel { padding: clamp(24px, 3.5vw, 44px); outline: none; }
.atlas__panel h3 { margin: 0; font: 500 clamp(30px, 3vw, 40px)/1.05 "Newsreader", Georgia, serif; color: var(--n-text); }
.atlas__count { margin: 8px 0 24px; font-size: 15px; color: var(--n-text-2); }
.atlas__count b { font: 500 22px/1 "Newsreader", Georgia, serif; color: #048eaa; }
.atlas__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); background: var(--rail); border: 1px solid var(--rail); }
.atlas__panel li { padding: 14px 16px; background: #fff; font-size: 14.5px; color: var(--n-text); animation: atlas-in 0.5s var(--ease) both; }
.atlas__panel li::first-letter { text-transform: uppercase; }
@keyframes atlas-in { from { opacity: 0; transform: translateY(6px); } }
.screens { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rail); }

/* ==========================================================================
   Connectors & security
   ========================================================================== */
.conns { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--rail-d); border: 1px solid var(--rail-d); }
@media (min-width: 640px) { .conns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .conns { grid-template-columns: repeat(4, 1fr); } }
.conn { --c: var(--sig-vision); display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 26px; background: var(--n-ink); transition: background-color 0.3s ease; }
.conn:hover { background: var(--n-ink-2); }
.conn--geo { --c: var(--sig-geo); }
.conn--vision { --c: var(--sig-vision); }
.conn--text { --c: var(--sig-text); }
.conn--video { --c: var(--sig-video); }
.conn__icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.conn__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.conn h3 { margin: 0; font: 600 16.5px/1.25 "Source Sans 3", sans-serif; color: #fff; }
.conn p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--n-on-2); }

.secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--rail); border: 1px solid var(--rail); counter-reset: sec; }
@media (min-width: 640px) { .secs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .secs { grid-template-columns: repeat(4, 1fr); } }
.secs li { position: relative; padding: 26px 22px 28px; background: #fff; counter-increment: sec; }
.secs li::before { content: "0" counter(sec); display: block; margin-bottom: 18px; font: 500 22px/1 "Newsreader", Georgia, serif; color: #b5d0d4; }
.secs li:nth-child(n + 10)::before { content: counter(sec); }
.secs h3 { margin: 0 0 8px; font: 600 17px/1.25 "Source Sans 3", sans-serif; color: var(--n-text); }
.secs p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--n-text-2); }

/* ==========================================================================
   CTA + footer
   ========================================================================== */
.scm-cta__inner { max-width: 880px; text-align: left; }
.scm-cta .s-lede { margin-top: 20px; }
.scm-page .site-footer {
  background: #0b8fa8 !important;
  background-image: radial-gradient(800px 360px at 90% 0%, rgba(9, 187, 223, 0.1), transparent 70%) !important;
  color: var(--n-on-2) !important;
  border-top: 1px solid var(--n-line-d) !important;
}
.scm-page .site-footer .foot-wide,
.scm-page .site-footer .foot-grid,
.scm-page .site-footer .foot-grid > div { border-color: var(--n-line-d) !important; }
.scm-page .site-footer h2 { color: var(--n-cyan) !important; }
.scm-page .site-footer a,
.scm-page .site-footer p { color: var(--n-on-2) !important; }
.scm-page .site-footer a:hover { color: #fff !important; }
.scm-page .site-footer .brand-logo--stack { filter: brightness(0) invert(1); }
.scm-page .site-footer .foot-mark { color: transparent !important; background: linear-gradient(180deg, rgba(122, 233, 255, 0.16), rgba(122, 233, 255, 0.02)); -webkit-background-clip: text; background-clip: text; }
.scm-page .site-footer .foot { border-color: var(--n-line-d) !important; color: var(--n-on-3) !important; }

@media (prefers-reduced-motion: reduce) {
  .float, .ewb-bar i, .wall__pane i { animation: none; }
  .chat.is-live .msg { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Cockpit — interactive product window
   ========================================================================== */
.ck {
  border: 1px solid rgba(122, 233, 255, 0.22);
  background: #f3fbfd;
  color: var(--n-text);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.ck__chrome { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #0b8fa8; border-bottom: 1px solid rgba(122, 233, 255, 0.18); font: 500 12px/1 "IBM Plex Mono", monospace; color: rgba(224, 245, 250, 0.55); }
.ck__dots { display: inline-flex; gap: 6px; }
.ck__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.ck__path { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ck__path b { color: #fff; font-weight: 600; }
.ck__pill { padding: 5px 8px; border: 1px solid rgba(251, 191, 36, 0.5); color: #fbbf24; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.ck__body { display: grid; grid-template-columns: 1fr; min-height: 560px; }
@media (min-width: 1000px) { .ck__body { grid-template-columns: 210px 1fr; } }
.ck__side { display: flex; gap: 2px; padding: 10px; background: #0b8fa8; overflow-x: auto; }
@media (min-width: 1000px) { .ck__side { flex-direction: column; padding: 18px 12px; overflow: visible; } }
.ck__side p { display: none; margin: 14px 8px 6px; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(224, 245, 250, 0.4); }
.ck__side p:first-child { margin-top: 0; }
.ck__side > span { display: none; padding: 7px 10px; font-size: 13px; color: rgba(224, 245, 250, 0.38); }
@media (min-width: 1000px) { .ck__side p, .ck__side > span { display: block; } }
.ck__side button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(224, 245, 250, 0.75);
  font: 600 13.5px/1 "Source Sans 3", sans-serif;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ck__side button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ck__side button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ck__side button.is-on { background: rgba(9, 187, 223, 0.16); color: #fff; }
.ck__side button.is-on::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--n-cyan); }
.ck__main { padding: clamp(14px, 2vw, 24px); min-width: 0; }
.ck__main [data-view] { animation: ck-in 0.45s var(--ease) both; }
@keyframes ck-in { from { opacity: 0; transform: translateY(8px); } }
.ck-note { margin: 14px 0 0; font-size: 12.5px; color: var(--n-on-3); }

.ck-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #ddebed; border: 1px solid #ddebed; margin-bottom: 14px; }
@media (min-width: 900px) { .ck-kpis { grid-template-columns: repeat(4, 1fr); } }
.ck-kpis > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; }
.ck-kpis span { font: 600 10px/1.3 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #79a2a8; }
.ck-kpis b { font: 600 clamp(20px, 2vw, 26px)/1.1 "Source Sans 3", sans-serif; color: var(--n-text); font-variant-numeric: tabular-nums; }
.ck-kpis em { font-style: normal; font-size: 12px; color: #79a2a8; }
.ck-kpi--alert { box-shadow: inset 3px 0 0 #e11d48; }
.ck-kpi--ok { box-shadow: inset 3px 0 0 #059669; }
.neg { color: #e11d48 !important; }
.pos { color: #059669 !important; }

.ck-split { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1150px) { .ck-split { grid-template-columns: 1fr 300px; } }
.ck-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #ddebed; }
.ck-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.ck-table th, .ck-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #edf5f6; white-space: nowrap; }
.ck-table thead th { background: #f7fcfe; }
.ck-table thead button { border: 0; background: none; padding: 0; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #79a2a8; cursor: pointer; }
.ck-table thead button.is-sorted { color: #048eaa; }
.ck-table tbody th { font-weight: 600; color: var(--n-text); }
.ck-table tbody th i { font-style: normal; color: #9dbfc4; }
.ck-table tbody th small { display: block; font-weight: 400; font-size: 11.5px; color: #79a2a8; }
.ck-table tbody tr { cursor: pointer; transition: background-color 0.15s ease; }
.ck-table tbody tr:hover { background: #f3fbfd; }
.ck-table tbody tr.is-sel { background: #e8f8fb; box-shadow: inset 3px 0 0 var(--n-cyan); }
.ck-table td { font-variant-numeric: tabular-nums; color: #2f3a3d; }
.ck-empty { display: inline-flex; align-items: center; gap: 6px; }
.ck-empty::before { content: ""; width: 28px; height: 5px; background: linear-gradient(90deg, #f59e0b calc(var(--e) * 100% / 0.6), #dff5f9 0); }
.ck-mbar { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.ck-mbar i { display: block; height: 8px; width: calc(var(--w) * 0.6); min-width: 2px; background: #10b981; }
.ck-mbar.neg i { background: #f43f5e; }
.ck-mbar b { font-weight: 700; }
.ck-spark { width: 96px; height: 26px; display: block; }
.ck-spark line { stroke: #ddebed; stroke-dasharray: 2 2; }
.ck-spark polyline { fill: none; stroke: #10b981; stroke-width: 1.6; }
.ck-spark.neg polyline { stroke: #f43f5e; }

.ck-detail { padding: 16px; background: #fff; border: 1px solid #ddebed; }
.ck-detail__tag { margin: 0 0 6px; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #048eaa; }
.ck-detail h4 { margin: 0; font: 500 22px/1.15 "Newsreader", Georgia, serif; color: var(--n-text); }
.ck-detail__sub { margin: 4px 0 14px; font-size: 12.5px; color: #79a2a8; }
.ck-waterfall { display: grid; gap: 6px; }
.ck-wf { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; color: #43757c; }
.ck-wf i { height: 10px; width: var(--w); background: #cadfe3; }
.ck-wf b { font-variant-numeric: tabular-nums; color: var(--n-text); font-weight: 600; }
.ck-wf--rev i { background: #048eaa; }
.ck-wf--empty i { background: #f59e0b; }
.ck-wf--empty span, .ck-wf--empty b { color: #b45309; }
.ck-wf--net { padding-top: 6px; border-top: 1px solid #edf5f6; }
.ck-wf--net.pos i { background: #10b981; }
.ck-wf--net.neg i { background: #f43f5e; }
.ck-wf--net span { font-weight: 700; color: var(--n-text); }
.ck-insight { margin: 14px 0 0; padding: 12px 14px; background: #effafc; border-left: 3px solid var(--n-cyan); font-size: 13.5px; line-height: 1.5; color: #2f3a3d; }
.ck-insight b { color: var(--n-text); }

.ck-map { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1150px) { .ck-map { grid-template-columns: 1fr 260px; } }
.ck-map__canvas { position: relative; height: clamp(380px, 52vh, 520px); background: #0b8fa8; border: 1px solid #ddebed; overflow: hidden; }
.ck-map__err { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(224, 245, 250, 0.6); }
.ck-map__legend { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: 320px; padding: 10px 12px; background: rgba(11, 143, 168, 0.85); color: #e6f7fb; font-size: 12px; }
.ck-map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck-map__legend i { width: 18px; height: 4px; }
.ck-map__legend i.neg { background: #fb7185; }
.ck-map__legend i.mid { background: #31ddff; }
.ck-map__legend i.pos { background: #34d399; }
.ck-map__legend small { width: 100%; color: rgba(224, 245, 250, 0.55); }
.ck-map__rank { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #ddebed; max-height: 520px; overflow-y: auto; }
.ck-map__rank li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #edf5f6; font-size: 13px; color: #2f3a3d; cursor: default; transition: background-color 0.15s ease; }
.ck-map__rank li b { min-width: 52px; font-variant-numeric: tabular-nums; }
.ck-map__rank li.is-on, .ck-map__rank li:hover { background: #e8f8fb; }

.ck-cash { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1150px) { .ck-cash { grid-template-columns: 1fr 280px; } }
.ck-chart { background: #fff; border: 1px solid #ddebed; padding: 10px; }
.ck-chart svg { display: block; width: 100%; height: auto; }
.ck-chart .g { stroke: #edf5f6; }
.ck-chart .g.z { stroke: #9dbfc4; }
.ck-chart .ax { font: 500 10px "IBM Plex Mono", monospace; fill: #79a2a8; }
.ck-chart rect { transition: y 0.4s ease, height 0.4s ease; }
.ck-chart .cin { fill: #09bbdf; }
.ck-chart .c0, .ck-legend .c0 { fill: #0b8fa8; background: #0b8fa8; }
.ck-chart .c1, .ck-legend .c1 { fill: #09b7da; background: #09b7da; }
.ck-chart .c2, .ck-legend .c2 { fill: #56ddf8; background: #56ddf8; }
.ck-chart .c3, .ck-legend .c3 { fill: #a78bfa; background: #a78bfa; }
.ck-chart .c4, .ck-legend .c4 { fill: #f59e0b; background: #f59e0b; }
.ck-chart .c5, .ck-legend .c5 { fill: #f43f5e; background: #f43f5e; }
.ck-legend .cin { background: #09bbdf; }
.ck-legend .cbal { background: #0b8fa8; height: 3px !important; }
.ck-chart .bal { fill: none; stroke: #0b8fa8; stroke-width: 2.4; stroke-linejoin: round; }
.ck-chart .bal-dot { fill: #0b8fa8; stroke: #fff; stroke-width: 1.5; }
.ck-chart .bal-dot.neg { fill: #e11d48; }
.ck-chart .bal-lab { font: 700 11px "Source Sans 3", sans-serif; fill: #0b8fa8; }
.ck-whatif { padding: 16px; background: #fff; border: 1px solid #ddebed; }
.ck-whatif label { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 10px 0 14px; font-size: 13.5px; color: #2f3a3d; }
.ck-whatif output { font: 700 13.5px "IBM Plex Mono", monospace; color: #048eaa; }
.ck-whatif input { grid-column: 1 / -1; width: 100%; accent-color: #048eaa; }
.ck-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: #43757c; }
.ck-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ck-legend i { display: inline-block; width: 10px; height: 10px; }

.ck-ageing { background: #fff; border: 1px solid #ddebed; padding: 14px 16px; overflow-x: auto; }
.ck-age-head, .ck-age-row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; align-items: center; min-width: 520px; }
.ck-age-head { grid-template-columns: 190px repeat(4, 1fr); font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.08em; color: #79a2a8; padding-bottom: 8px; border-bottom: 1px solid #edf5f6; }
.ck-age-row { padding: 9px 0; border-bottom: 1px solid #edf5f6; }
.ck-age-name { font-size: 13.5px; font-weight: 600; color: var(--n-text); }
.ck-age-name small { display: block; font-weight: 400; font-size: 12px; color: #79a2a8; }
.ck-age-bar { display: flex; height: 16px; background: #eefafc; }
.ck-age-bar i { display: block; width: var(--w); height: 100%; }
.a0 { background: #10b981; } .a1 { background: #f59e0b; } .a2 { background: #f97316; } .a3 { background: #e11d48; }
.ck-age-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; font-size: 12.5px; color: #43757c; }
.ck-age-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ck-age-foot i { width: 10px; height: 10px; }
.ck-ladder { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.ck-ladder li { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf5f6; font-size: 13px; color: #43757c; }
.ck-ladder b { font: 600 11.5px/1.4 "IBM Plex Mono", monospace; color: #048eaa; }

.ck-heat { background: #fff; border: 1px solid #ddebed; padding: 14px 16px; overflow-x: auto; }
.ck-heat__cols, .ck-heat__row { display: grid; grid-template-columns: 116px repeat(12, minmax(22px, 1fr)); gap: 3px; align-items: center; min-width: 480px; }
.ck-heat__cols { font: 600 9.5px/1 "IBM Plex Mono", monospace; color: #79a2a8; margin-bottom: 6px; text-align: center; }
.ck-heat__row { margin-bottom: 3px; }
.ck-heat__row span { font: 500 11px/1 "IBM Plex Mono", monospace; color: #43757c; white-space: nowrap; }
.ck-heat__row i { height: 18px; background: color-mix(in srgb, #048eaa calc(var(--u) * 100%), #fde8ec); transition: transform 0.15s ease; }
.ck-heat__row i:hover { transform: scale(1.25); position: relative; z-index: 1; }
.ck-heat__scale { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: #79a2a8; }
.ck-heat__scale i { width: 140px; height: 8px; background: linear-gradient(90deg, #fde8ec, #048eaa); }
.ck-bars { display: grid; gap: 10px; margin-top: 10px; }
.ck-bars div { display: grid; grid-template-columns: 112px 1fr 40px; gap: 8px; align-items: center; font-size: 12.5px; color: #43757c; }
.ck-bars i { height: 10px; width: var(--w); background: #048eaa; }
.ck-bars i.neg { background: #f59e0b; }
.ck-bars b { font-variant-numeric: tabular-nums; color: var(--n-text); }
