/* The price list and the corporation's day: the price in three steps, the installation, the subscription, the receipt, the day
   of a dispatch room and where the saving comes from. Motion uses transform and opacity, and the stroke of drawn lines. Entrances
   wait for .is-seen and loops for .is-live, both set by the page's own script (which also sets .cn-js on the root), so without
   the script, with motion paused or with reduced motion every scene shows its finished, still picture. */

:root {
    --cn-people: #3a86c8;
    --cn-people-2: #74b3e8;
    --cn-lost: #e5485b;
    --cn-lost-2: #ff8a97;
    --cn-night: #1d2450;
    --cn-night-2: #2b3474;
    --cn-dawn: #f6c39a;
    --cn-dusk: #efa98c;
    --cn-day: #e6f2fc;
    --cn-day-2: #f5faff;
    --cn-wage: #8a92a3;
    --cn-wage-2: #b3b9c6;
    --cn-map-ground: #e7f0ea;
    --cn-map-water: #b9dbf2;
    --cn-paper: #fffdf7;
    --cn-glow: 0 18px 40px -20px rgba(26, 179, 148, .55);
    --cn-ease-out: cubic-bezier(.2, .8, .2, 1);
    --cn-ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

[data-theme="dark"] {
    --cn-people: #4a97da;
    --cn-people-2: #7dbbee;
    --cn-lost: #f0626f;
    --cn-lost-2: #ff9aa4;
    --cn-night: #10142c;
    --cn-night-2: #1b2150;
    --cn-dawn: #5d4660;
    --cn-dusk: #57405f;
    --cn-day: #1d2835;
    --cn-day-2: #243142;
    --cn-wage: #6c7486;
    --cn-wage-2: #8d95a6;
    --cn-map-ground: #1b2522;
    --cn-map-water: #1f4462;
    --cn-paper: #e9e4d8;
    --cn-glow: 0 18px 40px -20px rgba(26, 179, 148, .45);
}

.cn-section { overflow-x: clip; }

/* ---------- A. Heading ---------- */
.cn-hero { isolation: isolate; }
.cn-hero::before, .cn-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cn-hero::before { width: 420px; height: 420px; left: 50%; top: -230px; margin-left: -540px; background: rgba(35, 198, 200, .22); }
.cn-hero::after { width: 380px; height: 380px; left: 50%; top: -170px; margin-left: 170px; background: rgba(123, 112, 239, .18); }
.cn-hero .lead { max-width: 62ch; }

/* ---------- B. The price in three steps ---------- */
.cn-steps { padding-top: clamp(26px, 4vw, 52px); }
.cn-steps-title { margin: 0 auto clamp(26px, 4vw, 44px); text-align: center; }
.cn-stops { position: relative; }
.cn-stops-list { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cn-stop { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; align-content: start; gap: 14px; }
.cn-stop:not(:last-child)::after { content: ""; position: absolute; left: 24.5px; top: 60px; bottom: -14px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--c-cyan), var(--c-blue)); transform-origin: center top; }
.cn-stop-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #ffffff; background: linear-gradient(140deg, var(--c-primary), var(--c-cyan)); box-shadow: 0 0 0 6px var(--bg), 0 12px 26px -12px rgba(26, 179, 148, .8); }
.cn-stop:nth-child(2) .cn-stop-dot { background: linear-gradient(140deg, var(--c-cyan), var(--c-blue)); }
.cn-stop:nth-child(3) .cn-stop-dot { background: linear-gradient(140deg, var(--c-blue), var(--c-purple)); }
.cn-stop-dot .icon { width: 22px; height: 22px; }
.cn-stop-card { display: grid; gap: 3px; min-width: 0; padding: 18px 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.cn-stop.is-main .cn-stop-card { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c-primary), var(--c-cyan) 55%, var(--c-blue)) border-box; box-shadow: var(--cn-glow), var(--shadow-md); }
.cn-stop-label { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cn-stop-amount { font-size: clamp(2.1rem, 1.7rem + 1.6vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--heading); font-variant-numeric: tabular-nums; }
.cn-stop.is-main .cn-stop-amount { color: var(--accent); }
.cn-stop-note { font-size: .9rem; color: var(--muted); }
.cn-stop-title { margin-top: 10px; font-size: 1.14rem; }
.cn-stop-text { font-size: .95rem; color: var(--text); }
.cn-stop-link { justify-self: start; margin-top: 8px; }
.cn-promo { position: relative; overflow: hidden; justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(248, 172, 89, .2); color: var(--warning-text); font-size: .86rem; font-weight: 700; }
.cn-promo .icon { width: 1em; height: 1em; }
.cn-stop-badges { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.cn-stop-badges .cn-promo { margin-top: 0; }
.cn-term { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: .86rem; font-weight: 700; }
.cn-term .icon { width: 1em; height: 1em; }
.cn-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
[data-theme="dark"] .cn-promo::after { background: linear-gradient(105deg, transparent 30%, rgba(248, 172, 89, .22) 50%, transparent 70%); }
.cn-stops.is-live .cn-promo::after { animation: cn-shine 4s ease-in-out 1.4s infinite; }
.cn-stops-line { display: none; }

@media (min-width: 900px) {
    .cn-stops-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .cn-stop { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; align-content: stretch; justify-items: center; gap: 16px; text-align: center; }
    .cn-stop-dot { align-self: center; }
    .cn-stop-card { align-content: start; }
    .cn-stop:not(:last-child)::after { display: none; }
    .cn-stop-dot { width: 64px; height: 64px; }
    .cn-stop-dot .icon { width: 26px; height: 26px; }
    .cn-stop-card { width: 100%; justify-items: center; padding: 22px 22px 24px; }
    .cn-stop-link, .cn-promo { justify-self: center; }
    .cn-stop-badges { justify-content: center; }
    .cn-stops-line { position: absolute; z-index: 0; display: block; left: calc(100% / 6); right: calc(100% / 6); top: 31px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan), var(--c-blue), var(--c-purple)); transform-origin: left center; }
    .cn-stops-spark { position: absolute; inset: 0; }
    .cn-stops-spark::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 4px rgba(35, 198, 200, .35), 0 0 16px 6px rgba(35, 198, 200, .55); opacity: 0; }
    .cn-stops.is-live .cn-stops-spark { animation: cn-travel 6s cubic-bezier(.45, 0, .2, 1) 1.6s infinite; }
    .cn-stops.is-live .cn-stops-spark::before { animation: cn-spark 6s ease 1.6s infinite; }
}

.cn-js .cn-stops .cn-stop { transition: opacity .6s ease calc(.2s + var(--d) * .14s), transform .75s var(--cn-ease-pop) calc(.2s + var(--d) * .14s); }
.cn-js .cn-stops .cn-stop-dot { transition: transform .6s var(--cn-ease-pop) calc(.1s + var(--d) * .14s); }
.cn-js .cn-stops .cn-stop::after { transition: transform .7s var(--cn-ease-out) calc(.5s + var(--d) * .14s); }
.cn-js .cn-stops .cn-stops-line { transition: transform 1.1s var(--cn-ease-out) .1s; }
.cn-js .cn-stops:not(.is-seen) .cn-stop { opacity: 0; transform: translateY(18px) scale(.97); }
.cn-js .cn-stops:not(.is-seen) .cn-stop-dot { transform: scale(0); }
.cn-js .cn-stops:not(.is-seen) .cn-stop::after { transform: scaleY(0); }
.cn-js .cn-stops:not(.is-seen) .cn-stops-line { transform: scaleX(0); }

.cn-compare { display: grid; gap: 14px; max-width: 880px; margin: clamp(30px, 4vw, 48px) auto 0; padding: clamp(18px, 2.6vw, 28px); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.cn-compare-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cn-compare-rows { display: grid; gap: 16px; }
.cn-compare-row { display: grid; gap: 6px; }
.cn-compare-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.cn-compare-label strong { color: var(--heading); }
.cn-compare-label span { font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.cn-compare-track { position: relative; height: 32px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.cn-compare-bar { position: absolute; left: 0; top: 0; bottom: 0; display: block; width: calc(var(--w) * 100%); border-radius: 9px; transform-origin: left center; }
.cn-compare-bar.is-wage { background: linear-gradient(90deg, var(--cn-wage), var(--cn-wage-2)); }
.cn-compare-bar.is-package { background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); box-shadow: 0 6px 16px -6px rgba(26, 179, 148, .7); }
.cn-compare-month { position: absolute; top: 4px; bottom: 4px; left: calc(var(--x) * 100% + 3px); display: grid; place-items: center; width: calc(var(--w) * 100% - 6px); overflow: hidden; border-radius: 6px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); color: #06201b; font-size: .74rem; font-weight: 700; white-space: nowrap; transform-origin: left center; }
.cn-compare-note { font-size: .8rem; color: var(--muted); }
.cn-compare-conclusion { padding-top: 12px; border-top: 1px solid var(--border); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); font-weight: 600; color: var(--heading); }
.cn-compare-conclusion strong { display: block; margin-top: 4px; color: var(--accent-strong, var(--accent)); }
.cn-js .cn-compare .cn-compare-bar { transition: transform 1.1s var(--cn-ease-out) .25s; }
.cn-js .cn-compare .cn-compare-bar.is-package { transition-delay: .65s; }
.cn-js .cn-compare .cn-compare-month { transition: opacity .4s ease calc(.6s + var(--m) * .28s), transform .6s var(--cn-ease-pop) calc(.6s + var(--m) * .28s); }
.cn-js .cn-compare:not(.is-seen) .cn-compare-bar { transform: scaleX(0); }
.cn-js .cn-compare:not(.is-seen) .cn-compare-month { opacity: 0; transform: scaleX(.2); }

/* ---------- C. Installation: all five steps at once, each scene moving while it is in view ---------- */
.cn-inst-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) and (max-width: 1099px) {
    .cn-inst-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cn-inst-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .cn-inst-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
    .cn-inst-card { grid-column: span 2; }
    .cn-inst-card:nth-child(n + 4) { grid-column: span 3; }
}
.cn-inst-card { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; padding: 12px 12px 20px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.cn-inst-card:hover { box-shadow: var(--shadow-md); }
.cn-inst-card.is-live { border-color: color-mix(in srgb, var(--c-primary) 30%, var(--border)); }
.cn-inst-card .cn-scene { height: auto; min-height: clamp(214px, 19vw, 246px); padding: 14px 10px; }
.cn-js .cn-inst-card { transition: opacity .6s ease calc(var(--d) * .08s), transform .7s var(--cn-ease-out) calc(var(--d) * .08s), box-shadow .3s ease, border-color .4s ease; }
.cn-js .cn-inst-card:not(.is-seen) { opacity: 0; transform: translateY(16px); }
.cn-inst-text { display: grid; align-content: start; gap: 6px; padding: 0 8px; }
.cn-inst-step { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.cn-inst-step span { font-size: 1.05rem; color: var(--accent-strong, var(--accent)); }
.cn-inst-text h3 { font-size: clamp(1.08rem, 1rem + .3vw, 1.24rem); }
.cn-inst-text p { font-size: .95rem; color: var(--text); }
.cn-inst-note { display: flex; align-items: flex-start; gap: 10px; max-width: 900px; margin: clamp(22px, 3vw, 34px) auto 0; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); font-weight: 600; line-height: 1.5; color: var(--heading); }
.cn-inst-note .icon { flex: none; margin-top: 3px; color: var(--accent); }

.cn-scene { position: relative; display: grid; place-items: center; height: clamp(214px, 24vw, 262px); overflow: hidden; border-radius: 16px; background: radial-gradient(110% 90% at 15% 0%, rgba(35, 198, 200, .16), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(123, 112, 239, .14), transparent 60%), var(--surface-2); }
.cn-scene::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.6px); background-size: 18px 18px; pointer-events: none; }
.cn-scene > * { position: relative; z-index: 1; }

.cn-sc-company { display: grid; gap: 12px; width: min(310px, 88%); padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.cn-sc-company-head { display: flex; align-items: center; gap: 10px; color: var(--heading); }
.cn-sc-badge-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.cn-sc-settings { display: grid; gap: 9px; }
.cn-sc-settings li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.cn-sc-tick { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg); color: var(--on-accent); }
.cn-sc-tick .icon { width: 13px; height: 13px; }
.cn-sc-meter { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.cn-sc-meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); transform-origin: left center; }
.cn-inst-card.is-live .cn-sc-settings .cn-sc-tick { animation: cn-pop .55s var(--cn-ease-pop) both; animation-delay: calc(.35s + var(--d) * .5s); }
.cn-inst-card.is-live .cn-sc-meter i { animation: cn-grow-x 2.3s cubic-bezier(.45, 0, .2, 1) .3s both; }

.cn-sc-data { display: grid; grid-template-columns: 84px 34px minmax(0, 1fr); align-items: center; width: min(460px, 94%); }
.cn-sc-db { display: grid; justify-items: center; gap: 6px; font-size: .76rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--muted); }
.cn-sc-db-icon { width: 62px; height: 62px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); color: var(--c-blue); }
.cn-sc-flow { width: 100%; height: 120px; overflow: visible; }
.cn-sc-flow path { fill: none; stroke: var(--c-cyan); stroke-width: 2; stroke-dasharray: .06 .05; vector-effect: non-scaling-stroke; opacity: .85; }
.cn-inst-card.is-live .cn-sc-flow path { animation: cn-dash 1.6s linear infinite; }
.cn-sc-merge { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.cn-sc-addr { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); font-weight: 600; color: var(--heading); }
.cn-sc-addr.is-a, .cn-sc-addr.is-b { font-size: .84rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger); box-shadow: var(--shadow-sm); }
.cn-sc-merge-arrow { display: grid; place-items: center; margin-left: 18px; color: var(--muted); transform: rotate(90deg); }
.cn-sc-addr.is-merged { padding: 10px 16px; border: 2px solid var(--c-primary); font-size: 1.04rem; box-shadow: var(--cn-glow); }
.cn-sc-ride { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: .78rem; font-weight: 700; }
.cn-sc-ride .icon { flex: none; width: 14px; height: 14px; }
.cn-inst-card.is-live .cn-sc-addr.is-a { animation: cn-merge-a 3.2s var(--cn-ease-out) .2s both; }
.cn-inst-card.is-live .cn-sc-addr.is-b { animation: cn-merge-b 3.2s var(--cn-ease-out) .2s both; }
.cn-inst-card.is-live .cn-sc-merge-arrow { animation: cn-fade-in .4s ease 1.7s both; }
.cn-inst-card.is-live .cn-sc-addr.is-merged { animation: cn-pop .6s var(--cn-ease-pop) 1.9s both; }
.cn-inst-card.is-live .cn-sc-ride { animation: cn-pop .5s var(--cn-ease-pop) 2.5s both; }

.cn-scene > .cn-sc-map { position: absolute; inset: 0; }
.cn-sc-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cn-map-ground { fill: var(--cn-map-ground); }
.cn-map-river { fill: none; stroke: var(--cn-map-water); stroke-width: 16; stroke-linecap: round; }
.cn-map-blocks rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; opacity: .92; }
.cn-map-zone { fill: rgba(26, 179, 148, .1); stroke: var(--c-primary); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cn-inst-card.is-live .cn-map-zone { animation: cn-draw-zone 2.4s cubic-bezier(.45, 0, .2, 1) 1.3s both; }
.cn-sc-pin { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-md); font-size: .8rem; font-weight: 700; color: var(--heading); white-space: nowrap; }
.cn-sc-pin::after { content: ""; position: absolute; z-index: -1; left: 14px; bottom: -5px; width: 10px; height: 10px; border-radius: 2px; background: var(--surface); transform: rotate(45deg); }
.cn-sc-pin .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--c-amber); color: #ffffff; }
.cn-sc-pin.is-0 { left: 7%; top: 20%; }
.cn-sc-pin.is-1 { left: 36%; top: 52%; background: var(--surface); }
.cn-sc-pin.is-1 .icon { background: var(--c-blue); }
.cn-sc-pin.is-2 { left: 62%; top: 12%; }
.cn-sc-pin.is-2 .icon { background: var(--c-purple); }
.cn-sc-zone-label { position: absolute; z-index: 2; left: 7%; bottom: 9%; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--accent); font-size: .76rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.cn-inst-card.is-live .cn-sc-pin { animation: cn-drop .7s var(--cn-ease-pop) both; animation-delay: calc(.3s + var(--d) * .38s); }
.cn-inst-card.is-live .cn-sc-zone-label { animation: cn-fade-in .5s ease 3.2s both; }

.cn-sc-line { display: grid; grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; align-items: center; row-gap: 18px; width: min(540px, 96%); }
.cn-sc-node { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); font-size: .8rem; font-weight: 700; line-height: 1.25; text-align: center; color: var(--heading); }
.cn-sc-node .icon { width: 26px; height: 26px; }
.cn-sc-node.is-exchange .icon { color: var(--c-blue); }
.cn-sc-node.is-system .icon { color: var(--c-purple); }
.cn-sc-node.is-dyzio { padding: 14px 16px; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c-primary), var(--c-cyan)) border-box; box-shadow: var(--cn-glow); }
.cn-sc-logo { width: 34px; height: 34px; }
.cn-sc-cable { position: relative; height: 4px; border-radius: 2px; background: var(--surface-3); }
.cn-sc-cable-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, var(--c-blue), var(--c-primary)); transform-origin: left center; }
.cn-sc-cable.is-system .cn-sc-cable-fill { background: linear-gradient(90deg, var(--c-primary), var(--c-purple)); transform-origin: right center; }
.cn-sc-pulse { position: absolute; inset: -6px; border-radius: 20px; border: 2px solid var(--c-primary); opacity: 0; pointer-events: none; }
.cn-sc-same { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: .9rem; font-weight: 700; text-align: center; }
.cn-sc-same .icon { flex: none; }
.cn-inst-card.is-live .cn-sc-cable-fill { animation: cn-grow-x .9s cubic-bezier(.45, 0, .2, 1) .3s both; }
.cn-inst-card.is-live .cn-sc-cable.is-system .cn-sc-cable-fill { animation-delay: .7s; }
.cn-inst-card.is-live .cn-sc-pulse { animation: cn-pulse 1.8s ease-out 1.5s infinite; }
.cn-inst-card.is-live .cn-sc-same { animation: cn-pop .6s var(--cn-ease-pop) 1.7s both; }

.cn-sc-review { display: grid; gap: 8px; width: min(400px, 92%); }
.cn-sc-live { display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 999px; background: var(--danger-soft); color: var(--heading); font-size: .74rem; font-weight: 700; }
.cn-sc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); }
.cn-sc-bubble { display: flex; align-items: center; gap: 8px; max-width: 94%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); font-size: .88rem; line-height: 1.35; color: var(--heading); }
.cn-sc-bubble.is-caller { justify-self: start; border-bottom-left-radius: 4px; }
.cn-sc-bubble.is-caller .icon { color: var(--muted); }
.cn-sc-bubble.is-dyzio { justify-self: end; border-color: transparent; border-bottom-right-radius: 4px; background: var(--accent-soft); }
.cn-sc-bubble .icon { flex: none; width: 18px; height: 18px; }
.cn-sc-voice { display: flex; flex: none; align-items: center; gap: 3px; height: 16px; }
.cn-sc-voice i { width: 3px; height: 100%; border-radius: 2px; background: var(--c-primary); transform: scaleY(.45); }
.cn-sc-voice i:nth-child(2n) { transform: scaleY(.8); }
.cn-sc-voice i:nth-child(3n) { transform: scaleY(1); }
.cn-sc-reviewed { display: inline-flex; justify-self: center; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-md); font-size: .84rem; font-weight: 700; color: var(--heading); }
.cn-inst-card.is-live .cn-sc-live i { animation: cn-blink 1.4s ease-in-out infinite; }
.cn-inst-card.is-live .cn-sc-bubble.is-caller { animation: cn-pop .55s var(--cn-ease-pop) .3s both; }
.cn-inst-card.is-live .cn-sc-bubble.is-dyzio { animation: cn-pop .55s var(--cn-ease-pop) 1.1s both; }
.cn-inst-card.is-live .cn-sc-voice i { animation: cn-voice 1s ease-in-out infinite; animation-delay: calc(1.2s - var(--b) * .13s); }
.cn-inst-card.is-live .cn-sc-reviewed { animation: cn-pop .6s var(--cn-ease-pop) 2.1s both; }

/* ---------- D. Subscription ---------- */
.cn-sub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 620px) { .cn-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cn-sub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.cn-sub-tile { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 12px 12px 20px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease; }
.cn-sub-tile:hover { box-shadow: var(--shadow-md); }
.cn-sub-tile h3 { margin: 8px 6px 0; font-size: 1.06rem; }
.cn-sub-tile p { margin: 0 6px; font-size: .93rem; color: var(--text); }
.cn-sub-tile.is-included { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c-primary), var(--c-cyan) 55%, var(--c-blue)) border-box; box-shadow: var(--cn-glow); }
.cn-sub-stage { position: relative; display: grid; place-items: center; height: 136px; overflow: hidden; border-radius: 16px; background: radial-gradient(90% 90% at 20% 0%, rgba(35, 198, 200, .14), transparent 60%), var(--surface-2); }

.cn-dial { width: 116px; height: 116px; overflow: visible; }
.cn-dial-face { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.cn-dial-day { fill: none; stroke: #f6c76b; stroke-width: 9; stroke-linecap: round; }
.cn-dial-night { fill: none; stroke: #3f4596; stroke-width: 9; stroke-linecap: round; }
[data-theme="dark"] .cn-dial-day { stroke: #c99a3c; }
[data-theme="dark"] .cn-dial-night { stroke: #6c73d8; }
.cn-dial-tick { fill: var(--muted); }
.cn-dial-badge { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.cn-dial-moon { color: #4b51a8; }
.cn-dial-sun { color: #d98a1c; }
[data-theme="dark"] .cn-dial-moon { color: #c8cbff; }
[data-theme="dark"] .cn-dial-sun { color: #f2b34c; }
.cn-dial-hand { transform-origin: 60px 60px; transform: rotate(150deg); }
.cn-dial-hand path { stroke: var(--heading); stroke-width: 3; stroke-linecap: round; }
.cn-dial-hand circle { fill: var(--c-primary); stroke: var(--surface); stroke-width: 2; }
.cn-sub-tile.is-live .cn-dial-hand { animation: cn-dial 10s linear infinite; }
.cn-dial-label { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: .74rem; font-weight: 700; }

.cn-sub-stage.is-lines { align-content: center; justify-items: stretch; gap: 12px; padding: 0 16px; }
.cn-line { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 10px; }
.cn-line-caller { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.cn-line-caller .icon { width: 15px; height: 15px; }
.cn-line-wave { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.cn-line-wave i { width: 4px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--c-cyan), var(--c-primary)); transform: scaleY(.35); }
.cn-line-wave i:nth-child(3n+2) { transform: scaleY(.7); }
.cn-line-wave i:nth-child(4n+1) { transform: scaleY(.95); }
.cn-line-wave i:nth-child(5n) { transform: scaleY(.5); }
.cn-line-dyzio .icon { width: 26px; height: 26px; }
.cn-sub-tile.is-live .cn-line-wave i { animation: cn-voice 1.1s ease-in-out infinite; animation-delay: calc(var(--b) * -.11s + var(--l) * -.37s); }

.cn-sub-stage.is-care { padding: 0 14px; }
.cn-pulse { width: 100%; height: 64px; overflow: visible; }
.cn-pulse path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cn-pulse-base { stroke: var(--border-strong); stroke-width: 2.5; }
.cn-pulse-run { stroke: var(--c-primary); stroke-width: 3.5; stroke-dasharray: .4 .6; stroke-dashoffset: -.24; filter: drop-shadow(0 0 4px rgba(26, 179, 148, .6)); }
.cn-sub-tile.is-live .cn-pulse-run { animation: cn-run 2.6s linear infinite; }
.cn-care-badge { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.cn-sub-tile.is-live .cn-care-badge { animation: cn-breathe 2.6s ease-in-out infinite; }

.cn-ring { width: 118px; height: 118px; transform: rotate(-90deg); }
.cn-ring-track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.cn-ring-fill { fill: none; stroke: var(--c-primary); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cn-js .cn-sub-tile.is-included .cn-ring-fill { transition: stroke-dashoffset 1.8s var(--cn-ease-out) .3s; }
.cn-js .cn-sub-tile.is-included:not(.is-seen) .cn-ring-fill { stroke-dashoffset: 1; }
.cn-ring-value { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1.1; text-align: center; }
.cn-ring-value strong { font-size: 1.5rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.cn-ring-value small { font-size: .74rem; font-weight: 600; color: var(--muted); }

/* ---------- E. The receipt ---------- */
.cn-rcpt-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 52px); }
@media (min-width: 960px) { .cn-rcpt-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.cn-rcpt-controls { display: grid; gap: 14px; min-width: 0; }
.cn-rcpt-calc { display: grid; gap: 10px; padding: clamp(18px, 2.4vw, 26px); border-radius: 20px; border: 1px solid var(--border); background: var(--surface-2); }
.cn-rcpt-label { font-weight: 600; color: var(--muted); }
.cn-rcpt-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cn-rcpt-input { width: 7ch; min-width: 0; margin: 0; padding: 0 2px 2px; border: 0; border-bottom: 2px dashed var(--border-strong); border-radius: 0; background: transparent; color: var(--heading); font: inherit; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cn-rcpt-input:hover { border-bottom-color: var(--accent); }
.cn-rcpt-input:focus { border-bottom-color: var(--accent); outline: none; }
.cn-rcpt-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.cn-rcpt-input.is-invalid { border-bottom-color: var(--danger); color: var(--danger); }
.cn-rcpt-value > span { font-weight: 600; color: var(--muted); }
.cn-rcpt-value > .cn-rcpt-error { flex-basis: 100%; font-size: .86rem; color: var(--danger); }
.cn-rcpt-sum { display: none; font-weight: 600; color: var(--heading); }
.cn-rcpt-sum strong { font-size: 1.2rem; color: var(--accent-strong, var(--accent)); font-variant-numeric: tabular-nums; }
@media (max-width: 959px) { .cn-rcpt-sum { display: block; } }
.cn-rcpt-range { position: relative; padding: 8px 0 26px; }
.cn-rcpt-slider { display: block; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cn-rcpt-slider::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--c-primary), var(--c-blue)) 0 0 / var(--p) 100% no-repeat, linear-gradient(90deg, color-mix(in srgb, var(--c-primary) 24%, var(--surface-3)) var(--k), var(--surface-3) var(--k)); }
.cn-rcpt-slider::-moz-range-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c-primary) 24%, var(--surface-3)) var(--k), var(--surface-3) var(--k)); }
.cn-rcpt-slider::-moz-range-progress { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--c-primary), var(--c-blue)); }
.cn-rcpt-slider::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -9px; border: 4px solid var(--c-primary); border-radius: 50%; background: var(--surface); box-shadow: 0 6px 16px -4px rgba(16, 127, 105, .55); -webkit-appearance: none; appearance: none; transition: transform .15s ease; }
.cn-rcpt-slider::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid var(--c-primary); border-radius: 50%; background: var(--surface); box-shadow: 0 6px 16px -4px rgba(16, 127, 105, .55); }
.cn-rcpt-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.cn-rcpt-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.cn-rcpt-mark { position: absolute; left: var(--k); top: 44px; transform: translateX(-50%); font-size: .74rem; font-weight: 700; white-space: nowrap; color: var(--accent-strong, var(--accent)); }
.cn-rcpt-mark::before { content: ""; position: absolute; left: 50%; top: -8px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.cn-rcpt-hint { margin-top: -4px; }
.cn-rcpt-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-rcpt-presets .chip:hover, .cn-rcpt-presets .chip.is-active { color: var(--accent-strong, var(--accent)); }
.cn-rcpt-question { font-size: .95rem; color: var(--muted); }
.cn-rcpt-question a { font-weight: 600; }

.cn-rcpt-paper-wrap { position: relative; display: grid; justify-items: center; padding: 8px 0; filter: drop-shadow(0 26px 30px rgba(25, 31, 45, .22)) drop-shadow(0 2px 3px rgba(25, 31, 45, .08)); }
[data-theme="dark"] .cn-rcpt-paper-wrap { filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); }
.cn-rcpt-paper { --z: 9px; position: relative; width: min(400px, 100%); padding: calc(24px + var(--z)) 24px calc(26px + var(--z)); background: var(--cn-paper); color: #2a2f3a; font-variant-numeric: tabular-nums; transform: rotate(-1.4deg);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--z)) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--z)) 51% repeat-x;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(2 * var(--z)) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(2 * var(--z)) 51% repeat-x; }
.cn-rcpt-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; padding-bottom: 16px; border-bottom: 2px dashed rgba(42, 47, 58, .22); }
.cn-rcpt-logo { grid-row: span 2; width: 40px; height: 40px; }
.cn-rcpt-head p { display: grid; line-height: 1.25; }
.cn-rcpt-head strong { font-size: 1.12rem; color: #151a24; }
.cn-rcpt-head span { font-size: .86rem; color: #4f5766; }
.cn-rcpt-head small { grid-column: 2; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5a6270; }
.cn-rcpt-rows { display: grid; gap: 11px; margin: 18px 0 0; }
.cn-rcpt-row, .cn-rcpt-total { display: flex; align-items: baseline; gap: 10px; }
.cn-rcpt-row dt { display: flex; flex: 1 1 auto; align-items: baseline; gap: 8px; min-width: 0; color: #2a2f3a; }
.cn-rcpt-row dt::after { content: ""; flex: 1 1 24px; min-width: 14px; border-bottom: 2px dotted rgba(42, 47, 58, .3); transform: translateY(-4px); }
.cn-rcpt-row dd, .cn-rcpt-total dd { margin: 0; font-weight: 700; white-space: nowrap; color: #151a24; }
.cn-rcpt-total { flex-wrap: wrap; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 2px solid #2a2f3a; }
.cn-rcpt-total dt { font-weight: 700; color: #151a24; }
.cn-rcpt-total dd { font-size: clamp(1.75rem, 1.45rem + 1vw, 2.2rem); letter-spacing: -.02em; color: #0c6b57; }
.cn-rcpt-row.is-small { font-size: .88rem; }
.cn-rcpt-row.is-small dt, .cn-rcpt-row.is-small dd { color: #474e5c; }
.cn-rcpt-foot { margin-top: 18px; font-size: .78rem; text-align: center; color: #5a6270; }
@media (max-width: 479px) {
    .cn-rcpt-paper { padding-left: 16px; padding-right: 16px; font-size: .9rem; transform: rotate(-.8deg); }
    .cn-rcpt-row dt::after { min-width: 8px; }
}
.cn-rcpt-paper.is-printing .cn-rcpt-row, .cn-rcpt-paper.is-printing .cn-rcpt-total { animation: cn-print .5s var(--cn-ease-out) both; animation-delay: calc(var(--r) * 70ms); }
.cn-js .cn-rcpt-row.is-extra:not([hidden]) { animation: cn-print .45s var(--cn-ease-out) both; }

/* ---------- F. The corporation's day ---------- */
.cd-board { display: grid; gap: 18px; }
.cd-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cd-size, .cd-plan { position: relative; display: grid; cursor: pointer; }
.cd-size input, .cd-plan input { position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; margin: 0; opacity: 0; pointer-events: none; }
.cd-size-card { display: grid; align-content: start; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .25s ease, transform .3s var(--cn-ease-out); }
.cd-size:hover .cd-size-card, .cd-plan:hover .cd-plan-card { border-color: var(--accent); }
.cd-size-dots { display: flex; gap: 4px; margin-bottom: 6px; }
.cd-size-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: background .25s ease; }
.cd-size-card strong { font-size: 1.06rem; color: var(--heading); }
.cd-size-card small { font-size: .82rem; line-height: 1.4; color: var(--muted); }
.cd-size input:checked + .cd-size-card, .cd-plan input:checked + .cd-plan-card { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--c-primary), var(--c-cyan)) border-box; box-shadow: var(--cn-glow); transform: translateY(-2px); }
.cd-size input:checked + .cd-size-card .cd-size-dots i { background: var(--c-primary); }
.cd-size input:focus-visible + .cd-size-card, .cd-plan input:focus-visible + .cd-plan-card { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 599px) {
    .cd-sizes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .cd-size-card { grid-template-columns: 37px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 10px 14px; }
    .cd-size-dots { grid-row: span 2; margin: 0; }
    .cd-size input:checked + .cd-size-card { transform: none; }
}

.cd-axis-card { display: grid; gap: 12px; min-width: 0; padding: clamp(14px, 2.2vw, 24px); border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.cd-axis-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cd-axis-heading { display: grid; gap: 2px; min-width: 0; }
.cd-axis-title { font-weight: 700; color: var(--heading); }
.cd-axis-caption { font-size: .88rem; font-weight: 600; line-height: 1.4; color: var(--accent-strong, var(--accent)); }
.cd[data-cd-plan="today"] .cd-axis-caption { color: var(--danger); }
.cd[data-cd-plan="custom"] .cd-axis-caption { color: var(--heading); }
.cd-badge { padding: 4px 10px; border-radius: 999px; background: rgba(248, 172, 89, .2); color: var(--warning-text); font-size: .78rem; font-weight: 700; }
/* The band above the day holds the bubble of the busiest hour; on narrow screens that bubble takes two lines. */
.cd-axis { --plot: clamp(140px, 20vw, 220px); --band: 40px; position: relative; padding-top: var(--band); }
.cd-sky { position: absolute; left: 0; right: 0; top: var(--band); height: var(--plot); overflow: hidden; border-radius: 14px; background: linear-gradient(90deg, var(--cn-night) 0%, var(--cn-night-2) calc(var(--nt) - 4%), var(--cn-dawn) var(--nt), var(--cn-day) calc(var(--nt) + 5%), var(--cn-day-2) 50%, var(--cn-day) calc(var(--nf) - 5%), var(--cn-dusk) var(--nf), var(--cn-night-2) calc(var(--nf) + 3%), var(--cn-night) 100%); }
.cd-sky-moon { position: absolute; left: calc(var(--nt) / 2); top: 10px; width: 22px; height: 22px; margin-left: -11px; color: #f7e6a8; }
.cd-sky-sun { position: absolute; left: calc(var(--nt) + 2%); top: 10px; width: 22px; height: 22px; color: #f0a12b; }
.cd-sky-label { position: absolute; top: 13px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cd-sky-label.is-night-left { left: calc(var(--nt) / 2 + 15px); color: rgba(255, 255, 255, .82); }
.cd-sky-label.is-day { left: calc(var(--nt) + 2% + 28px); color: var(--muted); }
.cd-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffffff; opacity: .65; }
.cd-star:nth-of-type(1) { left: 3%; top: 36%; }
.cd-star:nth-of-type(2) { left: 8%; top: 22%; }
.cd-star:nth-of-type(3) { left: 14%; top: 40%; }
.cd-star:nth-of-type(4) { left: 19%; top: 26%; }
.cd-star:nth-of-type(5) { left: 22%; top: 44%; }
.cd-star:nth-of-type(6) { left: 94%; top: 24%; }
.cd-star:nth-of-type(7) { left: 97.5%; top: 38%; }
.cd.is-live .cd-star { animation: cd-twinkle 3s ease-in-out infinite; animation-delay: calc(var(--s) * -.45s); }
.cd-peak { --peak-max: min(52rem, 100%); position: absolute; z-index: 3; top: 0; left: clamp(calc(var(--peak-max) / 2), calc(var(--x) * 100%), calc(100% - var(--peak-max) / 2)); width: max-content; max-width: var(--peak-max); padding: 6px 11px; border-radius: 10px; background: var(--heading); color: var(--surface); font-size: .78rem; font-weight: 700; line-height: 1.3; text-align: center; box-shadow: var(--shadow-md); transform: translateX(-50%); transition: opacity .4s ease 1s, transform .6s var(--cn-ease-pop) 1s; }
.cd-peak::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.cn-js .cd-axis-card:not(.is-seen) .cd-peak { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); }
.cd-peak.is-bump { animation: cd-peak-bump .5s var(--cn-ease-pop); }
@media (max-width: 1099px) { .cd-axis { --band: 56px; } }
.cd-peak, .cd-quiet { pointer-events: none; }
/* The quiet hour is named below the day, pointing up at its column, so it never covers the columns or the chosen hours. */
.cd-quiet { position: relative; z-index: 3; width: fit-content; max-width: 15rem; margin: 12px 0 0 calc(var(--x) * 100% - 14px); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font-size: .78rem; font-weight: 700; line-height: 1.35; box-shadow: var(--shadow-md); transform-origin: 14px 0; transition: opacity .4s ease 1.3s, transform .6s var(--cn-ease-pop) 1.3s, border-color .3s ease; }
.cd-quiet.is-right { margin-left: auto; margin-right: calc((1 - var(--x)) * 100% - 14px); transform-origin: calc(100% - 14px) 0; }
.cd-quiet::after { content: ""; position: absolute; left: 9px; top: -6px; width: 10px; height: 10px; border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); border-radius: 2px 0 0 0; background: var(--surface); transform: rotate(45deg); }
.cd-quiet.is-right::after { left: auto; right: 9px; }
.cd-quiet.is-dyzio { border-color: var(--c-primary); color: var(--accent-strong, var(--accent)); }
.cd-quiet.is-dyzio::after { border-color: var(--c-primary); }
.cn-js .cd-axis-card:not(.is-seen) .cd-quiet { opacity: 0; transform: translateY(-6px) scale(.96); }
.cd-quiet.is-bump { animation: cd-note-bump .5s var(--cn-ease-pop); }
@media (max-width: 719px) { .cd-quiet { max-width: 13.5rem; font-size: .75rem; } }

.cd-cols { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: clamp(2px, .5vw, 6px); }
.cd-col { position: relative; display: grid; grid-template-rows: var(--plot) 22px 34px 18px; justify-items: center; align-items: center; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; }
button.cd-col { cursor: pointer; }
button.cd-col:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button.cd-col:hover .cd-bar { opacity: .86; }
.cd-bar { position: relative; align-self: stretch; width: 100%; max-width: 30px; transition: opacity .2s ease; }
.cd-seg { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: center bottom; transition: transform .8s cubic-bezier(.34, 1.25, .64, 1) calc(var(--i) * 30ms); }
/* Every state of a segment uses the same two functions, so each one grows from the bottom of its column in every browser. */
.cd-seg.is-people { background: linear-gradient(180deg, var(--cn-people-2), var(--cn-people)); transform: translateY(0) scaleY(calc(var(--h) * var(--p))); }
.cd-seg.is-dyzio { overflow: hidden; background: linear-gradient(180deg, var(--c-cyan), var(--c-primary)); transform: translateY(calc(var(--h) * var(--p) * -100%)) scaleY(calc(var(--h) * var(--y))); }
.cd-seg.is-lost { background: linear-gradient(180deg, var(--cn-lost-2), var(--cn-lost)); transform: translateY(calc(var(--h) * (var(--p) + var(--y)) * -100%)) scaleY(calc(var(--h) * var(--l))); }
.cn-js .cd-axis-card:not(.is-seen) .cd-seg { transform: translateY(0) scaleY(0); }
.cd-seg.is-dyzio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%); opacity: 0; transform: translateY(100%); }
.cd.is-live .cd-seg.is-dyzio::after { animation: cd-shimmer 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
.cd.is-live .cd-seg.is-lost { animation: cd-lost 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
.cd-cup { width: 18px; height: 18px; color: var(--c-amber); opacity: 0; transform: scale(.4); transition: opacity .3s ease calc(var(--i) * 30ms), transform .45s var(--cn-ease-pop) calc(var(--i) * 30ms), color .3s ease; }
.cd-cup svg { display: block; width: 100%; height: 100%; }
.cd-cup.is-alone, .cd-cup.is-covered { opacity: 1; transform: none; }
.cd-cup.is-covered { color: var(--c-primary); }
.cd.is-live .cd-cup.is-alone { animation: cd-cup 3s ease-in-out infinite; animation-delay: calc(var(--i) * 120ms); }
.cd-seat { display: grid; justify-items: center; gap: 1px; color: var(--heading); transition: opacity .4s ease calc(var(--i) * 30ms), transform .4s ease calc(var(--i) * 30ms), color .3s ease; }
.cd-seat svg { width: 18px; height: 18px; }
.cd-seat b { font-size: .68rem; font-weight: 700; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.cd-col.is-empty .cd-seat { opacity: .25; transform: scale(.85); }
.cd-col.is-dyzio .cd-seat { color: var(--accent); }
.cd-hour { display: flex; justify-content: center; width: 0; font-size: .66rem; white-space: nowrap; visibility: hidden; color: var(--muted); }
.cd-hour.is-major, .cd-hour.is-key { visibility: visible; }
.cd[data-cd-plan="custom"] button.cd-col::before { content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: var(--plot); border: 1px dashed var(--border-strong); border-radius: 8px; opacity: .7; pointer-events: none; }
.cd[data-cd-plan="custom"] button.cd-col[aria-pressed="true"]::before { border: 2px solid var(--c-primary); opacity: 1; }
.cd-seats-label { display: none; }
@media (max-width: 719px) {
    .cd-axis { --plot: 160px; --band: 66px; }
    .cd-peak { --peak-max: min(17rem, 100%); font-size: .75rem; }
    .cd-sky-label { display: none; }
    /* Narrow screens show only the numbers of the dispatchers, so a row of its own above them names them. */
    .cd-col { grid-template-rows: var(--plot) 16px 18px 20px 16px; }
    .cd-col > .cd-bar { grid-row: 1; }
    .cd-col > .cd-cup { grid-row: 2; }
    .cd-col > .cd-seat { grid-row: 4; }
    .cd-col > .cd-hour { grid-row: 5; }
    .cd-seats-label { position: absolute; z-index: 2; left: 0; top: calc(var(--band) + var(--plot) + 16px); display: flex; align-items: center; gap: 4px; height: 18px; margin: 0; font-size: .7rem; font-weight: 700; color: var(--heading); pointer-events: none; }
    .cd-seats-label svg { width: 13px; height: 13px; }
    .cd-hour { font-size: .75rem; }
    .cd-hour.is-major { visibility: hidden; }
    .cd-seat svg { display: none; }
    .cd-seat b { font-size: .75rem; }
    .cd-cup { width: 12px; height: 12px; }
    button.cd-col { pointer-events: none; }
}

.cd-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cd-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cd-key { display: block; width: 12px; height: 12px; border-radius: 3px; }
.cd-key.is-people { background: var(--cn-people); }
.cd-key.is-lost { background: var(--cn-lost); }
.cd-key.is-dyzio { background: linear-gradient(180deg, var(--c-cyan), var(--c-primary)); }
.cd-key-icon { width: 15px; height: 15px; color: var(--heading); }
.cd-key-icon.is-cup { color: var(--c-amber); }
.cd-axis-note { font-size: .76rem; color: var(--muted); }

.cd-plans { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cd-plans-title { padding: 0; font-size: 1.08rem; font-weight: 700; color: var(--heading); }
.cd-plans-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .cd-full .cd-plans-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cd-full .cd-plans-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-plan-card { position: relative; display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px 46px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .25s ease, transform .3s var(--cn-ease-out); }
.cd-plan-card::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.cd-plan-card strong { font-size: 1rem; color: var(--heading); }
.cd-plan-card small { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.cd-plan input:checked + .cd-plan-card::before { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 3px var(--surface); }
.cd-plan.is-today input:checked + .cd-plan-card { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--cn-wage), var(--cn-wage-2)) border-box; box-shadow: var(--shadow-md); }
.cd-plan.is-today input:checked + .cd-plan-card::before { border-color: var(--cn-wage); background: var(--cn-wage); }
.cd-plans.is-compact .cd-plan-card { padding: 12px 14px 12px 44px; }
@media (min-width: 760px) { .cd-plans.is-compact .cd-plans-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cd-overflow { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--heading); cursor: pointer; }
.cd-overflow input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-bg); }

/* Narrow screens choose the hours below the plans, as one stretch or hour by hour with buttons large enough for a finger;
   wide ones click the hours on the day. */
.cd-pick { display: none; }
.cd-range { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.cd-hour-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cd-hour-pick { min-height: 44px; padding: 0; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--cn-people) 45%, var(--border)); background: var(--surface); color: var(--heading); font: inherit; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.cd-hour-pick[aria-pressed="true"] { border-color: transparent; background: linear-gradient(180deg, var(--c-cyan), var(--c-primary)); color: #06201b; }
.cd-hour-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cd-range-field { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--heading); }
.cd-range-field select { min-height: 44px; padding: .5em .8em; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font: inherit; }
.cd-range-field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 719px) { .cd-pick:not([hidden]) { display: grid; gap: 12px; } }

/* Where the plans and the result are far apart, a short form of the result stays in sight and leads to it. */
.cd-jump { display: none; }
@media (max-width: 1039px) {
    .cd-jump:not([hidden]) { position: sticky; z-index: 5; bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-top: 12px; padding: 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #0d6554, #0f7f86); color: #ffffff; text-decoration: none; box-shadow: 0 16px 34px -14px rgba(13, 101, 84, .85); }
    .cd-jump:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
    .cd-jump-label { grid-column: 1; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
    .cd-jump-text { grid-column: 1; font-size: 1rem; line-height: 1.3; }
    .cd-jump .icon { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; transform: rotate(90deg); }
}

.cd-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1040px) { .cd-compare { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); } }
.cd-arrow { display: none; }
@media (min-width: 1040px) { .cd-arrow { display: grid; place-items: center; align-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); color: var(--accent); } }
.cd.is-live .cd-arrow svg { animation: cd-nudge 2.4s ease-in-out infinite; }
.cd-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; min-width: 0; padding: clamp(12px, 1.8vw, 18px); border-radius: 22px; border: 1px solid var(--border); background: var(--surface-2); }
.cd-figures.is-with { border-color: color-mix(in srgb, var(--c-primary) 35%, var(--border)); background: color-mix(in srgb, var(--c-primary) 7%, var(--surface)); }
.cd-figures-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.12rem; }
.cd-figures-title .icon { width: 22px; height: 22px; color: var(--muted); }
.cd-plan-name { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-size: .9rem; font-weight: 700; }
.cd-card { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.cd-card-label { font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--muted); }
.cd-card-value { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cd-card.is-lost .cd-card-value { color: var(--danger); }
.cd-card.is-ok .cd-card-value { color: var(--accent); }
.cd-card-note { font-size: .8rem; line-height: 1.4; color: var(--text); }
.cd-card-note.is-muted { font-size: .76rem; color: var(--muted); }
.cd-figures.is-today .cd-card:has(> .cd-why[open]) { grid-column: 1 / -1; }
.cd-why { margin-top: 6px; }
.cd-why summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 0; font-size: .82rem; font-weight: 700; color: var(--accent-strong, var(--accent)); cursor: pointer; list-style: none; }
@media (pointer: coarse) { .cd-why summary { min-height: 44px; } }
.cd-why summary::-webkit-details-marker { display: none; }
.cd-why summary::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); font-size: .72rem; }
.cd-why p { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .84rem; line-height: 1.5; color: var(--text); }
.cd-unattended { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(248, 172, 89, .16); font-size: .88rem; line-height: 1.45; color: var(--heading); }
.cd-unattended .icon { flex: none; margin-top: 2px; color: var(--c-amber); }
.cd-result { position: relative; display: grid; align-content: center; gap: 6px; min-width: 0; overflow: hidden; padding: 16px; border-radius: 16px; color: #ffffff; background: linear-gradient(135deg, #0d6554, #0f7f86); box-shadow: 0 20px 44px -22px rgba(13, 101, 84, .85); scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.cd-result::before { content: ""; position: absolute; right: -60px; top: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(35, 198, 200, .35); filter: blur(30px); pointer-events: none; }
.cd-result > * { position: relative; }
.cd-result-title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.cd-result-title strong { display: block; margin: 2px 0; font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.35rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd-result-note { font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.cd-result.is-extra, .cd-result.is-bill { background: linear-gradient(135deg, #1b5a8a, #2b4a9a); box-shadow: 0 20px 44px -22px rgba(27, 90, 138, .85); }
.cd-result.is-today, .cd-result.is-empty { border: 1px dashed var(--border-strong); background: var(--surface); color: var(--heading); box-shadow: none; }
.cd-result.is-today::before, .cd-result.is-empty::before { display: none; }
.cd-result.is-today .cd-result-note, .cd-result.is-empty .cd-result-note { color: var(--muted); }
.cd-result.is-bump { animation: cd-bump .6s var(--cn-ease-pop); }
.cd-figures.is-with .cd-result.is-today { grid-column: 1 / -1; }
.cd[data-cd-plan="today"] .cd-figures.is-with { grid-template-rows: auto minmax(0, 1fr); }
.cd[data-cd-plan="today"] .cd-figures.is-with .cd-result { align-self: stretch; }
@media (max-width: 599px) { .cd-figures.is-with .cd-result { grid-column: 1 / -1; } }
.cd-all-day { grid-column: 1 / -1; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--border-strong); background: var(--surface); font-size: .86rem; line-height: 1.45; color: var(--heading); }

.cd-short-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 16px; }
@media (min-width: 960px) { .cd-short-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.cd-figures.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 559px) { .cd-figures.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cd-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-width: 0; }
.cd-calculate { justify-self: start; }
@media (max-width: 559px) { .cd-calculate { justify-self: stretch; } }

.cd-custom { border-radius: 18px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.cd-custom > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 700; color: var(--heading); cursor: pointer; list-style: none; }
.cd-custom > summary::-webkit-details-marker { display: none; }
.cd-custom > summary .icon { color: var(--accent); }
.cd-custom-chevron { margin-left: auto; transform: rotate(90deg); transition: transform .25s ease; }
.cd-custom[open] .cd-custom-chevron { transform: rotate(-90deg); }
.cd-custom-body { display: grid; gap: 16px; padding: 0 20px 20px; }
.cd-custom-intro { font-size: .92rem; color: var(--muted); }
.cd-custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cd-unit { display: flex; align-items: center; gap: 8px; }
.cd-unit input { flex: 1 1 auto; min-width: 0; }
.cd-unit span { font-weight: 600; color: var(--muted); }
.cd-shifts { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cd-shifts legend { margin-bottom: 8px; padding: 0; font-weight: 700; color: var(--heading); }
.cd-shift-head, .cd-shift { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) 34px; align-items: end; gap: 10px; }
.cd-shift-head { font-size: .78rem; font-weight: 700; color: var(--muted); }
.cd-shift-list { display: grid; gap: 8px; }
.cd-shift-field { display: grid; gap: 4px; min-width: 0; }
.cd-shift-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cd-shift select, .cd-shift input { width: 100%; min-width: 0; padding: .55em .7em; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font: inherit; font-size: .95rem; }
.cd-shift select:focus, .cd-shift input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.cd-shift-remove { display: grid; place-items: center; align-self: center; padding: 0; }
.cd-shift-remove .icon { width: 14px; height: 14px; }
.cd-shift-add { justify-self: start; }
@media (max-width: 639px) {
    .cd-shift-head { display: none; }
    .cd-shift { grid-template-columns: minmax(86px, 1.3fr) repeat(2, minmax(0, 1fr)) 32px; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
    .cd-shift select { padding-inline: .45em; }
    .cd-shift-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: .7rem; font-weight: 700; color: var(--muted); }
}
.cd-custom-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cd-status { min-height: 1.4em; font-size: .88rem; color: var(--muted); }
.cd-status.is-error { font-weight: 600; color: var(--danger); }
.cd-status.is-inline { min-height: 0; margin-left: auto; font-size: .8rem; }
.cd-status.is-inline:empty { display: none; }
.cd-custom input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.cd-sources { padding: 16px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.cd-sources-title { margin-bottom: 8px; font-size: .95rem; }
.cd-sources ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.cd-sources a { margin-left: .4em; font-weight: 600; overflow-wrap: anywhere; }
.cd-disclaimer { font-weight: 600; color: var(--text); }

/* ---------- G. Where the saving comes from ---------- */
.cn-save-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .cn-save-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.cn-save-tile { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 14px 14px 22px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.cn-save-tile h3 { margin: 6px 6px 0; font-size: 1.12rem; }
.cn-save-tile > p { margin: 0 6px; font-size: .95rem; color: var(--text); }
.cn-scene-box { position: relative; height: 196px; overflow: hidden; border-radius: 16px; background: var(--surface-2); }

.cn-cost { display: grid; gap: 8px; margin: 0; padding: 12px 14px 10px; border-radius: 16px; background: var(--surface-2); }
.cn-cost-caption { font-size: .8rem; font-weight: 700; color: var(--muted); }
/* The hours of the chart are full-height buttons, so a pointer, a finger or the keyboard reaches each one; the bubble that
   works an hour out is placed by the script above the chart or below its hours, always inside the chart's width. */
.cn-cost-plot { position: relative; height: 136px; touch-action: pan-y; }
.cn-cost-bars { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.cn-cost-col { position: relative; display: grid; align-items: end; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; }
.cn-cost-col:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cn-cost-bar { display: block; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cn-people-2), var(--cn-people)); transform: scaleY(var(--v)); transform-origin: center bottom; transition: transform .8s cubic-bezier(.34, 1.25, .64, 1) calc(var(--i) * 25ms), opacity .2s ease; }
.cn-cost-col.is-night .cn-cost-bar { background: linear-gradient(180deg, #a49df8, var(--c-purple)); }
.cn-cost.is-pointing .cn-cost-col:not(.is-active) .cn-cost-bar { opacity: .4; }
.cn-cost-col.is-active .cn-cost-bar { box-shadow: 0 0 0 2px var(--heading); }
.cn-js .cn-save-tile:not(.is-seen) .cn-cost-bar { transform: scaleY(0); }
.cn-cost-tip { position: absolute; z-index: 6; left: 0; top: 0; width: max-content; max-width: min(22rem, 100%); padding: 10px 12px; border-radius: 12px; background: var(--heading); color: var(--surface); font-size: .8rem; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; }
.cn-cost-tip b { display: block; margin-bottom: 2px; font-size: .84rem; }
.cn-cost-tip span { display: block; font-variant-numeric: tabular-nums; }
.cn-cost-tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.cn-cost-tip.is-below::after { top: -5px; bottom: auto; }
.cn-cost-hint { font-size: .74rem; color: var(--muted); }
.cn-cost-line { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * (100% - 24px)); border-top: 3px solid var(--c-primary); box-shadow: 0 0 12px rgba(26, 179, 148, .55); }
.cn-cost-line b { position: absolute; right: 0; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-bg); color: var(--on-accent); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.cn-cost-max { position: absolute; top: 0; left: clamp(30px, calc(var(--x) * 100%), calc(100% - 30px)); transform: translateX(-50%); font-size: .76rem; font-weight: 700; white-space: nowrap; color: var(--heading); }
.cn-cost-hours { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); }

.cn-peak { display: grid; grid-template-columns: 40px minmax(24px, 1fr) minmax(112px, auto); grid-template-rows: minmax(0, 1fr); align-items: stretch; padding: 10px 14px; }
.cn-peak-callers, .cn-peak-answer, .cn-peak-matters { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); align-items: center; }
.cn-peak-callers { grid-column: 1; grid-row: 1; }
.cn-peak-links { grid-column: 2; grid-row: 1; }
.cn-peak-answer { grid-column: 3; grid-row: 1; }
/* What each caller wants sits on that caller's line: new rides go to the dispatchers, the rest to Dyzio. */
.cn-peak-matters { position: relative; z-index: 1; grid-column: 2; grid-row: 1; justify-items: center; min-width: 0; pointer-events: none; }
.cn-peak-matters li { max-width: 100%; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--cn-people); background: var(--surface-2); color: var(--heading); font-size: .75rem; font-weight: 700; line-height: 1.3; text-align: center; }
.cn-peak-matters li.is-dyzio { border-color: var(--c-primary); }
.cn-peak-callers li { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--heading); }
.cn-peak-callers .icon { width: 15px; height: 15px; }
.cn-peak-links { display: block; width: 100%; height: 100%; overflow: visible; }
.cn-peak-links path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cn-peak-links .is-person { stroke: var(--cn-people); }
.cn-peak-links .is-dyzio { stroke: var(--c-primary); }
.cn-peak-answer li { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); font-size: .76rem; font-weight: 700; white-space: nowrap; color: var(--heading); }
.cn-peak-answer li .icon { width: 15px; height: 15px; }
.cn-peak-answer li.is-person .icon { color: var(--cn-people); }
.cn-peak-answer li.is-dyzio { border-color: transparent; background: var(--accent-soft); color: var(--accent-strong, var(--accent)); }
.cn-mini-wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; margin-left: 2px; font-style: normal; }
.cn-mini-wave b { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform: scaleY(.5); }
.cn-mini-wave b:nth-child(2n) { transform: scaleY(.9); }
.cn-save-tile.is-live .cn-mini-wave b { animation: cn-voice .9s ease-in-out infinite; }
.cn-save-tile.is-live .cn-mini-wave b:nth-child(2) { animation-delay: -.2s; }
.cn-save-tile.is-live .cn-mini-wave b:nth-child(3) { animation-delay: -.4s; }
.cn-save-tile.is-live .cn-mini-wave b:nth-child(4) { animation-delay: -.6s; }
.cn-save-tile.is-live .cn-mini-wave b:nth-child(5) { animation-delay: -.1s; }
.cn-save-tile.is-live .cn-peak-callers li { animation: cn-ring-shake 6s ease-in-out infinite; animation-delay: calc(var(--c) * .12s); }
.cn-save-tile.is-live .cn-peak-links path { animation: cn-link 6s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(var(--c) * .12s); }
.cn-save-tile.is-live .cn-peak-answer li { animation: cn-answer 6s var(--cn-ease-pop) infinite; animation-delay: calc(var(--c) * .12s); }

.cn-break { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: 12px; padding: 18px; }
.cn-break-desk { position: relative; display: grid; justify-items: center; justify-self: center; width: 92px; }
.cn-break-screen { width: 70px; height: 44px; margin-bottom: 4px; border-radius: 6px; border: 3px solid var(--border-strong); background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.cn-break-chair { width: 52px; height: 52px; color: var(--muted); }
.cn-break-cup { position: absolute; right: -24px; top: 24px; width: 26px; height: 26px; color: var(--c-amber); }
.cn-break-cup svg { display: block; width: 100%; height: 100%; }
.cn-steam { position: absolute; top: -12px; width: 3px; height: 10px; border-radius: 2px; background: currentColor; opacity: .4; }
.cn-steam:first-of-type { left: 8px; }
.cn-steam:last-of-type { left: 14px; }
.cn-break-phone { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); color: var(--heading); }
.cn-phone-ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cn-lost); opacity: 0; }
.cn-break-dyzio { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--accent-bg); color: var(--on-accent); font-size: .9rem; font-weight: 700; box-shadow: var(--cn-glow); }
.cn-break-dyzio .icon { width: 20px; height: 20px; }
.cn-save-tile.is-live .cn-steam { animation: cn-steam 2.4s ease-in-out infinite; }
.cn-save-tile.is-live .cn-steam:last-of-type { animation-delay: -1.2s; }
.cn-save-tile.is-live .cn-break-phone { animation: cn-phone 7s ease-in-out infinite; }
.cn-save-tile.is-live .cn-phone-ring { animation: cn-phone-ring 7s ease-out infinite; }
.cn-save-tile.is-live .cn-phone-ring:last-of-type { animation-delay: .4s; }
.cn-save-tile.is-live .cn-break-dyzio { animation: cn-bubble 7s var(--cn-ease-pop) infinite; }

.cn-night { display: grid; align-content: end; padding: 14px; background: linear-gradient(165deg, var(--cn-night), var(--cn-night-2)); }
.cn-night-moon { position: absolute; top: 14px; right: 18px; width: 30px; height: 30px; color: #f7e6a8; }
.cn-night-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffffff; opacity: .7; }
.cn-night-star:nth-of-type(1) { left: 10%; top: 16%; }
.cn-night-star:nth-of-type(2) { left: 26%; top: 9%; }
.cn-night-star:nth-of-type(3) { left: 44%; top: 20%; }
.cn-night-star:nth-of-type(4) { left: 62%; top: 11%; }
.cn-night-star:nth-of-type(5) { left: 76%; top: 30%; }
.cn-save-tile.is-live .cn-night-star { animation: cd-twinkle 3s ease-in-out infinite; animation-delay: calc(var(--s) * -.6s); }
.cn-rota { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); }
.cn-rota-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 6px; }
.cn-rota-row.is-head { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding-left: 48px; font-size: .66rem; font-weight: 700; text-align: center; color: rgba(255, 255, 255, .78); }
.cn-rota-label { font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .88); }
.cn-rota-cells { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cn-rota-cell { display: grid; place-items: center; height: 30px; border-radius: 7px; background: rgba(255, 255, 255, .2); font-size: .82rem; font-style: normal; font-weight: 700; color: #ffffff; }
.cn-rota-cell.is-gap { background: rgba(237, 85, 101, .62); }
.cn-rota-dyzio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px; background: linear-gradient(90deg, var(--c-primary), var(--c-cyan)); color: #06201b; font-size: .8rem; font-weight: 700; box-shadow: 0 0 18px rgba(35, 198, 200, .45); transform-origin: left center; }
.cn-rota-dyzio .icon { width: 16px; height: 16px; }
.cn-save-tile.is-live .cn-rota-dyzio { animation: cn-rota 7s cubic-bezier(.65, 0, .35, 1) infinite; }
.cn-save-tile.is-live .cn-rota-cell.is-gap { animation: cn-gap 7s ease-in-out infinite; }
.cn-save-closing { display: flex; align-items: center; justify-content: center; gap: 10px; margin: clamp(26px, 3vw, 38px) auto 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; text-align: center; color: var(--heading); }
.cn-save-closing .icon { flex: none; width: 26px; height: 26px; color: var(--accent); }

/* ---------- The price on the landing page ---------- */
.cn-teaser-foot { display: grid; justify-items: center; gap: 16px; margin-top: clamp(26px, 3.4vw, 40px); text-align: center; }
.cn-teaser-claim { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; color: var(--heading); }
.cn-teaser-claim .icon { flex: none; color: var(--accent); }
@media (max-width: 559px) { .cn-teaser-claim { border-radius: 16px; text-align: left; } }

/* ---------- Motion ---------- */
@keyframes cn-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes cn-travel { 0%, 5% { transform: translateX(0); } 50%, 100% { transform: translateX(100%); } }
@keyframes cn-spark { 0% { opacity: 0; } 8% { opacity: 1; } 46% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes cn-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes cn-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes cn-dash { to { stroke-dashoffset: -.22; } }
@keyframes cn-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cn-merge-a { 0% { opacity: 0; transform: translateX(-36px); } 22%, 50% { opacity: 1; transform: none; } 66% { opacity: 0; transform: translateY(64px) scale(.7); } 67% { opacity: 0; transform: translateY(-8px); } 100% { opacity: .7; transform: none; } }
@keyframes cn-merge-b { 0% { opacity: 0; transform: translateX(36px); } 22%, 50% { opacity: 1; transform: none; } 66% { opacity: 0; transform: translateY(32px) scale(.7); } 67% { opacity: 0; transform: translateY(-8px); } 100% { opacity: .7; transform: none; } }
@keyframes cn-draw-zone { 0% { stroke-dashoffset: 1; fill-opacity: 0; } 80% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes cn-drop { 0% { opacity: 0; transform: translateY(-28px) scale(.7); } 60% { opacity: 1; transform: translateY(3px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes cn-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes cn-voice { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes cn-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes cn-dial { from { transform: rotate(150deg); } to { transform: rotate(510deg); } }
@keyframes cn-run { from { stroke-dashoffset: .45; } to { stroke-dashoffset: -.62; } }
@keyframes cn-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.08); } }
@keyframes cn-print { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes cn-ring-shake { 0%, 4%, 12%, 100% { transform: none; } 6% { transform: rotate(-14deg); } 8% { transform: rotate(14deg); } 10% { transform: rotate(-8deg); } }
@keyframes cn-link { 0% { stroke-dashoffset: 1; opacity: 1; } 12% { stroke-dashoffset: 1; } 30% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cn-answer { 0%, 22% { opacity: .35; transform: scale(.92); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes cn-steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.6); } 40% { opacity: .5; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.2); } }
@keyframes cn-phone { 0%, 4% { transform: none; } 6%, 14%, 22% { transform: rotate(-12deg); } 10%, 18%, 26% { transform: rotate(12deg); } 30%, 100% { transform: none; } }
@keyframes cn-phone-ring { 0%, 2% { opacity: 0; transform: scale(1); } 8% { opacity: .8; } 28%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes cn-bubble { 0%, 30% { opacity: 0; transform: translateX(-10px) scale(.6); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@keyframes cn-rota { 0%, 38% { opacity: 0; transform: scaleX(0); } 40% { opacity: 1; } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes cn-gap { 0%, 100% { opacity: 1; } 15%, 30% { opacity: .5; } }
@keyframes cd-twinkle { 0%, 100% { opacity: .65; } 50% { opacity: .15; } }
@keyframes cd-shimmer { 0% { opacity: 0; transform: translateY(100%); } 15% { opacity: 1; } 60%, 100% { opacity: 0; transform: translateY(-100%); } }
@keyframes cd-lost { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes cd-cup { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes cd-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@keyframes cd-bump { 0% { transform: scale(.96); } 100% { transform: none; } }
@keyframes cd-peak-bump { 0% { transform: translateX(-50%) scale(.9); } 100% { transform: translateX(-50%); } }
@keyframes cd-note-bump { 0% { transform: scale(.94); } 100% { transform: none; } }

/* Paused motion: state changes are immediate as well; reduced motion is handled site-wide and by the script. */
[data-motion="paused"] .cn-section *, [data-motion="paused"] .cn-section *::before, [data-motion="paused"] .cn-section *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    .cn-section *, .cn-section *::before, .cn-section *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
