:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.wasm-demo{display:flex;flex-direction:column;gap:1.5rem}.wasm-demo__layout{display:flex;gap:1.5rem;align-items:stretch;min-height:60vh}.wasm-demo__main{flex:1;min-width:0;display:flex;flex-direction:column}.wasm-demo__section--with-tabs{flex:1;display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}.wasm-demo__section--with-tabs .wasm-demo__tabs{display:flex;gap:0;flex-shrink:0;padding:0;margin:0;background:var(--bg-tabs, rgba(0, 0, 0, .12));border-bottom:1px solid var(--border, #3d3f44)}.wasm-demo__section--with-tabs .wasm-demo__tab{padding:.875rem 1.5rem;font-size:.9rem;font-weight:500;color:var(--text-muted, #9ca3af);background:transparent;border:none;border-bottom:3px solid transparent;margin-bottom:-1px;cursor:pointer;transition:color .2s,border-color .2s,background .2s}.wasm-demo__section--with-tabs .wasm-demo__tab:hover{color:var(--text-primary, #e5e7eb);background:var(--bg-tab-hover, rgba(255, 255, 255, .04))}.wasm-demo__section--with-tabs .wasm-demo__tab--active{color:var(--accent-bg, #3b82f6);border-bottom-color:var(--accent-bg, #3b82f6);background:transparent}.wasm-demo__section--with-tabs .wasm-demo__tab--active:hover{color:var(--accent-hover, #2563eb);border-bottom-color:var(--accent-hover, #2563eb);background:transparent}.wasm-demo__section--with-tabs .wasm-demo__tab:focus-visible{outline:2px solid var(--accent-bg, #3b82f6);outline-offset:2px}.wasm-demo__section--with-tabs .wasm-demo__tab-panels{flex:1;padding:1.25rem;display:flex;flex-direction:column;min-height:0;overflow:auto}.wasm-demo__tab-panel{flex:1;display:flex;flex-direction:column;min-height:0}.wasm-demo__tab-panel .wasm-demo__heading{margin-top:0}.wasm-demo__tab-panel .wasm-demo__textarea{flex:1;min-height:200px}.wasm-demo__panel{width:min(480px,42%);min-width:360px;flex-shrink:0;display:flex;flex-direction:column;padding:1.25rem;background:var(--bg-card, #25262b);border:1px solid var(--border, #3d3f44);border-radius:12px}.wasm-demo__panel-heading{margin:0 0 1rem;font-size:1rem;font-weight:600;color:var(--text-primary, #e5e7eb)}.wasm-demo__panel-body{flex:1;min-height:280px;display:flex;flex-direction:column}.wasm-demo__panel-body .wasm-demo__textarea{flex:1;min-height:280px}.wasm-demo__panel-placeholder{margin:0;font-size:.9rem;color:var(--text-muted, #9ca3af);line-height:1.6}@media(max-width:900px){.wasm-demo__layout{flex-direction:column}.wasm-demo__panel{width:100%;min-width:0;min-height:280px}}.wasm-demo__loading{margin:0;font-size:.95rem;color:var(--text-muted, #9ca3af)}.wasm-demo__error-standalone{margin:0;padding:1rem;font-size:.95rem;color:#ef4444;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px}.wasm-demo__section{padding:1.25rem;background:var(--bg-card, #25262b);border:1px solid var(--border, #3d3f44);border-radius:12px}.wasm-demo__heading{margin:0 0 .75rem;font-size:1rem;font-weight:600;color:var(--text-primary, #e5e7eb)}.wasm-demo__desc{margin:0 0 1rem;font-size:.9rem;color:var(--text-muted, #9ca3af);line-height:1.5}.wasm-demo__desc code{padding:.15em .4em;background:var(--bg-main, #1a1b1e);border-radius:4px;font-size:.9em}.wasm-demo__textarea{display:block;width:100%;box-sizing:border-box;padding:.75rem 1rem;margin-bottom:.75rem;font-size:.9rem;font-family:ui-monospace,monospace;color:var(--text-primary, #e5e7eb);background:var(--bg-main, #1a1b1e);border:1px solid var(--border, #3d3f44);border-radius:8px;resize:vertical;min-height:120px}.wasm-demo__textarea::placeholder{color:var(--text-muted, #9ca3af);opacity:.8}.wasm-demo__textarea--readonly{cursor:default;opacity:.95}.wasm-demo__label{display:block;margin:0 0 .5rem;font-size:.85rem;font-weight:600;color:var(--text-muted, #9ca3af)}.wasm-demo__result-box{margin-top:1rem;padding:.75rem 1rem;border-radius:8px;font-size:.95rem;font-weight:500}.wasm-demo__result-box--valid{background:#22c55e26;border:1px solid rgba(34,197,94,.4)}.wasm-demo__result-box--invalid{background:#ef44441a;border:1px solid rgba(239,68,68,.3)}.wasm-demo__result-text--valid{color:#22c55e}.wasm-demo__result-text--invalid{color:#ef4444}.wasm-demo__status{padding:.75rem 1rem;border-radius:8px;background:var(--bg-main, #1a1b1e)}.wasm-demo__status[data-status=ready]{background:#22c55e26;border:1px solid rgba(34,197,94,.4)}.wasm-demo__status[data-status=error]{background:#ef44441a;border:1px solid rgba(239,68,68,.3)}.wasm-demo__status-text{font-size:.95rem;color:var(--text-muted, #9ca3af)}.wasm-demo__status-text--loading{color:var(--text-primary, #e5e7eb)}.wasm-demo__status-text--success{color:#22c55e;font-weight:600}.wasm-demo__status-text--error{color:#ef4444;font-weight:600}.wasm-demo__error{margin-top:.5rem}.wasm-demo__error-detail{margin:.5rem 0 0;font-size:.85rem;color:var(--text-muted, #9ca3af);word-break:break-all}.wasm-demo__error-hint{margin:.75rem 0 0;font-size:.85rem;color:var(--text-muted, #9ca3af);line-height:1.5}.wasm-demo__error-hint code{padding:.15em .4em;background:var(--bg-main, #1a1b1e);border-radius:4px;font-size:.9em}.wasm-demo__row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem}.wasm-demo__row--add{gap:.5rem}.wasm-demo__input{padding:.5rem .75rem;font-size:.95rem;color:var(--text-primary, #e5e7eb);background:var(--bg-main, #1a1b1e);border:1px solid var(--border, #3d3f44);border-radius:8px;min-width:140px}.wasm-demo__input--num{min-width:80px;width:80px}.wasm-demo__op{font-size:1.1rem;font-weight:600;color:var(--text-muted, #9ca3af)}.wasm-demo__btn{padding:.5rem 1rem;font-size:.9rem;font-weight:500;color:#fff;background:var(--accent-bg, #3b82f6);border:none;border-radius:8px;cursor:pointer;transition:background .2s}.wasm-demo__btn:hover{background:var(--accent-hover, #2563eb)}.wasm-demo__result{margin:0;font-size:.95rem;color:var(--text-primary, #e5e7eb)}.wasm-demo__result strong{color:var(--accent-bg, #3b82f6)}@media(prefers-color-scheme:light){.wasm-demo__section,.wasm-demo__panel{--bg-card: #fff;--border: #e5e7eb}.wasm-demo__panel{--text-primary: #111827;--text-muted: #4b5563}.wasm-demo__panel-heading{color:#111827}.wasm-demo__panel-placeholder,.wasm-demo__panel .wasm-demo__label{color:#4b5563}.wasm-demo__section--with-tabs .wasm-demo__tabs{--bg-tabs: rgba(0, 0, 0, .04);--bg-tab-hover: rgba(0, 0, 0, .06)}.wasm-demo__section--with-tabs .wasm-demo__tab{color:#6b7280}.wasm-demo__section--with-tabs .wasm-demo__tab:hover{color:#111827}.wasm-demo__section--with-tabs .wasm-demo__tab--active{color:#2563eb}.wasm-demo__section--with-tabs .wasm-demo__tab--active:hover{color:#1d4ed8}.wasm-demo__heading,.wasm-demo__status-text--loading,.wasm-demo__result{--text-primary: #111827}.wasm-demo__desc{color:#4b5563}.wasm-demo__input{--text-primary: #374151;--bg-main: #f9fafb;--border: #e5e7eb}.wasm-demo__status{--bg-main: #f9fafb}.wasm-demo__error-hint code,.wasm-demo__desc code{--bg-main: #f3f4f6}.wasm-demo__textarea{--text-primary: #374151;--bg-main: #f9fafb;--border: #e5e7eb}.wasm-demo__label{color:#4b5563}.wasm-demo__loading{color:#6b7280}}.app-layout{display:flex;width:100%;min-height:100vh;background:var(--bg-main, #1a1b1e)}.sidebar{width:260px;min-width:260px;padding:1.5rem 0;background:var(--bg-sidebar, #25262b);border-right:1px solid var(--border, #3d3f44);display:flex;flex-direction:column;gap:1rem}.sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:0 1.25rem .75rem}.sidebar-title{margin:0;font-size:.875rem;font-weight:600;color:var(--text-muted, #9ca3af);text-transform:uppercase;letter-spacing:.05em}.sidebar-wasm-status{flex-shrink:0;padding:.25rem .5rem;font-size:.7rem;font-weight:600;border-radius:6px;white-space:nowrap}.sidebar-wasm-status[data-status=idle]{background:var(--bg-hover, #2d2e33);color:var(--text-muted, #9ca3af)}.sidebar-wasm-status[data-status=loading]{background:#3b82f633;color:#93c5fd}.sidebar-wasm-status[data-status=ready]{background:#22c55e33;color:#86efac}.sidebar-wasm-status[data-status=error]{background:#ef444433;color:#fca5a5}.sidebar-wasm-error-hint{margin:0 1rem .5rem;padding:.5rem;font-size:.75rem;color:var(--text-muted, #9ca3af);background:#ef444414;border-radius:6px;line-height:1.4}.sidebar-wasm-error-hint code{font-size:.7rem;padding:.1em .3em;background:var(--bg-main, #1a1b1e);border-radius:4px}.option-list{display:flex;flex-direction:column;gap:2px;padding:0 .75rem}.option-item{width:100%;padding:.75rem 1rem;text-align:left;font-size:.95rem;font-weight:500;color:var(--text-primary, #e5e7eb);background:transparent;border:none;border-radius:8px;cursor:pointer;transition:background .2s,color .2s}.option-item:hover{background:var(--bg-hover, #2d2e33);color:var(--text-primary, #e5e7eb)}.option-item--active{background:var(--accent-bg, #3b82f6);color:#fff}.option-item--active:hover{background:var(--accent-hover, #2563eb);color:#fff}.content-panel{flex:1;padding:2rem;overflow:auto;background:var(--bg-main, #1a1b1e)}.content-inner{max-width:100%;width:100%}.content-title{margin:0 0 .5rem;font-size:1.75rem;font-weight:700;color:var(--text-primary, #e5e7eb)}.content-description{margin:0 0 1.5rem;font-size:.95rem;color:var(--text-muted, #9ca3af);line-height:1.5}.content-placeholder{padding:2rem;background:var(--bg-card, #25262b);border:1px dashed var(--border, #3d3f44);border-radius:12px;color:var(--text-muted, #9ca3af);font-size:.9rem}.content-empty{display:flex;align-items:center;justify-content:center;min-height:280px;color:var(--text-muted, #9ca3af);font-size:1rem}@media(prefers-color-scheme:light){.app-layout{--bg-main: #f4f5f7}.sidebar{--bg-sidebar: #fff;--border: #e5e7eb}.sidebar-title{--text-muted: #6b7280}.sidebar-wasm-status[data-status=idle]{--bg-hover: #f3f4f6;color:#6b7280}.sidebar-wasm-status[data-status=loading]{background:#2563eb26;color:#2563eb}.sidebar-wasm-status[data-status=ready]{background:#16a34a26;color:#16a34a}.sidebar-wasm-status[data-status=error]{background:#dc262626;color:#dc2626}.sidebar-wasm-error-hint{background:#dc26260f;color:#6b7280}.sidebar-wasm-error-hint code{--bg-main: #f3f4f6}.option-item{--text-primary: #374151}.option-item:hover{--bg-hover: #f3f4f6}.option-item--active{--accent-bg: #2563eb;--accent-hover: #1d4ed8}.content-panel{--bg-main: #f4f5f7}.content-title{--text-primary: #111827}.content-description,.content-placeholder,.content-empty{--text-muted: #6b7280}.content-placeholder{--bg-card: #fff;--border: #e5e7eb}}
