/* "How it works" animations (landing page only; markup in
   Views/Home/_Hook*.cshtml, steps driven by js/hooks.js). Everything is
   prefixed hk- so nothing leaks into the rest of the page. Without the
   script the markup's own "on" classes show the final frame. */

.hk {
    container: hk / inline-size;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: var(--body);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
}
.hk-brand,
.hk-kicker {
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hk-brand { font-size: 11px; color: var(--accent); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hk-soon { font-size: 10px; letter-spacing: 0.06em; color: var(--ink); background: var(--accent); border-radius: 99px; padding: 2px 8px; }
.hk-clock { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: #C9D2DB; white-space: nowrap; }
.hk-live { width: 7px; height: 7px; border-radius: 99px; background: #3DD68C; animation: hk-live 1.6s ease-in-out infinite; }

.hk-body { flex: 1 1 auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hk-kicker { font-size: 10.5px; color: var(--slate); }
.hk-kicker-light { color: var(--accent); }
.hk-kicker-accent { color: #1A6E91; }
.hk-kicker-ok { color: #1F9D61; }

/* Show / hide by step. */
.hk-show:not(.on) { display: none; }
/* Hidden but still taking its space, so the block keeps one height. */
.hk-keep:not(.on) { visibility: hidden; }
/* Alternatives that share one slot: the slot is as big as the biggest. */
.hk-stack { display: inline-grid; }
.hk-stack > * { grid-area: 1 / 1; }
.hk-swap:not(.on) .hk-when-on,
.hk-swap.on .hk-when-off { display: none; }

/* Sources */
.hk-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hk-src-label { font-size: 12px; font-weight: 600; color: var(--slate); margin-right: 4px; }
.hk-src {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px;
    background: transparent; border: 1px dashed var(--muted); color: var(--slate);
    transition: background .5s, border-color .5s, color .5s;
}
.hk-src i { width: 6px; height: 6px; border-radius: 99px; background: #C9D2DB; transition: background .5s; }
.hk-src.on { background: var(--white); border: 1px solid #1A6E91; color: var(--ink); }
.hk-src.on i { background: #3DD68C; }
.hk-d1, .hk-d1 i { transition-delay: 140ms; }
.hk-d2, .hk-d2 i { transition-delay: 280ms; }
.hk-d3, .hk-d3 i { transition-delay: 420ms; }

/* Objective */
.hk-objective {
    background: var(--panel); color: var(--white); border-radius: 12px; padding: 12px 16px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px;
    transition: opacity .6s, box-shadow .6s;
}
.hk-fade:not(.on) { opacity: 0.25; }
.hk-glow.on { box-shadow: 0 0 0 4px rgba(61, 214, 140, .55), 0 0 44px rgba(61, 214, 140, .35); }
.hk-obj-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hk-obj-title { font-family: var(--head); font-weight: 800; font-size: 17px; }
.hk-obj-note { font-family: var(--mono); font-size: 12px; color: #C9D2DB; }
.hk-obj-pct { display: flex; align-items: baseline; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 22px; }
.hk-gain { font-family: var(--body); font-size: 13px; font-weight: 600; color: #3DD68C; }
.hk-track { flex: 1 1 100%; height: 6px; border-radius: 99px; background: #3A4A5A; overflow: hidden; }
.hk-bar { display: block; height: 100%; width: 64%; border-radius: 99px; background: var(--accent); transition: width 1s ease, background .6s; }
.hk-bar.on { width: 66%; }
.hk-glow.on .hk-bar { background: #3DD68C; }

.hk-subs { background: var(--panel); color: var(--white); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hk-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 14px; }
.hk-sub-ok, .hk-sub-risk { font-family: var(--mono); font-size: 12px; }
.hk-sub-ok { color: #C9D2DB; }
.hk-sub-risk { color: #FF7A8A; }

/* X-Ray rows */
.hk-rows { position: relative; display: flex; flex-direction: column; gap: 8px; border-radius: 12px; overflow: hidden; }
.hk-row {
    position: relative; box-sizing: border-box; border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--line);
}
.hk-row-plain { border: 0; padding: 0; background: transparent; }
.hk-chip {
    flex: none; box-sizing: border-box; min-width: 88px; text-align: center;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
    background: var(--soft); color: var(--muted); transition: background .5s, color .5s;
}
/* Both chip labels share one slot, so the chip keeps its width. */
.hk-chip { display: inline-grid; }
.hk-chip > span { grid-area: 1 / 1; }
.hk-swap:not(.on) .hk-chip .hk-when-on,
.hk-swap.on .hk-chip .hk-when-off { display: inline; visibility: hidden; }
.hk-row.on .hk-chip-ok { background: #3DD68C; color: #0B2416; }
.hk-row.on .hk-chip-warn { background: #F2B705; color: #241A00; }
.hk-row.on .hk-chip-risk { background: var(--risk); color: var(--white); }
.hk-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hk-row-title { font-weight: 600; font-size: 14px; line-height: 1.35; border-radius: 6px; transition: color .5s, background .5s; }
.hk-row:not(.on) .hk-row-title { color: transparent; background: var(--soft); }
/* Before a row is checked its texts are grey bars of the same size. */
.hk-row:not(.on) .hk-kicker { color: transparent; background: var(--soft); border-radius: 4px; }

.hk-gapframe { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; }
.hk-gapframe.on { border: 1.5px solid var(--risk); box-shadow: 0 0 0 4px #FDE7EA; }
.hk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: hk-pop .45s ease both; }
.hk-told, .hk-real { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.hk-told { background: var(--wash); border: 1px solid var(--line); }
.hk-real { background: #FFF1F3; border: 1px solid #F3B4BC; }
.hk-real .hk-kicker { color: var(--risk); }
.hk-sent { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; animation: hk-pop .45s ease both; }
.hk-gap { font-size: 13px; color: var(--slate); }
.hk-gap b { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--risk); margin-right: 6px; white-space: nowrap; }
.hk-sent-tag { font-size: 13px; font-weight: 600; color: var(--white); background: #1A6E91; padding: 8px 12px; border-radius: 9px; }

.hk-radar { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; background: repeating-radial-gradient(circle at 50% 50%, rgba(26, 110, 145, 0) 0 58px, rgba(26, 110, 145, .16) 58px 59px); }
.hk-radar-sweep {
    position: absolute; left: calc(50% - 800px); top: calc(50% - 800px); width: 1600px; height: 1600px; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(128, 210, 237, 0) 0deg, rgba(128, 210, 237, 0) 300deg, rgba(128, 210, 237, .4) 359deg, var(--accent) 359.5deg, rgba(128, 210, 237, 0) 360deg);
    animation: hk-spin 2s linear infinite;
}
.hk-radar-dot { position: absolute; left: calc(50% - 5px); top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 4px rgba(128, 210, 237, .8); }
.hk-echo { position: absolute; left: 58px; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid; pointer-events: none; z-index: 3; animation: hk-echo .8s ease-out 3; }
.hk-ok-echo { border-color: #3DD68C; }
.hk-warn-echo { border-color: #F2B705; }
.hk-risk-echo { border-color: var(--risk); }

/* Control Room list */
.hk-listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hk-list-title { font-family: var(--head); font-weight: 800; font-size: 16px; }
.hk-list-note { font-family: var(--mono); font-size: 11px; color: var(--slate); }
/* Tall enough for the biggest step, so the page does not jump. */
.hk-work { display: flex; flex-direction: column; gap: 8px; min-height: 490px; }
.hk-item {
    box-sizing: border-box; min-height: 58px; border-radius: 12px; padding: 8px 14px;
    display: flex; align-items: center; gap: 12px; position: relative;
    background: var(--white); border: 1px solid var(--line); transition: background .5s, border-color .5s, opacity .5s;
}
.hk-item.hk-swap.on:not(.hk-rejected) { background: var(--panel); color: var(--white); border-color: var(--panel); }
.hk-item.hk-swap.on:not(.hk-rejected) .hk-kicker,
.hk-item.hk-swap.on:not(.hk-rejected) .hk-rank { color: var(--accent); }
.hk-rejected.on { opacity: 0.55; }
.hk-rank { flex: none; width: 22px; font-family: var(--mono); font-size: 12px; color: #1A6E91; }
.hk-sev { flex: none; box-sizing: border-box; width: 68px; text-align: center; font-size: 11px; font-weight: 600; padding: 3px 0; border-radius: 6px; }
.hk-sev-high { background: var(--risk); color: var(--white); }
.hk-sev-medium { background: #F2B705; color: #241A00; }
.hk-sev-low { background: #3DD68C; color: #0B2416; }
.hk-item-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hk-item-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-stamp {
    flex: none; border: 2px solid #3DD68C; color: #3DD68C; background: rgba(11, 36, 22, .55); border-radius: 6px; padding: 3px 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-6deg);
    animation: hk-stamp .45s cubic-bezier(.2, .8, .2, 1) both;
}

.hk-panel {
    margin-top: 8px; background: var(--white); border: 1.5px solid #1A6E91; border-left-width: 5px; border-radius: 12px;
    box-shadow: 0 8px 28px rgba(26, 110, 145, .16); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
    animation: hk-pop .45s ease both;
}
.hk-panel-head { font-family: var(--head); font-weight: 800; font-size: 18px; line-height: 1.3; }
.hk-draft { background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hk-draft-meta { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.hk-draft-body { font-size: 14px; line-height: 1.55; }
.hk-reason { border: 1px solid var(--panel); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; animation: hk-pop .45s ease both; }
.hk-panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.hk-evidence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--slate); }
.hk-evidence i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 400; padding: 4px 8px; border-radius: 6px; background: var(--soft); color: var(--panel); }
.hk-decide { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hk-mini { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--slate); transition: background .2s, color .2s, transform .2s; }
.hk-mini-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hk-pressable.on { transform: scale(0.95); }
.hk-mini-dark.hk-pressable.on { background: #3DD68C; color: #0B2416; border-color: #3DD68C; }
.hk-mini.hk-pressable.on:not(.hk-mini-dark) { background: var(--panel); color: var(--white); border-color: var(--panel); }
.hk-result { margin-left: auto; font-size: 14px; font-weight: 600; color: #1F9D61; animation: hk-pop .45s ease both; }
.hk-result-learn { margin-left: 0; flex: 1 1 100%; color: #1A6E91; font-size: 15px; }

.hk-impact {
    background: var(--white); border: 2px solid #3DD68C; border-radius: 14px; box-shadow: 0 10px 32px rgba(61, 214, 140, .22);
    padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; animation: hk-pop .45s ease both;
}
.hk-impact-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--head); font-weight: 800; }
.hk-was { font-size: 34px; line-height: 1; color: var(--muted); }
.hk-now { font-size: 48px; line-height: 1; color: #1F9D61; }
.hk-up { font-family: var(--body); font-size: 15px; font-weight: 700; background: #3DD68C; color: #0B2416; padding: 4px 10px; border-radius: 7px; }
.hk-impact-text { font-size: 16px; font-weight: 600; line-height: 1.45; }
.hk-impact-fine { font-size: 13px; color: var(--slate); }

/* Delegate (step 03, as designed): typed instruction, four e-Agents in
   parallel, slide thumbnails, the board deck status. */
.dg-ask { background: var(--white); border: 1.5px solid #1A6E91; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dg-ask-text { font-size: 15px; font-weight: 600; line-height: 1.45; }
.dg-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: hk-live 1s steps(1) infinite; }
.dg-caret:not(.on) { display: none; }
.dg-ask-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dg-assign { font-size: 13px; color: var(--slate); }
.dg-assign b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--white); background: var(--panel); border-radius: 6px; padding: 2px 8px; margin-left: 4px; }
.dg-assign-btn { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 9px; background: #C9D2DB; color: var(--white); transition: background .4s, color .4s; }
.dg-assign-btn.on { background: var(--soft); color: var(--slate); }
.dg-agents-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.dg-agents-title { font-weight: 700; font-size: 14px; }
.dg-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dg-agent { border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; background: transparent; border: 1px dashed #C9D2DB; opacity: .5; transition: opacity .5s, background .5s; }
.dg-agent.on { background: var(--white); border: 1px solid var(--line); opacity: 1; }
.dg-agent-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; font-size: 14px; }
.dg-agent-top b { white-space: nowrap; }
.dg-agent-state { font-family: var(--mono); font-size: 10.5px; color: #1A6E91; text-align: right; }
.dg-agent-state .dg-ready { color: #1F9D61; }
.dg-agent-job { font-size: 12px; color: var(--slate); }
.dg-track { position: relative; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dg-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; transition: width 1.4s ease; }
.dg-fill-work { background: var(--accent); }
.dg-fill-work.on { width: 40%; }
.dg-fill-done { background: #3DD68C; }
.dg-fill-done.on { width: 100%; }
.dg-slides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dg-slide { aspect-ratio: 4 / 3; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border: 1px dashed #C9D2DB; background: transparent; overflow: hidden; }
.dg-slide.on { background: var(--white); border: 1px solid var(--line); animation: hk-pop .45s ease both; }
.dg-slide-title { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: #1A6E91; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-slide:not(.on) > * { visibility: hidden; }
.dg-chart { flex: 1; display: flex; gap: 3px; }
.dg-chart-bars { align-items: flex-end; }
.dg-chart-bars i { flex: 1; border-radius: 2px 2px 0 0; background: #BFE4F2; }
.dg-chart-bars i:nth-child(1) { height: 30%; } .dg-chart-bars i:nth-child(2) { height: 45%; } .dg-chart-bars i:nth-child(3) { height: 55%; }
.dg-chart-bars i:nth-child(4) { height: 75%; background: var(--accent); } .dg-chart-bars i:nth-child(5) { height: 90%; background: #1A6E91; }
.dg-chart-lines, .dg-chart-risks { flex-direction: column; justify-content: center; gap: 4px; }
.dg-chart-lines i, .dg-chart-risks i { height: 3px; border-radius: 99px; background: #BFE4F2; }
.dg-chart-lines i:nth-child(1) { width: 90%; background: #1A6E91; } .dg-chart-lines i:nth-child(2) { width: 70%; } .dg-chart-lines i:nth-child(3) { width: 80%; } .dg-chart-lines i:nth-child(4) { width: 55%; } .dg-chart-lines i:nth-child(5) { width: 65%; }
.dg-chart-risks i:nth-child(1) { width: 85%; background: var(--risk); } .dg-chart-risks i:nth-child(2) { width: 70%; background: #F2B705; } .dg-chart-risks i:nth-child(3) { width: 60%; background: #F2B705; } .dg-chart-risks i:nth-child(4) { width: 75%; background: #3DD68C; } .dg-chart-risks i:nth-child(5) { width: 50%; background: #3DD68C; }
.dg-deck { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; border-radius: 12px; padding: 10px 12px; border: 1px dashed #C9D2DB; transition: border-color .5s, background .5s; }
.dg-deck.on { border: 1.5px solid #1A6E91; background: var(--white); }
.dg-deck-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.dg-deck-state b { color: #1A6E91; }
.dg-deck-btn { font-size: 12.5px; font-weight: 600; color: var(--white); background: #1A6E91; padding: 7px 12px; border-radius: 9px; }

/* Scale (step 04, as designed: Org AI maturity with sample figures). Each
   bar holds one fill per step; only the fill for the current step shows. */
.sc-sample { background: #F2B705; }
.sc-box { background: var(--panel); color: var(--white); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-figure { display: flex; align-items: flex-end; gap: 10px; }
.sc-figure b { font-family: var(--head); font-weight: 800; font-size: 46px; line-height: 1; }
.sc-state { font-weight: 600; font-size: 15px; color: var(--accent); padding-bottom: 6px; }
.sc-state .sc-native { color: #3DD68C; }
.sc-weeks { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.sc-weeks i { width: 7px; border-radius: 2px; background: #3A4A5A; transition: background .5s; }
.sc-weeks i:nth-child(1) { height: 12%; } .sc-weeks i:nth-child(2) { height: 18%; } .sc-weeks i:nth-child(3) { height: 28%; } .sc-weeks i:nth-child(4) { height: 38%; }
.sc-weeks i:nth-child(5) { height: 50%; } .sc-weeks i:nth-child(6) { height: 62%; } .sc-weeks i:nth-child(7) { height: 80%; } .sc-weeks i:nth-child(8) { height: 92%; }
.sc-weeks i.on { background: var(--accent); }
.sc-weeks i.on.sc-native-bar { background: #3DD68C; }
.sc-track, .sc-task-track { position: relative; height: 6px; border-radius: 99px; background: #3A4A5A; overflow: hidden; }
.sc-task-track { height: 4px; background: var(--soft); flex: 0 0 38%; }
.sc-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); opacity: 0; transition: opacity .5s; }
.sc-fill.on { opacity: 1; }
.sc-fill.sc-native-fill { background: #3DD68C; }
.sc-marker { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--white); opacity: .8; }
.sc-box-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-family: var(--mono); font-size: 10.5px; color: #C9D2DB; }
.sc-caption-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.sc-caption { font-weight: 700; font-size: 14px; }
.sc-legend { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--slate); }
.sc-dot { width: 7px; height: 7px; border-radius: 99px; background: #C9D2DB; display: inline-block; }
.sc-dot-assisted { background: var(--accent); margin-left: 6px; }
.sc-dot-native { background: #3DD68C; margin-left: 6px; }
.sc-org { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .5s, box-shadow .5s; }
.sc-card.on { border-color: #3DD68C; box-shadow: 0 0 0 1px #3DD68C; }
.sc-card-ceo { grid-column: 1 / -1; }
.sc-card-top { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; }
.sc-card-pct { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.sc-card-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 6px; font-size: 11px; color: var(--slate); }
.sc-tag { white-space: nowrap; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--slate); }
.sc-tag-assisted { background: #BFE4F2; color: #0F4A63; }
.sc-tag-ai-native { background: #3DD68C; color: #0B2416; }
.sc-task { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; }
.sc-task > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-w-0 { width: 0%; }
.sc-w-5 { width: 5%; }
.sc-w-10 { width: 10%; }
.sc-w-15 { width: 15%; }
.sc-w-20 { width: 20%; }
.sc-w-25 { width: 25%; }
.sc-w-30 { width: 30%; }
.sc-w-35 { width: 35%; }
.sc-w-40 { width: 40%; }
.sc-w-45 { width: 45%; }
.sc-w-50 { width: 50%; }
.sc-w-55 { width: 55%; }
.sc-w-60 { width: 60%; }
.sc-w-65 { width: 65%; }
.sc-w-70 { width: 70%; }
.sc-w-75 { width: 75%; }
.sc-w-80 { width: 80%; }
.sc-w-85 { width: 85%; }
.sc-w-90 { width: 90%; }
.sc-w-95 { width: 95%; }
.sc-w-100 { width: 100%; }

@container hk (min-width: 600px) {
    .sc-org { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sc-card-ceo { grid-column: 2 / span 2; grid-row: 1; }
    .sc-card:not(.sc-card-ceo) { grid-row: 2; }
}

/* Only what needs you */
.hk-filter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.hk-count { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--slate); }
.hk-count b { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--ink); }
.hk-handled { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--slate); }
/* The stream and the cards share one slot: as tall as the taller one. */
.hk-slot { display: grid; }
.hk-slot > * { grid-area: 1 / 1; min-width: 0; }
.hk-stream { display: flex; flex-direction: column; gap: 6px; }
.hk-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-size: 14px; transition: opacity .6s; }
.hk-needs { display: flex; flex-direction: column; gap: 8px; }
.hk-needs .hk-list-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hk-needs.on { animation: hk-pop .45s ease both; }
.hk-needs .hk-mini { flex: none; }

/* A day with your e-CEO (as designed): headline that lights the current
   word, a big time + label + sentence on the left, one card per step on
   the right, progress dots. Two columns when the panel is wide. */
.dy-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dy-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #1A6E91; }
.dy-headline { font-family: var(--head); font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.dy-w { transition: color .5s; }
.dy-w.on { color: var(--accent); }
.dy-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.dy-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dy-time { font-family: var(--head); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.03em; color: #1A6E91; }
.dy-label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.dy-text { font-size: 15px; line-height: 1.5; }
.dy-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dy-card-head { display: flex; justify-content: space-between; gap: 8px; }
.dy-layer { display: flex; flex-direction: column; gap: 8px; }
.dy-alert { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dy-alert-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dy-alert b { font-size: 15px; }
.dy-muted { color: var(--slate); font-size: 13px; }
.dy-dashed { border: 1px dashed var(--muted); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--slate); }
.dy-card-title { font-size: 15px; }
.dy-option { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; transition: background .5s, color .5s; }
.dy-pick { background: #EAF6FB; border-color: #BFE4F2; }
.dy-pick.on { background: var(--panel); border-color: var(--panel); color: var(--white); }
.dy-rec, .dy-ok { flex: none; white-space: nowrap; font-size: 12px; font-weight: 600; }
.dy-rec { color: var(--risk); }
.dy-ok { color: #3DD68C; }
.dy-log { display: flex; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.dy-log i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--slate); }
.dy-outcome { background: var(--panel); color: var(--white); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dy-outcome b { font-size: 15px; }
.dy-outcome-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #C9D2DB; }
.dy-outcome-pct { font-family: var(--mono); color: var(--accent); }
.dy-outcome-track { height: 6px; border-radius: 99px; background: #3A4A5A; overflow: hidden; }
.dy-outcome-bar { display: block; height: 100%; width: 72%; border-radius: 99px; background: var(--accent); transition: width 1.2s ease; }
.dy-outcome-bar.on { width: 78%; }
.dy-dots { display: flex; align-items: center; gap: 10px; }
.dy-dots i { width: 6px; height: 6px; border-radius: 99px; background: #C9D2DB; transition: width .4s, background .4s; }
.dy-dots i.on { width: 26px; background: #1A6E91; }
@container hk (min-width: 600px) {
    .dy-stage { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; }
}

/* Footer and controls */
.hk-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.hk-foot-text { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.hk-trust { display: flex; align-items: center; gap: 10px; }
.hk-trust b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.hk-trust-track { width: 80px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hk-trust-bar { display: block; height: 100%; width: 81%; border-radius: 99px; background: #1A6E91; transition: width 1s ease; }
.hk-trust-bar.on { width: 84%; }
.hk-controls { display: none; align-items: center; gap: 6px; }
.hk.is-live .hk-controls { display: flex; }
/* Room for the longest label ("Paused while you look") is kept even when it
   is empty, so hovering never re-wraps the footer and moves the page. */
.hk-status { font-family: var(--mono); font-size: 11px; color: var(--slate); min-width: 22ch; text-align: right; }
.hk-btn {
    min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.hk-btn:hover { border-color: var(--ink); }
.hk-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hk-btn-wide { min-width: 72px; }

/* Narrow: drop ranks and the header counters, stack the comparison. */
@container hk (max-width: 560px) {
    .hk-wide-only { display: none !important; }
    .hk-compare { grid-template-columns: 1fr; }
    .hk-chip { min-width: 0; }
    .hk-sev { width: 60px; }
    .hk-body { padding: 14px; }
    .hk-item-title { white-space: normal; }
    .hk-work { min-height: 670px; }
    .dg-slides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dy-time { font-size: 48px; }
    .dy-headline { font-size: 18px; }
}

.hk-keep:not(.on) { animation: none; }

@keyframes hk-live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes hk-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hk-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hk-echo { 0% { width: 0; height: 0; opacity: .95; } 100% { width: 110px; height: 110px; opacity: 0; } }
@keyframes hk-stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-6deg) scale(.92); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .hk *, .hk *::before, .hk *::after { animation: none !important; transition: none !important; }
    .hk-radar, .hk-echo { display: none !important; }
}

/* See it in action (SeeItDots): it plays by itself; no Play, Pause or arrows,
   its dots jump to a moment. */
[data-hook-dots] .hk-controls, [data-hook-dots] .hk.is-live .hk-controls { display: none; }
[data-hook-dots] .dy-dots { pointer-events: auto; }
[data-hook-dots] .hk.is-live .dy-dots i { cursor: pointer; position: relative; }
[data-hook-dots] .hk.is-live .dy-dots i::before { content: ""; position: absolute; inset: -12px -4px; }
