* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: 'Segoe UI', 'Microsoft JhengHei', system-ui, sans-serif; color: #17213b; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2563ff; outline-offset: 4px; }
.demo-bar { position: sticky; top: 0; z-index: 100; min-height: 46px; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #e3eafa; background: #101a30; font-size: 12px; line-height: 1.5; }
.demo-bar a { white-space: nowrap; }
.demo-bar b { padding: 3px 8px; border: 1px solid #52627f; border-radius: 4px; font-weight: 500; }
.demo-bar-quote { color: #aec6ff; }
.demo-container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.demo-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid transparent; border-radius: 8px; background: #17213b; color: white; font-weight: 600; }
.demo-button-outline { background: transparent; color: inherit; border: 1px solid currentColor; }
.demo-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.demo-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; width: max-content; max-width: calc(100% - 32px); padding: 15px 22px; border-radius: 12px; background: #101a30; box-shadow: 0 12px 45px #0003; color: white; font-size: 14px; }
dialog { max-width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); overflow: auto; border: 0; border-radius: 18px; padding: 28px; }
dialog::backdrop { background: #0b132866; backdrop-filter: blur(4px); }
.demo-noscript { position: fixed; bottom: 0; z-index: 200; background: #fff1ce; padding: 12px; margin: 0; width: 100%; text-align: center; }
@media (max-width: 700px) { .demo-bar { padding: 10px 16px; gap: 10px; } .demo-bar-detail, .demo-bar-quote { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
