:root{--sheet-bg:transparent;--sheet-header-bg:var(--background);--sheet-border:var(--border-subtle);--sheet-cell-height:36px;--sheet-cell-padding:0 8px;--sheet-active-ring:var(--accent);--sheet-error-bg:#ef434314;--sheet-error-border:#ef4343;--sheet-pending-bg:var(--accent-subtle,#4c33cc0f);--sheet-locked-bg:#737b8c0f;--sheet-locked-text:var(--text-secondary);--sheet-group-bg:var(--surface-1);--sheet-group-border:var(--border)}.dark{--sheet-error-bg:#ef43431f;--sheet-pending-bg:var(--accent-subtle,#4c33cc14)}.sheet-layout-wrapper{outline:none;flex-direction:column;height:100%;min-height:0;display:flex}.sheet-container{overflow-anchor:none;background-color:var(--sheet-bg);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:var(--radius);border:none;flex:1 1 0;min-height:0;display:block;position:relative;overflow:auto}.sheet-container table{table-layout:fixed;border-collapse:separate;border-spacing:0;background-color:var(--sheet-bg);width:100%}.sheet-container table thead th{z-index:calc(var(--z-sticky,100) + 5);background-color:var(--sheet-header-bg);box-shadow:0 1px 0 0 var(--sheet-border);white-space:nowrap;text-overflow:ellipsis;font-size:var(--text-sm);text-align:left;border-right:1px solid var(--sheet-border);user-select:none;padding:8px;font-weight:600;position:sticky;top:0;overflow:hidden}.sheet-container table thead th:last-child{border-right:none}.sheet-header-cell{position:relative}.sheet-container table thead th.sheet-select-header{width:40px;z-index:calc(var(--z-sticky,100) + 10);text-align:center;position:sticky;top:0;left:0}.sheet-resize-handle{cursor:col-resize;width:4px;z-index:calc(var(--z-sticky,100) + 15);opacity:0;transition:opacity var(--duration-fast,.1s) var(--ease-out,ease-out);user-select:none;touch-action:none;position:absolute;top:0;bottom:0;right:0}.sheet-resize-handle:hover,.sheet-resize-handle.is-resizing{opacity:1;background-color:var(--accent)}.sheet-header-cell:hover .sheet-resize-handle{opacity:.5}.sheet-header-cell:hover .sheet-resize-handle:hover{opacity:1}.sheet-cell{height:var(--sheet-cell-height);padding:var(--sheet-cell-padding);white-space:nowrap;text-overflow:ellipsis;font-size:var(--text-base);color:var(--text-primary);border-bottom:1px solid var(--sheet-border);border-right:1px solid var(--sheet-border);vertical-align:middle;cursor:default;transition:background-color var(--duration-fast,.1s) var(--ease-out,ease-out);background-color:#0000;outline:none;position:relative;overflow:hidden}.sheet-cell:last-child{border-right:none}.sheet-cell--active{box-shadow:inset 0 0 0 2px var(--sheet-active-ring);z-index:2;background-color:var(--background)}.sheet-cell--active:focus{outline:none}.sheet-cell--editing{box-shadow:inset 0 0 0 3px var(--sheet-active-ring);z-index:3;background-color:var(--background);padding:3px}.sheet-cell--select-editing{padding:0 2px;overflow:visible}.sheet-cell--select-editing .react-select-container{min-height:var(--sheet-cell-height)}.sheet-cell--select-editing .react-select__menu{min-width:200px}.sheet-cell--select{cursor:pointer}.sheet-cell-select-chevron{color:var(--text-muted);opacity:.4;pointer-events:none;transition:opacity var(--duration-fast,.1s) var(--ease-out,ease-out);flex-shrink:0;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.sheet-cell--select .sheet-cell-display{padding-right:16px}.sheet-cell--select:hover .sheet-cell-select-chevron{opacity:1}.sheet-cell--select.sheet-cell--active .sheet-cell-select-chevron{opacity:.8}.sheet-cell:not(.sheet-cell--select):not(.sheet-cell--locked):not(.sheet-cell--image):hover{cursor:text}.sheet-row--error td{background-color:var(--sheet-error-bg)}.sheet-cell--error{background-color:var(--sheet-error-bg);border-bottom-color:var(--sheet-error-border)}.sheet-cell--pending{background-color:var(--sheet-pending-bg)}.sheet-cell--failed{background-color:var(--sheet-error-bg)}.sheet-cell--locked{background-color:var(--sheet-locked-bg);color:var(--sheet-locked-text);cursor:default}.sheet-container table tbody tr:hover .sheet-cell--locked{background-color:var(--sheet-locked-bg)}.sheet-header--locked{color:var(--sheet-locked-text)}.sheet-header-lock-icon{vertical-align:middle;color:var(--text-muted);flex-shrink:0;margin-left:4px;display:inline-block}.sheet-cell-display{text-overflow:ellipsis;white-space:nowrap;align-items:center;width:100%;min-width:0;height:100%;display:flex;overflow:hidden}.sheet-cell-display>*{min-width:0}.sheet-cell-number{text-align:right;width:100%;display:block}.sheet-cell--image{cursor:default}.sheet-cell--image .sheet-cell-display{justify-content:center}.sheet-cell-thumbnail{height:calc(var(--sheet-cell-height) - 6px);width:calc(var(--sheet-cell-height) - 6px);object-fit:cover;border-radius:calc(var(--radius-sm,4px) - 1px);cursor:pointer;flex-shrink:0}.sheet-cell-thumbnail-video{height:calc(var(--sheet-cell-height) - 6px);width:calc(var(--sheet-cell-height) - 6px);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.sheet-cell-thumbnail-video .sheet-cell-thumbnail{cursor:pointer}.sheet-cell-thumbnail-video svg{filter:drop-shadow(0 1px 2px #00000080);position:absolute}.sheet-cell-thumbnail-empty{height:calc(var(--sheet-cell-height) - 6px);width:calc(var(--sheet-cell-height) - 6px);border-radius:calc(var(--radius-sm,4px) - 1px);background-color:var(--surface-2,#0000000f);flex-shrink:0;display:block}.sheet-cell-input{width:100%;height:100%;padding:var(--sheet-cell-padding);font-size:var(--text-base);background-color:var(--background);color:var(--text-primary);box-shadow:none;border:none;outline:none;font-family:inherit}.sheet-cell-input[inputmode=numeric]{text-align:right}.sheet-cell-checkbox{cursor:pointer;width:16px;height:16px;accent-color:var(--accent);margin:0 auto;display:block}.sheet-cell-retry{color:var(--sheet-error-border);cursor:pointer;background:0 0;border:none;flex-shrink:0;margin-left:4px;padding:0 2px;font-size:14px;line-height:1}.sheet-cell-retry:hover{color:var(--text-primary)}.sheet-cell-error-dot{background-color:var(--sheet-error-border);border-radius:50%;width:6px;height:6px;position:absolute;top:3px;right:3px}.sheet-select-cell{text-align:center;border-bottom:1px solid var(--sheet-border);border-right:1px solid var(--sheet-border);vertical-align:middle;background-color:var(--background);width:40px;z-index:calc(var(--z-base,0) + 6);position:sticky;left:0}.sheet-select-cell input[type=checkbox]{cursor:pointer;width:16px;height:16px;accent-color:var(--accent);margin:0}.sheet-container table thead th[data-sticky-column=true]{z-index:calc(var(--z-sticky,100) + 8);background-color:var(--sheet-header-bg);position:sticky;top:0}.sheet-container table tbody td[data-sticky-column=true]{z-index:calc(var(--z-base,0) + 4);background-color:var(--background);position:sticky}.sheet-container table thead th[data-sticky-last=true]:after,.sheet-container table tbody td[data-sticky-last=true]:after{content:"";pointer-events:none;background:linear-gradient(90deg,#00000024,#0000);width:8px;position:absolute;top:0;bottom:0;right:-8px}.sheet-container table thead th[data-sticky-last=true]:before,.sheet-container table tbody td[data-sticky-last=true]:before{content:"";pointer-events:none;background:#0000001f;width:1px;position:absolute;top:0;bottom:0;right:0}.dark .sheet-container table thead th[data-sticky-last=true]:after,.dark .sheet-container table tbody td[data-sticky-last=true]:after{background:linear-gradient(90deg,#00000059,#0000)}.dark .sheet-container table thead th[data-sticky-last=true]:before,.dark .sheet-container table tbody td[data-sticky-last=true]:before{background:#ffffff1f}.sheet-container table tbody td.sheet-cell--active[data-sticky-column=true],.sheet-container table tbody td.sheet-cell--editing[data-sticky-column=true]{z-index:calc(var(--z-base,0) + 7)}.sheet-container table tbody tr:hover .sheet-cell:not(.sheet-cell--active):not(.sheet-cell--editing),.sheet-container table tbody tr:hover .sheet-select-cell{background-color:var(--row-hover,#00000008)}.sheet-container table tbody tr.sheet-row--selected .sheet-cell,.sheet-container table tbody tr.sheet-row--selected .sheet-select-cell{background-color:var(--row-selected,#4c33cc0f)}.sheet-container table tbody tr.sheet-row--selected .sheet-select-cell{border-left:2px solid var(--border-brand)}.sheet-group-row{border-top:1px solid var(--sheet-group-border)}.sheet-group-cell{background-color:var(--sheet-group-bg);border-bottom:1px solid var(--sheet-group-border);padding:0!important}.sheet-group-header{align-items:center;gap:var(--spacing-2,8px);padding:var(--spacing-2,8px) var(--spacing-3,12px);user-select:none;cursor:pointer;font-weight:600;font-size:var(--text-sm);display:flex}.sheet-group-header:hover{background-color:var(--surface-2,#0000000a)}.sheet-group-chevron{color:var(--text-secondary);transition:transform var(--duration-fast,.1s) var(--ease-out,ease-out);flex-shrink:0}.sheet-group-chevron--expanded{transform:rotate(90deg)}.sheet-group-label{color:var(--text-primary)}.sheet-group-count{font-size:var(--text-xs);color:var(--text-secondary);background-color:var(--surface-3,#0000000f);border-radius:9999px;justify-content:center;align-items:center;min-width:24px;height:20px;padding:0 8px;font-weight:500;display:inline-flex}.sheet-add-row{cursor:pointer}.sheet-add-row td{border-bottom:1px dashed var(--sheet-border);border-right:1px solid var(--sheet-border);padding:var(--sheet-cell-padding);height:var(--sheet-cell-height)}.sheet-add-row-sticky-cell{z-index:calc(var(--z-sticky,100) + 4);background-color:var(--background);position:sticky}.sheet-add-row td:last-child{border-right:none}.sheet-add-row-content{align-items:center;gap:var(--spacing-2,8px);color:var(--text-muted);font-size:var(--text-sm);display:flex}.sheet-add-row-content--sticky{white-space:nowrap;width:fit-content;z-index:calc(var(--z-base,0) + 5);position:sticky}.sheet-add-row:hover td{background-color:var(--row-hover,#00000008)}.sheet-add-row:hover .sheet-add-row-content{color:var(--text-primary)}@keyframes sheet-row-highlight{0%{background-color:var(--sheet-pending-bg)}to{background-color:#0000}}.sheet-row--new td{animation:sheet-row-highlight 1.2s var(--ease-out,ease-out) forwards}.sheet-projection-bar{align-items:center;gap:var(--spacing-3,12px);padding:var(--spacing-2,8px) 0;display:flex}.sheet-projection-toggle{border-radius:var(--radius,6px);background-color:var(--surface-1,#0000000a);gap:2px;padding:2px;display:inline-flex}.sheet-projection-toggle button{font-size:var(--text-sm);border-radius:calc(var(--radius,6px) - 2px);cursor:pointer;color:var(--text-secondary);transition:all var(--duration-fast,.1s) var(--ease-out,ease-out);background-color:#0000;border:none;padding:4px 12px;font-weight:500}.sheet-projection-toggle button:hover{color:var(--text-primary)}.sheet-projection-toggle button.active{background-color:var(--background);color:var(--text-primary);box-shadow:0 1px 2px #0000000f}.sheet-empty-state{padding:var(--spacing-8,32px);color:var(--text-muted);font-size:var(--text-sm);justify-content:center;align-items:center;display:flex}.sheet-no-rows td{text-align:center;padding:var(--spacing-8,32px);color:var(--text-muted);font-size:var(--text-sm)}
