button,[type=submit],[type=button],[type=reset],[role=button],.btn{--btn:var(--primary-bg);--btn-hover:var(--primary);--btn-text:var(--primary-inverse);display:inline-flex;cursor:pointer;border:var(--border-width)solid var(--btn);border-radius:var(--radius);background:var(--btn);padding:.75rem var(--input-px);color:var(--btn-text);font:inherit;user-select:none;text-align:center;text-decoration:none;justify-content:center;align-items: center;gap:.5em;margin:0;transition:background-color .15s,border-color .15s,color .15s;font-size:1rem;line-height:1.5}.btn{white-space:nowrap;padding:.5rem 1rem;font-weight:600}button[type=submit]{width:100%}:-webkit-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):where(:hover,[aria-current]:not([aria-current=false])){border-color:var(--btn-hover);background:var(--btn-hover);color:var(--btn-text)}:-moz-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):where(:hover,[aria-current]:not([aria-current=false])){border-color:var(--btn-hover);background:var(--btn-hover);color:var(--btn-text)}:is(button,[type=submit],[type=button],[type=reset],[role=button],.btn):where(:hover,[aria-current]:not([aria-current=false])){border-color:var(--btn-hover);background:var(--btn-hover);color:var(--btn-text)}:-webkit-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):focus-visible{outline:2px solid var(--primary-focus);outline-offset:2px}:-moz-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):focus-visible{outline:2px solid var(--primary-focus);outline-offset:2px}:is(button,[type=submit],[type=button],[type=reset],[role=button],.btn):focus-visible{outline:2px solid var(--primary-focus);outline-offset:2px}:-webkit-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):-webkit-any([disabled],[aria-disabled=true]){opacity:.5;pointer-events:none}:-moz-any(button,[type=submit],[type=button],[type=reset],[role=button],.btn):-moz-any([disabled],[aria-disabled=true]){opacity:.5;pointer-events:none}:is(button,[type=submit],[type=button],[type=reset],[role=button],.btn):is([disabled],[aria-disabled=true]){opacity:.5;pointer-events:none}.btn-primary{--btn:var(--primary);--btn-hover:var(--primary-hover)}.secondary,[type=reset]{--btn:var(--secondary-bg);--btn-hover:var(--secondary);--btn-text:#fff}.btn-secondary,.btn-warning,.btn-error{--btn-text:#fff}.btn-secondary{--btn:var(--secondary);--btn-hover:var(--secondary-hover)}.btn-warning{--btn:var(--warning);--btn-hover:var(--warning-hover)}.btn-error{--btn:var(--error);--btn-hover:var(--error-hover)}.outline{--btn:var(--primary);--btn-hover:var(--primary-hover);--btn-text:var(--btn)}.outline.secondary{--btn:var(--secondary);--btn-hover:var(--secondary-hover)}.outline:hover{--btn-text:var(--btn-hover)}.outline,.outline:hover,.btn-outline,.btn-outline:hover{color:var(--btn-text);background:0 0}.btn-outline[aria-pressed=true]{border-color:var(--primary);background:var(--primary-bg)}.btn-sm{padding:.375rem .625rem;font-size:.8125rem}.sheet{--grid:#262d3b;--header:#1a1f29;--ink:var(--heading);--select:var(--primary);margin-top:2rem}.sheet table{border-collapse:collapse;table-layout:fixed;overflow:hidden;box-shadow:0 0 0 1px var(--grid),0 20px 40px -20px #000000e6;color:var(--color);font-family:var(--font);background:#10141b;border-radius:.5rem;width:100%;font-size:.9rem}.sheet th{border:1px solid var(--grid);background:var(--header);color:var(--muted);text-align:center;padding:.3rem;font-size:.75rem;font-weight:500}.sheet th:first-child{width:2.5rem}.sheet tr:has(td:focus-within)>th{background:var(--primary-bg);color:var(--primary-hover);box-shadow:inset 0 -2px var(--select);font-weight:700}.sheet table:has(td:nth-child(2):focus-within) tr:first-child th:nth-child(2){background:var(--primary-bg);color:var(--primary-hover);box-shadow:inset 0 -2px var(--select);font-weight:700}.sheet table:has(td:nth-child(3):focus-within) tr:first-child th:nth-child(3){background:var(--primary-bg);color:var(--primary-hover);box-shadow:inset 0 -2px var(--select);font-weight:700}.sheet table:has(td:nth-child(4):focus-within) tr:first-child th:nth-child(4){background:var(--primary-bg);color:var(--primary-hover);box-shadow:inset 0 -2px var(--select);font-weight:700}.sheet table:has(td:nth-child(5):focus-within) tr:first-child th:nth-child(5){background:var(--primary-bg);color:var(--primary-hover);box-shadow:inset 0 -2px var(--select);font-weight:700}.sheet tr:has(td:focus-within)>th{box-shadow:inset -2px 0 var(--select)}.sheet td{position:relative;border:1px solid var(--grid);height:2.25rem;padding:0}.sheet tr:nth-child(2) td{background:var(--header)}.sheet tr:nth-child(2) output{color:var(--ink);font-weight:600}.sheet td:hover{background:#161b24}.sheet input,.sheet output{position:absolute;font:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 .6rem;line-height:2.25rem;inset:0}.sheet input{color:#0000;caret-color:var(--ink);outline:none;background:0 0;border:0;border-radius:0;width:100%}.sheet output{pointer-events:none}.sheet output.number{text-align:end;font-variant-numeric:tabular-nums;color:#7dd3fc}.sheet output.error{color:var(--error-hover);font-weight:600}.sheet td:focus-within{z-index:1;background:var(--bg);outline:2px solid var(--select);outline-offset:-1px;box-shadow:0 0 20px #ed2aac59}.sheet td:focus-within:after{content:"";position:absolute;border:1px solid var(--bg);background:var(--select);width:7px;height:7px;bottom:-4px;right:-4px}.sheet td:focus-within input{color:var(--ink);font-family:var(--mono)}.sheet td:focus-within output{visibility:hidden}.sheet output.changed{animation:1.5s ease-out changed}@keyframes changed{0%{background:#ed2aac73;color:#fff}}@media (prefers-reduced-motion:reduce){.sheet output.changed{animation:none}}.sheet button{margin-top:1rem}@media (max-width:36rem){.sheet table{font-size:.75rem}.sheet input,.sheet output{padding:0 .35rem}}
