* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f7fa; color: #333; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
h1 { margin-bottom: 20px; font-size: 1.5rem; }
.auth-bar { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.auth-bar input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; }
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #e0e0e0; }
.tab { padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { border-bottom-color: #4a90d9; color: #4a90d9; font-weight: 600; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.form-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row input, .form-row textarea { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; min-width: 200px; }
.form-row textarea { min-height: 80px; resize: vertical; }
button { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.btn-primary { background: #4a90d9; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-secondary { background: #95a5a6; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
th { background: #f8f9fa; font-weight: 600; }
.tag { display: inline-block; background: #e8f4fd; color: #4a90d9; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; margin: 1px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; }
.search-bar select { padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.result-item { border-left: 3px solid #4a90d9; padding-left: 12px; margin-bottom: 12px; }
.result-item .score { color: #888; font-size: 0.8rem; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 10px; padding: 24px; width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; }
.modal h3 { margin-bottom: 16px; }
.text-muted { color: #888; font-size: 0.85rem; }
.empty { text-align: center; padding: 40px; color: #999; }
.form-row label { min-width: 100px; padding-top: 8px; font-size: 0.9rem; }
.settings-group { margin-bottom: 24px; }
.settings-group h4 { margin-bottom: 12px; color: #555; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.split-item { border-left: 3px solid #4a90d9; padding: 12px; margin-bottom: 12px; background: #fafbfc; border-radius: 0 6px 6px 0; }
.split-item .form-row { margin-bottom: 8px; }
.split-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.split-item-header input[type="checkbox"] { width: 18px; height: 18px; }
.loading-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid #e0e0e0; border-top-color: #4a90d9; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-warning { background: #f39c12; color: #fff; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
