.demo-dark-light-mode{flex-direction: column;align-items: center;gap: 1.25rem;}.demo-dark-light-mode .theme-check{display: none;}.demo-dark-light-mode .theme-toggle{display: inline-flex;align-items: center;gap: .75rem;cursor: pointer;user-select: none;font-size: .95rem;}.demo-dark-light-mode .theme-track{width: 52px;height: 28px;background: var(--orange);border-radius: 999px;position: relative;transition: background .3s;}:is(.demo-dark-light-mode .theme-track)::before{content: "☀️";position: absolute;top: 50%;left: 5px;transform: translateY(-50%);font-size: .9rem;transition: opacity .3s;}:is(.demo-dark-light-mode .theme-track)::after{content: "";position: absolute;top: 3px;left: 3px;width: 22px;height: 22px;background: var(--surface);border-radius: 50%;box-shadow: 0 1px 4px rgba(0,0,0,.2);transition: transform .3s;}.demo-dark-light-mode .theme-check:checked + .theme-toggle .theme-track{background: var(--surface-2);}.demo-dark-light-mode .theme-check:checked + .theme-toggle .theme-track::before{content: "🌙";}.demo-dark-light-mode .theme-check:checked + .theme-toggle .theme-track::after{transform: translateX(24px);}.demo-dark-light-mode .theme-preview{margin-top: 1.25rem;padding: 1.25rem;border-radius: 10px;background: var(--orange-dim);color: var(--text);border: 2px solid var(--orange);font-size: .9rem;transition: background .3s, color .3s, border-color .3s;}.demo-dark-light-mode .theme-check:checked ~ .theme-preview{background: var(--surface);color: var(--text);border-color: var(--accent);}@media (prefers-color-scheme: dark){.demo-dark-light-mode .dlm-r-sys:checked ~ .dlm-panel{--dlm-bg: #141415;--dlm-fg: #f0f0f0;--dlm-muted: #88888f;--dlm-line: #2a2a2d;--dlm-accent: #b8ff57;--dlm-scheme: dark;}}
.demo-progress-button .prog-stack{display: flex;flex-wrap: wrap;gap: 1.5rem;align-items: center;justify-content: center;}.demo-progress-button .prog-group{display: flex;flex-direction: column;align-items: center;gap: .5rem;}.demo-progress-button .prog-input{display: none;}.demo-progress-button .prog-btn{position: relative;display: inline-flex;align-items: center;justify-content: center;padding: .75rem 2.25rem;border-radius: 999px;border: 1.5px solid var(--accent);background: var(--accent-dim);color: var(--accent);font-family: var(--font-mono);font-size: .8rem;font-weight: 500;letter-spacing: .05em;cursor: pointer;overflow: hidden;user-select: none;min-width: 160px;transition: color .3s;}:is(.demo-progress-button .prog-btn)::before{content: "";position: absolute;inset: 0;background: var(--accent);transform: scaleX(0);transform-origin: left;}.demo-progress-button .prog-idle{position: relative;z-index: 1;white-space: nowrap;transition: opacity .2s;}.demo-progress-button .prog-loading,.demo-progress-button .prog-done{position: absolute;z-index: 1;left: 50%;transform: translateX(-50%);white-space: nowrap;transition: opacity .2s;}.demo-progress-button .prog-idle{opacity: 1;}.demo-progress-button .prog-loading{opacity: 0;}.demo-progress-button .prog-done{opacity: 0;}.demo-progress-button .prog-hint{font-family: var(--font-mono);font-size: .65rem;color: var(--text-muted);letter-spacing: .05em;}.demo-progress-button .prog-input:checked ~ .prog-btn{color: var(--bg);}:is(.demo-progress-button .prog-input:checked ~ .prog-btn)::before{animation: prog-fill 2s ease-in-out forwards;}:is(.demo-progress-button .prog-input:checked ~ .prog-btn) .prog-idle{animation: prog-fade-out .2s forwards;}:is(.demo-progress-button .prog-input:checked ~ .prog-btn) .prog-loading{animation: prog-fade-in .2s forwards, prog-fade-out .2s 1.8s forwards;}:is(.demo-progress-button .prog-input:checked ~ .prog-btn) .prog-done{animation: prog-fade-in .2s 2s forwards;}@keyframes prog-fill{0%{transform: scaleX(0);}80%{transform: scaleX(1);}100%{transform: scaleX(1);}}@keyframes prog-fade-out{to{opacity: 0;}}@keyframes prog-fade-in{to{opacity: 1;}}.demo-progress-button .pb-hidden-input{position: absolute;opacity: 0;width: 1px;height: 1px;pointer-events: none;}@media (prefers-reduced-motion: reduce){:is(.demo-progress-button .pb-hidden-input):checked ~ .pb-indet-btn .pb-indet-track::before{animation-duration: 3s;}}
.demo-toast-notification .toast-demo{display: grid;gap: 1rem;width: min(100%, 36rem);}.demo-toast-notification .toast-place{display: grid;grid-template-columns: repeat(3, auto);justify-content: start;gap: .4rem;margin: 0;padding: 0;border: 0;}.demo-toast-notification .toast-place legend{margin-bottom: .45rem;padding: 0;font: 500 .72rem/1.2 var(--font-mono);letter-spacing: .04em;text-transform: uppercase;color: var(--text-muted);}.demo-toast-notification .toast-pos{position: relative;padding: .4rem .75rem;text-align: center;border: 1px solid var(--border);border-radius: 999px;background: var(--surface);color: var(--text);font: 600 .78rem/1 var(--font-sans);cursor: pointer;}.demo-toast-notification .toast-pos input{position: absolute;width: 1px;height: 1px;margin: 0;opacity: 0;pointer-events: none;}.demo-toast-notification .toast-pos:has(:checked){border-color: var(--accent);background: var(--accent);color: var(--bg);}.demo-toast-notification .toast-pos:has(:focus-visible){outline: 2px solid var(--accent);outline-offset: 3px;}.demo-toast-notification .toast-screen{position: relative;display: flex;align-items: center;justify-content: center;height: 15rem;overflow: hidden;border: 1px solid var(--border);border-radius: var(--radius-lg);background: var(--surface);}.demo-toast-notification .toast-triggers{display: flex;gap: .75rem;flex-wrap: wrap;justify-content: center;}.demo-toast-notification .toast-btn{display: inline-flex;align-items: center;gap: .4rem;padding: .55rem 1.1rem;border-radius: var(--radius);font-family: var(--font-sans);font-size: .875rem;font-weight: 600;text-decoration: none;cursor: pointer;transition: opacity .15s;border: none;}:is(.demo-toast-notification .toast-btn):hover{opacity: .85;}.demo-toast-notification .toast-btn-success{background: rgba(87,217,163,.15);color: var(--teal);}.demo-toast-notification .toast-btn-error{background: var(--coral-dim);color: var(--coral);}.demo-toast-notification .toast-btn-info{background: var(--sky-dim);color: var(--sky);}.demo-toast-notification .toast{--toast-from: translateX(120%);display: none;position: absolute;top: auto;right: 1rem;bottom: 1rem;left: auto;z-index: 2;width: min(20rem, calc(100% - 2rem));padding: .85rem 1.1rem;border-radius: var(--radius-lg);background: var(--surface-2);border: 2px solid var(--border);box-shadow: 0 8px 32px rgba(0,0,0,.3);align-items: center;gap: .75rem;font-size: .9rem;font-weight: 500;color: var(--text);}.demo-toast-notification .toast-anchor:target + .toast{display: flex;animation: toast-in .3s ease forwards, toast-out .3s ease 3s forwards;}.demo-toast-notification .toast-demo:has(.tp-tl:checked) .toast{--toast-from: translateX(-120%);top: 1rem;right: auto;bottom: auto;left: 1rem;}.demo-toast-notification .toast-demo:has(.tp-tc:checked) .toast{--toast-from: translateY(-150%);top: 1rem;right: auto;bottom: auto;left: 50%;translate: -50% 0;}.demo-toast-notification .toast-demo:has(.tp-tr:checked) .toast{top: 1rem;bottom: auto;}.demo-toast-notification .toast-demo:has(.tp-bl:checked) .toast{--toast-from: translateX(-120%);right: auto;left: 1rem;}.demo-toast-notification .toast-demo:has(.tp-bc:checked) .toast{--toast-from: translateY(150%);right: auto;left: 50%;translate: -50% 0;}.demo-toast-notification .toast-icon{font-size: 1.1rem;flex-shrink: 0;}.demo-toast-notification .toast-msg{flex: 1;}.demo-toast-notification .toast-close{color: var(--text-muted);text-decoration: none;font-size: 1.1rem;line-height: 1;flex-shrink: 0;transition: color .15s;}:is(.demo-toast-notification .toast-close):hover{color: var(--text);}.demo-toast-notification .toast-success{border-color: var(--teal);}.demo-toast-notification .toast-error{border-color: var(--coral);}.demo-toast-notification .toast-info{border-color: var(--sky);}@keyframes toast-in{from{transform: var(--toast-from);opacity: 0;}to{transform: none;opacity: 1;}}@keyframes toast-out{from{transform: none;opacity: 1;}to{transform: var(--toast-from);opacity: 0;}}@keyframes toast-fade-in{from{opacity: 0;}to{opacity: 1;}}@keyframes toast-fade-out{from{opacity: 1;}to{opacity: 0;}}@media (prefers-reduced-motion: reduce){.demo-toast-notification .toast-anchor:target + .toast{animation: toast-fade-in .3s ease forwards, toast-fade-out .3s ease 3s forwards;}}@media (prefers-reduced-motion: reduce){:is(.demo-toast-notification .tn-hidden-input):checked ~ .tn-local-toast{animation: tn-fade-in .3s ease forwards;}.demo-toast-notification .tn-anchor:target + .tn-timed-toast{animation: tn-fade-in .3s ease forwards, tn-fade-out .3s ease 3s forwards;}}
