/* NavTech product demos v3 — "dashboards don't have to feel like spreadsheets"
   (Panel save bd62219fc7914af2, @next_gendev, Nov 2026).
   Layout: the section header is two columns (title left, the active
   product's pitch right, space between); the demo runs full width under it.
   Each demo is one wide white card on a soft, grainy pastel field that
   changes tint per product. Inside: a sentence that states the finding and
   rewrites itself live, one quiet chart (grays plus one blue, red only for
   what's wrong, stipple for what-if), and direct manipulation. */

@property --pd-a { syntax: '<color>'; inherits: true; initial-value: #cfc6f4; }
@property --pd-b { syntax: '<color>'; inherits: true; initial-value: #ece8fc; }
@property --pd-c { syntax: '<color>'; inherits: true; initial-value: #a99bf0; }

.products2[data-demos] {
    --pd-a: #cfc6f4;
    --pd-b: #ece8fc;
    --pd-c: #a99bf0;
    --pd-ink: #111318;
    --pd-mute: #868a93;
    --pd-faint: #b3b6bd;
    --pd-line: #ececef;
    --pd-blue: #3366d6;
    --pd-red: #d4493f;
    --pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* one card height for every product, so switching never jumps */
    --pd-card-h: clamp(400px, 25vw + 10vh, 452px);
    --pd-pad-y: clamp(22px, 3.4vh, 44px);
    transition: --pd-a 0.8s var(--pd-ease), --pd-b 0.8s var(--pd-ease), --pd-c 0.8s var(--pd-ease);
}
.products2[data-demos][data-active-product="prism"]    { --pd-a: #c2d2f7; --pd-b: #e7eefc; --pd-c: #86a8f4; }
.products2[data-demos][data-active-product="hujjat"]   { --pd-a: #c4dbcd; --pd-b: #e9f2ec; --pd-c: #8bb69d; }
.products2[data-demos][data-active-product="crm"]      { --pd-a: #c2e1f3; --pd-b: #e9f5fc; --pd-c: #8ccaec; }
.products2[data-demos][data-active-product="security"] { --pd-a: #f2c5d0; --pd-b: #fcebee; --pd-c: #f3d7a4; }
.products2[data-demos][data-active-product="speech"]   { --pd-a: #e1c8f1; --pd-b: #f6ecfb; --pd-c: #c79be6; }
.products2[data-demos][data-active-product="hr"]       { --pd-a: #c2e1f3; --pd-b: #e9f5fc; --pd-c: #8ccaec; }

/* ------------------------------------------------------------------ */
/* Section layout (outranks products-hero.css "one screen" rules)      */
/* ------------------------------------------------------------------ */

html body .products2[data-showcase-v2][data-demos] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
    gap: clamp(1.25rem, 3.2vh, 2.25rem);
    padding: clamp(4.5rem, 10vh, 6.5rem) var(--page-edge, clamp(2rem, 7vw, 8rem)) clamp(1.75rem, 4vh, 2.75rem);
}

.pd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 4rem;
    width: 100%;
}
.pd-head-title { flex: 0 1 auto; min-width: 0; }
.products2[data-demos] .pd-head .prod-eyebrow {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pd-ink);
}
.products2[data-demos] .pd-head .prod-heading {
    margin: 0;
    font-size: clamp(1.75rem, 1.2vw + 2.1vh, 2.6rem);
    max-width: 14em;
}
html body .products2[data-demos] .pd-head .p2-copy {
    flex: 0 1 31rem;
    min-width: 0;
    gap: 0.95rem;
}
html body .products2[data-demos] .pd-head .p2-pane { gap: 0.4rem; justify-content: flex-end; }
html body .products2[data-demos] .pd-head .p2-badge {
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pd-ink);
}
html body .products2[data-demos] .pd-head .p2-desc {
    display: block;
    font-size: clamp(0.94rem, 0.35vw + 0.85vh, 1.03rem);
    line-height: 1.5;
    color: #45484f;
}

/* The field: full width, grainy pastel, one tint per product. */
.pd-stage {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--pd-card-h) + 2 * var(--pd-pad-y));
    padding: var(--pd-pad-y) clamp(14px, 4vw, 64px);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(55% 75% at 10% 4%, var(--pd-c) 0%, transparent 62%),
        radial-gradient(45% 70% at 94% 100%, var(--pd-c) 0%, transparent 66%),
        linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, var(--pd-sheen, 0.5)) 36%, transparent 50%),
        linear-gradient(118deg, transparent 58%, rgba(255, 255, 255, calc(var(--pd-sheen, 0.5) * 0.64)) 68%, transparent 78%),
        linear-gradient(165deg, var(--pd-a) 0%, var(--pd-b) 58%, var(--pd-a) 100%);
    outline: none;
}
.pd-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pd-stage .prod-visual-alt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pd-mount {
    display: grid;
    width: 100%;
    justify-items: center;
    align-items: center;
}
.pd-scene {
    grid-area: 1 / 1;
    width: min(100%, 940px);
    transition: opacity 0.5s var(--pd-ease), transform 0.7s var(--pd-ease);
}
.pd-scene.is-entering { opacity: 0; transform: translateY(14px) scale(0.985); }
.pd-scene.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    transition-duration: 0.28s;
    pointer-events: none;
}

html body .products2[data-demos] .p2-tabs { align-self: center; flex: 0 0 auto; }
html.anim-ready body .products2[data-demos] .p2-tabs.rv { opacity: 1; transform: none; }

/* Apple-style continuous corners where the browser can draw them. */
@supports (corner-shape: squircle) {
    .pd-stage { corner-shape: squircle; border-radius: 48px; }
    .pd-card { corner-shape: squircle; border-radius: 30px; }
    .pd-ask { corner-shape: squircle; border-radius: 18px; }
    .pd-btn, .pd-seg, .pd-seg button, .pd-chip { corner-shape: squircle; }
}

/* ------------------------------------------------------------------ */
/* The card                                                            */
/* ------------------------------------------------------------------ */

.pd-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    color: var(--pd-ink);
    font-family: var(--sans, 'Google Sans', system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    box-shadow:
        0 0 0 1px rgba(36, 30, 70, 0.04),
        0 2px 6px rgba(36, 30, 70, 0.05),
        0 30px 60px -30px rgba(40, 30, 90, 0.32);
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    height: var(--pd-card-h, 452px);
}
.pd-card > .pd-top, .pd-card > .pd-foot, .pd-card > .pd-ask, .pd-card > .pd-query { flex: 0 0 auto; }

.pd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 16px;
    border-bottom: 1px solid #f1f1f3;
    font-size: 11.5px;
    color: var(--pd-mute);
}
.pd-top-l, .pd-top-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pd-top-l { flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
.pd-top-r { flex: 0 0 auto; }
.pd-chip {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: inherit;
    color: var(--pd-mute);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    animation: pd-chip-in 0.45s var(--pd-ease);
}
.pd-chip:hover { color: var(--pd-ink); }
.pd-chip.is-current { background: #f1f1f4; color: var(--pd-ink); }
.pd-sep { color: #cfd1d6; }
@keyframes pd-chip-in { from { opacity: 0; transform: translateY(4px); } }

.pd-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 22px 6px;
}
.pd-body > * { flex: 0 0 auto; }

.pd-title {
    min-height: 2.6em;
    margin: 0;
    font-size: clamp(16px, 0.9vw + 0.7vh, 21px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--pd-mute);
    text-wrap: pretty;
    transition: opacity 0.26s ease, transform 0.36s var(--pd-ease), filter 0.26s ease, color 0.3s ease;
}
.pd-title .k { color: var(--pd-ink); }
.pd-title .b { color: var(--pd-blue); }
.pd-title .r { color: var(--pd-red); }
.pd-title .w-live { color: var(--pd-faint); }
.pd-title.is-out { opacity: 0; transform: translateY(-3px); filter: blur(2px); transition-duration: 0.16s; }
.pd-title.is-loading { color: var(--pd-faint); }
.pd-sub {
    min-height: 1.4em;
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--pd-mute);
    transition: opacity 0.3s ease;
}

.pd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-height: 16px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--pd-mute);
    transition: opacity 0.3s ease;
}
.pd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pd-legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.pd-legend i.is-dots {
    border-radius: 1px;
    background-image: radial-gradient(circle, #9aa0aa 0.8px, transparent 1.1px);
    background-size: 3px 3px;
    background-color: transparent;
}

.pd-plot {
    position: relative;
    flex: 1 1 0 !important;
    min-height: 80px;
    margin-top: 10px;
    touch-action: pan-y;
}
.pd-plot.is-fixed { flex: 0 0 auto !important; }
.pd-plot.is-html { display: flex; flex-direction: column; justify-content: center; }
.pd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pd-svg text { font-family: var(--sans, 'Google Sans', system-ui, sans-serif); }
.pd-ax { font-size: 10.5px; fill: #9a9ea6; }
.pd-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace !important; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; fill: #9a9ea6; }
.pd-vl { font-size: 10.5px; fill: var(--pd-mute); }
.pd-vl.is-ink { fill: var(--pd-ink); font-weight: 500; }
.pd-vl.is-in { fill: #ffffff; }

.pd-pill {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 6px 2px;
    border-radius: 5px;
    background: #121316;
    color: #ffffff;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    pointer-events: none;
}

.pd-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 6px 16px 10px 22px;
    font-size: 11.5px;
    color: var(--pd-mute);
}
.pd-foot-l, .pd-foot-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-foot-l { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.pd-seg {
    position: relative;
    display: inline-flex;
    padding: 2px;
    border-radius: 8px;
    background: #f2f2f4;
}
.pd-seg button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 28px;
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: none;
    font: inherit;
    font-size: 11.5px;
    color: var(--pd-mute);
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.pd-seg button svg { width: 13px; height: 13px; }
.pd-seg button.is-on {
    background: #ffffff;
    color: var(--pd-ink);
    box-shadow: 0 1px 2px rgba(20, 20, 40, 0.1), 0 0 0 0.5px rgba(20, 20, 40, 0.06);
}
.pd-seg.is-icons button { padding: 0 6px; }

.pd-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    border: 0;
    background: none;
    font: inherit;
    color: var(--pd-mute);
    cursor: pointer;
}
.pd-link:hover { color: var(--pd-ink); }

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: #121316;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s var(--pd-ease);
}
.pd-btn:hover { background: #33353a; }
.pd-btn:active, .pd-btn.is-press { transform: scale(0.96); }
.pd-btn.is-ghost { background: #f1f1f4; color: var(--pd-ink); }
.pd-btn.is-ghost:hover { background: #e7e7eb; }
.pd-btn[disabled] { opacity: 0.45; cursor: default; }
.pd-btn.is-small { height: 24px; padding: 0 9px; font-size: 11px; font-weight: 400; }
.pd-btn[hidden] { display: none; }

.pd-query {
    max-height: 0;
    margin: 0 22px;
    overflow: hidden;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px;
    color: var(--pd-mute);
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transition: max-height 0.35s var(--pd-ease), opacity 0.3s ease, margin 0.35s var(--pd-ease);
}
.pd-query.is-on { max-height: 2em; margin-top: 6px; opacity: 1; }

/* The ask bar, docked at the bottom of the card. */
.pd-ask {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 10px;
    padding: 6px 6px 6px 12px;
    border-radius: 10px;
    background: #f4f4f6;
}
.pd-ask svg.pd-ask-ic { flex: 0 0 auto; width: 13px; height: 13px; color: var(--pd-blue); }
.pd-ask input {
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--pd-ink);
    -webkit-user-select: text;
    user-select: text;
}
.pd-ask input::placeholder { color: var(--pd-mute); }
.pd-send {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: #c8c9ce;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s var(--pd-ease);
}
.pd-send svg { width: 12px; height: 12px; }
.pd-ask.is-ready .pd-send { background: #121316; }
.pd-send.is-press { transform: scale(0.9); }
.pd-ask.is-wide input { font-size: 13.5px; }

/* The story's pointer. */
.pd-cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 20px;
    height: 20px;
    margin: -3px 0 0 -6px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.62s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
}
.pd-cursor.is-on { opacity: 1; }
.pd-cursor.is-drag { transition: opacity 0.3s ease; }
.pd-cursor svg { display: block; width: 100%; height: 100%; transition: transform 0.14s ease; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }
.pd-cursor.is-press svg { transform: scale(0.82); }

/* ------------------------------------------------------------------ */
/* Per-scene parts                                                     */
/* ------------------------------------------------------------------ */

/* Cortex: source rows */
.pd-srcs { display: grid; gap: 7px; padding-top: 4px; }
.pd-src {
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 1fr) 2.4em;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.pd-src-name { overflow: hidden; color: var(--pd-mute); white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s ease; }
.pd-src.is-cited .pd-src-name { color: var(--pd-ink); }
.pd-src-track { position: relative; height: 12px; }
.pd-src-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 3px;
    background: #d6d8dd;
    transition: width 0.8s var(--pd-ease), background-color 0.45s ease;
}
.pd-src.is-cited .pd-src-bar { background: var(--pd-blue); }
.pd-src.is-skel .pd-src-bar { background: #dde5f6; }
.pd-src.is-hidden .pd-src-bar {
    background-color: #f5f5f7;
    background-image: radial-gradient(circle, #a8adb6 0.75px, transparent 1.05px), radial-gradient(circle, #a8adb6 0.6px, transparent 0.9px);
    background-size: 4px 4px, 4px 4px;
    background-position: 0 0, 2px 2px;
}
.pd-src.is-hidden .pd-src-name { color: var(--pd-faint); text-decoration: line-through; text-decoration-color: #d5d7dc; }
.pd-src-n { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--pd-mute); }
.pd-src-lock {
    position: absolute;
    top: 50%;
    left: 8px;
    font-size: 10.5px;
    color: var(--pd-mute);
    white-space: nowrap;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pd-src.is-hidden .pd-src-lock { opacity: 1; }

/* Columns of figures over a chart (Hujjat, CRM) */
.pd-cols {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    gap: 0 10px;
    margin-top: 12px;
}
.pd-cols > div { min-width: 0; }
.pd-cols small { display: block; overflow: hidden; font-size: 11px; color: var(--pd-mute); white-space: nowrap; text-overflow: ellipsis; }
.pd-cols b {
    display: block;
    margin-top: 2px;
    font-size: clamp(15px, 0.6vw + 0.7vh, 18px);
    font-weight: 400;
    color: var(--pd-ink);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}
.pd-cols b.is-empty { color: #d0d2d7; }
.pd-cols b.is-up { color: var(--pd-blue); }
.pd-notes { margin-top: 4px; }
.pd-notes small { white-space: normal; line-height: 1.35; }
.pd-notes .pd-conv { color: var(--pd-mute); }
.pd-notes .pd-note { margin-top: 6px; color: #a2a6ad; }
.pd-hash { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9.5px !important; color: var(--pd-blue) !important; opacity: 0; transition: opacity 0.4s ease; }
.pd-hash.is-on { opacity: 1; }

/* SVG states */
.pd-node-ring { transform-box: fill-box; transform-origin: center; animation: pd-ring 1.6s ease-out infinite; }
@keyframes pd-ring { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.pd-dot { transition: fill 0.35s ease; }
.pd-dot.is-pulse { animation: pd-pulse 0.9s var(--pd-ease); transform-box: fill-box; transform-origin: center; }
@keyframes pd-pulse { 40% { transform: scale(1.7); } }
.pd-hit { cursor: ew-resize; }
.pd-hit.is-ns { cursor: ns-resize; }
.pd-hit.is-cross { cursor: crosshair; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
    html body .products2[data-showcase-v2][data-demos] {
        min-height: 0;
        padding-top: clamp(4rem, 9vh, 5rem);
        gap: 1.25rem;
    }
    .pd-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    html body .products2[data-demos] .pd-head .p2-copy { flex: 0 0 auto; width: 100%; }
    html body .products2[data-demos] .pd-head .p2-ctas { display: flex; }
    .products2[data-demos] { --pd-card-h: 500px; --pd-pad-y: 16px; }
    .pd-stage { padding-left: 10px; padding-right: 10px; border-radius: 16px; }
}
@media (max-width: 600px) {
    .pd-body { padding: 14px 14px 4px; }
    .pd-top { padding: 8px 10px; }
    .pd-foot { padding: 6px 10px 10px 14px; flex-wrap: wrap; }
    .pd-src { grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 2em; gap: 8px; }
    .pd-cols { gap: 0 6px; }
    .pd-hide-sm { display: none !important; }
    .products2[data-demos] { --pd-card-h: 560px; }
    .pd-title { min-height: 3.9em; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .products2[data-demos] { transition: none; }
    .pd-scene, .pd-title, .pd-src-bar, .pd-cursor, .pd-chip { transition: none !important; animation: none !important; }
    .pd-node-ring, .pd-dot.is-pulse { animation: none; }
}

/* Vox: the bar is a transport while recognising, a text box while speaking */
.pd-time { flex: 1 1 auto; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--pd-mute); }
.pd-ask .pd-play { background: #121316; }
.pd-card.is-vox:not(.is-tts) .pd-ask input,
.pd-card.is-vox:not(.is-tts) .pd-ask button[type="submit"] { display: none; }
.pd-card.is-tts .pd-ask .pd-play,
.pd-card.is-tts .pd-ask .pd-time { display: none; }

/* keep the heading's own line break; the older rule hid it on phones and
   glued words together where the markup has no space around <br> */
html body .products2[data-demos] .pd-head .prod-heading br { display: inline; }
@media (max-width: 600px) {
    .pd-notes .pd-note { display: none; }
}

/* Hujjat: the route block sits in the middle of the card */
.pd-card.is-hujjat .pd-body > .pd-cols { margin-top: auto; }
.pd-card.is-hujjat .pd-after { margin-bottom: auto; }
.pd-card.is-hujjat .pd-cols b { font-size: clamp(16px, 0.7vw + 0.8vh, 20px); }

/* Cortex: what the bars mean */
.pd-src-head { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr) auto; gap: 12px; margin-bottom: 2px; font-size: 10.5px; color: var(--pd-faint); }
.pd-src-head span:last-child { text-align: right; }
@media (max-width: 600px) { .pd-src-head { grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; gap: 8px; } }
.pd-srcs { gap: 9px; }

/* HR: applicants chart on the left, the live shortlist on the right */
.pd-split {
    flex: 1 1 0 !important;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 33%);
    grid-template-rows: minmax(0, 1fr);
    gap: 26px;
    margin-top: 10px;
}
.pd-split-l { display: flex; flex-direction: column; min-height: 0; }
.pd-split-l .pd-plot { margin-top: 0; }
.pd-cap { margin-top: 2px; font-size: 10.5px; color: var(--pd-mute); text-align: center; }
.pd-short { display: flex; flex-direction: column; min-height: 0; padding-left: 20px; border-left: 1px solid #f0f0f2; }
.pd-short-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--pd-mute); }
.pd-short-h b { font-size: 15px; font-weight: 500; color: var(--pd-blue); font-variant-numeric: tabular-nums; }
.pd-cand {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    transition: opacity 0.35s ease;
}
.pd-cand i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e9effc;
    color: var(--pd-blue);
    font-size: 9.5px;
    font-style: normal;
    font-weight: 500;
    transition: background-color 0.35s ease, color 0.35s ease;
}
.pd-cand span { display: block; overflow: hidden; font-size: 12px; color: var(--pd-ink); white-space: nowrap; text-overflow: ellipsis; }
.pd-cand small { display: block; overflow: hidden; font-size: 10.5px; color: var(--pd-mute); white-space: nowrap; text-overflow: ellipsis; }
.pd-cand b { font-size: 12px; font-weight: 500; color: var(--pd-blue); font-variant-numeric: tabular-nums; transition: color 0.35s ease; }
.pd-cand.is-below { opacity: 0.38; }
.pd-cand.is-below i { background: #f0f0f2; color: var(--pd-mute); }
.pd-cand.is-below b { color: var(--pd-mute); }
.pd-cand.is-pulse i { animation: pd-pulse 0.9s var(--pd-ease); }
.pd-short-more { margin-top: 2px; font-size: 11px; color: var(--pd-mute); }
.pd-pill.is-handle { cursor: ew-resize; pointer-events: auto; padding: 4px 7px 3px; }
@media (max-width: 600px) {
    .pd-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
    .pd-short { padding-left: 0; border-left: 0; }
    .pd-cand { padding: 3px 0; }
    .pd-cand small, .pd-cand.is-extra { display: none; }
}
.pd-short { overflow: hidden; }
@media (min-width: 601px) and (max-height: 820px) {
    .pd-short .pd-cand:nth-child(6) { display: none; }
    .pd-cand { padding: 3px 0; }
}
