/* Motion follows user actions. No looping or simulated live-data animations. */
:root{--ui-ease:cubic-bezier(.2,.75,.25,1)}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button{transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}
button:not(:disabled):active{transform:scale(.98)}
.animated-number,.animated-number>span{font:inherit!important;letter-spacing:inherit;display:inline!important;font-variant-numeric:tabular-nums}
.animated-number>.kh-sr-only{display:block!important}
.masthead{min-height:72px;padding-block:13px}
.wordmark{font-size:32px}
.page-heading{padding:24px 0 22px;align-items:center}
.page-heading h1{font-size:clamp(30px,3.5vw,44px);margin-top:10px}
.heading-note p{margin:8px 0 0;font-size:13px}
.supplier-views{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:5px;margin-bottom:18px;border:1px solid #d6d6d0;border-radius:13px;background:#f6f6f2;overflow:visible;isolation:isolate;box-shadow:0 3px 0 3px #fff}
.supplier-views .tab-indicator{position:absolute;inset:5px auto 5px 5px;width:calc((100% - 10px)/3);border:1px solid #b2da39;border-radius:9px;background:var(--kh-lime);transform:translateX(calc(var(--active-tab)*100%));transition:transform .34s var(--ui-ease);z-index:-1}
.supplier-views button{border:0;border-radius:8px;min-width:0;background:transparent;font-size:14px;padding:12px 18px;min-height:48px;white-space:normal}
.supplier-views button[aria-selected=true]{font-weight:600}
.supplier-views button:hover{background:#00000006}
.tab-number{font-size:11px;opacity:.55;margin-right:12px;font-variant-numeric:tabular-nums}
.forecast-workbar,.forecast-context{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:#646460}
.forecast-workbar p{display:flex;align-items:center;gap:9px;margin:0;flex-wrap:wrap}
.scope-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#353535}
.scope-separator{opacity:.35}
.method-link{background:none;border:0;color:inherit;min-height:40px;font-size:12px;white-space:nowrap;padding:8px 0;text-decoration:underline;text-underline-offset:4px}
.planning-controls{display:flex;gap:24px;align-items:center;flex-wrap:wrap;background:#fafaf7;border:1px solid #e4e4dc;border-radius:12px;padding:17px 20px;margin:10px 0 12px}
.choice{border:0;padding:0;margin:0;min-width:0}
.choice legend{font-size:12px;color:#62625d;margin-bottom:8px;padding:0}
.choice-options{display:flex;border:1px solid #d5d5cb;border-radius:8px;overflow:hidden;background:#fff}
.choice-options button{background:transparent;border:0;border-right:1px solid #e8e8df;padding:10px 13px;font-size:12px;min-height:42px;color:#353535;white-space:nowrap}
.choice-options button:last-child{border:0}
.choice-options button[aria-pressed=true]{background:#242424;color:white}
.choice-options button:hover:not([aria-pressed=true]){background:#f1f4e8}
.choice-options button:focus-visible{outline-offset:-4px}
.planning-sliders{display:flex;gap:24px;flex:1;min-width:270px}
.planning-sliders label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:12px;gap:10px;flex:1;min-width:0}
.planning-sliders strong{font-size:12px;font-weight:500}
.planning-sliders input{width:100%;min-width:0;height:22px;accent-color:var(--kh-purple);cursor:ew-resize;margin:0}
.forecast-context{font-size:11px;justify-content:flex-start;flex-wrap:wrap;gap:10px 24px}
.forecast-context>span:first-child{display:flex;align-items:center;gap:7px;color:#6d38ab}
.forecast-dot{display:inline-block;background:var(--kh-purple);width:7px;height:7px;border-radius:2px}
.fc-kpis{margin:16px 0 20px;border-color:#30302b}
.fc-kpis>div{padding:18px 20px}
.fc-kpis strong{font-size:32px;letter-spacing:-.035em;margin:8px 0}
.fc-kpis span{font-size:13px}
.fc-kpis small{line-height:1.5}
.pattern-kpis>div:nth-child(3){background:#f3edff}
.catalog-controls{margin:18px 0;gap:14px;align-items:flex-end}
.catalog-controls label{font-size:12px;gap:8px}
.catalog-controls select{font-size:13px;min-height:44px;padding:10px 12px}
.catalog-controls .kh-search{min-width:160px}
.catalog-controls .kh-search input{min-height:46px;height:46px;font-size:13px}
.catalog-controls .kh-search button{width:34px;height:34px;min-height:34px;min-width:34px;right:6px;top:6px}
.catalog-controls>.kh-button{min-height:44px;font-size:12px;padding:10px 16px}
.forecast-explorer{border:1px solid #d4d4cc;border-radius:14px;padding:22px 24px;margin:22px 0 28px;background:linear-gradient(120deg,#fff 65%,#fcfbff)}
.explorer-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.explorer-title .eyebrow{font-size:10px;color:#777}
.explorer-title h2{font-size:25px;margin:7px 0 0}
.explorer-title select{border:1px solid #ccc;border-radius:8px;background:#fff;padding:10px 12px;font:inherit;font-size:13px;max-width:100%}
.explorer-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(200px,1fr);gap:32px;margin-top:20px}
.explorer-body aside{padding:22px;background:#f5f0fe;border:1px solid #e8defa;border-radius:10px;align-self:start}
.explorer-body aside .eyebrow{font-size:10px;color:#7045a1}
.explorer-body aside>strong{display:block;font-size:21px;line-height:1.25;margin:12px 0;letter-spacing:-.02em}
.explorer-body aside p{font-size:13px;line-height:1.6;color:#65606b;margin:0 0 18px}
.explorer-body aside .kh-button{font-size:13px;min-height:44px;justify-content:space-between;width:100%}
.interactive-chart{min-width:0}
.chart-readout{display:flex;align-items:start;justify-content:space-between;gap:16px;min-height:51px;margin-bottom:12px;font-size:13px}
.chart-readout small{font-size:11px;color:#777;display:block;margin-top:3px;font-weight:400;letter-spacing:0}
.chart-readout>strong{text-align:right;font-size:24px;font-weight:500;letter-spacing:-.025em;line-height:1.1}
.interactive-bars{display:flex;align-items:stretch;gap:7px;position:relative}
.interactive-bar{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:end;border:0;background:none;padding:0;color:#666;min-height:44px}
.bar-track{display:flex;width:100%;height:120px;align-items:flex-end;justify-content:center;border-bottom:1px solid #ddd;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#eee 25%)}
.bar-fill{width:70%;background:#b9bec2;border-radius:4px 4px 0 0;transform-origin:bottom;transition:height .48s var(--ui-ease),background .18s,opacity .18s;animation:bar-rise .55s var(--ui-ease) both}
.is-active .bar-fill{background:#292929}
.is-forecast .bar-fill{background:#c4a5ef}
.is-forecast.is-active .bar-fill{background:var(--kh-purple)}
.bar-label{font-size:10px;line-height:1.35;min-height:30px;padding-top:8px;text-align:center}
.chart-legend{display:flex;align-items:center;gap:16px;font-size:11px;color:#666;margin-top:6px;flex-wrap:wrap}
.chart-legend>span{display:flex;align-items:center;gap:6px}
.chart-legend i{width:7px;height:7px;border-radius:2px;background:#b9bec2}
.chart-legend .forecast-dot{background:var(--kh-purple)}
.chart-legend>small{margin-left:auto;font-size:10px}
.forecast-list-heading{margin:24px 0 17px}
.forecast-list-heading h2{font-size:24px;margin:0 0 5px}
.forecast-list-heading p{font-size:12px}
.fc-card{padding:24px;border-color:#d8d8d0;transition:border-color .2s,box-shadow .2s;animation:card-in .32s var(--ui-ease) both}
.fc-card:hover{border-color:#999e90;box-shadow:0 5px 18px #24242406}
.fc-card-head{align-items:start}
.fc-card h3{font-size:21px}
.fc-card-head p{font-size:14px}
.fc-numbers{margin:20px 0;gap:20px}
.fc-numbers strong{font-size:32px}
.fc-numbers span{font-size:12px}
.fc-numbers small{font-size:11px}
.fc-badge{font-size:11px;padding:6px 9px;display:inline-block}
.evidence-details{border-top:1px solid #deded6;padding-top:3px;margin-top:12px}
.evidence-details summary{min-height:44px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#666;list-style:none;gap:10px}
.evidence-details summary::-webkit-details-marker{display:none}
.evidence-details summary>span{font-size:21px;font-weight:300;transition:transform .2s}
.evidence-details[open] summary>span{transform:rotate(45deg)}
.evidence-details[open]>.fc-breakdown{animation:card-in .2s ease-out}
.fc-actions{margin-top:14px;gap:12px}
.fc-actions .kh-button{font-size:12px;min-height:44px;padding:11px 16px}
.fc-actions>button:not(.kh-button){font-size:12px;text-underline-offset:3px}
.fc-draft{scroll-margin-top:85px}
.draft-count{font-size:12px;display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:2px 7px;background:var(--kh-lime);color:#222;border-radius:100px;vertical-align:middle;margin-left:6px}
.pattern-identity{display:flex;align-items:center;gap:18px;margin-bottom:20px;min-height:84px}
.pattern-identity>div{min-width:0}
.pattern-identity h3{margin:4px 0 8px;line-height:1.2}
.quiet-label{font-size:11px;color:#777}
.pattern-art{width:76px;height:88px;flex-shrink:0;border-radius:10px;background:#efeee6;padding:7px;color:#a79e86}
.art-vest{background:#e9efe6;color:#6b805e}
.art-tee{background:#ecedf4;color:#858fb0}
.art-hood{background:#f2e9e5;color:#b28e81}
.data-period{font-size:10px!important;font-weight:600;letter-spacing:.06em;color:#777}
.observed-block .fc-numbers{margin:9px 0 15px}
.observed-block .fc-numbers strong{font-size:30px;margin:7px 0}
.compact-chart{background:#f9f9f6;padding:12px 14px 4px;border-radius:8px;margin:8px 0 16px}
.compact-chart .chart-readout{min-height:32px;font-size:10px;margin-bottom:6px;gap:12px}
.compact-chart .chart-readout>strong{font-size:17px;white-space:nowrap}
.compact-chart .chart-readout small{font-size:10px}
.compact-chart .chart-readout>span>small{display:none}
.compact-chart .bar-track{height:52px;background:none}
.compact-chart .bar-fill{width:85%;background:#b7bea4}
.compact-chart .is-active .bar-fill{background:#6b7b45}
.compact-chart .bar-label{min-height:22px;padding-top:4px;font-size:9px}
.projected-block{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f5efff;border-radius:9px;padding:15px 16px}
.projected-block .data-period{color:#7243a6}
.projected-block small{display:block;font-size:11px;color:#73637f;margin-top:5px;letter-spacing:0;font-weight:400}
.projected-block>strong{font-size:27px;font-weight:500;text-align:right;letter-spacing:-.03em}
.pattern-card .fc-link{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:13px;margin-top:4px;text-decoration:none;font-weight:500}
.pattern-table{border:1px solid #ccc;border-radius:12px;margin:16px 0}
.pattern-table caption{text-align:left;padding:16px;color:#666;font-size:12px;background:#fafaf7}
.pattern-table th{white-space:normal;min-width:100px;background:#f5f5ef}
.pattern-table th:nth-child(4),.pattern-table th:nth-child(5){background:#f1eafd;color:#63339a}
.pattern-table td{font-size:13px}
.pattern-table td:first-child{min-width:180px}
.pattern-table td small{display:block;color:#777;margin-top:5px;font-size:11px}
.attribution-note{padding:16px 18px;border-left:3px solid #baa2d9;background:#faf7ff;font-size:12px;line-height:1.6;margin:24px 0}
.attribution-note strong{display:block}
.attribution-note span{color:#73677d}
.contribution-panel h3{font-size:22px}
.fc-contribution>div{flex:1}
.fc-contribution>strong{white-space:nowrap;font-weight:500}
.contribution-track{display:block;width:100%;height:4px;background:#efebf4;margin-top:12px;border-radius:4px;overflow:hidden}
.contribution-track i{display:block;height:100%;background:#9676bf;border-radius:4px;transition:width .5s var(--ui-ease)}
.shortage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;background:#faf3f0;padding:18px;border-radius:10px;margin:20px 0}
.shortage-summary span{font-size:12px;color:#76665f}
.shortage-summary strong{display:block;font-size:26px;font-weight:500}
.shortage-steps{padding-left:20px;font-size:14px}
.shortage-steps li{padding:7px 0;line-height:1.6}
.fc-toast{border:1px solid #444;border-radius:999px;box-shadow:0 8px 36px #0002;animation:toast-in .25s var(--ui-ease);padding:10px 14px;font-size:13px}
.toast-check{width:27px;height:27px;background:var(--kh-lime);color:black;display:grid;place-items:center;border-radius:50%;flex-shrink:0}
.fc-toast button{min-width:32px;min-height:32px}
.toolbar{margin:22px 0 18px}
.country-field select{min-height:44px;font-size:13px;border-radius:8px;padding:10px 32px 10px 14px}
.period{font-size:12px;gap:5px}
.period span{font-size:12px}
.retailer-search{max-width:600px;margin-top:22px}
.retailer-search .kh-search{max-width:none}
.retailer-search input{min-height:48px}
.scope{font-size:12px}
.metric{padding:18px 20px}
.metric-value{font-size:32px}
.metric-label{font-size:13px}
.risk-card{transition:border-color .2s,box-shadow .2s;animation:card-in .32s ease-out}
.risk-card:hover{box-shadow:0 4px 18px #5c28280a;border-color:#bf8e85}
.stock-track>span,.mini-bar>span{transition:width .5s var(--ui-ease)}
.product-stores button{transition:background .18s,padding .18s}
.product-stores button:hover{padding-left:8px;padding-right:8px}
.insight-panel .choice{margin:20px 0}
.insight-panel .bar-track{height:145px}
.insight-panel .chart-readout{margin-top:20px}
.detail-chart .choice{margin-bottom:20px}
.detail-chart .bar-track{height:100px}
.selected-row{background:#f0f8d7!important}
.selected-row .retailer-symbol{background:var(--kh-lime);border-color:#c1da62}
.comparison-bar{animation:card-in .25s ease-out}
dialog[open]{animation:dialog-in .22s var(--ui-ease)}
dialog[open]::backdrop{animation:backdrop-in .2s}
.reorder-footer{position:sticky;bottom:-28px;background:white;padding:16px 0;margin-top:12px;border-top:1px solid #ddd;z-index:2}
.fc-dialog .table-wrap{margin:0;padding:0;max-width:100%}
@keyframes card-in{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes bar-rise{from{transform:scaleY(.15)}to{transform:scaleY(1)}}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@keyframes backdrop-in{from{background:#0000}to{background:#0008}}
@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(min-width:1350px){.planning-controls{flex-wrap:nowrap}.planning-sliders{max-width:420px;margin-left:auto}}
@media(max-width:1050px){.planning-sliders{flex-basis:100%;max-width:600px}.explorer-body{gap:22px}.toolbar .period{flex-basis:auto;margin-left:auto}.fc-controls>.kh-search{flex-basis:220px}}
@media(max-width:800px){.fc-controls>label{flex:initial;min-width:0}.catalog-controls>.kh-button{width:auto}.fc-card-head{flex-direction:row}.fc-actions>.kh-button{width:auto}.explorer-body{grid-template-columns:1fr}.explorer-body aside{display:grid;grid-template-columns:1fr auto;gap:0 18px;padding:18px}.explorer-body aside .eyebrow,.explorer-body aside>strong{grid-column:1}.explorer-body aside p{grid-column:1;grid-row:3;margin-bottom:0}.explorer-body aside .kh-button{grid-column:2;grid-row:1/4;align-self:center}.planning-controls{gap:16px}.forecast-workbar{align-items:start}.forecast-workbar p{padding-top:12px}.forecast-list-heading{flex-direction:row}.pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pattern-card{padding:18px}.pattern-identity{gap:12px}.pattern-art{width:55px;height:70px}.pattern-identity h3{font-size:18px}.pattern-card .fc-numbers{gap:12px}.pattern-card .fc-numbers strong{font-size:26px}.pattern-card .projected-block{gap:10px;padding:12px;flex-wrap:wrap}.projected-block>strong{text-align:left}.quiet-label{font-size:10px}}
@media(max-width:600px){main{padding:0 16px}.masthead{min-height:64px;gap:10px}.masthead .wordmark{font-size:27px}.demo{font-size:11px}.page-heading{padding:22px 0 18px}.page-heading h1{font-size:30px}.eyebrow{font-size:10px}.supplier-views{margin-bottom:12px;padding:4px}.supplier-views .tab-indicator{inset:4px auto 4px 4px;width:calc((100% - 8px)/3)}.supplier-views button{font-size:11px;line-height:1.35;min-height:48px;padding:8px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.tab-number{display:none}.forecast-workbar{gap:8px;font-size:10px}.forecast-workbar p{gap:6px}.forecast-workbar .scope-separator{display:none}.method-link{font-size:10px;white-space:normal;max-width:95px;text-align:right}.planning-controls{padding:14px 12px;gap:13px;display:grid;grid-template-columns:1fr}.planning-controls .choice-options button{flex:1}.planning-sliders{min-width:0;gap:20px}.planning-sliders input{height:30px}.choice legend{font-size:11px;margin-bottom:6px}.choice-options button{font-size:11px;padding:10px;min-height:42px}.forecast-context{font-size:10px;gap:6px}.fc-kpis{margin:14px 0 18px}.fc-kpis>div{padding:14px}.fc-kpis strong{font-size:29px}.fc-kpis span{font-size:11px}.fc-kpis small{font-size:10px}.catalog-controls{gap:12px}.catalog-controls>.kh-search{flex-basis:100%;min-width:0}.catalog-controls>label{flex:1;min-width:0}.catalog-controls select{max-width:100%;font-size:12px}.catalog-controls .choice{flex:1}.catalog-controls .choice-options button{flex:1}.catalog-controls>.kh-button{align-self:end;font-size:11px;padding:10px 12px}.forecast-explorer{padding:18px 16px;margin-top:18px}.explorer-title{flex-direction:column;align-items:stretch;gap:14px}.explorer-title h2{font-size:23px}.explorer-title select{width:100%;font-size:12px}.explorer-body{gap:10px}.explorer-body aside{display:block}.explorer-body aside p{margin-bottom:14px}.explorer-body aside>strong{font-size:20px}.interactive-bars{gap:4px}.chart-legend{gap:12px;font-size:10px}.chart-legend>small{margin-left:0}.bar-label{font-size:9px}.bar-track{height:100px}.bar-fill{width:80%}.chart-readout{font-size:12px}.fc-note{font-size:11px}.forecast-list-heading{gap:10px}.forecast-list-heading h2{font-size:23px}.forecast-list-heading p{font-size:11px}.forecast-list-heading .quiet-label{display:none}.pattern-grid{grid-template-columns:1fr}.pattern-card{padding:20px}.pattern-art{width:68px;height:80px}.pattern-identity h3{font-size:21px}.pattern-identity{gap:16px}.pattern-card .fc-numbers strong{font-size:30px}.pattern-card .projected-block{flex-wrap:nowrap;padding:15px}.projected-block>strong{text-align:right}.fc-card-head{flex-wrap:wrap;gap:10px}.fc-card{padding:20px}.fc-card h3{font-size:21px}.fc-numbers strong{font-size:30px}.fc-actions{gap:10px;flex-direction:row}.fc-actions .kh-button{font-size:11px;padding:11px 13px}.fc-actions>button:not(.kh-button){font-size:11px;flex:1}.pattern-table{margin-inline:0!important;padding:0!important;max-width:100%!important}.pattern-table table{min-width:720px}.contribution-panel h3{font-size:22px}.fc-contribution{gap:12px}.fc-contribution strong{font-size:13px}.fc-draft{padding:20px}.shortage-summary{padding:14px;gap:10px}.shortage-summary span{font-size:10px}.shortage-summary strong{font-size:22px}.fc-dialog th,.fc-dialog td{font-size:11px;padding:10px 7px}.fc-dialog .kh-button{max-width:100%;white-space:normal}.fc-toast{border-radius:12px;width:auto;white-space:normal;gap:10px;min-width:275px;font-size:12px}.toolbar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px}.country-field{width:100%}.toolbar .period{width:100%;margin:0;font-size:11px}.toolbar .period span{font-size:11px}.metric{padding:14px}.metric-label{font-size:11px}.metric-value{font-size:27px}.metric-note{font-size:11px}.reorder-footer{bottom:-20px}.fc-kpis .animated-number,.metric-value .animated-number{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:not(:disabled):active{transform:none}.tab-indicator{transition:none!important}}
