.demo-scroll-spy .scroll-area{timeline-scope: --spy;border: 1px solid var(--border);border-radius: 10px;overflow: hidden;display: flex;flex-direction: column;}.demo-scroll-spy .scroll-header{position: sticky;top: 0;background: var(--surface);border-bottom: 1px solid var(--border);padding: .6rem 1rem .5rem;display: flex;flex-direction: column;gap: .45rem;z-index: 2;}.demo-scroll-spy .scroll-label{font-size: .7rem;font-family: var(--font-mono);color: var(--text-muted);text-transform: uppercase;letter-spacing: .08em;}.demo-scroll-spy .bar-track{height: 6px;background: var(--surface-2);border-radius: 999px;overflow: hidden;}.demo-scroll-spy .bar-local{height: 100%;width: 0%;background: linear-gradient(90deg, var(--accent), var(--teal));border-radius: 999px;animation: reading-progress linear;animation-timeline: --spy;animation-fill-mode: both;}.demo-scroll-spy .scroll-content{scroll-timeline-name: --spy;padding: 1.25rem 1.25rem 2rem;height: 280px;overflow-y: auto;}:is(.demo-scroll-spy .scroll-content) h3{font-size: .9rem;font-weight: 700;margin: 1.25rem 0 .5rem;color: var(--text);}:is(:is(.demo-scroll-spy .scroll-content) h3):first-child{margin-top: 0;}:is(.demo-scroll-spy .scroll-content) p{margin-bottom: .85rem;font-size: .875rem;color: var(--text-muted);line-height: 1.7;}:is(.demo-scroll-spy .scroll-content) code{font-family: var(--font-mono);font-size: .8em;color: var(--accent);}@keyframes reading-progress{from{width: 0%;}to{width: 100%;}}@supports (animation-timeline: scroll()){.demo-scroll-spy .inbar-bar{animation: inbar-fill linear both;animation-timeline: scroll();}}@supports (animation-timeline: scroll()){.demo-scroll-spy .spy-item{animation: spy-on linear;animation-timeline: --spy-rail;}.demo-scroll-spy .spy-i1{animation-range: 0% 25%;}.demo-scroll-spy .spy-i2{animation-range: 25% 50%;}.demo-scroll-spy .spy-i3{animation-range: 50% 75%;}.demo-scroll-spy .spy-i4{animation-range: 75% 100%;animation-fill-mode: forwards;}}
.demo-shrinking-header .shrink-frame{width: 100%;height: 320px;overflow-y: auto;border-radius: var(--radius-lg);border: 1px solid var(--border);}.demo-shrinking-header .shrink-header{position: sticky;top: 0;z-index: 10;display: flex;align-items: center;justify-content: space-between;padding: 0 1.25rem;background: var(--surface);border-bottom: 1px solid var(--border);animation: sh-shrink linear both;animation-timeline: scroll();animation-range: 0px 80px;}@keyframes sh-shrink{from{height: 60px;}to{height: 38px;}}.demo-shrinking-header .shrink-logo{font-family: var(--font-mono);font-weight: 700;color: var(--accent);animation: sh-logo linear both;animation-timeline: scroll();animation-range: 0px 80px;}@keyframes sh-logo{from{font-size: 1rem;}to{font-size: .72rem;}}.demo-shrinking-header .shrink-nav{display: flex;gap: 1.25rem;}.demo-shrinking-header .shrink-nav a{font-family: var(--font-mono);color: var(--text-muted);text-decoration: none;animation: sh-nav linear both;animation-timeline: scroll();animation-range: 0px 80px;}@keyframes sh-nav{from{font-size: .72rem;}to{font-size: .58rem;}}.demo-shrinking-header .shrink-content{padding: 1rem 1.25rem 1.25rem;display: flex;flex-direction: column;gap: .75rem;}.demo-shrinking-header .shrink-hint{font-family: var(--font-mono);font-size: .65rem;color: var(--text-muted);letter-spacing: .08em;text-align: center;padding: .25rem 0;}.demo-shrinking-header .shrink-block{height: 52px;background: var(--surface-2);border-radius: var(--radius);border: 1px solid var(--border);}.demo-shrinking-header .shrink-block-tall{height: 76px;background: var(--surface-2);border-radius: var(--radius);border: 1px solid var(--border);}.card-preview .demo-shrinking-header{pointer-events: auto;}@supports (animation-timeline: scroll()){.demo-shrinking-header .prog-header{animation: ph-shrink linear both;animation-timeline: scroll();animation-range: 0px 80px;}.demo-shrinking-header .prog-logo{animation: ph-logo linear both;animation-timeline: scroll();animation-range: 0px 80px;}.demo-shrinking-header .prog-bar{animation: ph-progress linear both;animation-timeline: scroll();}}@media (prefers-reduced-motion: reduce){.demo-shrinking-header .shrink-header, .demo-shrinking-header .prog-header, .demo-shrinking-header .prog-logo, .demo-shrinking-header .prog-bar, .demo-shrinking-header .shrink-logo, .demo-shrinking-header .shrink-nav a{animation: none;}.demo-shrinking-header .shrink-header, .demo-shrinking-header .prog-header{height: 38px;}}
.demo-sticky-sections .sticky-frame{width: 100%;height: 320px;overflow-y: auto;border-radius: var(--radius-lg);border: 1px solid var(--border);}.demo-sticky-sections .sticky-section{}.demo-sticky-sections .sticky-section-title{position: sticky;top: 0;z-index: 1;padding: .35rem 1rem;font-family: var(--font-mono);font-size: .62rem;font-weight: 700;text-transform: uppercase;letter-spacing: .12em;color: var(--accent);background: var(--surface-2);border-bottom: 1px solid var(--border);border-top: 1px solid var(--border);}.demo-sticky-sections .sticky-section:first-child .sticky-section-title{border-top: none;}.demo-sticky-sections .sticky-item{padding: .65rem 1rem;border-bottom: 1px solid var(--border);display: flex;align-items: center;gap: .75rem;}.demo-sticky-sections .sticky-avatar{width: 28px;height: 28px;border-radius: 50%;background: var(--surface-2);border: 1px solid var(--border);flex-shrink: 0;display: flex;align-items: center;justify-content: center;font-family: var(--font-mono);font-size: .6rem;font-weight: 600;color: var(--text-muted);}.demo-sticky-sections .sticky-name{font-size: .85rem;color: var(--text);flex: 1;}.demo-sticky-sections .sticky-detail{font-family: var(--font-mono);font-size: .65rem;color: var(--text-muted);}.card-preview .demo-sticky-sections{pointer-events: auto;}
