.demo-expandable-search .search-wrap{display: inline-flex;align-items: center;background: var(--surface-2);border: 2px solid var(--border);border-radius: 999px;padding: .5rem .75rem;transition: border-color .25s, background .25s;}:is(.demo-expandable-search .search-wrap):focus-within{background: var(--surface);border-color: var(--accent);}.demo-expandable-search .search-icon{display: flex;color: var(--text-muted);flex-shrink: 0;}.demo-expandable-search .search-input{border: none;background: transparent;outline: none;font-size: .95rem;font-family: inherit;width: 120px;padding: 0 .5rem;transition: width .35s;color: var(--text);}:is(.demo-expandable-search .search-input):focus{width: 240px;}@media (prefers-reduced-motion: reduce){.demo-expandable-search .mini-input, .demo-expandable-search .sg-panel, .demo-expandable-search .search-input{transition: none;}}
.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;}}
