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;justify-content:center;align-items:center;gap:.5em;transition:background-color .15s,border-color .15s,color .15s;cursor:pointer;margin:0;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;font-size:1rem;line-height:1.5;user-select:none;text-align:center;text-decoration:none}.btn{padding:.5rem 1rem;font-weight:600;white-space:nowrap}button[type=submit]{width:100%}: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)}:is(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):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{background:transparent;color:var(--btn-text)}.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{width:100%;border-collapse:collapse;table-layout:fixed;overflow:hidden;border-radius:.5rem;background:#10141b;box-shadow:0 0 0 1px var(--grid),0 20px 40px -20px #000000e6;color:var(--color);font-family:var(--font);font-size:.9rem}.sheet th{padding:.3rem;border:1px solid var(--grid);background:var(--header);color:var(--muted);font-size:.75rem;font-weight:500;text-align:center}.sheet th:first-child{width:2.5rem}.sheet tr:has(td:focus-within)>th,.sheet table:has(td:nth-child(2):focus-within) tr:first-child th:nth-child(2),.sheet table:has(td:nth-child(3):focus-within) tr:first-child th:nth-child(3),.sheet table:has(td:nth-child(4):focus-within) tr:first-child th:nth-child(4),.sheet table:has(td:nth-child(5):focus-within) tr:first-child th:nth-child(5){background:var(--primary-bg);color:var(--primary-hover);font-weight:700;box-shadow:inset 0 -2px var(--select)}.sheet tr:has(td:focus-within)>th{box-shadow:inset -2px 0 var(--select)}.sheet td{position:relative;height:2.25rem;padding:0;border:1px solid var(--grid)}.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;inset:0;padding:0 .6rem;font:inherit;line-height:2.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet input{width:100%;border:0;border-radius:0;background:transparent;color:transparent;caret-color:var(--ink);outline:none}.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);box-shadow:0 0 20px #ed2aac59;outline:2px solid var(--select);outline-offset:-1px}.sheet td:focus-within:after{content:"";position:absolute;right:-4px;bottom:-4px;width:7px;height:7px;border:1px solid var(--bg);background:var(--select)}.sheet td:focus-within input{color:var(--ink);font-family:var(--mono)}.sheet td:focus-within output{visibility:hidden}.sheet output.changed{animation:changed 1.5s ease-out}@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}}
