* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fb; color: #1f2937; }
.topbar { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; padding: 14px 24px; display: flex; align-items: center; gap: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; font-size: 18px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav a.active { background: rgba(255,255,255,0.25); color: #fff; }
.container { max-width: 1280px; margin: 24px auto; padding: 0 24px; }
h2 { font-size: 22px; margin: 0 0 16px; color: #111827; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.panel { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.panel-title { font-weight: 600; margin-bottom: 12px; color: #374151; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid #4f46e5; }
.card .label { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.card .value { font-size: 24px; font-weight: 700; color: #111827; }
.text-ok { color: #10b981 !important; }
.text-warn { color: #f59e0b !important; }
.text-danger { color: #ef4444 !important; }
.btn { background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.15s; }
.btn:hover { background: #f9fafb; }
.btn-primary { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.btn-primary:hover { background: #4338ca; }
.btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn + .btn { margin-left: 8px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-row input, .form-row select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; flex: 1; min-width: 120px; }
.form-row input:focus, .form-row select:focus { outline: 2px solid #4f46e5; border-color: #4f46e5; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.data-table th { background: #f9fafb; font-weight: 600; color: #374151; font-size: 13px; }
.data-table tr:hover td { background: #f9fafb; }
.status-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-active { background: #d1fae5; color: #065f46; }
.status-expired { background: #fef3c7; color: #92400e; }
.status-disabled { background: #fee2e2; color: #991b1b; }
.status-success { background: #d1fae5; color: #065f46; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-pending { background: #e0e7ff; color: #3730a3; }
.status-skipped { background: #f3f4f6; color: #6b7280; }
.hint { color: #6b7280; font-size: 13px; margin: 8px 0 0; }
.hint code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
.chart { display: flex; align-items: end; gap: 8px; height: 140px; padding: 8px 0; }
.chart .bar { flex: 1; background: linear-gradient(to top, #4f46e5, #7c3aed); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; transition: all 0.3s; }
.chart .bar:hover { opacity: 0.8; }
.chart .bar .bar-label { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: #6b7280; }
.chart .bar .bar-value { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; color: #4f46e5; font-weight: 600; }
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 12px 24px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 100; }
.toast.show { opacity: 0.95; }