* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; }
body.login-body { background: #fafafa; display: flex; align-items: center; justify-content: center; }
.login-container { background: #fff; padding: 40px 48px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.06); width: 360px; max-width: 90%; }
.logo { text-align: center; margin-bottom: 32px; }
.logo-icon { width: 48px; height: 48px; background: #1a1a1a; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.logo-icon svg { width: 24px; height: 24px; fill: #fff; }
.logo-text { font-size: 20px; font-weight: 600; color: #1a1a1a; letter-spacing: 2px; }
.register-link { text-align: center; margin-top: 24px; font-size: 13px; color: #6b7280; }
.register-link a { color: #1a1a1a; text-decoration: none; font-weight: 500; }
.register-link a:hover { text-decoration: underline; }
.login-link { text-align: center; margin-top: 24px; font-size: 13px; color: #6b7280; }
.login-link a { color: #1a1a1a; text-decoration: none; font-weight: 500; }
.login-link a:hover { text-decoration: underline; }
.disabled-msg { padding: 20px; text-align: center; color: #374151; }
.disabled-msg span { font-size: 13px; color: #6b7280; }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.loading-overlay.show { opacity: 1; visibility: visible; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid #e5e7eb; border-top-color: #1a1a1a; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; top: 20px; right: 20px; padding: 14px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 10000; transform: translateX(120%); transition: transform 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.toast.show { transform: translateX(0); }
.toast.success { background: #10b981; color: white; }
.toast.error { background: #ef4444; color: white; }
.toast.info { background: #3b82f6; color: white; }
.header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 18px; font-weight: 600; color: #1a1a1a; letter-spacing: 1px; }
.header .nav { display: flex; gap: 24px; }
.header a { color: #6b7280; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.header a:hover, .header a.active { color: #1a1a1a; }
.container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.page-title { font-size: 24px; font-weight: 600; color: #1a1a1a; margin-bottom: 24px; }
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.2s; font-weight: 500; }
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #2d2d2d; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.card { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.task-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.task-item:last-child { margin-bottom: 0; }
.task-item:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.task-info { flex: 1; min-width: 0; }
.task-name { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; display: flex; align-items: center; }
.task-url { font-size: 12px; color: #9ca3af; word-break: break-all; font-family: monospace; }
.task-meta { font-size: 12px; color: #9ca3af; margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.task-actions { display: flex; gap: 8px; margin-left: 16px; flex-shrink: 0; }
.empty { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.status-checked { background: #f0fdf4; color: #16a34a; }
.status-unchecked { background: #f3f4f6; color: #9ca3af; }
.push-badge { background: #eff6ff; color: #2563eb; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; padding: 28px; width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-content::-webkit-scrollbar { width: 6px; height: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 18px; font-weight: 600; color: #1a1a1a; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; line-height: 1; }
.modal-close:hover { color: #374151; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #374151; font-size: 13px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; transition: all 0.2s; background: #f9fafb; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a1a1a; background: #fff; box-shadow: 0 0 0 3px rgba(26,26,26,0.1); }
.form-group textarea { min-height: 80px; font-family: monospace; font-size: 12px; }
.form-group.checkbox-group { display: flex; align-items: center; gap: 8px; }
.form-group.checkbox-group label { margin-bottom: 0; }
.form-group.checkbox-group input[type="checkbox"] { width: auto; }
.fetch-area textarea { width: 100%; min-height: 100px; font-family: monospace; font-size: 11px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.parsed-result { background: #f9fafb; padding: 14px; border-radius: 8px; margin-top: 12px; font-size: 12px; display: none; }
.parsed-result.show { display: block; }
.parsed-result h4 { margin-bottom: 10px; color: #374151; font-size: 12px; font-weight: 500; }
.parsed-result .item { display: flex; margin-bottom: 6px; }
.parsed-result .label { width: 60px; color: #9ca3af; flex-shrink: 0; font-size: 11px; }
.parsed-result .value { color: #374151; word-break: break-all; font-family: monospace; font-size: 11px; }
.headers-editor { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; max-height: 140px; overflow-y: auto; background: #f9fafb; }
.header-row { display: flex; gap: 8px; margin-bottom: 8px; }
.header-row:last-child { margin-bottom: 0; }
.header-row input { flex: 1; padding: 8px 10px; font-size: 12px; }
.header-row button { background: #fff; border: 1px solid #e5e7eb; color: #9ca3af; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.header-row button:hover { color: #dc2626; border-color: #dc2626; }
.add-header-btn { background: #fff; border: 1px solid #e5e7eb; color: #6b7280; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; margin-top: 8px; }
.add-header-btn:hover { border-color: #374151; color: #374151; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.api-card { background: #fafafa; border: 1px dashed #d1d5db; }
.api-card h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.api-info { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; font-family: monospace; font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.hint { font-size: 12px; color: #9ca3af; margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; color: #6b7280; text-decoration: none; font-size: 14px; margin-bottom: 24px; }
.back-link:hover { color: #1a1a1a; }
.page-subtitle { font-size: 14px; color: #9ca3af; margin-bottom: 24px; font-family: monospace; }
.log-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.log-item:last-child { margin-bottom: 0; }
.log-header { padding: 16px 20px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.log-time { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.log-type { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 500; margin-left: 8px; }
.log-type.initial { background: #dbeafe; color: #2563eb; }
.log-type.update { background: #fef3c7; color: #d97706; }
.log-type.check { background: #e5e7eb; color: #6b7280; }
.log-size { font-size: 12px; color: #9ca3af; margin-right: 12px; }
.log-actions { display: flex; gap: 8px; }
.compare-section { display: none; padding: 20px; background: #fafafa; border-bottom: 1px solid #e5e7eb; }
.compare-section.show { display: block; }
.compare-title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-box { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.compare-header { padding: 10px 12px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; font-size: 12px; font-weight: 500; color: #6b7280; }
.compare-content { padding: 12px; max-height: 250px; overflow: auto; font-family: monospace; font-size: 11px; color: #374151; white-space: pre-wrap; word-break: break-all; }
.diff-line { display: block; padding: 1px 0; }
.diff-added { background: #dcfce7; color: #166534; }
.diff-removed { background: #fee2e2; color: #991b1b; }
.diff-unchanged { color: #9ca3af; }
.full-content { display: none; padding: 20px; }
.full-content.show { display: block; }
.full-content pre { font-family: monospace; font-size: 12px; color: #374151; white-space: pre-wrap; word-break: break-all; line-height: 1.6; }
.stats { display: flex; gap: 24px; margin-bottom: 24px; }
.stat-item { background: #fff; border-radius: 10px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); flex: 1; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a1a1a; }
.stat-label { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.log-group { margin-bottom: 16px; }
.log-group-header { padding: 12px 16px; background: #f3f4f6; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.log-group-header:hover { background: #e5e7eb; }
.log-group-header .log-time { font-size: 13px; font-weight: 500; color: #6b7280; }
.log-group-header .log-count { font-size: 12px; color: #9ca3af; background: #e5e7eb; padding: 2px 8px; border-radius: 10px; }
.log-group-header .expand-icon { transition: transform 0.2s; }
.log-group-header.expanded .expand-icon { transform: rotate(180deg); }
.log-group-content { display: none; padding: 16px 0; }
.log-group-content.show { display: block; }
.user-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.user-item:last-child { margin-bottom: 0; }
.user-item:hover { border-color: #d1d5db; }
.user-info { flex: 1; }
.user-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.user-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.user-stats { display: flex; gap: 16px; margin-top: 8px; }
.user-stat { font-size: 12px; color: #6b7280; }
.user-stat span { font-weight: 600; color: #1a1a1a; }
.detail-section { margin-bottom: 20px; }
.detail-section h3 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.detail-item { padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.detail-item:last-child { border-bottom: none; }
.detail-label { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.detail-value { font-size: 13px; color: #374151; }
.task-list, .push-list { max-height: 200px; overflow-y: auto; }
.task-item-list, .push-item-list { padding: 8px 12px; background: #f9fafb; border-radius: 6px; margin-bottom: 8px; font-size: 12px; }
.section-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
.session-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f9fafb; border-radius: 8px; margin-bottom: 8px; border: 1px solid #e5e7eb; }
.session-item.current { border-color: #10b981; background: #ecfdf5; }
.session-info { flex: 1; }
.session-device { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.session-meta { font-size: 12px; color: #6b7280; margin-top: 4px; }
.session-time { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.current-badge { display: inline-block; padding: 2px 8px; background: #10b981; color: white; font-size: 11px; border-radius: 4px; margin-left: 8px; }
.toggle-switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 24px; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%; }
.toggle-switch input:checked + .toggle-slider { background-color: #10b981; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.toggle-wrapper { display: flex; align-items: center; margin-right: 12px; }

@media (max-width: 768px) {
    .header { padding: 12px 16px; flex-wrap: wrap; }
    .header h1 { font-size: 16px; }
    .header .nav { gap: 12px; font-size: 13px; }
    .container { margin: 20px auto; padding: 0 12px; }
    .page-title { font-size: 20px; margin-bottom: 16px; }
    .task-item { flex-direction: column; align-items: flex-start; padding: 16px; }
    .task-info { width: 100%; margin-bottom: 12px; }
    .task-actions { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .task-actions .btn { flex: 1; min-width: 60px; text-align: center; }
    .toggle-wrapper { margin-right: 8px; }
    .modal-content { padding: 20px; margin: 12px; }
    .form-group { margin-bottom: 16px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .compare-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; gap: 12px; }
    .login-container { padding: 24px; width: 90%; }
    .user-item { flex-direction: column; align-items: flex-start; }
    .user-info { width: 100%; margin-bottom: 12px; }
    .session-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .session-info { width: 100%; }
    .log-group-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .config-item { flex-direction: column; align-items: flex-start; }
    .config-info { width: 100%; margin-bottom: 12px; }
    .config-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
}
