:root{--bg-color:#f8f9fa;--text-color:#212529;--card-bg:white;--primary-color:#007bff;--primary-dark:#0056b3;--border-color:#dee2e6;--editable-bg:#fffbe6;--table-header-bg:#e9ecef;--shadow:0 .125rem .25rem #00000013;--toggle-off-bg:#ccc;--toggle-on-bg:var(--primary-color);--completed-color:#28a745;--annotated-row-bg:#e6ffec;--form-bg:#f1f3f5;--highlight-color:#ffc107;--modal-highlight-bg:#fffbe6;--modal-info-bg:#f8f9fa;--copy-btn-bg:#e9ecef;--copy-btn-border:#ccc;--copy-btn-color:#212529}.dark-mode{--bg-color:#2c3e50;--text-color:#ecf0f1;--card-bg:#34495e;--primary-color:#3498db;--primary-dark:#2980b9;--border-color:#576574;--editable-bg:#4a4130;--table-header-bg:#212b36;--shadow:0 .125rem .25rem #0003;--toggle-off-bg:#555;--toggle-on-bg:var(--primary-color);--completed-color:#2ecc71;--annotated-row-bg:#29422a;--form-bg:#3e5163;--highlight-color:#ff9f43;--modal-highlight-bg:#4a4130;--modal-info-bg:#3e5163;--copy-btn-bg:#444;--copy-btn-border:#666;--copy-btn-color:#ecf0f1}body{background-color:var(--bg-color);color:var(--text-color);margin:0;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;transition:background-color .3s,color .3s}#root{background:var(--card-bg);max-width:1400px;box-shadow:var(--shadow);border-radius:8px;margin:auto;padding:30px;position:relative}h1{color:var(--primary-color);border-bottom:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;padding-bottom:10px;font-size:1.8rem;font-weight:700;display:flex}.role-badge{vertical-align:middle;letter-spacing:.5px;border-radius:4px;margin-left:5px;padding:3px 8px;font-size:.65rem;font-weight:700}.role-badge.creator{color:#000;background:#ffc107}.role-badge.editor{color:#fff;background:#17a2b8}.user-count-badge{background-color:var(--table-header-bg);border:1px solid var(--border-color);color:var(--text-color);border-radius:20px;align-items:center;padding:5px 12px;font-size:.9rem;display:inline-flex}.session-info-bar{justify-content:flex-end;margin-top:-10px;margin-bottom:20px;display:flex}.dark-mode-container{z-index:500;position:absolute;top:30px;right:30px}.app-footer{border-top:1px solid var(--border-color);text-align:center;color:#6c757d;-webkit-user-select:none;user-select:none;margin-top:40px;padding-top:15px;font-size:.85rem}.dark-mode .app-footer{color:#bdc3c7}.app-footer a{color:var(--primary-color);font-weight:700;text-decoration:none}.app-footer a:hover{text-decoration:underline}.top-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.control-buttons-group{flex-wrap:wrap;gap:15px;display:flex}input[type=file],button,select,textarea,input[type=text],input[type=number]{cursor:pointer;box-sizing:border-box;border:1px solid var(--border-color);background-color:var(--card-bg);color:var(--text-color);border-radius:4px;padding:10px 15px;font-size:14px;transition:all .2s}button{background-color:var(--primary-color);color:#fff;border:none}button.secondary{background-color:#6c757d}button.secondary:hover{background-color:#5a6268}button:hover:not(:disabled){background-color:var(--primary-dark);box-shadow:0 2px 4px #0000001a}button:disabled{cursor:not-allowed;background-color:#a0c3e6}.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:1000px;max-height:90vh;padding:50px;animation:.3s ease-out fadeIn;overflow-y:auto;box-shadow:0 10px 30px #0003}.alert-modal-content{text-align:center;max-width:400px;padding:30px}.alert-modal-content h3{color:var(--primary-color);margin-top:0}.alert-modal-content p{margin-bottom:20px;font-size:1rem}.alert-modal-actions{justify-content:space-between;gap:15px;display:flex}.alert-modal-actions button{flex-grow:1}@keyframes fadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal-controls{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px;margin-top:20px;display:grid}.control-group-box{border:1px solid var(--border-color);background-color:var(--table-header-bg);border-radius:8px;padding:20px}.control-group-box h3{color:var(--primary-color);margin:0 0 10px;font-size:1.1rem;font-weight:500}.setting-explanation{color:#6c757d;border-bottom:1px dashed var(--border-color);margin-bottom:15px;padding-bottom:10px;font-size:.85rem}.dark-mode .setting-explanation{color:#bdc3c7}.control-list{max-height:250px;overflow-y:auto}.control-list>.switch-container{border-bottom:1px dashed #8883;padding:8px 0}.control-list>.switch-container:last-child{border-bottom:none}.table-display-options select{width:100%;margin-top:15px;padding:10px}.switch-container{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:5px 0;font-size:14px;display:flex}.switch-label{flex-grow:1}.switch-input{opacity:0;width:0;height:0}.switch-slider{background-color:var(--toggle-off-bg);border-radius:20px;flex-shrink:0;width:40px;height:20px;transition:background-color .3s;display:block;position:relative}.switch-slider:before{content:"";background-color:#fff;border-radius:50%;width:16px;height:16px;transition:transform .3s;position:absolute;top:2px;left:2px}.switch-input:checked+.switch-slider{background-color:var(--toggle-on-bg)}.switch-input:checked+.switch-slider:before{transform:translate(20px)}.table-container{border:1px solid var(--border-color);border-radius:4px;overflow:auto}.table-container.scroll-height{max-height:70vh}table{border-collapse:separate;border-spacing:0;min-width:100%}th,td{border:1px solid var(--border-color);text-align:left;white-space:nowrap;padding:12px 8px;position:relative}.table-auto-width th,.table-auto-width td{white-space:normal}th{background-color:var(--table-header-bg);z-index:10;font-weight:600;position:sticky;top:0}.annotated-row{transition:background-color .3s;background-color:var(--annotated-row-bg)!important}.annotated-row:hover{filter:brightness(1.1)}.editable-cell{cursor:text;background-color:var(--editable-bg);min-width:180px;color:var(--text-color);border-left:3px solid var(--primary-color)!important}.search-highlight{background-color:var(--highlight-color);border-radius:3px;padding:2px 5px;font-weight:700;box-shadow:0 0 4px #0000004d;color:#000!important}.index-column{background-color:var(--table-header-bg);color:var(--text-color);z-index:15;position:sticky;left:0}.index-header{z-index:20;position:sticky;left:0;background-color:#a0c3e6!important}.batch-status-indicator{background-color:var(--border-color);vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:5px;display:inline-block}.batch-status-indicator.completed{background-color:var(--completed-color)}.info-message{background-color:var(--table-header-bg);border-left:4px solid var(--primary-color);border-radius:4px;margin-top:15px;padding:15px;font-size:.9rem}.pagination-controls{justify-content:center;align-items:center;gap:20px;padding:10px 0;display:flex}.search-controls-container{border-bottom:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:15px;margin-bottom:15px;padding:10px 0;display:flex}.search-bar-group{flex:1;align-items:center;gap:10px;min-width:280px;display:flex}.search-bar-group input[type=text]{flex-grow:1;width:auto}.jump-bar-group{align-items:center;gap:10px;display:flex}.jump-bar-group input[type=number]{width:80px}.search-nav-buttons{white-space:nowrap;align-items:center;display:flex}.search-nav-buttons button{border-radius:4px;margin:0 5px;padding:8px 12px;font-size:12px}.error-message{color:red;white-space:nowrap;font-size:.9rem}.toast-container{z-index:9999;pointer-events:none;flex-direction:column;gap:10px;display:flex;position:fixed;bottom:20px;right:20px}.toast{color:#fff;pointer-events:auto;background:#2d3436;border-radius:8px;align-items:center;gap:12px;min-width:280px;padding:12px 20px;font-size:.95rem;animation:.4s cubic-bezier(.175,.885,.32,1.275) slideIn;display:flex;box-shadow:0 8px 20px #0003}.toast.success{border-left:6px solid #2ecc71}.toast.error{border-left:6px solid #e74c3c}.toast.info{border-left:6px solid #3498db}@keyframes slideIn{0%{opacity:0;transform:translate(120%)}to{opacity:1;transform:translate(0)}}.remote-cursor-cell{z-index:10;position:relative}.remote-user-flag{color:#fff;white-space:nowrap;z-index:100;pointer-events:none;border-radius:4px 4px 4px 0;padding:2px 8px;font-size:11px;font-weight:700;transition:opacity .2s;position:absolute;top:-22px;left:-2px;box-shadow:0 2px 5px #0000004d}tbody tr:first-child .remote-user-flag{border-radius:0 4px 4px;top:100%;left:-2px}@media (max-width:768px){body{padding:10px}#root{padding:15px}h1{margin-top:40px;font-size:1.4rem}.dark-mode-container{top:15px;right:15px}.user-count-badge{justify-content:center;width:100%;margin-top:5px;margin-left:0}.top-controls{flex-direction:column;gap:15px}.top-controls>input[type=file]{width:100%}.control-buttons-group{gap:10px;width:100%}.control-buttons-group button{flex:45%}.modal-content{max-width:95%;padding:20px}.modal-controls{grid-template-columns:1fr}.table-container{-webkit-overflow-scrolling:touch;overflow-x:auto}.search-controls-container{flex-direction:column;align-items:stretch}.search-controls-container input[type=text]{max-width:none}.search-nav-buttons{justify-content:center;margin-top:5px}}input[type=text]::placeholder,input[type=number]::placeholder{color:#c5c5c5}input[type=text]:focus,input[type=number]:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #3498db33}.copy-action-btn{cursor:pointer;border:1px solid var(--copy-btn-border);background:var(--copy-btn-bg);color:var(--copy-btn-color);border-radius:4px;flex-shrink:0;margin-left:10px;padding:5px 10px;font-size:.75rem;transition:background .2s,border .2s}.copy-action-btn:hover{filter:brightness(.9)}
